@openpresentation/opf 0.32.1 → 0.33.0

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.
Files changed (95) hide show
  1. package/README.md +9 -0
  2. package/dist/browser.js +20 -20
  3. package/dist/{catalog-refs-kAefsZWT.d.ts → catalog-refs-B_0_vZg0.d.ts} +5 -0
  4. package/dist/{catalog-schemas-LdqOPebq.d.ts → catalog-schemas-CQTM-G8p.d.ts} +10 -4
  5. package/dist/{chunk-CLRYHWQN.js → chunk-ABWEUXLV.js} +72 -6
  6. package/dist/{chunk-XFHXQCXL.js → chunk-BI4ERFAA.js} +52 -1
  7. package/dist/{chunk-SZFO3MAJ.js → chunk-DAS75LGR.js} +3 -3
  8. package/dist/{chunk-F7DN33UL.js → chunk-E7WQHMCL.js} +6 -6
  9. package/dist/chunk-IJXKVM4W.js +221 -0
  10. package/dist/{chunk-AQEAZDL2.js → chunk-INIMUBSE.js} +2 -1
  11. package/dist/{chunk-NEJ32O7X.js → chunk-KVHNDHVS.js} +1 -1
  12. package/dist/{chunk-NVAJASOD.js → chunk-OPVJLL7H.js} +6867 -1862
  13. package/dist/{chunk-GM7WFPGG.js → chunk-PRXZD2II.js} +6 -1
  14. package/dist/{chunk-BBVW5ZC2.js → chunk-QD6DPS7X.js} +2 -2
  15. package/dist/{chunk-LEF4X4KI.js → chunk-QF5RSRXU.js} +1797 -170
  16. package/dist/{chunk-HKUV7NEN.js → chunk-R6C6BQOG.js} +1 -1
  17. package/dist/{chunk-IT7FQKED.js → chunk-S5QRGMUQ.js} +6 -6
  18. package/dist/{chunk-OXLA4HXQ.js → chunk-UK3J6FSU.js} +346 -53
  19. package/dist/{chunk-XQO2CT6Q.js → chunk-VKEYV3ZK.js} +1 -1
  20. package/dist/{chunk-ONVFUVQ5.js → chunk-VMBLNCX2.js} +31 -13
  21. package/dist/{chunk-YFJIIIOL.js → chunk-VSBZC2PR.js} +2 -2
  22. package/dist/{chunk-UJSAR6GF.js → chunk-W4DYDRV2.js} +21 -0
  23. package/dist/{chunk-J63CIRIV.js → chunk-XANW7MB7.js} +4 -4
  24. package/dist/{chunk-PB7ME64J.js → chunk-XIOC6N5P.js} +1 -1
  25. package/dist/{chunk-2E6CDYL2.js → chunk-Y557TYML.js} +5 -5
  26. package/dist/{chunk-SW676APJ.js → chunk-YS333HLA.js} +2 -2
  27. package/dist/chunk-YYT6N7AI.js +642 -0
  28. package/dist/chunk-ZXOIGUHX.js +1 -0
  29. package/dist/{composition-Ds6WHyO7.d.ts → composition-zMiIgzip.d.ts} +2353 -272
  30. package/dist/composition.d.ts +3 -2
  31. package/dist/composition.js +2 -2
  32. package/dist/conversion-POHRAMSN.js +24 -0
  33. package/dist/{conversion-CdzrTxib.d.ts → conversion-mNth9XKm.d.ts} +20 -9
  34. package/dist/convert.d.ts +3 -2
  35. package/dist/convert.js +9 -9
  36. package/dist/data.d.ts +1 -1
  37. package/dist/data.js +3 -3
  38. package/dist/{deck-report-CKDNQ2t4.d.ts → deck-report-BSlRiR0_.d.ts} +3 -3
  39. package/dist/deck.d.ts +6 -5
  40. package/dist/deck.js +12 -12
  41. package/dist/diagram-engine-eager.js +1 -1
  42. package/dist/diagram-engine-lazy.js +1 -1
  43. package/dist/diff.js +5 -5
  44. package/dist/docs.js +48 -24
  45. package/dist/examples.js +7507 -142
  46. package/dist/font-policy.js +1 -1
  47. package/dist/format.js +3 -3
  48. package/dist/ids.js +5 -5
  49. package/dist/index.d.ts +13 -12
  50. package/dist/index.js +24 -24
  51. package/dist/markdown.d.ts +2 -1
  52. package/dist/markdown.js +9 -9
  53. package/dist/node-engine.d.ts +7 -6
  54. package/dist/node-engine.js +24 -24
  55. package/dist/{pagination-DRZ_JNFY.d.ts → pagination-CYzNMazO.d.ts} +20 -3
  56. package/dist/pagination.d.ts +4 -3
  57. package/dist/pagination.js +5 -5
  58. package/dist/patch.js +4 -4
  59. package/dist/precompiled.js +3 -3
  60. package/dist/{presentation-DnD7mfmf.d.ts → presentation-CXhfpB_z.d.ts} +876 -39
  61. package/dist/repo-readme.js +2 -2
  62. package/dist/schema-engine-ajv.js +2 -2
  63. package/dist/schema-engine-precompiled.js +3 -3
  64. package/dist/schema.d.ts +2 -2
  65. package/dist/schema.js +4 -4
  66. package/dist/schemas.d.ts +40 -4
  67. package/dist/schemas.js +2 -2
  68. package/dist/shape-catalog.d.ts +98 -0
  69. package/dist/shape-catalog.js +302 -0
  70. package/dist/shape-engine-eager.js +9 -0
  71. package/dist/shape-engine-lazy.js +12 -0
  72. package/dist/shape-engine-module-BK7JNEUV.js +3 -0
  73. package/dist/shape-geometry.d.ts +126 -0
  74. package/dist/shape-geometry.js +2 -0
  75. package/dist/source.js +11 -11
  76. package/dist/spec/README.md +1 -1
  77. package/dist/spec/reference/preset-geometry.json +10699 -0
  78. package/dist/spec/reference/preset-geometry.schema.json +126 -0
  79. package/dist/spec/schemas/catalog-index.schema.json +1 -0
  80. package/dist/spec/schemas/chart-type.schema.json +4 -4
  81. package/dist/spec/schemas/icon-set.schema.json +75 -0
  82. package/dist/spec/schemas/layout.schema.json +14 -1
  83. package/dist/spec/schemas/opf.schema.json +1144 -196
  84. package/dist/spec-files.d.ts +1 -1
  85. package/dist/spec-files.js +2 -2
  86. package/dist/symbol-font-encodings.js +1 -1
  87. package/dist/types.d.ts +10 -6
  88. package/dist/{validation-types-DxyYPebs.d.ts → validation-types-COwTel3H.d.ts} +2 -2
  89. package/dist/validator.d.ts +5 -4
  90. package/dist/validator.js +4 -4
  91. package/dist/yaml.d.ts +2 -1
  92. package/dist/yaml.js +8 -8
  93. package/package.json +21 -5
  94. package/dist/chunk-DGS47ONG.js +0 -1
  95. package/dist/conversion-5FUDQPED.js +0 -24
@@ -1 +0,0 @@
1
- import{schemas as j}from"./chunk-LEF4X4KI.js";import{__commonJS as Dh}from"./chunk-GM7WFPGG.js";var Ld=Dh({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js"(a){Object.defineProperty(a,"__esModule",{value:!0});function s(q){const x=q.length;let v=0,b=0,e;for(;b<x;)v++,e=q.charCodeAt(b++),e>=55296&&e<=56319&&b<x&&(e=q.charCodeAt(b),(e&64512)===56320&&b++);return v}a.default=s,s.code='require("ajv/dist/runtime/ucs2length").default'}}),Gc=Dh({"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js"(a){Object.defineProperty(a,"__esModule",{value:!0}),a.formatNames=a.fastFormats=a.fullFormats=void 0;function s($,F){return{validate:$,compare:F}}a.fullFormats={date:s(b,e),time:s(m(!0),r),"date-time":s(i(!0),h),"iso-time":s(m(),n),"iso-date-time":s(i(),c),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:l,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:w,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:d,int32:{type:"number",validate:I},int64:{type:"number",validate:A},float:{type:"number",validate:f},double:{type:"number",validate:f},password:!0,binary:!0},a.fastFormats={...a.fullFormats,date:s(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,e),time:s(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,r),"date-time":s(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h),"iso-time":s(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,n),"iso-date-time":s(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},a.formatNames=Object.keys(a.fullFormats);function q($){return $%4===0&&($%100!==0||$%400===0)}var x=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,v=[0,31,28,31,30,31,30,31,31,30,31,30,31];function b($){const F=x.exec($);if(!F)return!1;const z=+F[1],L=+F[2],M=+F[3];return L>=1&&L<=12&&M>=1&&M<=(L===2&&q(z)?29:v[L])}function e($,F){if($&&F)return $>F?1:$<F?-1:0}var t=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function m($){return function(z){const L=t.exec(z);if(!L)return!1;const M=+L[1],H=+L[2],R=+L[3],C=L[4],T=L[5]==="-"?-1:1,U=+(L[6]||0),ae=+(L[7]||0);if(U>23||ae>59||$&&!C)return!1;if(M<=23&&H<=59&&R<60)return!0;const te=H-ae*T,G=M-U*T-(te<0?1:0);return(G===23||G===-1)&&(te===59||te===-1)&&R<61}}function r($,F){if(!($&&F))return;const z=new Date("2020-01-01T"+$).valueOf(),L=new Date("2020-01-01T"+F).valueOf();if(z&&L)return z-L}function n($,F){if(!($&&F))return;const z=t.exec($),L=t.exec(F);if(z&&L)return $=z[1]+z[2]+z[3],F=L[1]+L[2]+L[3],$>F?1:$<F?-1:0}var o=/t|\s/i;function i($){const F=m($);return function(L){const M=L.split(o);return M.length===2&&b(M[0])&&F(M[1])}}function h($,F){if(!($&&F))return;const z=new Date($).valueOf(),L=new Date(F).valueOf();if(z&&L)return z-L}function c($,F){if(!($&&F))return;const[z,L]=$.split(o),[M,H]=F.split(o),R=e(z,M);if(R!==void 0)return R||r(L,H)}var y=/\/|:/,g=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function l($){return y.test($)&&g.test($)}var p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function d($){return p.lastIndex=0,p.test($)}var O=-2147483648,S=2**31-1;function I($){return Number.isInteger($)&&$<=S&&$>=O}function A($){return Number.isInteger($)}function f(){return!0}var P=/[^\\]\\Z/;function w($){if(P.test($))return!1;try{return new RegExp($),!0}catch{return!1}}}}),D={};D.root0=oo;var fe=j.presentation,$a=j.presentation.$defs.LanguageTag,xe=j.presentation.$defs.CatalogReference,va=Object.prototype.hasOwnProperty,ce=j.presentation.$defs.Organization,k=j.presentation.$defs.Asset,Te=j.presentation.$defs.Socials,zs=new RegExp("^[a-zA-Z0-9_-]+$","u"),Ps=j.presentation.$defs.OrganizationLogo,js=j.presentation.$defs.LogoSource;function Dt(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Dt.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t,h=t;let c=!1,y=null;const g=t;if(typeof a!="string"){const f={instancePath:s,schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:a};e===null?e=[f]:e.push(f),t++}var p=g===t;p&&(c=!0,y=0);const l=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.src===void 0){const f={instancePath:s,schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:a};e===null?e=[f]:e.push(f),t++}for(const f in a)if(!(f==="src"||f==="alt"||f==="title"||f==="description"||f==="mediaType")){const P={instancePath:s,schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:a};e===null?e=[P]:e.push(P),t++}if(a.src!==void 0){let f=a.src;if(typeof f!="string"){const P={instancePath:s+"/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:f};e===null?e=[P]:e.push(P),t++}}if(a.alt!==void 0){let f=a.alt;if(typeof f!="string"){const P={instancePath:s+"/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:f};e===null?e=[P]:e.push(P),t++}}if(a.title!==void 0){let f=a.title;if(typeof f!="string"){const P={instancePath:s+"/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:f};e===null?e=[P]:e.push(P),t++}}if(a.description!==void 0){let f=a.description;if(typeof f!="string"){const P={instancePath:s+"/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:f};e===null?e=[P]:e.push(P),t++}}if(a.mediaType!==void 0){let f=a.mediaType;if(typeof f!="string"){const P={instancePath:s+"/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:f};e===null?e=[P]:e.push(P),t++}}}else{const f={instancePath:s,schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:a};e===null?e=[f]:e.push(f),t++}var p=l===t;if(p&&c)c=!1,y=[y,1];else if(p){c=!0,y=1;var d=!0}if(c)t=h,e!==null&&(h?e.length=h:e=null);else{const f={instancePath:s,schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:a};e===null?e=[f]:e.push(f),t++}var A=i===t;A&&(n=!0,o=0);const O=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(Object.keys(a).length<1){const f={instancePath:s,schemaPath:"#/oneOf/1/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:js.oneOf[1],data:a};e===null?e=[f]:e.push(f),t++}for(const f in a)if(!(f==="onLight"||f==="onDark")){const P={instancePath:s,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties",schema:!1,parentSchema:js.oneOf[1],data:a};e===null?e=[P]:e.push(P),t++}if(a.onLight!==void 0){let f=a.onLight;const P=t;let w=!1,$=null;const F=t;if(typeof f!="string"){const L={instancePath:s+"/onLight",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:f};e===null?e=[L]:e.push(L),t++}var S=F===t;S&&(w=!0,$=0);const z=t;if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.src===void 0){const L={instancePath:s+"/onLight",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:f};e===null?e=[L]:e.push(L),t++}for(const L in f)if(!(L==="src"||L==="alt"||L==="title"||L==="description"||L==="mediaType")){const M={instancePath:s+"/onLight",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:L},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:f};e===null?e=[M]:e.push(M),t++}if(f.src!==void 0){let L=f.src;if(typeof L!="string"){const M={instancePath:s+"/onLight/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:L};e===null?e=[M]:e.push(M),t++}}if(f.alt!==void 0){let L=f.alt;if(typeof L!="string"){const M={instancePath:s+"/onLight/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:L};e===null?e=[M]:e.push(M),t++}}if(f.title!==void 0){let L=f.title;if(typeof L!="string"){const M={instancePath:s+"/onLight/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:L};e===null?e=[M]:e.push(M),t++}}if(f.description!==void 0){let L=f.description;if(typeof L!="string"){const M={instancePath:s+"/onLight/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:L};e===null?e=[M]:e.push(M),t++}}if(f.mediaType!==void 0){let L=f.mediaType;if(typeof L!="string"){const M={instancePath:s+"/onLight/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:L};e===null?e=[M]:e.push(M),t++}}}else{const L={instancePath:s+"/onLight",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:f};e===null?e=[L]:e.push(L),t++}var S=z===t;if(S&&w?(w=!1,$=[$,1]):S&&(w=!0,$=1),w)t=P,e!==null&&(P?e.length=P:e=null);else{const L={instancePath:s+"/onLight",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:$},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:f};e===null?e=[L]:e.push(L),t++}}if(a.onDark!==void 0){let f=a.onDark;const P=t;let w=!1,$=null;const F=t;if(typeof f!="string"){const L={instancePath:s+"/onDark",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:f};e===null?e=[L]:e.push(L),t++}var I=F===t;I&&(w=!0,$=0);const z=t;if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.src===void 0){const L={instancePath:s+"/onDark",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:f};e===null?e=[L]:e.push(L),t++}for(const L in f)if(!(L==="src"||L==="alt"||L==="title"||L==="description"||L==="mediaType")){const M={instancePath:s+"/onDark",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:L},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:f};e===null?e=[M]:e.push(M),t++}if(f.src!==void 0){let L=f.src;if(typeof L!="string"){const M={instancePath:s+"/onDark/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:L};e===null?e=[M]:e.push(M),t++}}if(f.alt!==void 0){let L=f.alt;if(typeof L!="string"){const M={instancePath:s+"/onDark/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:L};e===null?e=[M]:e.push(M),t++}}if(f.title!==void 0){let L=f.title;if(typeof L!="string"){const M={instancePath:s+"/onDark/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:L};e===null?e=[M]:e.push(M),t++}}if(f.description!==void 0){let L=f.description;if(typeof L!="string"){const M={instancePath:s+"/onDark/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:L};e===null?e=[M]:e.push(M),t++}}if(f.mediaType!==void 0){let L=f.mediaType;if(typeof L!="string"){const M={instancePath:s+"/onDark/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:L};e===null?e=[M]:e.push(M),t++}}}else{const L={instancePath:s+"/onDark",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:f};e===null?e=[L]:e.push(L),t++}var I=z===t;if(I&&w?(w=!1,$=[$,1]):I&&(w=!0,$=1),w)t=P,e!==null&&(P?e.length=P:e=null);else{const L={instancePath:s+"/onDark",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:$},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:f};e===null?e=[L]:e.push(L),t++}}}else{const f={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:js.oneOf[1].type,parentSchema:js.oneOf[1],data:a};e===null?e=[f]:e.push(f),t++}var A=O===t;if(A&&n?(n=!1,o=[o,1]):A&&(n=!0,o=1,d!==!0&&(d=!0)),n)t=r,e!==null&&(r?e.length=r:e=null);else{const f={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:js.oneOf,parentSchema:js,data:a};e===null?e=[f]:e.push(f),t++}return Dt.errors=e,m.props=d,t===0}Dt.evaluated={dynamicProps:!0,dynamicItems:!1};function Da(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Da.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(Object.keys(a).length<1){const r={instancePath:s,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:Ps,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="full"||r==="stacked"||r==="icon"||r==="wordmark")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ps,data:a};e===null?e=[n]:e.push(n),t++}a.full!==void 0&&(Dt(a.full,{instancePath:s+"/full",parentData:a,parentDataProperty:"full",rootData:v,dynamicAnchors:b})||(e=e===null?Dt.errors:e.concat(Dt.errors),t=e.length)),a.stacked!==void 0&&(Dt(a.stacked,{instancePath:s+"/stacked",parentData:a,parentDataProperty:"stacked",rootData:v,dynamicAnchors:b})||(e=e===null?Dt.errors:e.concat(Dt.errors),t=e.length)),a.icon!==void 0&&(Dt(a.icon,{instancePath:s+"/icon",parentData:a,parentDataProperty:"icon",rootData:v,dynamicAnchors:b})||(e=e===null?Dt.errors:e.concat(Dt.errors),t=e.length)),a.wordmark!==void 0&&(Dt(a.wordmark,{instancePath:s+"/wordmark",parentData:a,parentDataProperty:"wordmark",rootData:v,dynamicAnchors:b})||(e=e===null?Dt.errors:e.concat(Dt.errors),t=e.length))}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ps.type,parentSchema:Ps,data:a};e===null?e=[r]:e.push(r),t++}return Da.errors=e,t===0}Da.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Fs=/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;function Ma(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ma.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const h={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ce.required,parentSchema:ce,data:a};e===null?e=[h]:e.push(h),t++}if(a.name===void 0){const h={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ce.required,parentSchema:ce,data:a};e===null?e=[h]:e.push(h),t++}if(a.id!==void 0){let h=a.id;if(typeof h=="string"){if(!zs.test(h)){const c={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9_-]+$"},message:'must match pattern "^[a-zA-Z0-9_-]+$"',schema:"^[a-zA-Z0-9_-]+$",parentSchema:ce.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.id.type,parentSchema:ce.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}if(a.name!==void 0){let h=a.name;if(typeof h!="string"){const c={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.name.type,parentSchema:ce.properties.name,data:h};e===null?e=[c]:e.push(c),t++}}if(a.legalName!==void 0){let h=a.legalName;if(typeof h!="string"){const c={instancePath:s+"/legalName",schemaPath:"#/properties/legalName/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.legalName.type,parentSchema:ce.properties.legalName,data:h};e===null?e=[c]:e.push(c),t++}}if(a.logo!==void 0){let h=a.logo;const c=t;let y=!1,g=null;const l=t,p=t;let d=!1,O=null;const S=t;if(typeof h!="string"){const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:h};e===null?e=[f]:e.push(f),t++}var r=S===t;r&&(d=!0,O=0);const I=t;if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.src===void 0){const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:h};e===null?e=[f]:e.push(f),t++}for(const f in h)if(!(f==="src"||f==="alt"||f==="title"||f==="description"||f==="mediaType")){const P={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:h};e===null?e=[P]:e.push(P),t++}if(h.src!==void 0){let f=h.src;if(typeof f!="string"){const P={instancePath:s+"/logo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:f};e===null?e=[P]:e.push(P),t++}}if(h.alt!==void 0){let f=h.alt;if(typeof f!="string"){const P={instancePath:s+"/logo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:f};e===null?e=[P]:e.push(P),t++}}if(h.title!==void 0){let f=h.title;if(typeof f!="string"){const P={instancePath:s+"/logo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:f};e===null?e=[P]:e.push(P),t++}}if(h.description!==void 0){let f=h.description;if(typeof f!="string"){const P={instancePath:s+"/logo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:f};e===null?e=[P]:e.push(P),t++}}if(h.mediaType!==void 0){let f=h.mediaType;if(typeof f!="string"){const P={instancePath:s+"/logo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:f};e===null?e=[P]:e.push(P),t++}}}else{const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:h};e===null?e=[f]:e.push(f),t++}var r=I===t;if(r&&d)d=!1,O=[O,1];else if(r){d=!0,O=1;var n=!0}if(d)t=p,e!==null&&(p?e.length=p:e=null);else{const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:O},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:h};e===null?e=[f]:e.push(f),t++}var o=l===t;o&&(y=!0,g=0);const A=t;Da(h,{instancePath:s+"/logo",parentData:a,parentDataProperty:"logo",rootData:v,dynamicAnchors:b})||(e=e===null?Da.errors:e.concat(Da.errors),t=e.length);var o=A===t;if(o&&y?(y=!1,g=[g,1]):o&&(y=!0,g=1,n!==!0&&(n=!0)),y)t=c,e!==null&&(c?e.length=c:e=null);else{const f={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf",schema:ce.properties.logo.oneOf,parentSchema:ce.properties.logo,data:h};e===null?e=[f]:e.push(f),t++}}if(a.domain!==void 0){let h=a.domain;if(typeof h!="string"){const c={instancePath:s+"/domain",schemaPath:"#/properties/domain/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.domain.type,parentSchema:ce.properties.domain,data:h};e===null?e=[c]:e.push(c),t++}}if(a.email!==void 0){let h=a.email;if(typeof h=="string"){if(!Fs.test(h)){const c={instancePath:s+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"',schema:"email",parentSchema:ce.properties.email,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.email.type,parentSchema:ce.properties.email,data:h};e===null?e=[c]:e.push(c),t++}}if(a.phone!==void 0){let h=a.phone;if(typeof h!="string"){const c={instancePath:s+"/phone",schemaPath:"#/properties/phone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.phone.type,parentSchema:ce.properties.phone,data:h};e===null?e=[c]:e.push(c),t++}}if(a.tagline!==void 0){let h=a.tagline;if(typeof h!="string"){const c={instancePath:s+"/tagline",schemaPath:"#/properties/tagline/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.tagline.type,parentSchema:ce.properties.tagline,data:h};e===null?e=[c]:e.push(c),t++}}if(a.role!==void 0){let h=a.role;if(typeof h!="string"){const c={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.role.type,parentSchema:ce.properties.role,data:h};e===null?e=[c]:e.push(c),t++}if(!(h==="primary"||h==="partner"||h==="client"||h==="sponsor"||h==="host")){const c={instancePath:s+"/role",schemaPath:"#/properties/role/enum",keyword:"enum",params:{allowedValues:ce.properties.role.enum},message:"must be equal to one of the allowed values",schema:ce.properties.role.enum,parentSchema:ce.properties.role,data:h};e===null?e=[c]:e.push(c),t++}}if(a.socials!==void 0){let h=a.socials;if(h&&typeof h=="object"&&!Array.isArray(h)){for(const c in h){const y=t;if(!(c==="linkedin"||c==="x"||c==="github"||c==="youtube"||c==="instagram"||c==="facebook"||c==="tiktok"||c==="threads"||c==="mastodon"||c==="bluesky")){const g={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames/enum",keyword:"enum",params:{allowedValues:Te.propertyNames.enum},message:"must be equal to one of the allowed values",schema:Te.propertyNames.enum,parentSchema:Te.propertyNames,data:c,propertyName:c};e===null?e=[g]:e.push(g),t++}var i=y===t;if(!i){const g={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames",keyword:"propertyNames",params:{propertyName:c},message:"property name must be valid",schema:Te.propertyNames,parentSchema:Te,data:h};e===null?e=[g]:e.push(g),t++}}for(const c in h){let y=h[c];if(typeof y!="string"){const g={instancePath:s+"/socials/"+c.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Socials/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.additionalProperties.type,parentSchema:Te.additionalProperties,data:y};e===null?e=[g]:e.push(g),t++}}}else{const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Te.type,parentSchema:Te,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ce.type,parentSchema:ce,data:a};e===null?e=[h]:e.push(h),t++}return Ma.errors=e,t===0}Ma.evaluated={props:{id:!0,name:!0,legalName:!0,logo:!0,domain:!0,email:!0,phone:!0,tagline:!0,role:!0,socials:!0},dynamicProps:!1,dynamicItems:!1};var ke=j.presentation.$defs.Speaker;function Ba(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ba.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ke.required,parentSchema:ke,data:a};e===null?e=[o]:e.push(o),t++}if(a.name===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ke.required,parentSchema:ke,data:a};e===null?e=[o]:e.push(o),t++}if(a.id!==void 0){let o=a.id;if(typeof o=="string"){if(!zs.test(o)){const i={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9_-]+$"},message:'must match pattern "^[a-zA-Z0-9_-]+$"',schema:"^[a-zA-Z0-9_-]+$",parentSchema:ke.properties.id,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.id.type,parentSchema:ke.properties.id,data:o};e===null?e=[i]:e.push(i),t++}}if(a.name!==void 0){let o=a.name;if(typeof o!="string"){const i={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.name.type,parentSchema:ke.properties.name,data:o};e===null?e=[i]:e.push(i),t++}}if(a.title!==void 0){let o=a.title;if(typeof o!="string"){const i={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.title.type,parentSchema:ke.properties.title,data:o};e===null?e=[i]:e.push(i),t++}}if(a.photo!==void 0){let o=a.photo;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/photo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/photo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/photo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/photo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/photo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}if(a.email!==void 0){let o=a.email;if(typeof o=="string"){if(!Fs.test(o)){const i={instancePath:s+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"',schema:"email",parentSchema:ke.properties.email,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.email.type,parentSchema:ke.properties.email,data:o};e===null?e=[i]:e.push(i),t++}}if(a.phone!==void 0){let o=a.phone;if(typeof o!="string"){const i={instancePath:s+"/phone",schemaPath:"#/properties/phone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.phone.type,parentSchema:ke.properties.phone,data:o};e===null?e=[i]:e.push(i),t++}}if(a.bio!==void 0){let o=a.bio;if(typeof o!="string"){const i={instancePath:s+"/bio",schemaPath:"#/properties/bio/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.bio.type,parentSchema:ke.properties.bio,data:o};e===null?e=[i]:e.push(i),t++}}if(a.organizationId!==void 0){let o=a.organizationId;if(typeof o!="string"){const i={instancePath:s+"/organizationId",schemaPath:"#/properties/organizationId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.organizationId.type,parentSchema:ke.properties.organizationId,data:o};e===null?e=[i]:e.push(i),t++}}if(a.socials!==void 0){let o=a.socials;if(o&&typeof o=="object"&&!Array.isArray(o)){for(const i in o){const h=t;if(!(i==="linkedin"||i==="x"||i==="github"||i==="youtube"||i==="instagram"||i==="facebook"||i==="tiktok"||i==="threads"||i==="mastodon"||i==="bluesky")){const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames/enum",keyword:"enum",params:{allowedValues:Te.propertyNames.enum},message:"must be equal to one of the allowed values",schema:Te.propertyNames.enum,parentSchema:Te.propertyNames,data:i,propertyName:i};e===null?e=[c]:e.push(c),t++}var n=h===t;if(!n){const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames",keyword:"propertyNames",params:{propertyName:i},message:"property name must be valid",schema:Te.propertyNames,parentSchema:Te,data:o};e===null?e=[c]:e.push(c),t++}}for(const i in o){let h=o[i];if(typeof h!="string"){const c={instancePath:s+"/socials/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Socials/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.additionalProperties.type,parentSchema:Te.additionalProperties,data:h};e===null?e=[c]:e.push(c),t++}}}else{const i={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Te.type,parentSchema:Te,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ke.type,parentSchema:ke,data:a};e===null?e=[o]:e.push(o),t++}return Ba.errors=e,t===0}Ba.evaluated={props:{id:!0,name:!0,title:!0,photo:!0,email:!0,phone:!0,bio:!0,organizationId:!0,socials:!0},dynamicProps:!1,dynamicItems:!1};var E=j.presentation.$defs.Audience,Bt=new RegExp("^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$","u");function Ha(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ha.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const o=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:E.anyOf[0].required,parentSchema:E.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=o===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:E.anyOf[1].required,parentSchema:E.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:E.anyOf,parentSchema:E,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Bt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.name.type,parentSchema:E.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.summary.type,parentSchema:E.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.description.type,parentSchema:E.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.seniority!==void 0){let c=a.seniority;if(typeof c!="string"){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.seniority.type,parentSchema:E.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="ic"||c==="manager"||c==="director"||c==="vp"||c==="c-suite"||c==="mixed")){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/enum",keyword:"enum",params:{allowedValues:E.properties.seniority.enum},message:"must be equal to one of the allowed values",schema:E.properties.seniority.enum,parentSchema:E.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}}if(a.technicalFluency!==void 0){let c=a.technicalFluency;if(typeof c!="string"){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.technicalFluency.type,parentSchema:E.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="low"||c==="medium"||c==="high"||c==="mixed")){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/enum",keyword:"enum",params:{allowedValues:E.properties.technicalFluency.enum},message:"must be equal to one of the allowed values",schema:E.properties.technicalFluency.enum,parentSchema:E.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}}if(a.decisionPower!==void 0){let c=a.decisionPower;if(typeof c!="string"){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.decisionPower.type,parentSchema:E.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="informational"||c==="advisory"||c==="decision-maker")){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/enum",keyword:"enum",params:{allowedValues:E.properties.decisionPower.enum},message:"must be equal to one of the allowed values",schema:E.properties.decisionPower.enum,parentSchema:E.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}}if(a.attentionBudgetMinutes!==void 0){let c=a.attentionBudgetMinutes;if(typeof c=="number"){if(c<=0||isNaN(c)){const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:E.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/type",keyword:"type",params:{type:"number"},message:"must be number",schema:E.properties.attentionBudgetMinutes.type,parentSchema:E.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.recommendedNarratives.items.type,parentSchema:E.properties.recommendedNarratives.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:E.properties.recommendedNarratives.type,parentSchema:E.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedTones!==void 0){let c=a.recommendedTones;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedTones/"+g,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.recommendedTones.items.type,parentSchema:E.properties.recommendedTones.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:E.properties.recommendedTones.type,parentSchema:E.properties.recommendedTones,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.tags.items.type,parentSchema:E.properties.tags.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:E.properties.tags.type,parentSchema:E.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:E.type,parentSchema:E,data:a};e===null?e=[c]:e.push(c),t++}return Ha.errors=e,t===0}Ha.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};var $e=j.presentation.$defs.Purpose;function Ts(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ts.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const o=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:$e.anyOf[0].required,parentSchema:$e.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=o===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:$e.anyOf[1].required,parentSchema:$e.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:$e.anyOf,parentSchema:$e,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Bt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.name.type,parentSchema:$e.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.summary.type,parentSchema:$e.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.description.type,parentSchema:$e.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.outcome!==void 0){let c=a.outcome;if(typeof c!="string"){const y={instancePath:s+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.outcome.type,parentSchema:$e.properties.outcome,data:c};e===null?e=[y]:e.push(y),t++}}if(a.successCriteria!==void 0){let c=a.successCriteria;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/successCriteria/"+g,schemaPath:"#/properties/successCriteria/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.successCriteria.items.type,parentSchema:$e.properties.successCriteria.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/successCriteria",schemaPath:"#/properties/successCriteria/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$e.properties.successCriteria.type,parentSchema:$e.properties.successCriteria,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.recommendedNarratives.items.type,parentSchema:$e.properties.recommendedNarratives.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$e.properties.recommendedNarratives.type,parentSchema:$e.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedTones!==void 0){let c=a.recommendedTones;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedTones/"+g,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.recommendedTones.items.type,parentSchema:$e.properties.recommendedTones.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$e.properties.recommendedTones.type,parentSchema:$e.properties.recommendedTones,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.tags.items.type,parentSchema:$e.properties.tags.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$e.properties.tags.type,parentSchema:$e.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:$e.type,parentSchema:$e,data:a};e===null?e=[c]:e.push(c),t++}return Ts.errors=e,t===0}Ts.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,outcome:!0,successCriteria:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};var Ce=j.presentation.$defs.Language,to=new RegExp("^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$","u");function Cs(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Cs.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t,n=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const i={};e===null?e=[i]:e.push(i),t++}var o=n===t;if(o){const i={instancePath:s,schemaPath:"#/not",keyword:"not",params:{},message:"must NOT be valid",schema:Ce.not,parentSchema:Ce,data:a};e===null?e=[i]:e.push(i),t++}else t=r,e!==null&&(r?e.length=r:e=null);if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.bcp47===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bcp47"},message:"must have required property 'bcp47'",schema:Ce.required,parentSchema:Ce,data:a};e===null?e=[i]:e.push(i),t++}if(a.name!==void 0){let i=a.name;if(typeof i!="string"){const h={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.name.type,parentSchema:Ce.properties.name,data:i};e===null?e=[h]:e.push(h),t++}}if(a.bcp47!==void 0){let i=a.bcp47;if(typeof i=="string"){if(!to.test(i)){const h={instancePath:s+"/bcp47",schemaPath:"#/$defs/LanguageTag/pattern",keyword:"pattern",params:{pattern:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"',schema:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$",parentSchema:$a,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/bcp47",schemaPath:"#/$defs/LanguageTag/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$a.type,parentSchema:$a,data:i};e===null?e=[h]:e.push(h),t++}}if(a.ooxmlLang!==void 0){let i=a.ooxmlLang;if(typeof i!="string"){const h={instancePath:s+"/ooxmlLang",schemaPath:"#/properties/ooxmlLang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.ooxmlLang.type,parentSchema:Ce.properties.ooxmlLang,data:i};e===null?e=[h]:e.push(h),t++}}if(a.code!==void 0){let i=a.code;if(typeof i!="string"){const h={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.code.type,parentSchema:Ce.properties.code,data:i};e===null?e=[h]:e.push(h),t++}}if(a.direction!==void 0){let i=a.direction;if(typeof i!="string"){const h={instancePath:s+"/direction",schemaPath:"#/properties/direction/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.direction.type,parentSchema:Ce.properties.direction,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="ltr"||i==="rtl")){const h={instancePath:s+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues:Ce.properties.direction.enum},message:"must be equal to one of the allowed values",schema:Ce.properties.direction.enum,parentSchema:Ce.properties.direction,data:i};e===null?e=[h]:e.push(h),t++}}if(a.script!==void 0){let i=a.script;if(typeof i!="string"){const h={instancePath:s+"/script",schemaPath:"#/properties/script/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.script.type,parentSchema:Ce.properties.script,data:i};e===null?e=[h]:e.push(h),t++}}if(a.fontScheme!==void 0){let i=a.fontScheme;if(typeof i=="string"){if(!Bt.test(i)){const h={instancePath:s+"/fontScheme",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/fontScheme",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:i};e===null?e=[h]:e.push(h),t++}}if(a.googleFontScheme!==void 0){let i=a.googleFontScheme;if(typeof i=="string"){if(!Bt.test(i)){const h={instancePath:s+"/googleFontScheme",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/googleFontScheme",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:i};e===null?e=[h]:e.push(h),t++}}if(a.summary!==void 0){let i=a.summary;if(typeof i!="string"){const h={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.summary.type,parentSchema:Ce.properties.summary,data:i};e===null?e=[h]:e.push(h),t++}}if(a.description!==void 0){let i=a.description;if(typeof i!="string"){const h={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.description.type,parentSchema:Ce.properties.description,data:i};e===null?e=[h]:e.push(h),t++}}if(a.tags!==void 0){let i=a.tags;if(Array.isArray(i)){const h=i.length;for(let c=0;c<h;c++){let y=i[c];if(typeof y!="string"){const g={instancePath:s+"/tags/"+c,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.tags.items.type,parentSchema:Ce.properties.tags.items,data:y};e===null?e=[g]:e.push(g),t++}}}else{const h={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ce.properties.tags.type,parentSchema:Ce.properties.tags,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ce.type,parentSchema:Ce,data:a};e===null?e=[i]:e.push(i),t++}return Cs.errors=e,t===0}Cs.evaluated={props:{name:!0,bcp47:!0,ooxmlLang:!0,code:!0,direction:!0,script:!0,fontScheme:!0,googleFontScheme:!0,summary:!0,description:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};var we=j.presentation.$defs.Tone;function Vs(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Vs.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const o=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:we.anyOf[0].required,parentSchema:we.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=o===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:we.anyOf[1].required,parentSchema:we.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:we.anyOf,parentSchema:we,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Bt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.name.type,parentSchema:we.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.summary.type,parentSchema:we.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.description.type,parentSchema:we.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.voiceCues!==void 0){let c=a.voiceCues;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/voiceCues/"+g,schemaPath:"#/properties/voiceCues/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.voiceCues.items.type,parentSchema:we.properties.voiceCues.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/voiceCues",schemaPath:"#/properties/voiceCues/type",keyword:"type",params:{type:"array"},message:"must be array",schema:we.properties.voiceCues.type,parentSchema:we.properties.voiceCues,data:c};e===null?e=[y]:e.push(y),t++}}if(a.avoid!==void 0){let c=a.avoid;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/avoid/"+g,schemaPath:"#/properties/avoid/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.avoid.items.type,parentSchema:we.properties.avoid.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/avoid",schemaPath:"#/properties/avoid/type",keyword:"type",params:{type:"array"},message:"must be array",schema:we.properties.avoid.type,parentSchema:we.properties.avoid,data:c};e===null?e=[y]:e.push(y),t++}}if(a.samplePhrases!==void 0){let c=a.samplePhrases;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/samplePhrases/"+g,schemaPath:"#/properties/samplePhrases/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.samplePhrases.items.type,parentSchema:we.properties.samplePhrases.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/samplePhrases",schemaPath:"#/properties/samplePhrases/type",keyword:"type",params:{type:"array"},message:"must be array",schema:we.properties.samplePhrases.type,parentSchema:we.properties.samplePhrases,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.recommendedNarratives.items.type,parentSchema:we.properties.recommendedNarratives.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:we.properties.recommendedNarratives.type,parentSchema:we.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.tags.items.type,parentSchema:we.properties.tags.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:we.properties.tags.type,parentSchema:we.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:we.type,parentSchema:we,data:a};e===null?e=[c]:e.push(c),t++}return Vs.errors=e,t===0}Vs.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,voiceCues:!0,avoid:!0,samplePhrases:!0,recommendedNarratives:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};var ge=j.presentation.$defs.Design,Xt=j.presentation.$defs.DimensionPreset,Ie=j.presentation.$defs.ColorVariantSlot,ht=j.presentation.$defs.Watermark,qh=new RegExp("^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$","u"),ao=j.presentation.$defs.ColorScheme,W=j.presentation.$defs.HexColor,Ae=new RegExp("^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$","u");function Ls(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ls.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!Bt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent1!==void 0){let r=a.accent1;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent2!==void 0){let r=a.accent2;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent3!==void 0){let r=a.accent3;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent3",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent3",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent4!==void 0){let r=a.accent4;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent4",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent4",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent5!==void 0){let r=a.accent5;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent5",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent5",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent6!==void 0){let r=a.accent6;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent6",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent6",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dark1!==void 0){let r=a.dark1;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/dark1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dark1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dark2!==void 0){let r=a.dark2;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/dark2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dark2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.light1!==void 0){let r=a.light1;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/light1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/light1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.light2!==void 0){let r=a.light2;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/light2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/light2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.hyperlink!==void 0){let r=a.hyperlink;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/hyperlink",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/hyperlink",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.followedHyperlink!==void 0){let r=a.followedHyperlink;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/followedHyperlink",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/followedHyperlink",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.primary!==void 0){let r=a.primary;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/primary",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/primary",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.secondary!==void 0){let r=a.secondary;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/secondary",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/secondary",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent!==void 0){let r=a.accent;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.background!==void 0){let r=a.background;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/background",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/background",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.surface!==void 0){let r=a.surface;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/surface",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/surface",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.text!==void 0){let r=a.text;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/text",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/text",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.textSecondary!==void 0){let r=a.textSecondary;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/textSecondary",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/textSecondary",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ao.type,parentSchema:ao,data:a};e===null?e=[r]:e.push(r),t++}return Ls.errors=e,t===0}Ls.evaluated={props:{id:!0,accent1:!0,accent2:!0,accent3:!0,accent4:!0,accent5:!0,accent6:!0,dark1:!0,dark2:!0,light1:!0,light2:!0,hyperlink:!0,followedHyperlink:!0,primary:!0,secondary:!0,accent:!0,background:!0,surface:!0,text:!0,textSecondary:!0},dynamicProps:!1,dynamicItems:!1};var ne=j.presentation.$defs.FontScheme;function Rs(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Rs.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!Bt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:r};e===null?e=[n]:e.push(n),t++}}if(a.major!==void 0){let r=a.major;if(typeof r!="string"){const n={instancePath:s+"/major",schemaPath:"#/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.major.type,parentSchema:ne.properties.major,data:r};e===null?e=[n]:e.push(n),t++}}if(a.minor!==void 0){let r=a.minor;if(typeof r!="string"){const n={instancePath:s+"/minor",schemaPath:"#/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.minor.type,parentSchema:ne.properties.minor,data:r};e===null?e=[n]:e.push(n),t++}}if(a.eastAsian!==void 0){let r=a.eastAsian;if(r&&typeof r=="object"&&!Array.isArray(r)){if(Object.keys(r).length<1){const n={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:ne.properties.eastAsian,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="major"||n==="minor")){const o={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ne.properties.eastAsian,data:r};e===null?e=[o]:e.push(o),t++}if(r.major!==void 0){let n=r.major;if(typeof n!="string"){const o={instancePath:s+"/eastAsian/major",schemaPath:"#/properties/eastAsian/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.eastAsian.properties.major.type,parentSchema:ne.properties.eastAsian.properties.major,data:n};e===null?e=[o]:e.push(o),t++}}if(r.minor!==void 0){let n=r.minor;if(typeof n!="string"){const o={instancePath:s+"/eastAsian/minor",schemaPath:"#/properties/eastAsian/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.eastAsian.properties.minor.type,parentSchema:ne.properties.eastAsian.properties.minor,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ne.properties.eastAsian.type,parentSchema:ne.properties.eastAsian,data:r};e===null?e=[n]:e.push(n),t++}}if(a.complexScript!==void 0){let r=a.complexScript;if(r&&typeof r=="object"&&!Array.isArray(r)){if(Object.keys(r).length<1){const n={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:ne.properties.complexScript,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="major"||n==="minor")){const o={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ne.properties.complexScript,data:r};e===null?e=[o]:e.push(o),t++}if(r.major!==void 0){let n=r.major;if(typeof n!="string"){const o={instancePath:s+"/complexScript/major",schemaPath:"#/properties/complexScript/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.complexScript.properties.major.type,parentSchema:ne.properties.complexScript.properties.major,data:n};e===null?e=[o]:e.push(o),t++}}if(r.minor!==void 0){let n=r.minor;if(typeof n!="string"){const o={instancePath:s+"/complexScript/minor",schemaPath:"#/properties/complexScript/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.complexScript.properties.minor.type,parentSchema:ne.properties.complexScript.properties.minor,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ne.properties.complexScript.type,parentSchema:ne.properties.complexScript,data:r};e===null?e=[n]:e.push(n),t++}}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.type.type,parentSchema:ne.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="sans-serif"||r==="serif"||r==="monospace")){const n={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ne.properties.type.enum},message:"must be equal to one of the allowed values",schema:ne.properties.type.enum,parentSchema:ne.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.app!==void 0){let r=a.app;if(typeof r!="string"){const n={instancePath:s+"/app",schemaPath:"#/properties/app/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.app.type,parentSchema:ne.properties.app,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="powerpoint"||r==="google-slides")){const n={instancePath:s+"/app",schemaPath:"#/properties/app/enum",keyword:"enum",params:{allowedValues:ne.properties.app.enum},message:"must be equal to one of the allowed values",schema:ne.properties.app.enum,parentSchema:ne.properties.app,data:r};e===null?e=[n]:e.push(n),t++}}if(a.languageFamily!==void 0){let r=a.languageFamily;if(typeof r!="string"){const n={instancePath:s+"/languageFamily",schemaPath:"#/properties/languageFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.languageFamily.type,parentSchema:ne.properties.languageFamily,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="latin"||r==="ea"||r==="cs"||r==="eastAsian"||r==="complexScript")){const n={instancePath:s+"/languageFamily",schemaPath:"#/properties/languageFamily/enum",keyword:"enum",params:{allowedValues:ne.properties.languageFamily.enum},message:"must be equal to one of the allowed values",schema:ne.properties.languageFamily.enum,parentSchema:ne.properties.languageFamily,data:r};e===null?e=[n]:e.push(n),t++}}if(a.heading!==void 0){let r=a.heading;if(typeof r!="string"){const n={instancePath:s+"/heading",schemaPath:"#/properties/heading/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.heading.type,parentSchema:ne.properties.heading,data:r};e===null?e=[n]:e.push(n),t++}}if(a.body!==void 0){let r=a.body;if(typeof r!="string"){const n={instancePath:s+"/body",schemaPath:"#/properties/body/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.body.type,parentSchema:ne.properties.body,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent!==void 0){let r=a.accent;if(typeof r!="string"){const n={instancePath:s+"/accent",schemaPath:"#/properties/accent/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.accent.type,parentSchema:ne.properties.accent,data:r};e===null?e=[n]:e.push(n),t++}}if(a.code!==void 0){let r=a.code;if(typeof r!="string"){const n={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.code.type,parentSchema:ne.properties.code,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ne.type,parentSchema:ne,data:a};e===null?e=[r]:e.push(r),t++}return Rs.errors=e,t===0}Rs.evaluated={props:{id:!0,major:!0,minor:!0,eastAsian:!0,complexScript:!0,type:!0,app:!0,languageFamily:!0,heading:!0,body:!0,accent:!0,code:!0},dynamicProps:!1,dynamicItems:!1};var ca=j.presentation.$defs.Dimensions;function Zs(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Zs.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.preset!==void 0){let r=a.preset;if(typeof r!="string"){const n={instancePath:s+"/preset",schemaPath:"#/$defs/DimensionPreset/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xt.type,parentSchema:Xt,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="16:9"||r==="4:3"||r==="16:10"||r==="1:1"||r==="4:5"||r==="9:16"||r==="letter"||r==="a4"||r==="widescreen"||r==="standard")){const n={instancePath:s+"/preset",schemaPath:"#/$defs/DimensionPreset/enum",keyword:"enum",params:{allowedValues:Xt.enum},message:"must be equal to one of the allowed values",schema:Xt.enum,parentSchema:Xt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.widthInches!==void 0){let r=a.widthInches;if(typeof r=="number"){if(r<=0||isNaN(r)){const n={instancePath:s+"/widthInches",schemaPath:"#/properties/widthInches/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ca.properties.widthInches,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/widthInches",schemaPath:"#/properties/widthInches/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ca.properties.widthInches.type,parentSchema:ca.properties.widthInches,data:r};e===null?e=[n]:e.push(n),t++}}if(a.heightInches!==void 0){let r=a.heightInches;if(typeof r=="number"){if(r<=0||isNaN(r)){const n={instancePath:s+"/heightInches",schemaPath:"#/properties/heightInches/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ca.properties.heightInches,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/heightInches",schemaPath:"#/properties/heightInches/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ca.properties.heightInches.type,parentSchema:ca.properties.heightInches,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ca.type,parentSchema:ca,data:a};e===null?e=[r]:e.push(r),t++}return Zs.errors=e,t===0}Zs.evaluated={props:{preset:!0,widthInches:!0,heightInches:!0},dynamicProps:!1,dynamicItems:!1};var so=j.presentation.$defs.BackgroundShortcut,jt=j.presentation.$defs.ThemeBackgroundSlot,_a=j.presentation.$defs.ImageSource,eh=new RegExp("^(asset:|https://|data:|\\./|\\.\\./)","u");function Ms(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ms.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const y={instancePath:s,schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:jt.type,parentSchema:jt,data:a};e===null?e=[y]:e.push(y),t++}if(!(a==="light1"||a==="light2"||a==="dark1"||a==="dark2")){const y={instancePath:s,schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:jt.enum},message:"must be equal to one of the allowed values",schema:jt.enum,parentSchema:jt,data:a};e===null?e=[y]:e.push(y),t++}var c=i===t;c&&(n=!0,o=0);const h=t;if(typeof a=="string"){if(!Ae.test(a)){const y={instancePath:s,schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:a};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s,schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:a};e===null?e=[y]:e.push(y),t++}var c=h===t;if(c&&n)n=!1,o=[o,1];else{c&&(n=!0,o=1);const y=t;if(typeof a=="string"){if(!eh.test(a)){const l={instancePath:s,schemaPath:"#/$defs/ImageSource/pattern",keyword:"pattern",params:{pattern:"^(asset:|https://|data:|\\./|\\.\\./)"},message:'must match pattern "^(asset:|https://|data:|\\./|\\.\\./)"',schema:"^(asset:|https://|data:|\\./|\\.\\./)",parentSchema:_a,data:a};e===null?e=[l]:e.push(l),t++}}else{const l={instancePath:s,schemaPath:"#/$defs/ImageSource/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_a.type,parentSchema:_a,data:a};e===null?e=[l]:e.push(l),t++}var c=y===t;c&&n?(n=!1,o=[o,2]):c&&(n=!0,o=2)}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const y={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:so.oneOf,parentSchema:so,data:a};e===null?e=[y]:e.push(y),t++}return Ms.errors=e,t===0}Ms.evaluated={dynamicProps:!1,dynamicItems:!1};var ro=j.presentation.$defs.Background,ta=j.presentation.$defs.ThemeBackground;function Ua(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ua.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ta.required,parentSchema:ta,data:a};e===null?e=[r]:e.push(r),t++}if(a.slot===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"slot"},message:"must have required property 'slot'",schema:ta.required,parentSchema:ta,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ta.properties.type.type,parentSchema:ta.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="theme"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"theme"},message:"must be equal to constant",schema:"theme",parentSchema:ta.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.slot!==void 0){let r=a.slot;if(typeof r!="string"){const n={instancePath:s+"/slot",schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:jt.type,parentSchema:jt,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2")){const n={instancePath:s+"/slot",schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:jt.enum},message:"must be equal to one of the allowed values",schema:jt.enum,parentSchema:jt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ta.type,parentSchema:ta,data:a};e===null?e=[r]:e.push(r),t++}return Ua.errors=e,t===0}Ua.evaluated={props:{type:!0,slot:!0},dynamicProps:!1,dynamicItems:!1};var It=j.presentation.$defs.SolidBackground,Jt=j.presentation.$defs.ColorRef,th=new RegExp("^var:[a-z][a-z0-9-]*$","u");function Ve(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ve.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const o=t;if(typeof a=="string"){if(!Ae.test(a)){const y={instancePath:s,schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:a};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s,schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:a};e===null?e=[y]:e.push(y),t++}var c=o===t;n=n||c;const i=t;if(typeof a!="string"){const y={instancePath:s,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Jt.anyOf[1].type,parentSchema:Jt.anyOf[1],data:a};e===null?e=[y]:e.push(y),t++}if(!(a==="accent1"||a==="accent2"||a==="accent3"||a==="accent4"||a==="accent5"||a==="accent6"||a==="dark1"||a==="dark2"||a==="light1"||a==="light2"||a==="hyperlink"||a==="followedHyperlink"||a==="primary"||a==="secondary"||a==="accent"||a==="background"||a==="surface"||a==="surfaceAlt"||a==="text"||a==="textSecondary")){const y={instancePath:s,schemaPath:"#/anyOf/1/enum",keyword:"enum",params:{allowedValues:Jt.anyOf[1].enum},message:"must be equal to one of the allowed values",schema:Jt.anyOf[1].enum,parentSchema:Jt.anyOf[1],data:a};e===null?e=[y]:e.push(y),t++}var c=i===t;n=n||c;const h=t;if(typeof a=="string"){if(!th.test(a)){const y={instancePath:s,schemaPath:"#/anyOf/2/pattern",keyword:"pattern",params:{pattern:"^var:[a-z][a-z0-9-]*$"},message:'must match pattern "^var:[a-z][a-z0-9-]*$"',schema:"^var:[a-z][a-z0-9-]*$",parentSchema:Jt.anyOf[2],data:a};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Jt.anyOf[2].type,parentSchema:Jt.anyOf[2],data:a};e===null?e=[y]:e.push(y),t++}var c=h===t;if(n=n||c,n)t=r,e!==null&&(r?e.length=r:e=null);else{const y={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:Jt.anyOf,parentSchema:Jt,data:a};e===null?e=[y]:e.push(y),t++}return Ve.errors=e,t===0}Ve.evaluated={dynamicProps:!1,dynamicItems:!1};function Ea(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ea.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:It.required,parentSchema:It,data:a};e===null?e=[r]:e.push(r),t++}if(a.color===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:It.required,parentSchema:It,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:It.properties.type.type,parentSchema:It.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="solid"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"solid"},message:"must be equal to constant",schema:"solid",parentSchema:It.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.color!==void 0&&(Ve(a.color,{instancePath:s+"/color",parentData:a,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)),a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:It.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:It.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:It.properties.opacity.type,parentSchema:It.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:It.type,parentSchema:It,data:a};e===null?e=[r]:e.push(r),t++}return Ea.errors=e,t===0}Ea.evaluated={props:{type:!0,color:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1};var be=j.presentation.$defs.GradientBackground;function Wa(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Wa.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:be.required,parentSchema:be,data:a};e===null?e=[r]:e.push(r),t++}if(a.gradient===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"gradient"},message:"must have required property 'gradient'",schema:be.required,parentSchema:be,data:a};e===null?e=[r]:e.push(r),t++}if(a.tone!==void 0){let r=a.tone;if(typeof r!="string"){const n={instancePath:s+"/tone",schemaPath:"#/properties/tone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:be.properties.tone.type,parentSchema:be.properties.tone,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="dark"||r==="light")){const n={instancePath:s+"/tone",schemaPath:"#/properties/tone/enum",keyword:"enum",params:{allowedValues:be.properties.tone.enum},message:"must be equal to one of the allowed values",schema:be.properties.tone.enum,parentSchema:be.properties.tone,data:r};e===null?e=[n]:e.push(n),t++}}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:be.properties.type.type,parentSchema:be.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="gradient"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"gradient"},message:"must be equal to constant",schema:"gradient",parentSchema:be.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.gradient!==void 0){let r=a.gradient;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.angle!==void 0){let n=r.angle;if(typeof n!="number"){const o={instancePath:s+"/gradient/angle",schemaPath:"#/properties/gradient/properties/angle/type",keyword:"type",params:{type:"number"},message:"must be number",schema:be.properties.gradient.properties.angle.type,parentSchema:be.properties.gradient.properties.angle,data:n};e===null?e=[o]:e.push(o),t++}}if(r.stops!==void 0){let n=r.stops;if(Array.isArray(n)){if(n.length<2){const i={instancePath:s+"/gradient/stops",schemaPath:"#/properties/gradient/properties/stops/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:be.properties.gradient.properties.stops,data:n};e===null?e=[i]:e.push(i),t++}const o=n.length;for(let i=0;i<o;i++){let h=n[i];if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.color===void 0){const c={instancePath:s+"/gradient/stops/"+i,schemaPath:"#/properties/gradient/properties/stops/items/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:be.properties.gradient.properties.stops.items.required,parentSchema:be.properties.gradient.properties.stops.items,data:h};e===null?e=[c]:e.push(c),t++}if(h.position===void 0){const c={instancePath:s+"/gradient/stops/"+i,schemaPath:"#/properties/gradient/properties/stops/items/required",keyword:"required",params:{missingProperty:"position"},message:"must have required property 'position'",schema:be.properties.gradient.properties.stops.items.required,parentSchema:be.properties.gradient.properties.stops.items,data:h};e===null?e=[c]:e.push(c),t++}if(h.color!==void 0&&(Ve(h.color,{instancePath:s+"/gradient/stops/"+i+"/color",parentData:h,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)),h.position!==void 0){let c=h.position;if(typeof c=="number"){if(c>1||isNaN(c)){const y={instancePath:s+"/gradient/stops/"+i+"/position",schemaPath:"#/properties/gradient/properties/stops/items/properties/position/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:be.properties.gradient.properties.stops.items.properties.position,data:c};e===null?e=[y]:e.push(y),t++}if(c<0||isNaN(c)){const y={instancePath:s+"/gradient/stops/"+i+"/position",schemaPath:"#/properties/gradient/properties/stops/items/properties/position/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:be.properties.gradient.properties.stops.items.properties.position,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/gradient/stops/"+i+"/position",schemaPath:"#/properties/gradient/properties/stops/items/properties/position/type",keyword:"type",params:{type:"number"},message:"must be number",schema:be.properties.gradient.properties.stops.items.properties.position.type,parentSchema:be.properties.gradient.properties.stops.items.properties.position,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s+"/gradient/stops/"+i,schemaPath:"#/properties/gradient/properties/stops/items/type",keyword:"type",params:{type:"object"},message:"must be object",schema:be.properties.gradient.properties.stops.items.type,parentSchema:be.properties.gradient.properties.stops.items,data:h};e===null?e=[c]:e.push(c),t++}}}else{const o={instancePath:s+"/gradient/stops",schemaPath:"#/properties/gradient/properties/stops/type",keyword:"type",params:{type:"array"},message:"must be array",schema:be.properties.gradient.properties.stops.type,parentSchema:be.properties.gradient.properties.stops,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/gradient",schemaPath:"#/properties/gradient/type",keyword:"type",params:{type:"object"},message:"must be object",schema:be.properties.gradient.type,parentSchema:be.properties.gradient,data:r};e===null?e=[n]:e.push(n),t++}}if(a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:be.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:be.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:be.properties.opacity.type,parentSchema:be.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:be.type,parentSchema:be,data:a};e===null?e=[r]:e.push(r),t++}return Wa.errors=e,t===0}Wa.evaluated={props:{tone:!0,type:!0,gradient:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1};var De=j.presentation.$defs.ImageBackground,tt=j.presentation.$defs.ImageFocus,qa=j.presentation.$defs.ImageRecolor;function xa(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xa.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const g={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qa.oneOf[0].type,parentSchema:qa.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}if(a!=="grayscale"){const g={instancePath:s,schemaPath:"#/oneOf/0/const",keyword:"const",params:{allowedValue:"grayscale"},message:"must be equal to constant",schema:"grayscale",parentSchema:qa.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.dark===void 0){const g={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"dark"},message:"must have required property 'dark'",schema:qa.oneOf[1].required,parentSchema:qa.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}if(a.light===void 0){const g={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"light"},message:"must have required property 'light'",schema:qa.oneOf[1].required,parentSchema:qa.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}for(const g in a)if(!(g==="dark"||g==="light")){const l={instancePath:s,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties",schema:!1,parentSchema:qa.oneOf[1],data:a};e===null?e=[l]:e.push(l),t++}a.dark!==void 0&&(Ve(a.dark,{instancePath:s+"/dark",parentData:a,parentDataProperty:"dark",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)),a.light!==void 0&&(Ve(a.light,{instancePath:s+"/light",parentData:a,parentDataProperty:"light",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length))}else{const g={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:qa.oneOf[1].type,parentSchema:qa.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}var c=h===t;if(c&&n)n=!1,o=[o,1];else if(c){n=!0,o=1;var y=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:qa.oneOf,parentSchema:qa,data:a};e===null?e=[g]:e.push(g),t++}return xa.errors=e,m.props=y,t===0}xa.evaluated={dynamicProps:!0,dynamicItems:!1};var lt=j.presentation.$defs.Overlay;function Na(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Na.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.color===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:lt.required,parentSchema:lt,data:a};e===null?e=[r]:e.push(r),t++}if(a.opacity===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"opacity"},message:"must have required property 'opacity'",schema:lt.required,parentSchema:lt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="color"||r==="opacity"||r==="edge"||r==="size")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:lt,data:a};e===null?e=[n]:e.push(n),t++}if(a.color!==void 0&&(Ve(a.color,{instancePath:s+"/color",parentData:a,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)),a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:lt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:lt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:lt.properties.opacity.type,parentSchema:lt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}if(a.edge!==void 0){let r=a.edge;if(typeof r!="string"){const n={instancePath:s+"/edge",schemaPath:"#/properties/edge/type",keyword:"type",params:{type:"string"},message:"must be string",schema:lt.properties.edge.type,parentSchema:lt.properties.edge,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="top"||r==="bottom"||r==="left"||r==="right")){const n={instancePath:s+"/edge",schemaPath:"#/properties/edge/enum",keyword:"enum",params:{allowedValues:lt.properties.edge.enum},message:"must be equal to one of the allowed values",schema:lt.properties.edge.enum,parentSchema:lt.properties.edge,data:r};e===null?e=[n]:e.push(n),t++}}if(a.size!==void 0){let r=a.size;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/size",schemaPath:"#/properties/size/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:lt.properties.size,data:r};e===null?e=[n]:e.push(n),t++}if(r<.05||isNaN(r)){const n={instancePath:s+"/size",schemaPath:"#/properties/size/minimum",keyword:"minimum",params:{comparison:">=",limit:.05},message:"must be >= 0.05",schema:.05,parentSchema:lt.properties.size,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/size",schemaPath:"#/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number",schema:lt.properties.size.type,parentSchema:lt.properties.size,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:lt.type,parentSchema:lt,data:a};e===null?e=[r]:e.push(r),t++}return Na.errors=e,t===0}Na.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Xa(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Xa.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:De.required,parentSchema:De,data:a};e===null?e=[n]:e.push(n),t++}if(a.src===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:De.required,parentSchema:De,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!va.call(De.properties,n)){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:De,data:a};e===null?e=[o]:e.push(o),t++}if(a.tone!==void 0){let n=a.tone;if(typeof n!="string"){const o={instancePath:s+"/tone",schemaPath:"#/properties/tone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.properties.tone.type,parentSchema:De.properties.tone,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="dark"||n==="light")){const o={instancePath:s+"/tone",schemaPath:"#/properties/tone/enum",keyword:"enum",params:{allowedValues:De.properties.tone.enum},message:"must be equal to one of the allowed values",schema:De.properties.tone.enum,parentSchema:De.properties.tone,data:n};e===null?e=[o]:e.push(o),t++}}if(a.type!==void 0){let n=a.type;if(typeof n!="string"){const o={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.properties.type.type,parentSchema:De.properties.type,data:n};e===null?e=[o]:e.push(o),t++}if(n!=="image"){const o={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"image"},message:"must be equal to constant",schema:"image",parentSchema:De.properties.type,data:n};e===null?e=[o]:e.push(o),t++}}if(a.src!==void 0){let n=a.src;if(typeof n!="string"){const o={instancePath:s+"/src",schemaPath:"#/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.properties.src.type,parentSchema:De.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}if(a.alt!==void 0){let n=a.alt;if(typeof n!="string"){const o={instancePath:s+"/alt",schemaPath:"#/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.properties.alt.type,parentSchema:De.properties.alt,data:n};e===null?e=[o]:e.push(o),t++}}if(a.fit!==void 0){let n=a.fit;if(typeof n!="string"){const o={instancePath:s+"/fit",schemaPath:"#/properties/fit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.properties.fit.type,parentSchema:De.properties.fit,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="cover"||n==="contain"||n==="stretch"||n==="tile")){const o={instancePath:s+"/fit",schemaPath:"#/properties/fit/enum",keyword:"enum",params:{allowedValues:De.properties.fit.enum},message:"must be equal to one of the allowed values",schema:De.properties.fit.enum,parentSchema:De.properties.fit,data:n};e===null?e=[o]:e.push(o),t++}}if(a.focus!==void 0){let n=a.focus;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.x===void 0){const o={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/required",keyword:"required",params:{missingProperty:"x"},message:"must have required property 'x'",schema:tt.required,parentSchema:tt,data:n};e===null?e=[o]:e.push(o),t++}if(n.y===void 0){const o={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/required",keyword:"required",params:{missingProperty:"y"},message:"must have required property 'y'",schema:tt.required,parentSchema:tt,data:n};e===null?e=[o]:e.push(o),t++}for(const o in n)if(!(o==="x"||o==="y")){const i={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:tt,data:n};e===null?e=[i]:e.push(i),t++}if(n.x!==void 0){let o=n.x;if(typeof o=="number"){if(o>1||isNaN(o)){const i={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:tt.properties.x,data:o};e===null?e=[i]:e.push(i),t++}if(o<0||isNaN(o)){const i={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:tt.properties.x,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/type",keyword:"type",params:{type:"number"},message:"must be number",schema:tt.properties.x.type,parentSchema:tt.properties.x,data:o};e===null?e=[i]:e.push(i),t++}}if(n.y!==void 0){let o=n.y;if(typeof o=="number"){if(o>1||isNaN(o)){const i={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:tt.properties.y,data:o};e===null?e=[i]:e.push(i),t++}if(o<0||isNaN(o)){const i={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:tt.properties.y,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/type",keyword:"type",params:{type:"number"},message:"must be number",schema:tt.properties.y.type,parentSchema:tt.properties.y,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/type",keyword:"type",params:{type:"object"},message:"must be object",schema:tt.type,parentSchema:tt,data:n};e===null?e=[o]:e.push(o),t++}}if(a.opacity!==void 0){let n=a.opacity;if(typeof n=="number"){if(n>1||isNaN(n)){const o={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:De.properties.opacity,data:n};e===null?e=[o]:e.push(o),t++}if(n<0||isNaN(n)){const o={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:De.properties.opacity,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:De.properties.opacity.type,parentSchema:De.properties.opacity,data:n};e===null?e=[o]:e.push(o),t++}}if(a.recolor!==void 0&&(xa(a.recolor,{instancePath:s+"/recolor",parentData:a,parentDataProperty:"recolor",rootData:v,dynamicAnchors:b})||(e=e===null?xa.errors:e.concat(xa.errors),t=e.length)),a.overlay!==void 0){let n=a.overlay;const o=t;let i=!1,h=null;const c=t;Na(n,{instancePath:s+"/overlay",parentData:a,parentDataProperty:"overlay",rootData:v,dynamicAnchors:b})||(e=e===null?Na.errors:e.concat(Na.errors),t=e.length);var r=c===t;r&&(i=!0,h=0);const y=t;if(n!==!1){const g={instancePath:s+"/overlay",schemaPath:"#/properties/overlay/oneOf/1/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:De.properties.overlay.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=o,e!==null&&(o?e.length=o:e=null);else{const g={instancePath:s+"/overlay",schemaPath:"#/properties/overlay/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:De.properties.overlay.oneOf,parentSchema:De.properties.overlay,data:n};e===null?e=[g]:e.push(g),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:De.type,parentSchema:De,data:a};e===null?e=[n]:e.push(n),t++}return Xa.errors=e,t===0}Xa.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var yt=j.presentation.$defs.PatternBackground;function Ja(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ja.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:yt.required,parentSchema:yt,data:a};e===null?e=[r]:e.push(r),t++}if(a.pattern===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pattern"},message:"must have required property 'pattern'",schema:yt.required,parentSchema:yt,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.properties.type.type,parentSchema:yt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="pattern"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"pattern"},message:"must be equal to constant",schema:"pattern",parentSchema:yt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.pattern!==void 0){let r=a.pattern;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.preset===void 0){const n={instancePath:s+"/pattern",schemaPath:"#/properties/pattern/required",keyword:"required",params:{missingProperty:"preset"},message:"must have required property 'preset'",schema:yt.properties.pattern.required,parentSchema:yt.properties.pattern,data:r};e===null?e=[n]:e.push(n),t++}if(r.preset!==void 0){let n=r.preset;if(typeof n!="string"){const o={instancePath:s+"/pattern/preset",schemaPath:"#/properties/pattern/properties/preset/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.properties.pattern.properties.preset.type,parentSchema:yt.properties.pattern.properties.preset,data:n};e===null?e=[o]:e.push(o),t++}}r.foregroundColor!==void 0&&(Ve(r.foregroundColor,{instancePath:s+"/pattern/foregroundColor",parentData:r,parentDataProperty:"foregroundColor",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)),r.backgroundColor!==void 0&&(Ve(r.backgroundColor,{instancePath:s+"/pattern/backgroundColor",parentData:r,parentDataProperty:"backgroundColor",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length))}else{const n={instancePath:s+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"object"},message:"must be object",schema:yt.properties.pattern.type,parentSchema:yt.properties.pattern,data:r};e===null?e=[n]:e.push(n),t++}}if(a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:yt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:yt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:yt.properties.opacity.type,parentSchema:yt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:yt.type,parentSchema:yt,data:a};e===null?e=[r]:e.push(r),t++}return Ja.errors=e,t===0}Ja.evaluated={props:{type:!0,pattern:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1};function Bs(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Bs.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;Ua(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Ua.errors:e.concat(Ua.errors),t=e.length);var y=i===t;if(y){n=!0,o=0;var h={};h.type=!0,h.slot=!0}const c=t;Ea(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Ea.errors:e.concat(Ea.errors),t=e.length);var y=c===t;if(y&&n)n=!1,o=[o,1];else{y&&(n=!0,o=1,h!==!0&&(h=h||{},h.type=!0,h.color=!0,h.opacity=!0));const g=t;Wa(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Wa.errors:e.concat(Wa.errors),t=e.length);var y=g===t;if(y&&n)n=!1,o=[o,2];else{y&&(n=!0,o=2,h!==!0&&(h=h||{},h.tone=!0,h.type=!0,h.gradient=!0,h.opacity=!0));const p=t;Xa(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Xa.errors:e.concat(Xa.errors),t=e.length);var y=p===t;if(y&&n)n=!1,o=[o,3];else{y&&(n=!0,o=3,h!==!0&&(h=!0));const O=t;Ja(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Ja.errors:e.concat(Ja.errors),t=e.length);var y=O===t;y&&n?(n=!1,o=[o,4]):y&&(n=!0,o=4,h!==!0&&(h=h||{},h.type=!0,h.pattern=!0,h.opacity=!0))}}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:ro.oneOf,parentSchema:ro,data:a};e===null?e=[g]:e.push(g),t++}return Bs.errors=e,m.props=h,t===0}Bs.evaluated={dynamicProps:!0,dynamicItems:!1};var oe=j.presentation.$defs.ColorVariant;function Hs(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Hs.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.background===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"background"},message:"must have required property 'background'",schema:oe.required,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="background"||r==="accents")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:oe,data:a};e===null?e=[n]:e.push(n),t++}if(a.background!==void 0){let r=a.background;if(typeof r!="string"){const n={instancePath:s+"/background",schemaPath:"#/$defs/ColorVariantSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.type,parentSchema:Ie,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2"||r==="accent1"||r==="accent2"||r==="accent3"||r==="accent4"||r==="accent5"||r==="accent6")){const n={instancePath:s+"/background",schemaPath:"#/$defs/ColorVariantSlot/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values",schema:Ie.enum,parentSchema:Ie,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accents!==void 0){let r=a.accents;if(Array.isArray(r)){if(r.length>6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items",schema:6,parentSchema:oe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}if(r.length<6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/minItems",keyword:"minItems",params:{limit:6},message:"must NOT have fewer than 6 items",schema:6,parentSchema:oe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.accents.items.type,parentSchema:oe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="accent1"||c==="accent2"||c==="accent3"||c==="accent4"||c==="accent5"||c==="accent6")){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/enum",keyword:"enum",params:{allowedValues:oe.properties.accents.items.enum},message:"must be equal to one of the allowed values",schema:oe.properties.accents.items.enum,parentSchema:oe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}}let o=r.length,i;if(o>1){const h={};for(;o--;){let c=r[o];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/accents",schemaPath:"#/properties/accents/uniqueItems",keyword:"uniqueItems",params:{i:o,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+o+" are identical)",schema:!0,parentSchema:oe.properties.accents,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=o}}}}else{const n={instancePath:s+"/accents",schemaPath:"#/properties/accents/type",keyword:"type",params:{type:"array"},message:"must be array",schema:oe.properties.accents.type,parentSchema:oe.properties.accents,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:oe.type,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}return Hs.errors=e,t===0}Hs.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var _s=j.presentation.$defs.HeaderFooter,ha=j.presentation.$defs.HeaderFooterItem,pe=Ld().default;function St(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=St.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const o in a)if(!(o==="text"||o==="image"||o==="date"||o==="dateFormat"||o==="socials")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:ha,data:a};e===null?e=[i]:e.push(i),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const i={instancePath:s+"/text",schemaPath:"#/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ha.properties.text.type,parentSchema:ha.properties.text,data:o};e===null?e=[i]:e.push(i),t++}}if(a.image!==void 0){let o=a.image;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/image/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/image/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/image/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/image/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/image/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}if(a.date!==void 0){let o=a.date;const i=t;let h=!1,c=null;const y=t;if(typeof o!="boolean"){const l={instancePath:s+"/date",schemaPath:"#/properties/date/oneOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ha.properties.date.oneOf[0].type,parentSchema:ha.properties.date.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(typeof o!="string"){const l={instancePath:s+"/date",schemaPath:"#/properties/date/oneOf/1/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ha.properties.date.oneOf[1].type,parentSchema:ha.properties.date.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/date",schemaPath:"#/properties/date/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:ha.properties.date.oneOf,parentSchema:ha.properties.date,data:o};e===null?e=[l]:e.push(l),t++}}if(a.dateFormat!==void 0){let o=a.dateFormat;if(typeof o=="string"){if(pe(o)<1){const i={instancePath:s+"/dateFormat",schemaPath:"#/properties/dateFormat/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:ha.properties.dateFormat,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/dateFormat",schemaPath:"#/properties/dateFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ha.properties.dateFormat.type,parentSchema:ha.properties.dateFormat,data:o};e===null?e=[i]:e.push(i),t++}}if(a.socials!==void 0){let o=a.socials;if(typeof o!="boolean"){const i={instancePath:s+"/socials",schemaPath:"#/properties/socials/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ha.properties.socials.type,parentSchema:ha.properties.socials,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ha.type,parentSchema:ha,data:a};e===null?e=[o]:e.push(o),t++}return St.errors=e,t===0}St.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Ka(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ka.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a))a.left!==void 0&&(St(a.left,{instancePath:s+"/left",parentData:a,parentDataProperty:"left",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length)),a.center!==void 0&&(St(a.center,{instancePath:s+"/center",parentData:a,parentDataProperty:"center",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length)),a.right!==void 0&&(St(a.right,{instancePath:s+"/right",parentData:a,parentDataProperty:"right",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length));else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:_s.type,parentSchema:_s,data:a};e===null?e=[r]:e.push(r),t++}return Ka.errors=e,t===0}Ka.evaluated={props:{left:!0,center:!0,right:!0},dynamicProps:!1,dynamicItems:!1};function Ya(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ya.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.theme!==void 0){let w=a.theme;if(typeof w=="string"){if(!Bt.test(w)){const $={instancePath:s+"/theme",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/theme",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:w};e===null?e=[$]:e.push($),t++}}if(a.colorScheme!==void 0){let w=a.colorScheme;const $=t;let F=!1,z=null;const L=t;if(typeof w!="string"){const H={instancePath:s+"/colorScheme",schemaPath:"#/properties/colorScheme/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.colorScheme.oneOf[0].type,parentSchema:ge.properties.colorScheme.oneOf[0],data:w};e===null?e=[H]:e.push(H),t++}var r=L===t;r&&(F=!0,z=0);const M=t;Ls(w,{instancePath:s+"/colorScheme",parentData:a,parentDataProperty:"colorScheme",rootData:v,dynamicAnchors:b})||(e=e===null?Ls.errors:e.concat(Ls.errors),t=e.length);var r=M===t;if(r&&F)F=!1,z=[z,1];else if(r){F=!0,z=1;var n={};n.id=!0,n.accent1=!0,n.accent2=!0,n.accent3=!0,n.accent4=!0,n.accent5=!0,n.accent6=!0,n.dark1=!0,n.dark2=!0,n.light1=!0,n.light2=!0,n.hyperlink=!0,n.followedHyperlink=!0,n.primary=!0,n.secondary=!0,n.accent=!0,n.background=!0,n.surface=!0,n.text=!0,n.textSecondary=!0}if(F)t=$,e!==null&&($?e.length=$:e=null);else{const H={instancePath:s+"/colorScheme",schemaPath:"#/properties/colorScheme/oneOf",keyword:"oneOf",params:{passingSchemas:z},message:"must match exactly one schema in oneOf",schema:ge.properties.colorScheme.oneOf,parentSchema:ge.properties.colorScheme,data:w};e===null?e=[H]:e.push(H),t++}}if(a.fontScheme!==void 0){let w=a.fontScheme;const $=t;let F=!1,z=null;const L=t;if(typeof w!="string"){const H={instancePath:s+"/fontScheme",schemaPath:"#/properties/fontScheme/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.fontScheme.oneOf[0].type,parentSchema:ge.properties.fontScheme.oneOf[0],data:w};e===null?e=[H]:e.push(H),t++}var o=L===t;o&&(F=!0,z=0);const M=t;Rs(w,{instancePath:s+"/fontScheme",parentData:a,parentDataProperty:"fontScheme",rootData:v,dynamicAnchors:b})||(e=e===null?Rs.errors:e.concat(Rs.errors),t=e.length);var o=M===t;if(o&&F)F=!1,z=[z,1];else if(o){F=!0,z=1;var i={};i.id=!0,i.major=!0,i.minor=!0,i.eastAsian=!0,i.complexScript=!0,i.type=!0,i.app=!0,i.languageFamily=!0,i.heading=!0,i.body=!0,i.accent=!0,i.code=!0}if(F)t=$,e!==null&&($?e.length=$:e=null);else{const H={instancePath:s+"/fontScheme",schemaPath:"#/properties/fontScheme/oneOf",keyword:"oneOf",params:{passingSchemas:z},message:"must match exactly one schema in oneOf",schema:ge.properties.fontScheme.oneOf,parentSchema:ge.properties.fontScheme,data:w};e===null?e=[H]:e.push(H),t++}}if(a.dimensions!==void 0){let w=a.dimensions;const $=t;let F=!1,z=null;const L=t;if(typeof w!="string"){const H={instancePath:s+"/dimensions",schemaPath:"#/$defs/DimensionPreset/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xt.type,parentSchema:Xt,data:w};e===null?e=[H]:e.push(H),t++}if(!(w==="16:9"||w==="4:3"||w==="16:10"||w==="1:1"||w==="4:5"||w==="9:16"||w==="letter"||w==="a4"||w==="widescreen"||w==="standard")){const H={instancePath:s+"/dimensions",schemaPath:"#/$defs/DimensionPreset/enum",keyword:"enum",params:{allowedValues:Xt.enum},message:"must be equal to one of the allowed values",schema:Xt.enum,parentSchema:Xt,data:w};e===null?e=[H]:e.push(H),t++}var h=L===t;h&&(F=!0,z=0);const M=t;Zs(w,{instancePath:s+"/dimensions",parentData:a,parentDataProperty:"dimensions",rootData:v,dynamicAnchors:b})||(e=e===null?Zs.errors:e.concat(Zs.errors),t=e.length);var h=M===t;if(h&&F)F=!1,z=[z,1];else if(h){F=!0,z=1;var c={};c.preset=!0,c.widthInches=!0,c.heightInches=!0}if(F)t=$,e!==null&&($?e.length=$:e=null);else{const H={instancePath:s+"/dimensions",schemaPath:"#/properties/dimensions/oneOf",keyword:"oneOf",params:{passingSchemas:z},message:"must match exactly one schema in oneOf",schema:ge.properties.dimensions.oneOf,parentSchema:ge.properties.dimensions,data:w};e===null?e=[H]:e.push(H),t++}}if(a.background!==void 0){let w=a.background;const $=t;let F=!1,z=null;const L=t;Ms(w,{instancePath:s+"/background",parentData:a,parentDataProperty:"background",rootData:v,dynamicAnchors:b})||(e=e===null?Ms.errors:e.concat(Ms.errors),t=e.length);var y=L===t;y&&(F=!0,z=0);const M=t;Bs(w,{instancePath:s+"/background",parentData:a,parentDataProperty:"background",rootData:v,dynamicAnchors:b})||(e=e===null?Bs.errors:e.concat(Bs.errors),t=e.length);var y=M===t;if(y&&F?(F=!1,z=[z,1]):y&&(F=!0,z=1),F)t=$,e!==null&&($?e.length=$:e=null);else{const H={instancePath:s+"/background",schemaPath:"#/properties/background/oneOf",keyword:"oneOf",params:{passingSchemas:z},message:"must match exactly one schema in oneOf",schema:ge.properties.background.oneOf,parentSchema:ge.properties.background,data:w};e===null?e=[H]:e.push(H),t++}}if(a.variant!==void 0){let w=a.variant;const $=t;let F=!1,z=null;const L=t;if(typeof w!="string"){const H={instancePath:s+"/variant",schemaPath:"#/$defs/ColorVariantSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.type,parentSchema:Ie,data:w};e===null?e=[H]:e.push(H),t++}if(!(w==="light1"||w==="light2"||w==="dark1"||w==="dark2"||w==="accent1"||w==="accent2"||w==="accent3"||w==="accent4"||w==="accent5"||w==="accent6")){const H={instancePath:s+"/variant",schemaPath:"#/$defs/ColorVariantSlot/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values",schema:Ie.enum,parentSchema:Ie,data:w};e===null?e=[H]:e.push(H),t++}var g=L===t;g&&(F=!0,z=0);const M=t;Hs(w,{instancePath:s+"/variant",parentData:a,parentDataProperty:"variant",rootData:v,dynamicAnchors:b})||(e=e===null?Hs.errors:e.concat(Hs.errors),t=e.length);var g=M===t;if(g&&F?(F=!1,z=[z,1]):g&&(F=!0,z=1),F)t=$,e!==null&&($?e.length=$:e=null);else{const H={instancePath:s+"/variant",schemaPath:"#/properties/variant/oneOf",keyword:"oneOf",params:{passingSchemas:z},message:"must match exactly one schema in oneOf",schema:ge.properties.variant.oneOf,parentSchema:ge.properties.variant,data:w};e===null?e=[H]:e.push(H),t++}}if(a.logo!==void 0){let w=a.logo;const $=t;let F=!1,z=null;const L=t;if(typeof w=="string"){if(!qh.test(w)){const H={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf/0/pattern",keyword:"pattern",params:{pattern:"^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$"},message:'must match pattern "^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$"',schema:"^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$",parentSchema:ge.properties.logo.oneOf[0],data:w};e===null?e=[H]:e.push(H),t++}}else{const H={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.logo.oneOf[0].type,parentSchema:ge.properties.logo.oneOf[0],data:w};e===null?e=[H]:e.push(H),t++}var l=L===t;l&&(F=!0,z=0);const M=t;if(typeof w!="boolean"){const H={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf/1/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ge.properties.logo.oneOf[1].type,parentSchema:ge.properties.logo.oneOf[1],data:w};e===null?e=[H]:e.push(H),t++}if(w!==!1){const H={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf/1/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:ge.properties.logo.oneOf[1],data:w};e===null?e=[H]:e.push(H),t++}var l=M===t;if(l&&F?(F=!1,z=[z,1]):l&&(F=!0,z=1),F)t=$,e!==null&&($?e.length=$:e=null);else{const H={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf",keyword:"oneOf",params:{passingSchemas:z},message:"must match exactly one schema in oneOf",schema:ge.properties.logo.oneOf,parentSchema:ge.properties.logo,data:w};e===null?e=[H]:e.push(H),t++}}if(a.watermark!==void 0){let w=a.watermark;const $=t;let F=!1,z=null;const L=t;if(typeof w!="boolean"){const ae={instancePath:s+"/watermark",schemaPath:"#/properties/watermark/oneOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ge.properties.watermark.oneOf[0].type,parentSchema:ge.properties.watermark.oneOf[0],data:w};e===null?e=[ae]:e.push(ae),t++}if(w!==!1){const ae={instancePath:s+"/watermark",schemaPath:"#/properties/watermark/oneOf/0/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:ge.properties.watermark.oneOf[0],data:w};e===null?e=[ae]:e.push(ae),t++}var O=L===t;O&&(F=!0,z=0);const M=t,H=t;let R=!1,C=null;const T=t;if(typeof w!="string"){const ae={instancePath:s+"/watermark",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:w};e===null?e=[ae]:e.push(ae),t++}var p=T===t;p&&(R=!0,C=0);const U=t;if(w&&typeof w=="object"&&!Array.isArray(w)){if(w.src===void 0){const ae={instancePath:s+"/watermark",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:w};e===null?e=[ae]:e.push(ae),t++}for(const ae in w)if(!(ae==="src"||ae==="alt"||ae==="title"||ae==="description"||ae==="mediaType")){const te={instancePath:s+"/watermark",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ae},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:w};e===null?e=[te]:e.push(te),t++}if(w.src!==void 0){let ae=w.src;if(typeof ae!="string"){const te={instancePath:s+"/watermark/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:ae};e===null?e=[te]:e.push(te),t++}}if(w.alt!==void 0){let ae=w.alt;if(typeof ae!="string"){const te={instancePath:s+"/watermark/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:ae};e===null?e=[te]:e.push(te),t++}}if(w.title!==void 0){let ae=w.title;if(typeof ae!="string"){const te={instancePath:s+"/watermark/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:ae};e===null?e=[te]:e.push(te),t++}}if(w.description!==void 0){let ae=w.description;if(typeof ae!="string"){const te={instancePath:s+"/watermark/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:ae};e===null?e=[te]:e.push(te),t++}}if(w.mediaType!==void 0){let ae=w.mediaType;if(typeof ae!="string"){const te={instancePath:s+"/watermark/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:ae};e===null?e=[te]:e.push(te),t++}}}else{const ae={instancePath:s+"/watermark",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:w};e===null?e=[ae]:e.push(ae),t++}var p=U===t;if(p&&R)R=!1,C=[C,1];else if(p){R=!0,C=1;var d=!0}if(R)t=H,e!==null&&(H?e.length=H:e=null);else{const ae={instancePath:s+"/watermark",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:C},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:w};e===null?e=[ae]:e.push(ae),t++}var O=M===t;if(O&&F)F=!1,z=[z,1];else{O&&(F=!0,z=1);const ae=t,te=t;let G=!1,Me=null;const Ke=t;if(w&&typeof w=="object"&&!Array.isArray(w)&&w.src===void 0){const ct={instancePath:s+"/watermark",schemaPath:"#/$defs/Watermark/oneOf/0/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:ht.oneOf[0].required,parentSchema:ht.oneOf[0],data:w};e===null?e=[ct]:e.push(ct),t++}var S=Ke===t;S&&(G=!0,Me=0);const Z=t;if(w&&typeof w=="object"&&!Array.isArray(w)&&w.text===void 0){const ct={instancePath:s+"/watermark",schemaPath:"#/$defs/Watermark/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:ht.oneOf[1].required,parentSchema:ht.oneOf[1],data:w};e===null?e=[ct]:e.push(ct),t++}var S=Z===t;if(S&&G?(G=!1,Me=[Me,1]):S&&(G=!0,Me=1),G)t=te,e!==null&&(te?e.length=te:e=null);else{const ct={instancePath:s+"/watermark",schemaPath:"#/$defs/Watermark/oneOf",keyword:"oneOf",params:{passingSchemas:Me},message:"must match exactly one schema in oneOf",schema:ht.oneOf,parentSchema:ht,data:w};e===null?e=[ct]:e.push(ct),t++}if(w&&typeof w=="object"&&!Array.isArray(w)){if(w.opacity===void 0){const ct={instancePath:s+"/watermark",schemaPath:"#/$defs/Watermark/required",keyword:"required",params:{missingProperty:"opacity"},message:"must have required property 'opacity'",schema:ht.required,parentSchema:ht,data:w};e===null?e=[ct]:e.push(ct),t++}for(const ct in w)if(!(ct==="src"||ct==="text"||ct==="opacity")){const Ct={instancePath:s+"/watermark",schemaPath:"#/$defs/Watermark/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ct},message:"must NOT have additional properties",schema:!1,parentSchema:ht,data:w};e===null?e=[Ct]:e.push(Ct),t++}if(w.src!==void 0){let ct=w.src;if(typeof ct!="string"){const Ct={instancePath:s+"/watermark/src",schemaPath:"#/$defs/Watermark/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ht.properties.src.type,parentSchema:ht.properties.src,data:ct};e===null?e=[Ct]:e.push(Ct),t++}}if(w.text!==void 0){let ct=w.text;if(typeof ct=="string"){if(pe(ct)<1){const Ct={instancePath:s+"/watermark/text",schemaPath:"#/$defs/Watermark/properties/text/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:ht.properties.text,data:ct};e===null?e=[Ct]:e.push(Ct),t++}}else{const Ct={instancePath:s+"/watermark/text",schemaPath:"#/$defs/Watermark/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ht.properties.text.type,parentSchema:ht.properties.text,data:ct};e===null?e=[Ct]:e.push(Ct),t++}}if(w.opacity!==void 0){let ct=w.opacity;if(typeof ct=="number"){if(ct>1||isNaN(ct)){const Ct={instancePath:s+"/watermark/opacity",schemaPath:"#/$defs/Watermark/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:ht.properties.opacity,data:ct};e===null?e=[Ct]:e.push(Ct),t++}if(ct<0||isNaN(ct)){const Ct={instancePath:s+"/watermark/opacity",schemaPath:"#/$defs/Watermark/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:ht.properties.opacity,data:ct};e===null?e=[Ct]:e.push(Ct),t++}}else{const Ct={instancePath:s+"/watermark/opacity",schemaPath:"#/$defs/Watermark/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ht.properties.opacity.type,parentSchema:ht.properties.opacity,data:ct};e===null?e=[Ct]:e.push(Ct),t++}}}else{const ct={instancePath:s+"/watermark",schemaPath:"#/$defs/Watermark/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ht.type,parentSchema:ht,data:w};e===null?e=[ct]:e.push(ct),t++}var O=ae===t;O&&F?(F=!1,z=[z,2]):O&&(F=!0,z=2,d!==!0&&(d=!0))}if(F)t=$,e!==null&&($?e.length=$:e=null);else{const ae={instancePath:s+"/watermark",schemaPath:"#/properties/watermark/oneOf",keyword:"oneOf",params:{passingSchemas:z},message:"must match exactly one schema in oneOf",schema:ge.properties.watermark.oneOf,parentSchema:ge.properties.watermark,data:w};e===null?e=[ae]:e.push(ae),t++}}if(a.header!==void 0){let w=a.header;const $=t;let F=!1,z=null;const L=t;if(typeof w!="boolean"){const H={instancePath:s+"/header",schemaPath:"#/properties/header/oneOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ge.properties.header.oneOf[0].type,parentSchema:ge.properties.header.oneOf[0],data:w};e===null?e=[H]:e.push(H),t++}if(w!==!1){const H={instancePath:s+"/header",schemaPath:"#/properties/header/oneOf/0/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:ge.properties.header.oneOf[0],data:w};e===null?e=[H]:e.push(H),t++}var I=L===t;I&&(F=!0,z=0);const M=t;Ka(w,{instancePath:s+"/header",parentData:a,parentDataProperty:"header",rootData:v,dynamicAnchors:b})||(e=e===null?Ka.errors:e.concat(Ka.errors),t=e.length);var I=M===t;if(I&&F)F=!1,z=[z,1];else if(I){F=!0,z=1;var A={};A.left=!0,A.center=!0,A.right=!0}if(F)t=$,e!==null&&($?e.length=$:e=null);else{const H={instancePath:s+"/header",schemaPath:"#/properties/header/oneOf",keyword:"oneOf",params:{passingSchemas:z},message:"must match exactly one schema in oneOf",schema:ge.properties.header.oneOf,parentSchema:ge.properties.header,data:w};e===null?e=[H]:e.push(H),t++}}if(a.footer!==void 0){let w=a.footer;const $=t;let F=!1,z=null;const L=t;if(typeof w!="boolean"){const H={instancePath:s+"/footer",schemaPath:"#/properties/footer/oneOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ge.properties.footer.oneOf[0].type,parentSchema:ge.properties.footer.oneOf[0],data:w};e===null?e=[H]:e.push(H),t++}if(w!==!1){const H={instancePath:s+"/footer",schemaPath:"#/properties/footer/oneOf/0/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:ge.properties.footer.oneOf[0],data:w};e===null?e=[H]:e.push(H),t++}var f=L===t;f&&(F=!0,z=0);const M=t;Ka(w,{instancePath:s+"/footer",parentData:a,parentDataProperty:"footer",rootData:v,dynamicAnchors:b})||(e=e===null?Ka.errors:e.concat(Ka.errors),t=e.length);var f=M===t;if(f&&F)F=!1,z=[z,1];else if(f){F=!0,z=1;var P={};P.left=!0,P.center=!0,P.right=!0}if(F)t=$,e!==null&&($?e.length=$:e=null);else{const H={instancePath:s+"/footer",schemaPath:"#/properties/footer/oneOf",keyword:"oneOf",params:{passingSchemas:z},message:"must match exactly one schema in oneOf",schema:ge.properties.footer.oneOf,parentSchema:ge.properties.footer,data:w};e===null?e=[H]:e.push(H),t++}}if(a.titleAlignment!==void 0){let w=a.titleAlignment;if(typeof w!="string"){const $={instancePath:s+"/titleAlignment",schemaPath:"#/properties/titleAlignment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.titleAlignment.type,parentSchema:ge.properties.titleAlignment,data:w};e===null?e=[$]:e.push($),t++}if(!(w==="left"||w==="center"||w==="right")){const $={instancePath:s+"/titleAlignment",schemaPath:"#/properties/titleAlignment/enum",keyword:"enum",params:{allowedValues:ge.properties.titleAlignment.enum},message:"must be equal to one of the allowed values",schema:ge.properties.titleAlignment.enum,parentSchema:ge.properties.titleAlignment,data:w};e===null?e=[$]:e.push($),t++}}if(a.contentAlignment!==void 0){let w=a.contentAlignment;if(typeof w!="string"){const $={instancePath:s+"/contentAlignment",schemaPath:"#/properties/contentAlignment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.contentAlignment.type,parentSchema:ge.properties.contentAlignment,data:w};e===null?e=[$]:e.push($),t++}if(!(w==="left"||w==="center"||w==="right")){const $={instancePath:s+"/contentAlignment",schemaPath:"#/properties/contentAlignment/enum",keyword:"enum",params:{allowedValues:ge.properties.contentAlignment.enum},message:"must be equal to one of the allowed values",schema:ge.properties.contentAlignment.enum,parentSchema:ge.properties.contentAlignment,data:w};e===null?e=[$]:e.push($),t++}}if(a.contentBox!==void 0){let w=a.contentBox;if(typeof w!="boolean"){const $={instancePath:s+"/contentBox",schemaPath:"#/properties/contentBox/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ge.properties.contentBox.type,parentSchema:ge.properties.contentBox,data:w};e===null?e=[$]:e.push($),t++}}if(a.contentDirection!==void 0){let w=a.contentDirection;if(typeof w!="string"){const $={instancePath:s+"/contentDirection",schemaPath:"#/properties/contentDirection/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.contentDirection.type,parentSchema:ge.properties.contentDirection,data:w};e===null?e=[$]:e.push($),t++}if(!(w==="horizontal"||w==="vertical")){const $={instancePath:s+"/contentDirection",schemaPath:"#/properties/contentDirection/enum",keyword:"enum",params:{allowedValues:ge.properties.contentDirection.enum},message:"must be equal to one of the allowed values",schema:ge.properties.contentDirection.enum,parentSchema:ge.properties.contentDirection,data:w};e===null?e=[$]:e.push($),t++}}if(a.chartPrimary!==void 0){let w=a.chartPrimary;if(typeof w!="string"){const $={instancePath:s+"/chartPrimary",schemaPath:"#/properties/chartPrimary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.chartPrimary.type,parentSchema:ge.properties.chartPrimary,data:w};e===null?e=[$]:e.push($),t++}if(!(w==="none"||w==="top"||w==="bottom"||w==="left"||w==="right")){const $={instancePath:s+"/chartPrimary",schemaPath:"#/properties/chartPrimary/enum",keyword:"enum",params:{allowedValues:ge.properties.chartPrimary.enum},message:"must be equal to one of the allowed values",schema:ge.properties.chartPrimary.enum,parentSchema:ge.properties.chartPrimary,data:w};e===null?e=[$]:e.push($),t++}}if(a.imageFit!==void 0){let w=a.imageFit;if(typeof w!="string"){const $={instancePath:s+"/imageFit",schemaPath:"#/properties/imageFit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.imageFit.type,parentSchema:ge.properties.imageFit,data:w};e===null?e=[$]:e.push($),t++}if(!(w==="cover"||w==="contain"||w==="stretch"||w==="auto")){const $={instancePath:s+"/imageFit",schemaPath:"#/properties/imageFit/enum",keyword:"enum",params:{allowedValues:ge.properties.imageFit.enum},message:"must be equal to one of the allowed values",schema:ge.properties.imageFit.enum,parentSchema:ge.properties.imageFit,data:w};e===null?e=[$]:e.push($),t++}}if(a.listBullet!==void 0){let w=a.listBullet;if(typeof w!="string"){const $={instancePath:s+"/listBullet",schemaPath:"#/properties/listBullet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.listBullet.type,parentSchema:ge.properties.listBullet,data:w};e===null?e=[$]:e.push($),t++}if(!(w==="character"||w==="image"||w==="none")){const $={instancePath:s+"/listBullet",schemaPath:"#/properties/listBullet/enum",keyword:"enum",params:{allowedValues:ge.properties.listBullet.enum},message:"must be equal to one of the allowed values",schema:ge.properties.listBullet.enum,parentSchema:ge.properties.listBullet,data:w};e===null?e=[$]:e.push($),t++}}if(a.listStyle!==void 0){let w=a.listStyle;if(typeof w!="string"){const $={instancePath:s+"/listStyle",schemaPath:"#/properties/listStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ge.properties.listStyle.type,parentSchema:ge.properties.listStyle,data:w};e===null?e=[$]:e.push($),t++}if(!(w==="stack"||w==="rows")){const $={instancePath:s+"/listStyle",schemaPath:"#/properties/listStyle/enum",keyword:"enum",params:{allowedValues:ge.properties.listStyle.enum},message:"must be equal to one of the allowed values",schema:ge.properties.listStyle.enum,parentSchema:ge.properties.listStyle,data:w};e===null?e=[$]:e.push($),t++}}if(a.mirror!==void 0){let w=a.mirror;if(typeof w!="boolean"){const $={instancePath:s+"/mirror",schemaPath:"#/properties/mirror/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ge.properties.mirror.type,parentSchema:ge.properties.mirror,data:w};e===null?e=[$]:e.push($),t++}}}else{const w={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ge.type,parentSchema:ge,data:a};e===null?e=[w]:e.push(w),t++}return Ya.errors=e,t===0}Ya.evaluated={props:{theme:!0,colorScheme:!0,fontScheme:!0,dimensions:!0,background:!0,variant:!0,logo:!0,watermark:!0,header:!0,footer:!0,titleAlignment:!0,contentAlignment:!0,contentBox:!0,contentDirection:!0,chartPrimary:!0,imageFit:!0,listBullet:!0,listStyle:!0,mirror:!0},dynamicProps:!1,dynamicItems:!1};var Fn=j.presentation.$defs.Variables,bt=new RegExp("^[a-z][a-z0-9-]*$","u"),no=j.presentation.$defs.Variable,ie=j.presentation.$defs.DateVariable,ue=j.presentation.$defs.UrlVariable,me=j.presentation.$defs.ListVariable,vs=new RegExp("^\\d{4}-\\d{2}-\\d{2}$","u"),bs=new RegExp("^(?:https?://|mailto:|tel:)\\S+$","u"),nt=j.presentation.$defs.ColorVariable;function Qa(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qa.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:nt.required,parentSchema:nt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:nt,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.type.type,parentSchema:nt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="color"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"color"},message:"must be equal to constant",schema:"color",parentSchema:nt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/value",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:nt.properties.required.type,parentSchema:nt.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.label.type,parentSchema:nt.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.description.type,parentSchema:nt.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/example",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:nt.type,parentSchema:nt,data:a};e===null?e=[r]:e.push(r),t++}return Qa.errors=e,t===0}Qa.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Pe=j.presentation.$defs.TextVariable,u=j.presentation.$defs.TextRun,Ft=new RegExp("^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$","u"),Tt=new RegExp("^(https?://|mailto:|tel:)\\S+$","u"),ah={validate:J};function J(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=J.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)ah.validate(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?ah.validate.errors:e.concat(ah.validate.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return J.errors=e,m.props=l,t===0}J.evaluated={dynamicProps:!0,dynamicItems:!1};function Ga(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ga.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Pe.required,parentSchema:Pe,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="type"||o==="value"||o==="required"||o==="label"||o==="description"||o==="example")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:Pe,data:a};e===null?e=[i]:e.push(i),t++}if(a.type!==void 0){let o=a.type;if(typeof o!="string"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.type.type,parentSchema:Pe.properties.type,data:o};e===null?e=[i]:e.push(i),t++}if(o!=="text"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"text"},message:"must be equal to constant",schema:"text",parentSchema:Pe.properties.type,data:o};e===null?e=[i]:e.push(i),t++}}if(a.value!==void 0){let o=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.value.oneOf[0].type,parentSchema:Pe.properties.value.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(o)){const l=o.length;for(let p=0;p<l;p++)J(o[p],{instancePath:s+"/value/"+p,parentData:o,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pe.properties.value.oneOf[1].type,parentSchema:Pe.properties.value.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Pe.properties.value.oneOf,parentSchema:Pe.properties.value,data:o};e===null?e=[l]:e.push(l),t++}}if(a.required!==void 0){let o=a.required;if(typeof o!="boolean"){const i={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Pe.properties.required.type,parentSchema:Pe.properties.required,data:o};e===null?e=[i]:e.push(i),t++}}if(a.label!==void 0){let o=a.label;if(typeof o!="string"){const i={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.label.type,parentSchema:Pe.properties.label,data:o};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let o=a.description;if(typeof o!="string"){const i={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.description.type,parentSchema:Pe.properties.description,data:o};e===null?e=[i]:e.push(i),t++}}if(a.example!==void 0){let o=a.example;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.example.oneOf[0].type,parentSchema:Pe.properties.example.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(Array.isArray(o)){const l=o.length;for(let p=0;p<l;p++)J(o[p],{instancePath:s+"/example/"+p,parentData:o,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pe.properties.example.oneOf[1].type,parentSchema:Pe.properties.example.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Pe.properties.example.oneOf,parentSchema:Pe.properties.example,data:o};e===null?e=[l]:e.push(l),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Pe.type,parentSchema:Pe,data:a};e===null?e=[o]:e.push(o),t++}return Ga.errors=e,t===0}Ga.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Le=j.presentation.$defs.NumberVariable,_t=j.presentation.$defs.NumberFormat;function es(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=es.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Le.required,parentSchema:Le,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Le,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.type.type,parentSchema:Le.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="number"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"number"},message:"must be equal to constant",schema:"number",parentSchema:Le.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r!="number"){const n={instancePath:s+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Le.properties.value.type,parentSchema:Le.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Le.properties.required.type,parentSchema:Le.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.label.type,parentSchema:Le.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.description.type,parentSchema:Le.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r!="number"){const n={instancePath:s+"/example",schemaPath:"#/properties/example/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Le.properties.example.type,parentSchema:Le.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Le.type,parentSchema:Le,data:a};e===null?e=[r]:e.push(r),t++}return es.errors=e,t===0}es.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ot=j.presentation.$defs.ImageVariable;function ts(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ts.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ot.required,parentSchema:ot,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="type"||o==="value"||o==="required"||o==="label"||o==="description"||o==="example")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:ot,data:a};e===null?e=[i]:e.push(i),t++}if(a.type!==void 0){let o=a.type;if(typeof o!="string"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ot.properties.type.type,parentSchema:ot.properties.type,data:o};e===null?e=[i]:e.push(i),t++}if(o!=="image"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"image"},message:"must be equal to constant",schema:"image",parentSchema:ot.properties.type,data:o};e===null?e=[i]:e.push(i),t++}}if(a.value!==void 0){let o=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/value/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/value/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/value/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/value/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/value/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}if(a.required!==void 0){let o=a.required;if(typeof o!="boolean"){const i={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ot.properties.required.type,parentSchema:ot.properties.required,data:o};e===null?e=[i]:e.push(i),t++}}if(a.label!==void 0){let o=a.label;if(typeof o!="string"){const i={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ot.properties.label.type,parentSchema:ot.properties.label,data:o};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let o=a.description;if(typeof o!="string"){const i={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ot.properties.description.type,parentSchema:ot.properties.description,data:o};e===null?e=[i]:e.push(i),t++}}if(a.example!==void 0){let o=a.example;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/example/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/example/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/example/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/example/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/example/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ot.type,parentSchema:ot,data:a};e===null?e=[o]:e.push(o),t++}return ts.errors=e,t===0}ts.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Us(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Us.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a=="string"){if(!Ae.test(a)){const g={instancePath:s,schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:a};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s,schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,o=0);const h=t;Qa(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Qa.errors:e.concat(Qa.errors),t=e.length);var c=h===t;if(c&&n)n=!1,o=[o,1];else{if(c){n=!0,o=1;var y=!0}const g=t;Ga(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Ga.errors:e.concat(Ga.errors),t=e.length);var c=g===t;if(c&&n)n=!1,o=[o,2];else{c&&(n=!0,o=2,y!==!0&&(y=!0));const p=t;es(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?es.errors:e.concat(es.errors),t=e.length);var c=p===t;if(c&&n)n=!1,o=[o,3];else{c&&(n=!0,o=3,y!==!0&&(y=!0));const O=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const I={instancePath:s,schemaPath:"#/$defs/DateVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ie.required,parentSchema:ie,data:a};e===null?e=[I]:e.push(I),t++}for(const I in a)if(!(I==="type"||I==="value"||I==="required"||I==="label"||I==="description"||I==="example"||I==="format")){const A={instancePath:s,schemaPath:"#/$defs/DateVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties",schema:!1,parentSchema:ie,data:a};e===null?e=[A]:e.push(A),t++}if(a.type!==void 0){let I=a.type;if(typeof I!="string"){const A={instancePath:s+"/type",schemaPath:"#/$defs/DateVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.type.type,parentSchema:ie.properties.type,data:I};e===null?e=[A]:e.push(A),t++}if(I!=="date"){const A={instancePath:s+"/type",schemaPath:"#/$defs/DateVariable/properties/type/const",keyword:"const",params:{allowedValue:"date"},message:"must be equal to constant",schema:"date",parentSchema:ie.properties.type,data:I};e===null?e=[A]:e.push(A),t++}}if(a.value!==void 0){let I=a.value;if(typeof I=="string"){if(!vs.test(I)){const A={instancePath:s+"/value",schemaPath:"#/$defs/DateVariable/properties/value/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:ie.properties.value,data:I};e===null?e=[A]:e.push(A),t++}}else{const A={instancePath:s+"/value",schemaPath:"#/$defs/DateVariable/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.value.type,parentSchema:ie.properties.value,data:I};e===null?e=[A]:e.push(A),t++}}if(a.required!==void 0){let I=a.required;if(typeof I!="boolean"){const A={instancePath:s+"/required",schemaPath:"#/$defs/DateVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ie.properties.required.type,parentSchema:ie.properties.required,data:I};e===null?e=[A]:e.push(A),t++}}if(a.label!==void 0){let I=a.label;if(typeof I!="string"){const A={instancePath:s+"/label",schemaPath:"#/$defs/DateVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.label.type,parentSchema:ie.properties.label,data:I};e===null?e=[A]:e.push(A),t++}}if(a.description!==void 0){let I=a.description;if(typeof I!="string"){const A={instancePath:s+"/description",schemaPath:"#/$defs/DateVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.description.type,parentSchema:ie.properties.description,data:I};e===null?e=[A]:e.push(A),t++}}if(a.example!==void 0){let I=a.example;if(typeof I=="string"){if(!vs.test(I)){const A={instancePath:s+"/example",schemaPath:"#/$defs/DateVariable/properties/example/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:ie.properties.example,data:I};e===null?e=[A]:e.push(A),t++}}else{const A={instancePath:s+"/example",schemaPath:"#/$defs/DateVariable/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.example.type,parentSchema:ie.properties.example,data:I};e===null?e=[A]:e.push(A),t++}}if(a.format!==void 0){let I=a.format;if(typeof I!="string"){const A={instancePath:s+"/format",schemaPath:"#/$defs/DateVariable/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.format.type,parentSchema:ie.properties.format,data:I};e===null?e=[A]:e.push(A),t++}}}else{const I={instancePath:s,schemaPath:"#/$defs/DateVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ie.type,parentSchema:ie,data:a};e===null?e=[I]:e.push(I),t++}var c=O===t;if(c&&n)n=!1,o=[o,4];else{c&&(n=!0,o=4,y!==!0&&(y=!0));const I=t;ts(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?ts.errors:e.concat(ts.errors),t=e.length);var c=I===t;if(c&&n)n=!1,o=[o,5];else{c&&(n=!0,o=5,y!==!0&&(y=!0));const f=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const w={instancePath:s,schemaPath:"#/$defs/UrlVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ue.required,parentSchema:ue,data:a};e===null?e=[w]:e.push(w),t++}for(const w in a)if(!(w==="type"||w==="value"||w==="required"||w==="label"||w==="description"||w==="example")){const $={instancePath:s,schemaPath:"#/$defs/UrlVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties",schema:!1,parentSchema:ue,data:a};e===null?e=[$]:e.push($),t++}if(a.type!==void 0){let w=a.type;if(typeof w!="string"){const $={instancePath:s+"/type",schemaPath:"#/$defs/UrlVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.type.type,parentSchema:ue.properties.type,data:w};e===null?e=[$]:e.push($),t++}if(w!=="url"){const $={instancePath:s+"/type",schemaPath:"#/$defs/UrlVariable/properties/type/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant",schema:"url",parentSchema:ue.properties.type,data:w};e===null?e=[$]:e.push($),t++}}if(a.value!==void 0){let w=a.value;if(typeof w=="string"){if(!bs.test(w)){const $={instancePath:s+"/value",schemaPath:"#/$defs/UrlVariable/properties/value/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:ue.properties.value,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/value",schemaPath:"#/$defs/UrlVariable/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.value.type,parentSchema:ue.properties.value,data:w};e===null?e=[$]:e.push($),t++}}if(a.required!==void 0){let w=a.required;if(typeof w!="boolean"){const $={instancePath:s+"/required",schemaPath:"#/$defs/UrlVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ue.properties.required.type,parentSchema:ue.properties.required,data:w};e===null?e=[$]:e.push($),t++}}if(a.label!==void 0){let w=a.label;if(typeof w!="string"){const $={instancePath:s+"/label",schemaPath:"#/$defs/UrlVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.label.type,parentSchema:ue.properties.label,data:w};e===null?e=[$]:e.push($),t++}}if(a.description!==void 0){let w=a.description;if(typeof w!="string"){const $={instancePath:s+"/description",schemaPath:"#/$defs/UrlVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.description.type,parentSchema:ue.properties.description,data:w};e===null?e=[$]:e.push($),t++}}if(a.example!==void 0){let w=a.example;if(typeof w=="string"){if(!bs.test(w)){const $={instancePath:s+"/example",schemaPath:"#/$defs/UrlVariable/properties/example/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:ue.properties.example,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/example",schemaPath:"#/$defs/UrlVariable/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.example.type,parentSchema:ue.properties.example,data:w};e===null?e=[$]:e.push($),t++}}}else{const w={instancePath:s,schemaPath:"#/$defs/UrlVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ue.type,parentSchema:ue,data:a};e===null?e=[w]:e.push(w),t++}var c=f===t;if(c&&n)n=!1,o=[o,6];else{c&&(n=!0,o=6,y!==!0&&(y=!0));const w=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const F={instancePath:s,schemaPath:"#/$defs/ListVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:me.required,parentSchema:me,data:a};e===null?e=[F]:e.push(F),t++}for(const F in a)if(!(F==="type"||F==="value"||F==="required"||F==="label"||F==="description"||F==="example")){const z={instancePath:s,schemaPath:"#/$defs/ListVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:F},message:"must NOT have additional properties",schema:!1,parentSchema:me,data:a};e===null?e=[z]:e.push(z),t++}if(a.type!==void 0){let F=a.type;if(typeof F!="string"){const z={instancePath:s+"/type",schemaPath:"#/$defs/ListVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.type.type,parentSchema:me.properties.type,data:F};e===null?e=[z]:e.push(z),t++}if(F!=="list"){const z={instancePath:s+"/type",schemaPath:"#/$defs/ListVariable/properties/type/const",keyword:"const",params:{allowedValue:"list"},message:"must be equal to constant",schema:"list",parentSchema:me.properties.type,data:F};e===null?e=[z]:e.push(z),t++}}if(a.value!==void 0){let F=a.value;if(Array.isArray(F)){const z=F.length;for(let L=0;L<z;L++){let M=F[L];if(typeof M!="string"){const H={instancePath:s+"/value/"+L,schemaPath:"#/$defs/ListVariable/properties/value/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.value.items.type,parentSchema:me.properties.value.items,data:M};e===null?e=[H]:e.push(H),t++}}}else{const z={instancePath:s+"/value",schemaPath:"#/$defs/ListVariable/properties/value/type",keyword:"type",params:{type:"array"},message:"must be array",schema:me.properties.value.type,parentSchema:me.properties.value,data:F};e===null?e=[z]:e.push(z),t++}}if(a.required!==void 0){let F=a.required;if(typeof F!="boolean"){const z={instancePath:s+"/required",schemaPath:"#/$defs/ListVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:me.properties.required.type,parentSchema:me.properties.required,data:F};e===null?e=[z]:e.push(z),t++}}if(a.label!==void 0){let F=a.label;if(typeof F!="string"){const z={instancePath:s+"/label",schemaPath:"#/$defs/ListVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.label.type,parentSchema:me.properties.label,data:F};e===null?e=[z]:e.push(z),t++}}if(a.description!==void 0){let F=a.description;if(typeof F!="string"){const z={instancePath:s+"/description",schemaPath:"#/$defs/ListVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.description.type,parentSchema:me.properties.description,data:F};e===null?e=[z]:e.push(z),t++}}if(a.example!==void 0){let F=a.example;if(Array.isArray(F)){const z=F.length;for(let L=0;L<z;L++){let M=F[L];if(typeof M!="string"){const H={instancePath:s+"/example/"+L,schemaPath:"#/$defs/ListVariable/properties/example/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.example.items.type,parentSchema:me.properties.example.items,data:M};e===null?e=[H]:e.push(H),t++}}}else{const z={instancePath:s+"/example",schemaPath:"#/$defs/ListVariable/properties/example/type",keyword:"type",params:{type:"array"},message:"must be array",schema:me.properties.example.type,parentSchema:me.properties.example,data:F};e===null?e=[z]:e.push(z),t++}}}else{const F={instancePath:s,schemaPath:"#/$defs/ListVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:me.type,parentSchema:me,data:a};e===null?e=[F]:e.push(F),t++}var c=w===t;c&&n?(n=!1,o=[o,7]):c&&(n=!0,o=7,y!==!0&&(y=!0))}}}}}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:no.oneOf,parentSchema:no,data:a};e===null?e=[g]:e.push(g),t++}return Us.errors=e,m.props=y,t===0}Us.evaluated={dynamicProps:!0,dynamicItems:!1};function Es(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Es.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const n in a){const o=t;if(typeof n=="string"&&!bt.test(n)){const i={instancePath:s,schemaPath:"#/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Fn.propertyNames,data:n,propertyName:n};e===null?e=[i]:e.push(i),t++}var r=o===t;if(!r){const i={instancePath:s,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName:n},message:"property name must be valid",schema:Fn.propertyNames,parentSchema:Fn,data:a};e===null?e=[i]:e.push(i),t++}}for(const n in a)Us(a[n],{instancePath:s+"/"+n.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Us.errors:e.concat(Us.errors),t=e.length)}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Fn.type,parentSchema:Fn,data:a};e===null?e=[n]:e.push(n),t++}return Es.errors=e,t===0}Es.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ve=j.presentation.$defs.Slide,se=j.presentation.$defs.Code,Q=j.presentation.$defs.Metric,ze=j.presentation.$defs.Diagram,de=j.presentation.$defs.Composition,kt=j.presentation.$defs.ListItem;function as(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=as.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const d={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:kt.oneOf[0].type,parentSchema:kt.oneOf[0],data:a};e===null?e=[d]:e.push(d),t++}var c=i===t;c&&(n=!0,o=0);const h=t;if(Array.isArray(a)){const d=a.length;for(let O=0;O<d;O++)J(a[O],{instancePath:s+"/"+O,parentData:a,parentDataProperty:O,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const d={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:kt.oneOf[1].type,parentSchema:kt.oneOf[1],data:a};e===null?e=[d]:e.push(d),t++}var c=h===t;if(c&&n)n=!1,o=[o,1];else{if(c){n=!0,o=1;var y=!0}const d=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const S={instancePath:s,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:kt.oneOf[2].required,parentSchema:kt.oneOf[2],data:a};e===null?e=[S]:e.push(S),t++}for(const S in a)if(!(S==="text"||S==="description"||S==="level"||S==="start")){const I={instancePath:s,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties",schema:!1,parentSchema:kt.oneOf[2],data:a};e===null?e=[I]:e.push(I),t++}if(a.text!==void 0){let S=a.text;const I=t;let A=!1,f=null;const P=t;if(typeof S!="string"){const $={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:kt.oneOf[2].properties.text.oneOf[0].type,parentSchema:kt.oneOf[2].properties.text.oneOf[0],data:S};e===null?e=[$]:e.push($),t++}var g=P===t;g&&(A=!0,f=0);const w=t;if(Array.isArray(S)){const $=S.length;for(let F=0;F<$;F++)J(S[F],{instancePath:s+"/text/"+F,parentData:S,parentDataProperty:F,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const $={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:kt.oneOf[2].properties.text.oneOf[1].type,parentSchema:kt.oneOf[2].properties.text.oneOf[1],data:S};e===null?e=[$]:e.push($),t++}var g=w===t;if(g&&A?(A=!1,f=[f,1]):g&&(A=!0,f=1),A)t=I,e!==null&&(I?e.length=I:e=null);else{const $={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:f},message:"must match exactly one schema in oneOf",schema:kt.oneOf[2].properties.text.oneOf,parentSchema:kt.oneOf[2].properties.text,data:S};e===null?e=[$]:e.push($),t++}}if(a.description!==void 0){let S=a.description;const I=t;let A=!1,f=null;const P=t;if(typeof S!="string"){const $={instancePath:s+"/description",schemaPath:"#/oneOf/2/properties/description/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:kt.oneOf[2].properties.description.oneOf[0].type,parentSchema:kt.oneOf[2].properties.description.oneOf[0],data:S};e===null?e=[$]:e.push($),t++}var l=P===t;l&&(A=!0,f=0);const w=t;if(Array.isArray(S)){const $=S.length;for(let F=0;F<$;F++)J(S[F],{instancePath:s+"/description/"+F,parentData:S,parentDataProperty:F,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const $={instancePath:s+"/description",schemaPath:"#/oneOf/2/properties/description/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:kt.oneOf[2].properties.description.oneOf[1].type,parentSchema:kt.oneOf[2].properties.description.oneOf[1],data:S};e===null?e=[$]:e.push($),t++}var l=w===t;if(l&&A?(A=!1,f=[f,1]):l&&(A=!0,f=1),A)t=I,e!==null&&(I?e.length=I:e=null);else{const $={instancePath:s+"/description",schemaPath:"#/oneOf/2/properties/description/oneOf",keyword:"oneOf",params:{passingSchemas:f},message:"must match exactly one schema in oneOf",schema:kt.oneOf[2].properties.description.oneOf,parentSchema:kt.oneOf[2].properties.description,data:S};e===null?e=[$]:e.push($),t++}}if(a.level!==void 0){let S=a.level;if(!(typeof S=="number"&&!(S%1)&&!isNaN(S))){const I={instancePath:s+"/level",schemaPath:"#/oneOf/2/properties/level/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:kt.oneOf[2].properties.level.type,parentSchema:kt.oneOf[2].properties.level,data:S};e===null?e=[I]:e.push(I),t++}if(typeof S=="number"&&(S<0||isNaN(S))){const I={instancePath:s+"/level",schemaPath:"#/oneOf/2/properties/level/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:kt.oneOf[2].properties.level,data:S};e===null?e=[I]:e.push(I),t++}}if(a.start!==void 0){let S=a.start;if(!(typeof S=="number"&&!(S%1)&&!isNaN(S))){const I={instancePath:s+"/start",schemaPath:"#/oneOf/2/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:kt.oneOf[2].properties.start.type,parentSchema:kt.oneOf[2].properties.start,data:S};e===null?e=[I]:e.push(I),t++}if(typeof S=="number"){if(S>32767||isNaN(S)){const I={instancePath:s+"/start",schemaPath:"#/oneOf/2/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:kt.oneOf[2].properties.start,data:S};e===null?e=[I]:e.push(I),t++}if(S<1||isNaN(S)){const I={instancePath:s+"/start",schemaPath:"#/oneOf/2/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:kt.oneOf[2].properties.start,data:S};e===null?e=[I]:e.push(I),t++}}}}else{const S={instancePath:s,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object",schema:kt.oneOf[2].type,parentSchema:kt.oneOf[2],data:a};e===null?e=[S]:e.push(S),t++}var c=d===t;if(c&&n)n=!1,o=[o,2];else if(c){n=!0,o=2;var p=!0}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const d={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:kt.oneOf,parentSchema:kt,data:a};e===null?e=[d]:e.push(d),t++}return as.errors=e,m.props=p,m.items=y,t===0}as.evaluated={dynamicProps:!0,dynamicItems:!0};var Vt=j.presentation.$defs.BulletItem;function ss(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ss.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Vt.oneOf[0].type,parentSchema:Vt.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var c=i===t;c&&(n=!0,o=0);const h=t;if(Array.isArray(a)){const p=a.length;for(let d=0;d<p;d++)J(a[d],{instancePath:s+"/"+d,parentData:a,parentDataProperty:d,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Vt.oneOf[1].type,parentSchema:Vt.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var c=h===t;if(c&&n)n=!1,o=[o,1];else{if(c){n=!0,o=1;var y=!0}const p=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const O={instancePath:s,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:Vt.oneOf[2].required,parentSchema:Vt.oneOf[2],data:a};e===null?e=[O]:e.push(O),t++}for(const O in a)if(!(O==="text"||O==="level"||O==="start")){const S={instancePath:s,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties",schema:!1,parentSchema:Vt.oneOf[2],data:a};e===null?e=[S]:e.push(S),t++}if(a.text!==void 0){let O=a.text;const S=t;let I=!1,A=null;const f=t;if(typeof O!="string"){const w={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Vt.oneOf[2].properties.text.oneOf[0].type,parentSchema:Vt.oneOf[2].properties.text.oneOf[0],data:O};e===null?e=[w]:e.push(w),t++}var g=f===t;g&&(I=!0,A=0);const P=t;if(Array.isArray(O)){const w=O.length;for(let $=0;$<w;$++)J(O[$],{instancePath:s+"/text/"+$,parentData:O,parentDataProperty:$,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const w={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Vt.oneOf[2].properties.text.oneOf[1].type,parentSchema:Vt.oneOf[2].properties.text.oneOf[1],data:O};e===null?e=[w]:e.push(w),t++}var g=P===t;if(g&&I?(I=!1,A=[A,1]):g&&(I=!0,A=1),I)t=S,e!==null&&(S?e.length=S:e=null);else{const w={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:A},message:"must match exactly one schema in oneOf",schema:Vt.oneOf[2].properties.text.oneOf,parentSchema:Vt.oneOf[2].properties.text,data:O};e===null?e=[w]:e.push(w),t++}}if(a.level!==void 0){let O=a.level;if(!(typeof O=="number"&&!(O%1)&&!isNaN(O))){const S={instancePath:s+"/level",schemaPath:"#/oneOf/2/properties/level/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Vt.oneOf[2].properties.level.type,parentSchema:Vt.oneOf[2].properties.level,data:O};e===null?e=[S]:e.push(S),t++}if(typeof O=="number"&&(O<0||isNaN(O))){const S={instancePath:s+"/level",schemaPath:"#/oneOf/2/properties/level/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Vt.oneOf[2].properties.level,data:O};e===null?e=[S]:e.push(S),t++}}if(a.start!==void 0){let O=a.start;if(!(typeof O=="number"&&!(O%1)&&!isNaN(O))){const S={instancePath:s+"/start",schemaPath:"#/oneOf/2/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Vt.oneOf[2].properties.start.type,parentSchema:Vt.oneOf[2].properties.start,data:O};e===null?e=[S]:e.push(S),t++}if(typeof O=="number"){if(O>32767||isNaN(O)){const S={instancePath:s+"/start",schemaPath:"#/oneOf/2/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:Vt.oneOf[2].properties.start,data:O};e===null?e=[S]:e.push(S),t++}if(O<1||isNaN(O)){const S={instancePath:s+"/start",schemaPath:"#/oneOf/2/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Vt.oneOf[2].properties.start,data:O};e===null?e=[S]:e.push(S),t++}}}}else{const O={instancePath:s,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Vt.oneOf[2].type,parentSchema:Vt.oneOf[2],data:a};e===null?e=[O]:e.push(O),t++}var c=p===t;if(c&&n)n=!1,o=[o,2];else if(c){n=!0,o=2;var l=!0}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:Vt.oneOf,parentSchema:Vt,data:a};e===null?e=[p]:e.push(p),t++}return ss.errors=e,m.props=l,m.items=y,t===0}ss.evaluated={dynamicProps:!0,dynamicItems:!0};var Os=j.presentation.$defs.NumberingSpec,at=j.presentation.$defs.NumberingStyle,Qe=j.presentation.$defs.Numbering;function rs(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=rs.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!(r==="style"||r==="start"||r==="suffix")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Qe,data:a};e===null?e=[n]:e.push(n),t++}if(a.style!==void 0){let r=a.style;if(typeof r!="string"){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:at.type,parentSchema:at,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="arabic"||r==="roman-upper"||r==="roman-lower"||r==="alpha-upper"||r==="alpha-lower")){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:at.enum},message:"must be equal to one of the allowed values",schema:at.enum,parentSchema:at,data:r};e===null?e=[n]:e.push(n),t++}}if(a.start!==void 0){let r=a.start;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/start",schemaPath:"#/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Qe.properties.start.type,parentSchema:Qe.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"){if(r>32767||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:Qe.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(r<1||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Qe.properties.start,data:r};e===null?e=[n]:e.push(n),t++}}}if(a.suffix!==void 0){let r=a.suffix;if(typeof r!="string"){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qe.properties.suffix.type,parentSchema:Qe.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="period"||r==="paren"||r==="paren-both")){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/enum",keyword:"enum",params:{allowedValues:Qe.properties.suffix.enum},message:"must be equal to one of the allowed values",schema:Qe.properties.suffix.enum,parentSchema:Qe.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Qe.type,parentSchema:Qe,data:a};e===null?e=[r]:e.push(r),t++}return rs.errors=e,t===0}rs.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ns(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ns.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:at.type,parentSchema:at,data:a};e===null?e=[p]:e.push(p),t++}if(!(a==="arabic"||a==="roman-upper"||a==="roman-lower"||a==="alpha-upper"||a==="alpha-lower")){const p={instancePath:s,schemaPath:"#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:at.enum},message:"must be equal to one of the allowed values",schema:at.enum,parentSchema:at,data:a};e===null?e=[p]:e.push(p),t++}var c=i===t;c&&(n=!0,o=0);const h=t;rs(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?rs.errors:e.concat(rs.errors),t=e.length);var c=h===t;if(c&&n)n=!1,o=[o,1];else{if(c){n=!0,o=1;var y=!0}const p=t;if(Array.isArray(a)){if(a.length>9){const S={instancePath:s,schemaPath:"#/oneOf/2/maxItems",keyword:"maxItems",params:{limit:9},message:"must NOT have more than 9 items",schema:9,parentSchema:Os.oneOf[2],data:a};e===null?e=[S]:e.push(S),t++}if(a.length<1){const S={instancePath:s,schemaPath:"#/oneOf/2/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Os.oneOf[2],data:a};e===null?e=[S]:e.push(S),t++}const O=a.length;for(let S=0;S<O;S++){let I=a[S];const A=t;let f=!1,P=null;const w=t;if(typeof I!="string"){const F={instancePath:s+"/"+S,schemaPath:"#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:at.type,parentSchema:at,data:I};e===null?e=[F]:e.push(F),t++}if(!(I==="arabic"||I==="roman-upper"||I==="roman-lower"||I==="alpha-upper"||I==="alpha-lower")){const F={instancePath:s+"/"+S,schemaPath:"#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:at.enum},message:"must be equal to one of the allowed values",schema:at.enum,parentSchema:at,data:I};e===null?e=[F]:e.push(F),t++}var g=w===t;g&&(f=!0,P=0);const $=t;rs(I,{instancePath:s+"/"+S,parentData:a,parentDataProperty:S,rootData:v,dynamicAnchors:b})||(e=e===null?rs.errors:e.concat(rs.errors),t=e.length);var g=$===t;if(g&&f?(f=!1,P=[P,1]):g&&(f=!0,P=1),f)t=A,e!==null&&(A?e.length=A:e=null);else{const F={instancePath:s+"/"+S,schemaPath:"#/oneOf/2/items/oneOf",keyword:"oneOf",params:{passingSchemas:P},message:"must match exactly one schema in oneOf",schema:Os.oneOf[2].items.oneOf,parentSchema:Os.oneOf[2].items,data:I};e===null?e=[F]:e.push(F),t++}}}else{const O={instancePath:s,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Os.oneOf[2].type,parentSchema:Os.oneOf[2],data:a};e===null?e=[O]:e.push(O),t++}var c=p===t;if(c&&n)n=!1,o=[o,2];else if(c){n=!0,o=2;var l=!0}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:Os.oneOf,parentSchema:Os,data:a};e===null?e=[p]:e.push(p),t++}return ns.errors=e,m.props=y,m.items=l,t===0}ns.evaluated={dynamicProps:!0,dynamicItems:!0};var pt=j.presentation.$defs.Chart,Ia=j.presentation.$defs.ChartMapping,os=j.presentation.$defs.ChartAxisTitles,ft=j.presentation.$defs.ChartDataLabels,la=j.presentation.$defs.ChartHighlight,Fe=j.presentation.$defs.ChartData,dt=j.presentation.$defs.ChartDataCell,re=j.presentation.$defs.DataSourceRef,$t=j.presentation.$defs.DataColumn;function aa(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=aa.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:$t.required,parentSchema:$t,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="name"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:$t,data:a};e===null?e=[n]:e.push(n),t++}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$t.properties.name.type,parentSchema:$t.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:$t.type,parentSchema:$t,data:a};e===null?e=[r]:e.push(r),t++}return aa.errors=e,t===0}aa.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Tn=Gc().fullFormats.date,Cn=Gc().fullFormats["date-time"];function Ws(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ws.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.columns===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columns"},message:"must have required property 'columns'",schema:Fe.required,parentSchema:Fe,data:a};e===null?e=[i]:e.push(i),t++}if(a.rows===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'",schema:Fe.required,parentSchema:Fe,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!(i==="columns"||i==="rows"||i==="source")){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:Fe,data:a};e===null?e=[h]:e.push(h),t++}if(a.columns!==void 0){let i=a.columns;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/columns",schemaPath:"#/properties/columns/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Fe.properties.columns,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];const g=t;let l=!1,p=null;const d=t;if(typeof y!="string"){const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fe.properties.columns.items.oneOf[0].type,parentSchema:Fe.properties.columns.items.oneOf[0],data:y};e===null?e=[S]:e.push(S),t++}var r=d===t;r&&(l=!0,p=0);const O=t;aa(y,{instancePath:s+"/columns/"+c,parentData:i,parentDataProperty:c,rootData:v,dynamicAnchors:b})||(e=e===null?aa.errors:e.concat(aa.errors),t=e.length);var r=O===t;if(r&&l?(l=!1,p=[p,1]):r&&(l=!0,p=1),l)t=g,e!==null&&(g?e.length=g:e=null);else{const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Fe.properties.columns.items.oneOf,parentSchema:Fe.properties.columns.items,data:y};e===null?e=[S]:e.push(S),t++}}}else{const h={instancePath:s+"/columns",schemaPath:"#/properties/columns/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Fe.properties.columns.type,parentSchema:Fe.properties.columns,data:i};e===null?e=[h]:e.push(h),t++}}if(a.rows!==void 0){let i=a.rows;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/rows",schemaPath:"#/properties/rows/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Fe.properties.rows,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];if(Array.isArray(y)){const g=y.length;for(let l=0;l<g;l++){let p=y[l];const d=t;let O=!1,S=null;const I=t;if(typeof p!="string"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:dt.oneOf[0].type,parentSchema:dt.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var n=I===t;n&&(O=!0,S=0);const A=t;if(typeof p!="number"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:dt.oneOf[1].type,parentSchema:dt.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var n=A===t;if(n&&O)O=!1,S=[S,1];else{n&&(O=!0,S=1);const f=t;if(typeof p!="boolean"){const w={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:dt.oneOf[2].type,parentSchema:dt.oneOf[2],data:p};e===null?e=[w]:e.push(w),t++}var n=f===t;if(n&&O)O=!1,S=[S,2];else{n&&(O=!0,S=2);const w=t;if(p!==null){const F={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/3/type",keyword:"type",params:{type:"null"},message:"must be null",schema:dt.oneOf[3].type,parentSchema:dt.oneOf[3],data:p};e===null?e=[F]:e.push(F),t++}var n=w===t;n&&O?(O=!1,S=[S,3]):n&&(O=!0,S=3)}}if(O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:dt.oneOf,parentSchema:dt,data:p};e===null?e=[f]:e.push(f),t++}}}else{const g={instancePath:s+"/rows/"+c,schemaPath:"#/properties/rows/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Fe.properties.rows.items.type,parentSchema:Fe.properties.rows.items,data:y};e===null?e=[g]:e.push(g),t++}}}else{const h={instancePath:s+"/rows",schemaPath:"#/properties/rows/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Fe.properties.rows.type,parentSchema:Fe.properties.rows,data:i};e===null?e=[h]:e.push(h),t++}}if(a.source!==void 0){let i=a.source;if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.src===void 0){const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:re.required,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}for(const h in i)if(!(h==="src"||h==="sheet"||h==="range"||h==="fields"||h==="retrieved"||h==="description")){const c={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:re,data:i};e===null?e=[c]:e.push(c),t++}if(i.src!==void 0){let h=i.src;if(typeof h!="string"){const c={instancePath:s+"/source/src",schemaPath:"#/$defs/DataSourceRef/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.src.type,parentSchema:re.properties.src,data:h};e===null?e=[c]:e.push(c),t++}}if(i.sheet!==void 0){let h=i.sheet;if(typeof h!="string"){const c={instancePath:s+"/source/sheet",schemaPath:"#/$defs/DataSourceRef/properties/sheet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.sheet.type,parentSchema:re.properties.sheet,data:h};e===null?e=[c]:e.push(c),t++}}if(i.range!==void 0){let h=i.range;if(typeof h!="string"){const c={instancePath:s+"/source/range",schemaPath:"#/$defs/DataSourceRef/properties/range/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.range.type,parentSchema:re.properties.range,data:h};e===null?e=[c]:e.push(c),t++}}if(i.fields!==void 0){let h=i.fields;if(Array.isArray(h)){const c=h.length;for(let y=0;y<c;y++){let g=h[y];if(typeof g!="string"){const l={instancePath:s+"/source/fields/"+y,schemaPath:"#/$defs/DataSourceRef/properties/fields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.fields.items.type,parentSchema:re.properties.fields.items,data:g};e===null?e=[l]:e.push(l),t++}}}else{const c={instancePath:s+"/source/fields",schemaPath:"#/$defs/DataSourceRef/properties/fields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:re.properties.fields.type,parentSchema:re.properties.fields,data:h};e===null?e=[c]:e.push(c),t++}}if(i.retrieved!==void 0){let h=i.retrieved;if(typeof h!="string"){const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.retrieved.type,parentSchema:re.properties.retrieved,data:h};e===null?e=[p]:e.push(p),t++}const c=t;let y=!1;const g=t;if(typeof h=="string"&&!Tn.validate(h)){const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/0/format",keyword:"format",params:{format:"date"},message:'must match format "date"',schema:"date",parentSchema:re.properties.retrieved.anyOf[0],data:h};e===null?e=[p]:e.push(p),t++}var o=g===t;y=y||o;const l=t;if(typeof h=="string"&&!Cn.validate(h)){const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/1/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"',schema:"date-time",parentSchema:re.properties.retrieved.anyOf[1],data:h};e===null?e=[p]:e.push(p),t++}var o=l===t;if(y=y||o,y)t=c,e!==null&&(c?e.length=c:e=null);else{const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:re.properties.retrieved.anyOf,parentSchema:re.properties.retrieved,data:h};e===null?e=[p]:e.push(p),t++}}if(i.description!==void 0){let h=i.description;if(typeof h!="string"){const c={instancePath:s+"/source/description",schemaPath:"#/$defs/DataSourceRef/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.description.type,parentSchema:re.properties.description,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/type",keyword:"type",params:{type:"object"},message:"must be object",schema:re.type,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Fe.type,parentSchema:Fe,data:a};e===null?e=[i]:e.push(i),t++}return Ws.errors=e,t===0}Ws.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ba=j.presentation.$defs.DatasetRef,za=j.presentation.$defs.DatasetId,Lt=j.presentation.$defs.DatasetFields,Xs=new RegExp("^[a-zA-Z0-9][a-zA-Z0-9._-]*$","u");function Js(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Js.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.dataset===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"dataset"},message:"must have required property 'dataset'",schema:ba.required,parentSchema:ba,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="dataset"||r==="fields")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ba,data:a};e===null?e=[n]:e.push(n),t++}if(a.dataset!==void 0){let r=a.dataset;if(typeof r=="string"){if(!Xs.test(r)){const n={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$"},message:'must match pattern "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"',schema:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$",parentSchema:za,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:za.type,parentSchema:za,data:r};e===null?e=[n]:e.push(n),t++}}if(a.fields!==void 0){let r=a.fields;if(Array.isArray(r)){if(r.length<1){const h={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Lt,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/fields/"+h,schemaPath:"#/$defs/DatasetFields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Lt.items.type,parentSchema:Lt.items,data:c};e===null?e=[y]:e.push(y),t++}}let o=r.length,i;if(o>1){const h={};for(;o--;){let c=r[o];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/uniqueItems",keyword:"uniqueItems",params:{i:o,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+o+" are identical)",schema:!0,parentSchema:Lt,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=o}}}}else{const n={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Lt.type,parentSchema:Lt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ba.type,parentSchema:ba,data:a};e===null?e=[r]:e.push(r),t++}return Js.errors=e,t===0}Js.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ps(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ps.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:pt.required,parentSchema:pt,data:a};e===null?e=[i]:e.push(i),t++}if(a.data===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"data"},message:"must have required property 'data'",schema:pt.required,parentSchema:pt,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!va.call(pt.properties,i)){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:pt,data:a};e===null?e=[h]:e.push(h),t++}if(a.type!==void 0){let i=a.type;if(typeof i!="string"){const h={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pt.properties.type.type,parentSchema:pt.properties.type,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="100pct-stacked-area"||i==="100pct-stacked-bar"||i==="100pct-stacked-column"||i==="area"||i==="bar"||i==="box-and-whisker"||i==="column"||i==="combo"||i==="doughnut"||i==="filled-radar"||i==="funnel"||i==="histogram"||i==="line"||i==="line-with-markers"||i==="pareto"||i==="pie"||i==="radar"||i==="radar-with-markers"||i==="scatter"||i==="stacked-area"||i==="stacked-bar"||i==="stacked-column"||i==="stacked-line"||i==="stacked-line-with-markers"||i==="treemap"||i==="waterfall"||i==="world")){const h={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:pt.properties.type.enum},message:"must be equal to one of the allowed values",schema:pt.properties.type.enum,parentSchema:pt.properties.type,data:i};e===null?e=[h]:e.push(h),t++}}if(a.data!==void 0){let i=a.data;const h=t;let c=!1,y=null;const g=t;Ws(i,{instancePath:s+"/data",parentData:a,parentDataProperty:"data",rootData:v,dynamicAnchors:b})||(e=e===null?Ws.errors:e.concat(Ws.errors),t=e.length);var n=g===t;if(n){c=!0,y=0;var r=!0}const l=t;Js(i,{instancePath:s+"/data",parentData:a,parentDataProperty:"data",rootData:v,dynamicAnchors:b})||(e=e===null?Js.errors:e.concat(Js.errors),t=e.length);var n=l===t;if(n&&c?(c=!1,y=[y,1]):n&&(c=!0,y=1,r!==!0&&(r=!0)),c)t=h,e!==null&&(h?e.length=h:e=null);else{const p={instancePath:s+"/data",schemaPath:"#/properties/data/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:pt.properties.data.oneOf,parentSchema:pt.properties.data,data:i};e===null?e=[p]:e.push(p),t++}}if(a.mapping!==void 0){let i=a.mapping;if(i&&typeof i=="object"&&!Array.isArray(i)){for(const h in i)if(!(h==="category"||h==="x"||h==="series")){const c={instancePath:s+"/mapping",schemaPath:"#/$defs/ChartMapping/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:Ia,data:i};e===null?e=[c]:e.push(c),t++}if(i.category!==void 0){let h=i.category;if(typeof h!="string"){const c={instancePath:s+"/mapping/category",schemaPath:"#/$defs/ChartMapping/properties/category/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ia.properties.category.type,parentSchema:Ia.properties.category,data:h};e===null?e=[c]:e.push(c),t++}}if(i.x!==void 0){let h=i.x;if(typeof h!="string"){const c={instancePath:s+"/mapping/x",schemaPath:"#/$defs/ChartMapping/properties/x/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ia.properties.x.type,parentSchema:Ia.properties.x,data:h};e===null?e=[c]:e.push(c),t++}}if(i.series!==void 0){let h=i.series;if(Array.isArray(h)){if(h.length<1){const y={instancePath:s+"/mapping/series",schemaPath:"#/$defs/ChartMapping/properties/series/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Ia.properties.series,data:h};e===null?e=[y]:e.push(y),t++}const c=h.length;for(let y=0;y<c;y++){let g=h[y];if(typeof g!="string"){const l={instancePath:s+"/mapping/series/"+y,schemaPath:"#/$defs/ChartMapping/properties/series/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ia.properties.series.items.type,parentSchema:Ia.properties.series.items,data:g};e===null?e=[l]:e.push(l),t++}}}else{const c={instancePath:s+"/mapping/series",schemaPath:"#/$defs/ChartMapping/properties/series/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ia.properties.series.type,parentSchema:Ia.properties.series,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/mapping",schemaPath:"#/$defs/ChartMapping/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ia.type,parentSchema:Ia,data:i};e===null?e=[h]:e.push(h),t++}}if(a.line!==void 0){let i=a.line;if(Array.isArray(i)){if(i.length<1){const g={instancePath:s+"/line",schemaPath:"#/properties/line/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:pt.properties.line,data:i};e===null?e=[g]:e.push(g),t++}const h=i.length;for(let g=0;g<h;g++){let l=i[g];if(typeof l!="string"){const p={instancePath:s+"/line/"+g,schemaPath:"#/properties/line/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pt.properties.line.items.type,parentSchema:pt.properties.line.items,data:l};e===null?e=[p]:e.push(p),t++}}let c=i.length,y;if(c>1){const g={};for(;c--;){let l=i[c];if(typeof l=="string"){if(typeof g[l]=="number"){y=g[l];const p={instancePath:s+"/line",schemaPath:"#/properties/line/uniqueItems",keyword:"uniqueItems",params:{i:c,j:y},message:"must NOT have duplicate items (items ## "+y+" and "+c+" are identical)",schema:!0,parentSchema:pt.properties.line,data:i};e===null?e=[p]:e.push(p),t++;break}g[l]=c}}}}else{const h={instancePath:s+"/line",schemaPath:"#/properties/line/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pt.properties.line.type,parentSchema:pt.properties.line,data:i};e===null?e=[h]:e.push(h),t++}}if(a.secondaryAxis!==void 0){let i=a.secondaryAxis;if(Array.isArray(i)){if(i.length<1){const g={instancePath:s+"/secondaryAxis",schemaPath:"#/properties/secondaryAxis/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:pt.properties.secondaryAxis,data:i};e===null?e=[g]:e.push(g),t++}const h=i.length;for(let g=0;g<h;g++){let l=i[g];if(typeof l!="string"){const p={instancePath:s+"/secondaryAxis/"+g,schemaPath:"#/properties/secondaryAxis/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pt.properties.secondaryAxis.items.type,parentSchema:pt.properties.secondaryAxis.items,data:l};e===null?e=[p]:e.push(p),t++}}let c=i.length,y;if(c>1){const g={};for(;c--;){let l=i[c];if(typeof l=="string"){if(typeof g[l]=="number"){y=g[l];const p={instancePath:s+"/secondaryAxis",schemaPath:"#/properties/secondaryAxis/uniqueItems",keyword:"uniqueItems",params:{i:c,j:y},message:"must NOT have duplicate items (items ## "+y+" and "+c+" are identical)",schema:!0,parentSchema:pt.properties.secondaryAxis,data:i};e===null?e=[p]:e.push(p),t++;break}g[l]=c}}}}else{const h={instancePath:s+"/secondaryAxis",schemaPath:"#/properties/secondaryAxis/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pt.properties.secondaryAxis.type,parentSchema:pt.properties.secondaryAxis,data:i};e===null?e=[h]:e.push(h),t++}}if(a.axisTitles!==void 0){let i=a.axisTitles;if(i&&typeof i=="object"&&!Array.isArray(i)){for(const h in i)if(!(h==="category"||h==="value"||h==="secondary")){const c={instancePath:s+"/axisTitles",schemaPath:"#/$defs/ChartAxisTitles/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:os,data:i};e===null?e=[c]:e.push(c),t++}if(i.category!==void 0){let h=i.category;if(typeof h!="string"){const c={instancePath:s+"/axisTitles/category",schemaPath:"#/$defs/ChartAxisTitles/properties/category/type",keyword:"type",params:{type:"string"},message:"must be string",schema:os.properties.category.type,parentSchema:os.properties.category,data:h};e===null?e=[c]:e.push(c),t++}}if(i.value!==void 0){let h=i.value;if(typeof h!="string"){const c={instancePath:s+"/axisTitles/value",schemaPath:"#/$defs/ChartAxisTitles/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:os.properties.value.type,parentSchema:os.properties.value,data:h};e===null?e=[c]:e.push(c),t++}}if(i.secondary!==void 0){let h=i.secondary;if(typeof h!="string"){const c={instancePath:s+"/axisTitles/secondary",schemaPath:"#/$defs/ChartAxisTitles/properties/secondary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:os.properties.secondary.type,parentSchema:os.properties.secondary,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/axisTitles",schemaPath:"#/$defs/ChartAxisTitles/type",keyword:"type",params:{type:"object"},message:"must be object",schema:os.type,parentSchema:os,data:i};e===null?e=[h]:e.push(h),t++}}if(a.legend!==void 0){let i=a.legend;if(typeof i!="string"){const h={instancePath:s+"/legend",schemaPath:"#/properties/legend/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pt.properties.legend.type,parentSchema:pt.properties.legend,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="none"||i==="top"||i==="bottom"||i==="left"||i==="right")){const h={instancePath:s+"/legend",schemaPath:"#/properties/legend/enum",keyword:"enum",params:{allowedValues:pt.properties.legend.enum},message:"must be equal to one of the allowed values",schema:pt.properties.legend.enum,parentSchema:pt.properties.legend,data:i};e===null?e=[h]:e.push(h),t++}}if(a.dataLabels!==void 0){let i=a.dataLabels;const h=t;let c=!1,y=null;const g=t;if(typeof i!="boolean"){const p={instancePath:s+"/dataLabels",schemaPath:"#/properties/dataLabels/oneOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:pt.properties.dataLabels.oneOf[0].type,parentSchema:pt.properties.dataLabels.oneOf[0],data:i};e===null?e=[p]:e.push(p),t++}var o=g===t;o&&(c=!0,y=0);const l=t;if(i&&typeof i=="object"&&!Array.isArray(i)){for(const p in i)if(!(p==="content"||p==="position"||p==="separator")){const d={instancePath:s+"/dataLabels",schemaPath:"#/$defs/ChartDataLabels/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:ft,data:i};e===null?e=[d]:e.push(d),t++}if(i.content!==void 0){let p=i.content;if(Array.isArray(p)){if(p.length<1){const I={instancePath:s+"/dataLabels/content",schemaPath:"#/$defs/ChartDataLabels/properties/content/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ft.properties.content,data:p};e===null?e=[I]:e.push(I),t++}const d=p.length;for(let I=0;I<d;I++){let A=p[I];if(typeof A!="string"){const f={instancePath:s+"/dataLabels/content/"+I,schemaPath:"#/$defs/ChartDataLabels/properties/content/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.content.items.type,parentSchema:ft.properties.content.items,data:A};e===null?e=[f]:e.push(f),t++}if(!(A==="value"||A==="percent"||A==="category")){const f={instancePath:s+"/dataLabels/content/"+I,schemaPath:"#/$defs/ChartDataLabels/properties/content/items/enum",keyword:"enum",params:{allowedValues:ft.properties.content.items.enum},message:"must be equal to one of the allowed values",schema:ft.properties.content.items.enum,parentSchema:ft.properties.content.items,data:A};e===null?e=[f]:e.push(f),t++}}let O=p.length,S;if(O>1){const I={};for(;O--;){let A=p[O];if(typeof A=="string"){if(typeof I[A]=="number"){S=I[A];const f={instancePath:s+"/dataLabels/content",schemaPath:"#/$defs/ChartDataLabels/properties/content/uniqueItems",keyword:"uniqueItems",params:{i:O,j:S},message:"must NOT have duplicate items (items ## "+S+" and "+O+" are identical)",schema:!0,parentSchema:ft.properties.content,data:p};e===null?e=[f]:e.push(f),t++;break}I[A]=O}}}}else{const d={instancePath:s+"/dataLabels/content",schemaPath:"#/$defs/ChartDataLabels/properties/content/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ft.properties.content.type,parentSchema:ft.properties.content,data:p};e===null?e=[d]:e.push(d),t++}}if(i.position!==void 0){let p=i.position;if(typeof p!="string"){const d={instancePath:s+"/dataLabels/position",schemaPath:"#/$defs/ChartDataLabels/properties/position/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.position.type,parentSchema:ft.properties.position,data:p};e===null?e=[d]:e.push(d),t++}if(!(p==="auto"||p==="center"||p==="inside-end"||p==="inside-base"||p==="outside-end"||p==="above"||p==="below"||p==="left"||p==="right")){const d={instancePath:s+"/dataLabels/position",schemaPath:"#/$defs/ChartDataLabels/properties/position/enum",keyword:"enum",params:{allowedValues:ft.properties.position.enum},message:"must be equal to one of the allowed values",schema:ft.properties.position.enum,parentSchema:ft.properties.position,data:p};e===null?e=[d]:e.push(d),t++}}if(i.separator!==void 0){let p=i.separator;if(typeof p!="string"){const d={instancePath:s+"/dataLabels/separator",schemaPath:"#/$defs/ChartDataLabels/properties/separator/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.separator.type,parentSchema:ft.properties.separator,data:p};e===null?e=[d]:e.push(d),t++}}}else{const p={instancePath:s+"/dataLabels",schemaPath:"#/$defs/ChartDataLabels/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ft.type,parentSchema:ft,data:i};e===null?e=[p]:e.push(p),t++}var o=l===t;if(o&&c?(c=!1,y=[y,1]):o&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const p={instancePath:s+"/dataLabels",schemaPath:"#/properties/dataLabels/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:pt.properties.dataLabels.oneOf,parentSchema:pt.properties.dataLabels,data:i};e===null?e=[p]:e.push(p),t++}}if(a.alt!==void 0){let i=a.alt;if(typeof i!="string"){const h={instancePath:s+"/alt",schemaPath:"#/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pt.properties.alt.type,parentSchema:pt.properties.alt,data:i};e===null?e=[h]:e.push(h),t++}}if(a.colors!==void 0){let i=a.colors;if(Array.isArray(i)){if(i.length>24){const c={instancePath:s+"/colors",schemaPath:"#/properties/colors/maxItems",keyword:"maxItems",params:{limit:24},message:"must NOT have more than 24 items",schema:24,parentSchema:pt.properties.colors,data:i};e===null?e=[c]:e.push(c),t++}if(i.length<1){const c={instancePath:s+"/colors",schemaPath:"#/properties/colors/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:pt.properties.colors,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++)Ve(i[c],{instancePath:s+"/colors/"+c,parentData:i,parentDataProperty:c,rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)}else{const h={instancePath:s+"/colors",schemaPath:"#/properties/colors/type",keyword:"type",params:{type:"array"},message:"must be array",schema:pt.properties.colors.type,parentSchema:pt.properties.colors,data:i};e===null?e=[h]:e.push(h),t++}}if(a.highlight!==void 0){let i=a.highlight;if(i&&typeof i=="object"&&!Array.isArray(i)){if(Object.keys(i).length<1){const h={instancePath:s+"/highlight",schemaPath:"#/$defs/ChartHighlight/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:la,data:i};e===null?e=[h]:e.push(h),t++}for(const h in i)if(!(h==="series"||h==="categories")){const c={instancePath:s+"/highlight",schemaPath:"#/$defs/ChartHighlight/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:la,data:i};e===null?e=[c]:e.push(c),t++}if(i.series!==void 0){let h=i.series;if(Array.isArray(h)){if(h.length<1){const l={instancePath:s+"/highlight/series",schemaPath:"#/$defs/ChartHighlight/properties/series/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:la.properties.series,data:h};e===null?e=[l]:e.push(l),t++}const c=h.length;for(let l=0;l<c;l++){let p=h[l];if(typeof p!="string"){const d={instancePath:s+"/highlight/series/"+l,schemaPath:"#/$defs/ChartHighlight/properties/series/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:la.properties.series.items.type,parentSchema:la.properties.series.items,data:p};e===null?e=[d]:e.push(d),t++}}let y=h.length,g;if(y>1){const l={};for(;y--;){let p=h[y];if(typeof p=="string"){if(typeof l[p]=="number"){g=l[p];const d={instancePath:s+"/highlight/series",schemaPath:"#/$defs/ChartHighlight/properties/series/uniqueItems",keyword:"uniqueItems",params:{i:y,j:g},message:"must NOT have duplicate items (items ## "+g+" and "+y+" are identical)",schema:!0,parentSchema:la.properties.series,data:h};e===null?e=[d]:e.push(d),t++;break}l[p]=y}}}}else{const c={instancePath:s+"/highlight/series",schemaPath:"#/$defs/ChartHighlight/properties/series/type",keyword:"type",params:{type:"array"},message:"must be array",schema:la.properties.series.type,parentSchema:la.properties.series,data:h};e===null?e=[c]:e.push(c),t++}}if(i.categories!==void 0){let h=i.categories;if(Array.isArray(h)){if(h.length<1){const l={instancePath:s+"/highlight/categories",schemaPath:"#/$defs/ChartHighlight/properties/categories/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:la.properties.categories,data:h};e===null?e=[l]:e.push(l),t++}const c=h.length;for(let l=0;l<c;l++){let p=h[l];if(typeof p!="string"){const d={instancePath:s+"/highlight/categories/"+l,schemaPath:"#/$defs/ChartHighlight/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:la.properties.categories.items.type,parentSchema:la.properties.categories.items,data:p};e===null?e=[d]:e.push(d),t++}}let y=h.length,g;if(y>1){const l={};for(;y--;){let p=h[y];if(typeof p=="string"){if(typeof l[p]=="number"){g=l[p];const d={instancePath:s+"/highlight/categories",schemaPath:"#/$defs/ChartHighlight/properties/categories/uniqueItems",keyword:"uniqueItems",params:{i:y,j:g},message:"must NOT have duplicate items (items ## "+g+" and "+y+" are identical)",schema:!0,parentSchema:la.properties.categories,data:h};e===null?e=[d]:e.push(d),t++;break}l[p]=y}}}}else{const c={instancePath:s+"/highlight/categories",schemaPath:"#/$defs/ChartHighlight/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array",schema:la.properties.categories.type,parentSchema:la.properties.categories,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/highlight",schemaPath:"#/$defs/ChartHighlight/type",keyword:"type",params:{type:"object"},message:"must be object",schema:la.type,parentSchema:la,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:pt.type,parentSchema:pt,data:a};e===null?e=[i]:e.push(i),t++}return ps.errors=e,t===0}ps.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Pt=j.presentation.$defs.Table,rt=j.presentation.$defs.StyledTableCell,Rt=j.presentation.$defs.TableCellValue;function Qt(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qt.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const g={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rt.oneOf[0].type,parentSchema:Rt.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,o=0);const h=t;if(typeof a!="number"){const g={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Rt.oneOf[1].type,parentSchema:Rt.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}var c=h===t;if(c&&n)n=!1,o=[o,1];else{c&&(n=!0,o=1);const g=t;if(typeof a!="boolean"){const p={instancePath:s,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Rt.oneOf[2].type,parentSchema:Rt.oneOf[2],data:a};e===null?e=[p]:e.push(p),t++}var c=g===t;if(c&&n)n=!1,o=[o,2];else{c&&(n=!0,o=2);const p=t;if(a!==null){const O={instancePath:s,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"null"},message:"must be null",schema:Rt.oneOf[3].type,parentSchema:Rt.oneOf[3],data:a};e===null?e=[O]:e.push(O),t++}var c=p===t;if(c&&n)n=!1,o=[o,3];else{c&&(n=!0,o=3);const O=t;if(Array.isArray(a)){const I=a.length;for(let A=0;A<I;A++)J(a[A],{instancePath:s+"/"+A,parentData:a,parentDataProperty:A,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const I={instancePath:s,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Rt.oneOf[4].type,parentSchema:Rt.oneOf[4],data:a};e===null?e=[I]:e.push(I),t++}var c=O===t;if(c&&n)n=!1,o=[o,4];else if(c){n=!0,o=4;var y=!0}}}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:Rt.oneOf,parentSchema:Rt,data:a};e===null?e=[g]:e.push(g),t++}return Qt.errors=e,m.items=y,t===0}Qt.evaluated={dynamicProps:!1,dynamicItems:!0};var sa=j.presentation.$defs.TableCellStyle,Gt=j.presentation.$defs.TableCellPadding,da=j.presentation.$defs.TableCellBorder;function Oa(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Oa.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.color===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:da.required,parentSchema:da,data:a};e===null?e=[r]:e.push(r),t++}if(a.width===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"width"},message:"must have required property 'width'",schema:da.required,parentSchema:da,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="color"||r==="width"||r==="dash")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:da,data:a};e===null?e=[n]:e.push(n),t++}if(a.color!==void 0&&(Ve(a.color,{instancePath:s+"/color",parentData:a,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)),a.width!==void 0){let r=a.width;if(typeof r=="number"){if(r>32||isNaN(r)){const n={instancePath:s+"/width",schemaPath:"#/properties/width/maximum",keyword:"maximum",params:{comparison:"<=",limit:32},message:"must be <= 32",schema:32,parentSchema:da.properties.width,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:da.properties.width,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"number"},message:"must be number",schema:da.properties.width.type,parentSchema:da.properties.width,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dash!==void 0){let r=a.dash;if(typeof r!="string"){const n={instancePath:s+"/dash",schemaPath:"#/properties/dash/type",keyword:"type",params:{type:"string"},message:"must be string",schema:da.properties.dash.type,parentSchema:da.properties.dash,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="solid"||r==="dash"||r==="dot")){const n={instancePath:s+"/dash",schemaPath:"#/properties/dash/enum",keyword:"enum",params:{allowedValues:da.properties.dash.enum},message:"must be equal to one of the allowed values",schema:da.properties.dash.enum,parentSchema:da.properties.dash,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:da.type,parentSchema:da,data:a};e===null?e=[r]:e.push(r),t++}return Oa.errors=e,t===0}Oa.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function wa(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wa.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!(r==="fill"||r==="color"||r==="bold"||r==="align"||r==="verticalAlign"||r==="padding"||r==="borders")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:sa,data:a};e===null?e=[n]:e.push(n),t++}if(a.fill!==void 0&&(Ve(a.fill,{instancePath:s+"/fill",parentData:a,parentDataProperty:"fill",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)),a.color!==void 0&&(Ve(a.color,{instancePath:s+"/color",parentData:a,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)),a.bold!==void 0){let r=a.bold;if(typeof r!="boolean"){const n={instancePath:s+"/bold",schemaPath:"#/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:sa.properties.bold.type,parentSchema:sa.properties.bold,data:r};e===null?e=[n]:e.push(n),t++}}if(a.align!==void 0){let r=a.align;if(typeof r!="string"){const n={instancePath:s+"/align",schemaPath:"#/properties/align/type",keyword:"type",params:{type:"string"},message:"must be string",schema:sa.properties.align.type,parentSchema:sa.properties.align,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="left"||r==="center"||r==="right")){const n={instancePath:s+"/align",schemaPath:"#/properties/align/enum",keyword:"enum",params:{allowedValues:sa.properties.align.enum},message:"must be equal to one of the allowed values",schema:sa.properties.align.enum,parentSchema:sa.properties.align,data:r};e===null?e=[n]:e.push(n),t++}}if(a.verticalAlign!==void 0){let r=a.verticalAlign;if(typeof r!="string"){const n={instancePath:s+"/verticalAlign",schemaPath:"#/properties/verticalAlign/type",keyword:"type",params:{type:"string"},message:"must be string",schema:sa.properties.verticalAlign.type,parentSchema:sa.properties.verticalAlign,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="top"||r==="middle"||r==="bottom")){const n={instancePath:s+"/verticalAlign",schemaPath:"#/properties/verticalAlign/enum",keyword:"enum",params:{allowedValues:sa.properties.verticalAlign.enum},message:"must be equal to one of the allowed values",schema:sa.properties.verticalAlign.enum,parentSchema:sa.properties.verticalAlign,data:r};e===null?e=[n]:e.push(n),t++}}if(a.padding!==void 0){let r=a.padding;if(r&&typeof r=="object"&&!Array.isArray(r)){for(const n in r)if(!(n==="top"||n==="right"||n==="bottom"||n==="left")){const o={instancePath:s+"/padding",schemaPath:"#/$defs/TableCellPadding/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Gt,data:r};e===null?e=[o]:e.push(o),t++}if(r.top!==void 0){let n=r.top;if(typeof n=="number"){if(n>200||isNaN(n)){const o={instancePath:s+"/padding/top",schemaPath:"#/$defs/TableCellPadding/properties/top/maximum",keyword:"maximum",params:{comparison:"<=",limit:200},message:"must be <= 200",schema:200,parentSchema:Gt.properties.top,data:n};e===null?e=[o]:e.push(o),t++}if(n<0||isNaN(n)){const o={instancePath:s+"/padding/top",schemaPath:"#/$defs/TableCellPadding/properties/top/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Gt.properties.top,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/padding/top",schemaPath:"#/$defs/TableCellPadding/properties/top/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Gt.properties.top.type,parentSchema:Gt.properties.top,data:n};e===null?e=[o]:e.push(o),t++}}if(r.right!==void 0){let n=r.right;if(typeof n=="number"){if(n>200||isNaN(n)){const o={instancePath:s+"/padding/right",schemaPath:"#/$defs/TableCellPadding/properties/right/maximum",keyword:"maximum",params:{comparison:"<=",limit:200},message:"must be <= 200",schema:200,parentSchema:Gt.properties.right,data:n};e===null?e=[o]:e.push(o),t++}if(n<0||isNaN(n)){const o={instancePath:s+"/padding/right",schemaPath:"#/$defs/TableCellPadding/properties/right/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Gt.properties.right,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/padding/right",schemaPath:"#/$defs/TableCellPadding/properties/right/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Gt.properties.right.type,parentSchema:Gt.properties.right,data:n};e===null?e=[o]:e.push(o),t++}}if(r.bottom!==void 0){let n=r.bottom;if(typeof n=="number"){if(n>200||isNaN(n)){const o={instancePath:s+"/padding/bottom",schemaPath:"#/$defs/TableCellPadding/properties/bottom/maximum",keyword:"maximum",params:{comparison:"<=",limit:200},message:"must be <= 200",schema:200,parentSchema:Gt.properties.bottom,data:n};e===null?e=[o]:e.push(o),t++}if(n<0||isNaN(n)){const o={instancePath:s+"/padding/bottom",schemaPath:"#/$defs/TableCellPadding/properties/bottom/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Gt.properties.bottom,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/padding/bottom",schemaPath:"#/$defs/TableCellPadding/properties/bottom/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Gt.properties.bottom.type,parentSchema:Gt.properties.bottom,data:n};e===null?e=[o]:e.push(o),t++}}if(r.left!==void 0){let n=r.left;if(typeof n=="number"){if(n>200||isNaN(n)){const o={instancePath:s+"/padding/left",schemaPath:"#/$defs/TableCellPadding/properties/left/maximum",keyword:"maximum",params:{comparison:"<=",limit:200},message:"must be <= 200",schema:200,parentSchema:Gt.properties.left,data:n};e===null?e=[o]:e.push(o),t++}if(n<0||isNaN(n)){const o={instancePath:s+"/padding/left",schemaPath:"#/$defs/TableCellPadding/properties/left/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Gt.properties.left,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/padding/left",schemaPath:"#/$defs/TableCellPadding/properties/left/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Gt.properties.left.type,parentSchema:Gt.properties.left,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/padding",schemaPath:"#/$defs/TableCellPadding/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Gt.type,parentSchema:Gt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.borders!==void 0){let r=a.borders;if(r&&typeof r=="object"&&!Array.isArray(r)){for(const n in r)if(!(n==="top"||n==="right"||n==="bottom"||n==="left")){const o={instancePath:s+"/borders",schemaPath:"#/properties/borders/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:sa.properties.borders,data:r};e===null?e=[o]:e.push(o),t++}r.top!==void 0&&(Oa(r.top,{instancePath:s+"/borders/top",parentData:r,parentDataProperty:"top",rootData:v,dynamicAnchors:b})||(e=e===null?Oa.errors:e.concat(Oa.errors),t=e.length)),r.right!==void 0&&(Oa(r.right,{instancePath:s+"/borders/right",parentData:r,parentDataProperty:"right",rootData:v,dynamicAnchors:b})||(e=e===null?Oa.errors:e.concat(Oa.errors),t=e.length)),r.bottom!==void 0&&(Oa(r.bottom,{instancePath:s+"/borders/bottom",parentData:r,parentDataProperty:"bottom",rootData:v,dynamicAnchors:b})||(e=e===null?Oa.errors:e.concat(Oa.errors),t=e.length)),r.left!==void 0&&(Oa(r.left,{instancePath:s+"/borders/left",parentData:r,parentDataProperty:"left",rootData:v,dynamicAnchors:b})||(e=e===null?Oa.errors:e.concat(Oa.errors),t=e.length))}else{const n={instancePath:s+"/borders",schemaPath:"#/properties/borders/type",keyword:"type",params:{type:"object"},message:"must be object",schema:sa.properties.borders.type,parentSchema:sa.properties.borders,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:sa.type,parentSchema:sa,data:a};e===null?e=[r]:e.push(r),t++}return wa.errors=e,t===0}wa.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function is(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=is.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:rt.required,parentSchema:rt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="value"||r==="style"||r==="colSpan"||r==="rowSpan"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:rt,data:a};e===null?e=[n]:e.push(n),t++}if(a.value!==void 0&&(Qt(a.value,{instancePath:s+"/value",parentData:a,parentDataProperty:"value",rootData:v,dynamicAnchors:b})||(e=e===null?Qt.errors:e.concat(Qt.errors),t=e.length)),a.style!==void 0&&(wa(a.style,{instancePath:s+"/style",parentData:a,parentDataProperty:"style",rootData:v,dynamicAnchors:b})||(e=e===null?wa.errors:e.concat(wa.errors),t=e.length)),a.colSpan!==void 0){let r=a.colSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:rt.properties.colSpan.type,parentSchema:rt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:rt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.rowSpan!==void 0){let r=a.rowSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:rt.properties.rowSpan.type,parentSchema:rt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:rt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:rt.type,parentSchema:rt,data:a};e===null?e=[r]:e.push(r),t++}return is.errors=e,t===0}is.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var xh=j.presentation.$defs.TableCell;function Ks(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ks.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(!Qt(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b}))e=e===null?Qt.errors:e.concat(Qt.errors),t=e.length;else var h=Qt.evaluated.items;var y=i===t;y&&(n=!0,o=0);const c=t;is(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?is.errors:e.concat(is.errors),t=e.length);var y=c===t;if(y&&n)n=!1,o=[o,1];else if(y){n=!0,o=1;var g=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const l={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:xh.oneOf,parentSchema:xh,data:a};e===null?e=[l]:e.push(l),t++}return Ks.errors=e,m.props=g,m.items=h,t===0}Ks.evaluated={dynamicProps:!0,dynamicItems:!0};function ms(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ms.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!0;const o=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.dataset===void 0){const l={};e===null?e=[l]:e.push(l),t++}var i=o===t;t=r,e!==null&&(r?e.length=r:e=null);let h;if(i){const l=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.rows!==void 0){const d={instancePath:s+"/rows",schemaPath:"#/then/properties/rows/false schema",keyword:"false schema",params:{},message:"boolean schema is false",schema:!1,parentSchema:Pt.then.properties.rows,data:a.rows};e===null?e=[d]:e.push(d),t++}if(a.columns!==void 0){const d={instancePath:s+"/columns",schemaPath:"#/then/properties/columns/false schema",keyword:"false schema",params:{},message:"boolean schema is false",schema:!1,parentSchema:Pt.then.properties.columns,data:a.columns};e===null?e=[d]:e.push(d),t++}}var i=l===t;if(n=i,n){var c={};c.rows=!0,c.columns=!0}h="then"}else{const l=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.rows===void 0){const d={instancePath:s,schemaPath:"#/else/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'",schema:Pt.else.required,parentSchema:Pt.else,data:a};e===null?e=[d]:e.push(d),t++}if(a.fields!==void 0){const d={instancePath:s+"/fields",schemaPath:"#/else/properties/fields/false schema",keyword:"false schema",params:{},message:"boolean schema is false",schema:!1,parentSchema:Pt.else.properties.fields,data:a.fields};e===null?e=[d]:e.push(d),t++}}var i=l===t;n=i,n&&c!==!0&&(c=c||{},c.fields=!0),h="else"}if(!n){const l={instancePath:s,schemaPath:"#/if",keyword:"if",params:{failingKeyword:h},message:'must match "'+h+'" schema',schema:Pt.if,parentSchema:Pt,data:a};e===null?e=[l]:e.push(l),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){for(const l in a)if(!(l==="columns"||l==="rows"||l==="dataset"||l==="fields"||l==="alt"||l==="highlight")){const p={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:Pt,data:a};e===null?e=[p]:e.push(p),t++}if(a.columns!==void 0){let l=a.columns;if(Array.isArray(l)){const p=l.length;for(let d=0;d<p;d++){let O=l[d];const S=t;let I=!1,A=null;const f=t;if(typeof O!="string"){const w={instancePath:s+"/columns/"+d,schemaPath:"#/properties/columns/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pt.properties.columns.items.oneOf[0].type,parentSchema:Pt.properties.columns.items.oneOf[0],data:O};e===null?e=[w]:e.push(w),t++}var y=f===t;y&&(I=!0,A=0);const P=t;if(Array.isArray(O)){const w=O.length;for(let $=0;$<w;$++)J(O[$],{instancePath:s+"/columns/"+d+"/"+$,parentData:O,parentDataProperty:$,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const w={instancePath:s+"/columns/"+d,schemaPath:"#/properties/columns/items/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pt.properties.columns.items.oneOf[1].type,parentSchema:Pt.properties.columns.items.oneOf[1],data:O};e===null?e=[w]:e.push(w),t++}var y=P===t;if(y&&I)I=!1,A=[A,1];else{y&&(I=!0,A=1);const w=t;is(O,{instancePath:s+"/columns/"+d,parentData:l,parentDataProperty:d,rootData:v,dynamicAnchors:b})||(e=e===null?is.errors:e.concat(is.errors),t=e.length);var y=w===t;if(y&&I)I=!1,A=[A,2];else{if(y){I=!0,A=2;var g=!0}const F=t;aa(O,{instancePath:s+"/columns/"+d,parentData:l,parentDataProperty:d,rootData:v,dynamicAnchors:b})||(e=e===null?aa.errors:e.concat(aa.errors),t=e.length);var y=F===t;if(y&&I)I=!1,A=[A,3];else{y&&(I=!0,A=3,g!==!0&&(g=!0));const L=t;if(O!==null){const H={instancePath:s+"/columns/"+d,schemaPath:"#/properties/columns/items/oneOf/4/type",keyword:"type",params:{type:"null"},message:"must be null",schema:Pt.properties.columns.items.oneOf[4].type,parentSchema:Pt.properties.columns.items.oneOf[4],data:O};e===null?e=[H]:e.push(H),t++}var y=L===t;y&&I?(I=!1,A=[A,4]):y&&(I=!0,A=4)}}}if(I)t=S,e!==null&&(S?e.length=S:e=null);else{const w={instancePath:s+"/columns/"+d,schemaPath:"#/properties/columns/items/oneOf",keyword:"oneOf",params:{passingSchemas:A},message:"must match exactly one schema in oneOf",schema:Pt.properties.columns.items.oneOf,parentSchema:Pt.properties.columns.items,data:O};e===null?e=[w]:e.push(w),t++}}}else{const p={instancePath:s+"/columns",schemaPath:"#/properties/columns/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pt.properties.columns.type,parentSchema:Pt.properties.columns,data:l};e===null?e=[p]:e.push(p),t++}}if(a.rows!==void 0){let l=a.rows;if(Array.isArray(l)){const p=l.length;for(let d=0;d<p;d++){let O=l[d];if(Array.isArray(O)){const S=O.length;for(let I=0;I<S;I++)Ks(O[I],{instancePath:s+"/rows/"+d+"/"+I,parentData:O,parentDataProperty:I,rootData:v,dynamicAnchors:b})||(e=e===null?Ks.errors:e.concat(Ks.errors),t=e.length)}else{const S={instancePath:s+"/rows/"+d,schemaPath:"#/properties/rows/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pt.properties.rows.items.type,parentSchema:Pt.properties.rows.items,data:O};e===null?e=[S]:e.push(S),t++}}}else{const p={instancePath:s+"/rows",schemaPath:"#/properties/rows/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pt.properties.rows.type,parentSchema:Pt.properties.rows,data:l};e===null?e=[p]:e.push(p),t++}}if(a.dataset!==void 0){let l=a.dataset;if(typeof l=="string"){if(!Xs.test(l)){const p={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$"},message:'must match pattern "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"',schema:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$",parentSchema:za,data:l};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:za.type,parentSchema:za,data:l};e===null?e=[p]:e.push(p),t++}}if(a.fields!==void 0){let l=a.fields;if(Array.isArray(l)){if(l.length<1){const S={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Lt,data:l};e===null?e=[S]:e.push(S),t++}const p=l.length;for(let S=0;S<p;S++){let I=l[S];if(typeof I!="string"){const A={instancePath:s+"/fields/"+S,schemaPath:"#/$defs/DatasetFields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Lt.items.type,parentSchema:Lt.items,data:I};e===null?e=[A]:e.push(A),t++}}let d=l.length,O;if(d>1){const S={};for(;d--;){let I=l[d];if(typeof I=="string"){if(typeof S[I]=="number"){O=S[I];const A={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/uniqueItems",keyword:"uniqueItems",params:{i:d,j:O},message:"must NOT have duplicate items (items ## "+O+" and "+d+" are identical)",schema:!0,parentSchema:Lt,data:l};e===null?e=[A]:e.push(A),t++;break}S[I]=d}}}}else{const p={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Lt.type,parentSchema:Lt,data:l};e===null?e=[p]:e.push(p),t++}}if(a.alt!==void 0){let l=a.alt;if(typeof l!="string"){const p={instancePath:s+"/alt",schemaPath:"#/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pt.properties.alt.type,parentSchema:Pt.properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(a.highlight!==void 0){let l=a.highlight;if(l&&typeof l=="object"&&!Array.isArray(l)){if(l.rows===void 0){const p={instancePath:s+"/highlight",schemaPath:"#/properties/highlight/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'",schema:Pt.properties.highlight.required,parentSchema:Pt.properties.highlight,data:l};e===null?e=[p]:e.push(p),t++}for(const p in l)if(p!=="rows"){const d={instancePath:s+"/highlight",schemaPath:"#/properties/highlight/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:Pt.properties.highlight,data:l};e===null?e=[d]:e.push(d),t++}if(l.rows!==void 0){let p=l.rows;if(Array.isArray(p)){const d=p.length;for(let O=0;O<d;O++){let S=p[O];if(typeof S!="string"){const I={instancePath:s+"/highlight/rows/"+O,schemaPath:"#/properties/highlight/properties/rows/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pt.properties.highlight.properties.rows.items.type,parentSchema:Pt.properties.highlight.properties.rows.items,data:S};e===null?e=[I]:e.push(I),t++}}}else{const d={instancePath:s+"/highlight/rows",schemaPath:"#/properties/highlight/properties/rows/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pt.properties.highlight.properties.rows.type,parentSchema:Pt.properties.highlight.properties.rows,data:p};e===null?e=[d]:e.push(d),t++}}}else{const p={instancePath:s+"/highlight",schemaPath:"#/properties/highlight/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Pt.properties.highlight.type,parentSchema:Pt.properties.highlight,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Pt.type,parentSchema:Pt,data:a};e===null?e=[l]:e.push(l),t++}return ms.errors=e,t===0}ms.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ee=j.presentation.$defs.Quote;function cs(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=cs.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:Ee.required,parentSchema:Ee,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="text"||o==="attribution"||o==="role"||o==="photo"||o==="source")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:Ee,data:a};e===null?e=[i]:e.push(i),t++}if(a.text!==void 0){let o=a.text;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.text.oneOf[0].type,parentSchema:Ee.properties.text.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(o)){const l=o.length;for(let p=0;p<l;p++)J(o[p],{instancePath:s+"/text/"+p,parentData:o,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ee.properties.text.oneOf[1].type,parentSchema:Ee.properties.text.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Ee.properties.text.oneOf,parentSchema:Ee.properties.text,data:o};e===null?e=[l]:e.push(l),t++}}if(a.attribution!==void 0){let o=a.attribution;if(typeof o!="string"){const i={instancePath:s+"/attribution",schemaPath:"#/properties/attribution/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.attribution.type,parentSchema:Ee.properties.attribution,data:o};e===null?e=[i]:e.push(i),t++}}if(a.role!==void 0){let o=a.role;if(typeof o!="string"){const i={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.role.type,parentSchema:Ee.properties.role,data:o};e===null?e=[i]:e.push(i),t++}}if(a.photo!==void 0){let o=a.photo;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/photo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/photo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/photo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/photo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/photo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}if(a.source!==void 0){let o=a.source;if(typeof o!="string"){const i={instancePath:s+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.source.type,parentSchema:Ee.properties.source,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ee.type,parentSchema:Ee,data:a};e===null?e=[o]:e.push(o),t++}return cs.errors=e,t===0}cs.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ma=j.presentation.$defs.Timeline,qe=j.presentation.$defs.TimelineEvent;function hs(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hs.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(Array.isArray(a)){if(a.length<1){const p={instancePath:s,schemaPath:"#/oneOf/0/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ma.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}const l=a.length;for(let p=0;p<l;p++){let d=a[p];if(d&&typeof d=="object"&&!Array.isArray(d)){if(d.what===void 0){const O={instancePath:s+"/"+p,schemaPath:"#/$defs/TimelineEvent/required",keyword:"required",params:{missingProperty:"what"},message:"must have required property 'what'",schema:qe.required,parentSchema:qe,data:d};e===null?e=[O]:e.push(O),t++}for(const O in d)if(!(O==="when"||O==="what"||O==="description"||O==="status")){const S={instancePath:s+"/"+p,schemaPath:"#/$defs/TimelineEvent/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties",schema:!1,parentSchema:qe,data:d};e===null?e=[S]:e.push(S),t++}if(d.when!==void 0){let O=d.when;if(typeof O!="string"){const S={instancePath:s+"/"+p+"/when",schemaPath:"#/$defs/TimelineEvent/properties/when/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.when.type,parentSchema:qe.properties.when,data:O};e===null?e=[S]:e.push(S),t++}}if(d.what!==void 0){let O=d.what;if(typeof O!="string"){const S={instancePath:s+"/"+p+"/what",schemaPath:"#/$defs/TimelineEvent/properties/what/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.what.type,parentSchema:qe.properties.what,data:O};e===null?e=[S]:e.push(S),t++}}if(d.description!==void 0){let O=d.description;if(typeof O!="string"){const S={instancePath:s+"/"+p+"/description",schemaPath:"#/$defs/TimelineEvent/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.description.type,parentSchema:qe.properties.description,data:O};e===null?e=[S]:e.push(S),t++}}if(d.status!==void 0){let O=d.status;if(typeof O!="string"){const S={instancePath:s+"/"+p+"/status",schemaPath:"#/$defs/TimelineEvent/properties/status/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.status.type,parentSchema:qe.properties.status,data:O};e===null?e=[S]:e.push(S),t++}if(!(O==="done"||O==="current"||O==="planned")){const S={instancePath:s+"/"+p+"/status",schemaPath:"#/$defs/TimelineEvent/properties/status/enum",keyword:"enum",params:{allowedValues:qe.properties.status.enum},message:"must be equal to one of the allowed values",schema:qe.properties.status.enum,parentSchema:qe.properties.status,data:O};e===null?e=[S]:e.push(S),t++}}}else{const O={instancePath:s+"/"+p,schemaPath:"#/$defs/TimelineEvent/type",keyword:"type",params:{type:"object"},message:"must be object",schema:qe.type,parentSchema:qe,data:d};e===null?e=[O]:e.push(O),t++}}}else{const l={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ma.oneOf[0].type,parentSchema:ma.oneOf[0],data:a};e===null?e=[l]:e.push(l),t++}var y=i===t;if(y){n=!0,o=0;var h=!0}const c=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.events===void 0){const l={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"events"},message:"must have required property 'events'",schema:ma.oneOf[1].required,parentSchema:ma.oneOf[1],data:a};e===null?e=[l]:e.push(l),t++}for(const l in a)if(!(l==="name"||l==="description"||l==="events")){const p={instancePath:s,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:ma.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.name!==void 0){let l=a.name;if(typeof l!="string"){const p={instancePath:s+"/name",schemaPath:"#/oneOf/1/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ma.oneOf[1].properties.name.type,parentSchema:ma.oneOf[1].properties.name,data:l};e===null?e=[p]:e.push(p),t++}}if(a.description!==void 0){let l=a.description;if(typeof l!="string"){const p={instancePath:s+"/description",schemaPath:"#/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ma.oneOf[1].properties.description.type,parentSchema:ma.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(a.events!==void 0){let l=a.events;if(Array.isArray(l)){if(l.length<1){const d={instancePath:s+"/events",schemaPath:"#/oneOf/1/properties/events/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ma.oneOf[1].properties.events,data:l};e===null?e=[d]:e.push(d),t++}const p=l.length;for(let d=0;d<p;d++){let O=l[d];if(O&&typeof O=="object"&&!Array.isArray(O)){if(O.what===void 0){const S={instancePath:s+"/events/"+d,schemaPath:"#/$defs/TimelineEvent/required",keyword:"required",params:{missingProperty:"what"},message:"must have required property 'what'",schema:qe.required,parentSchema:qe,data:O};e===null?e=[S]:e.push(S),t++}for(const S in O)if(!(S==="when"||S==="what"||S==="description"||S==="status")){const I={instancePath:s+"/events/"+d,schemaPath:"#/$defs/TimelineEvent/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties",schema:!1,parentSchema:qe,data:O};e===null?e=[I]:e.push(I),t++}if(O.when!==void 0){let S=O.when;if(typeof S!="string"){const I={instancePath:s+"/events/"+d+"/when",schemaPath:"#/$defs/TimelineEvent/properties/when/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.when.type,parentSchema:qe.properties.when,data:S};e===null?e=[I]:e.push(I),t++}}if(O.what!==void 0){let S=O.what;if(typeof S!="string"){const I={instancePath:s+"/events/"+d+"/what",schemaPath:"#/$defs/TimelineEvent/properties/what/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.what.type,parentSchema:qe.properties.what,data:S};e===null?e=[I]:e.push(I),t++}}if(O.description!==void 0){let S=O.description;if(typeof S!="string"){const I={instancePath:s+"/events/"+d+"/description",schemaPath:"#/$defs/TimelineEvent/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.description.type,parentSchema:qe.properties.description,data:S};e===null?e=[I]:e.push(I),t++}}if(O.status!==void 0){let S=O.status;if(typeof S!="string"){const I={instancePath:s+"/events/"+d+"/status",schemaPath:"#/$defs/TimelineEvent/properties/status/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.status.type,parentSchema:qe.properties.status,data:S};e===null?e=[I]:e.push(I),t++}if(!(S==="done"||S==="current"||S==="planned")){const I={instancePath:s+"/events/"+d+"/status",schemaPath:"#/$defs/TimelineEvent/properties/status/enum",keyword:"enum",params:{allowedValues:qe.properties.status.enum},message:"must be equal to one of the allowed values",schema:qe.properties.status.enum,parentSchema:qe.properties.status,data:S};e===null?e=[I]:e.push(I),t++}}}else{const S={instancePath:s+"/events/"+d,schemaPath:"#/$defs/TimelineEvent/type",keyword:"type",params:{type:"object"},message:"must be object",schema:qe.type,parentSchema:qe,data:O};e===null?e=[S]:e.push(S),t++}}}else{const p={instancePath:s+"/events",schemaPath:"#/oneOf/1/properties/events/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ma.oneOf[1].properties.events.type,parentSchema:ma.oneOf[1].properties.events,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ma.oneOf[1].type,parentSchema:ma.oneOf[1],data:a};e===null?e=[l]:e.push(l),t++}var y=c===t;if(y&&n)n=!1,o=[o,1];else if(y){n=!0,o=1;var g=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const l={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:ma.oneOf,parentSchema:ma,data:a};e===null?e=[l]:e.push(l),t++}return hs.errors=e,m.props=g,m.items=h,t===0}hs.evaluated={dynamicProps:!0,dynamicItems:!0};var qt=j.presentation.$defs.Caption;function ls(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ls.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qt.oneOf[0].type,parentSchema:qt.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var c=i===t;c&&(n=!0,o=0);const h=t;if(Array.isArray(a)){const p=a.length;for(let d=0;d<p;d++)J(a[d],{instancePath:s+"/"+d,parentData:a,parentDataProperty:d,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:qt.oneOf[1].type,parentSchema:qt.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var c=h===t;if(c&&n)n=!1,o=[o,1];else{if(c){n=!0,o=1;var y=!0}const p=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const O={instancePath:s,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:qt.oneOf[2].required,parentSchema:qt.oneOf[2],data:a};e===null?e=[O]:e.push(O),t++}for(const O in a)if(!(O==="text"||O==="position"||O==="align")){const S={instancePath:s,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties",schema:!1,parentSchema:qt.oneOf[2],data:a};e===null?e=[S]:e.push(S),t++}if(a.text!==void 0){let O=a.text;const S=t;let I=!1,A=null;const f=t;if(typeof O!="string"){const w={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qt.oneOf[2].properties.text.oneOf[0].type,parentSchema:qt.oneOf[2].properties.text.oneOf[0],data:O};e===null?e=[w]:e.push(w),t++}var g=f===t;g&&(I=!0,A=0);const P=t;if(Array.isArray(O)){const w=O.length;for(let $=0;$<w;$++)J(O[$],{instancePath:s+"/text/"+$,parentData:O,parentDataProperty:$,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const w={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:qt.oneOf[2].properties.text.oneOf[1].type,parentSchema:qt.oneOf[2].properties.text.oneOf[1],data:O};e===null?e=[w]:e.push(w),t++}var g=P===t;if(g&&I?(I=!1,A=[A,1]):g&&(I=!0,A=1),I)t=S,e!==null&&(S?e.length=S:e=null);else{const w={instancePath:s+"/text",schemaPath:"#/oneOf/2/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:A},message:"must match exactly one schema in oneOf",schema:qt.oneOf[2].properties.text.oneOf,parentSchema:qt.oneOf[2].properties.text,data:O};e===null?e=[w]:e.push(w),t++}}if(a.position!==void 0){let O=a.position;if(typeof O!="string"){const S={instancePath:s+"/position",schemaPath:"#/oneOf/2/properties/position/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qt.oneOf[2].properties.position.type,parentSchema:qt.oneOf[2].properties.position,data:O};e===null?e=[S]:e.push(S),t++}if(!(O==="below"||O==="above")){const S={instancePath:s+"/position",schemaPath:"#/oneOf/2/properties/position/enum",keyword:"enum",params:{allowedValues:qt.oneOf[2].properties.position.enum},message:"must be equal to one of the allowed values",schema:qt.oneOf[2].properties.position.enum,parentSchema:qt.oneOf[2].properties.position,data:O};e===null?e=[S]:e.push(S),t++}}if(a.align!==void 0){let O=a.align;if(typeof O!="string"){const S={instancePath:s+"/align",schemaPath:"#/oneOf/2/properties/align/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qt.oneOf[2].properties.align.type,parentSchema:qt.oneOf[2].properties.align,data:O};e===null?e=[S]:e.push(S),t++}if(!(O==="left"||O==="center"||O==="right")){const S={instancePath:s+"/align",schemaPath:"#/oneOf/2/properties/align/enum",keyword:"enum",params:{allowedValues:qt.oneOf[2].properties.align.enum},message:"must be equal to one of the allowed values",schema:qt.oneOf[2].properties.align.enum,parentSchema:qt.oneOf[2].properties.align,data:O};e===null?e=[S]:e.push(S),t++}}}else{const O={instancePath:s,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object",schema:qt.oneOf[2].type,parentSchema:qt.oneOf[2],data:a};e===null?e=[O]:e.push(O),t++}var c=p===t;if(c&&n)n=!1,o=[o,2];else if(c){n=!0,o=2;var l=!0}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:qt.oneOf,parentSchema:qt,data:a};e===null?e=[p]:e.push(p),t++}return ls.errors=e,m.props=l,m.items=y,t===0}ls.evaluated={dynamicProps:!0,dynamicItems:!0};var Y=j.presentation.$defs.ContentPayload,ua=j.presentation.$defs.ImagePlacement,Va=j.presentation.$defs.ImageBorder;function Ys(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ys.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.color===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:Va.required,parentSchema:Va,data:a};e===null?e=[r]:e.push(r),t++}if(a.width===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"width"},message:"must have required property 'width'",schema:Va.required,parentSchema:Va,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="color"||r==="width")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Va,data:a};e===null?e=[n]:e.push(n),t++}if(a.color!==void 0&&(Ve(a.color,{instancePath:s+"/color",parentData:a,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)),a.width!==void 0){let r=a.width;if(typeof r=="number"){if(r>64||isNaN(r)){const n={instancePath:s+"/width",schemaPath:"#/properties/width/maximum",keyword:"maximum",params:{comparison:"<=",limit:64},message:"must be <= 64",schema:64,parentSchema:Va.properties.width,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Va.properties.width,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Va.properties.width.type,parentSchema:Va.properties.width,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Va.type,parentSchema:Va,data:a};e===null?e=[r]:e.push(r),t++}return Ys.errors=e,t===0}Ys.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var sh={validate:X};function X(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=X.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!0;const o=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const N={};e===null?e=[N]:e.push(N),t++}else if(a.type!==void 0&&a.type!=="list"){const N={};e===null?e=[N]:e.push(N),t++}}var i=o===t;if(t=r,e!==null&&(r?e.length=r:e=null),i){const N=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.items===void 0){const B={instancePath:s,schemaPath:"#/allOf/0/then/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'",schema:Y.allOf[0].then.required,parentSchema:Y.allOf[0].then,data:a};e===null?e=[B]:e.push(B),t++}var i=N===t;n=i}if(!n){const N={instancePath:s,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[0].if,parentSchema:Y.allOf[0],data:a};e===null?e=[N]:e.push(N),t++}const h=t;let c=!0;const y=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const N={};e===null?e=[N]:e.push(N),t++}else if(a.type!==void 0&&a.type!=="image"){const N={};e===null?e=[N]:e.push(N),t++}}var g=y===t;if(t=h,e!==null&&(h?e.length=h:e=null),g){const N=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.image===void 0){const B={instancePath:s,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty:"image"},message:"must have required property 'image'",schema:Y.allOf[1].then.required,parentSchema:Y.allOf[1].then,data:a};e===null?e=[B]:e.push(B),t++}var g=N===t;c=g}if(!c){const N={instancePath:s,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[1].if,parentSchema:Y.allOf[1],data:a};e===null?e=[N]:e.push(N),t++}const l=t;let p=!0;const d=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const N={};e===null?e=[N]:e.push(N),t++}else if(a.type!==void 0&&a.type!=="chart"){const N={};e===null?e=[N]:e.push(N),t++}}var O=d===t;if(t=l,e!==null&&(l?e.length=l:e=null),O){const N=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.chart===void 0){const B={instancePath:s,schemaPath:"#/allOf/2/then/required",keyword:"required",params:{missingProperty:"chart"},message:"must have required property 'chart'",schema:Y.allOf[2].then.required,parentSchema:Y.allOf[2].then,data:a};e===null?e=[B]:e.push(B),t++}var O=N===t;p=O}if(!p){const N={instancePath:s,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[2].if,parentSchema:Y.allOf[2],data:a};e===null?e=[N]:e.push(N),t++}const S=t;let I=!0;const A=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const N={};e===null?e=[N]:e.push(N),t++}else if(a.type!==void 0&&a.type!=="table"){const N={};e===null?e=[N]:e.push(N),t++}}var f=A===t;if(t=S,e!==null&&(S?e.length=S:e=null),f){const N=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.table===void 0){const B={instancePath:s,schemaPath:"#/allOf/3/then/required",keyword:"required",params:{missingProperty:"table"},message:"must have required property 'table'",schema:Y.allOf[3].then.required,parentSchema:Y.allOf[3].then,data:a};e===null?e=[B]:e.push(B),t++}var f=N===t;I=f}if(!I){const N={instancePath:s,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[3].if,parentSchema:Y.allOf[3],data:a};e===null?e=[N]:e.push(N),t++}const P=t;let w=!0;const $=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const N={};e===null?e=[N]:e.push(N),t++}else if(a.type!==void 0&&a.type!=="video"){const N={};e===null?e=[N]:e.push(N),t++}}var F=$===t;if(t=P,e!==null&&(P?e.length=P:e=null),F){const N=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.video===void 0){const B={instancePath:s,schemaPath:"#/allOf/4/then/required",keyword:"required",params:{missingProperty:"video"},message:"must have required property 'video'",schema:Y.allOf[4].then.required,parentSchema:Y.allOf[4].then,data:a};e===null?e=[B]:e.push(B),t++}var F=N===t;w=F}if(!w){const N={instancePath:s,schemaPath:"#/allOf/4/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[4].if,parentSchema:Y.allOf[4],data:a};e===null?e=[N]:e.push(N),t++}const z=t;let L=!0;const M=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const N={};e===null?e=[N]:e.push(N),t++}else if(a.type!==void 0&&a.type!=="code"){const N={};e===null?e=[N]:e.push(N),t++}}var H=M===t;if(t=z,e!==null&&(z?e.length=z:e=null),H){const N=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.code===void 0){const B={instancePath:s,schemaPath:"#/allOf/5/then/required",keyword:"required",params:{missingProperty:"code"},message:"must have required property 'code'",schema:Y.allOf[5].then.required,parentSchema:Y.allOf[5].then,data:a};e===null?e=[B]:e.push(B),t++}var H=N===t;L=H}if(!L){const N={instancePath:s,schemaPath:"#/allOf/5/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[5].if,parentSchema:Y.allOf[5],data:a};e===null?e=[N]:e.push(N),t++}const R=t;let C=!0;const T=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const N={};e===null?e=[N]:e.push(N),t++}else if(a.type!==void 0&&a.type!=="metric"){const N={};e===null?e=[N]:e.push(N),t++}}var U=T===t;if(t=R,e!==null&&(R?e.length=R:e=null),U){const N=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.metric===void 0){const B={instancePath:s,schemaPath:"#/allOf/6/then/required",keyword:"required",params:{missingProperty:"metric"},message:"must have required property 'metric'",schema:Y.allOf[6].then.required,parentSchema:Y.allOf[6].then,data:a};e===null?e=[B]:e.push(B),t++}var U=N===t;C=U}if(!C){const N={instancePath:s,schemaPath:"#/allOf/6/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[6].if,parentSchema:Y.allOf[6],data:a};e===null?e=[N]:e.push(N),t++}const ae=t;let te=!0;const G=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const N={};e===null?e=[N]:e.push(N),t++}else if(a.type!==void 0&&a.type!=="quote"){const N={};e===null?e=[N]:e.push(N),t++}}var Me=G===t;if(t=ae,e!==null&&(ae?e.length=ae:e=null),Me){const N=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.quote===void 0){const B={instancePath:s,schemaPath:"#/allOf/7/then/required",keyword:"required",params:{missingProperty:"quote"},message:"must have required property 'quote'",schema:Y.allOf[7].then.required,parentSchema:Y.allOf[7].then,data:a};e===null?e=[B]:e.push(B),t++}var Me=N===t;te=Me}if(!te){const N={instancePath:s,schemaPath:"#/allOf/7/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[7].if,parentSchema:Y.allOf[7],data:a};e===null?e=[N]:e.push(N),t++}const Ke=t;let Z=!0;const Id=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const N={};e===null?e=[N]:e.push(N),t++}else if(a.type!==void 0&&a.type!=="timeline"){const N={};e===null?e=[N]:e.push(N),t++}}var ct=Id===t;if(t=Ke,e!==null&&(Ke?e.length=Ke:e=null),ct){const N=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.timeline===void 0){const B={instancePath:s,schemaPath:"#/allOf/8/then/required",keyword:"required",params:{missingProperty:"timeline"},message:"must have required property 'timeline'",schema:Y.allOf[8].then.required,parentSchema:Y.allOf[8].then,data:a};e===null?e=[B]:e.push(B),t++}var ct=N===t;Z=ct}if(!Z){const N={instancePath:s,schemaPath:"#/allOf/8/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[8].if,parentSchema:Y.allOf[8],data:a};e===null?e=[N]:e.push(N),t++}const Ct=t;let wh=!0;const zd=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const N={};e===null?e=[N]:e.push(N),t++}else if(a.type!==void 0&&a.type!=="diagram"){const N={};e===null?e=[N]:e.push(N),t++}}var Bc=zd===t;if(t=Ct,e!==null&&(Ct?e.length=Ct:e=null),Bc){const N=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.diagram===void 0){const B={instancePath:s,schemaPath:"#/allOf/9/then/required",keyword:"required",params:{missingProperty:"diagram"},message:"must have required property 'diagram'",schema:Y.allOf[9].then.required,parentSchema:Y.allOf[9].then,data:a};e===null?e=[B]:e.push(B),t++}var Bc=N===t;wh=Bc}if(!wh){const N={instancePath:s,schemaPath:"#/allOf/9/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[9].if,parentSchema:Y.allOf[9],data:a};e===null?e=[N]:e.push(N),t++}const Hc=t;let Sh=!0;const jd=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const N={};e===null?e=[N]:e.push(N),t++}else if(a.type!==void 0&&a.type!=="group"){const N={};e===null?e=[N]:e.push(N),t++}}var _c=jd===t;if(t=Hc,e!==null&&(Hc?e.length=Hc:e=null),_c){const N=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.blocks===void 0){const B={instancePath:s,schemaPath:"#/allOf/10/then/required",keyword:"required",params:{missingProperty:"blocks"},message:"must have required property 'blocks'",schema:Y.allOf[10].then.required,parentSchema:Y.allOf[10].then,data:a};e===null?e=[B]:e.push(B),t++}var _c=N===t;Sh=_c}if(!Sh){const N={instancePath:s,schemaPath:"#/allOf/10/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[10].if,parentSchema:Y.allOf[10],data:a};e===null?e=[N]:e.push(N),t++}const Uc=t;let kh=!0;const Fd=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.composition===void 0){const N={};e===null?e=[N]:e.push(N),t++}var Ec=Fd===t;if(t=Uc,e!==null&&(Uc?e.length=Uc:e=null),Ec){const N=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.blocks===void 0){const B={instancePath:s,schemaPath:"#/allOf/11/then/required",keyword:"required",params:{missingProperty:"blocks"},message:"must have required property 'blocks'",schema:Y.allOf[11].then.required,parentSchema:Y.allOf[11].then,data:a};e===null?e=[B]:e.push(B),t++}var Ec=N===t;kh=Ec}if(!kh){const N={instancePath:s,schemaPath:"#/allOf/11/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[11].if,parentSchema:Y.allOf[11],data:a};e===null?e=[N]:e.push(N),t++}const Wc=t;let Xc=!0;const Td=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.blocks===void 0){const N={};e===null?e=[N]:e.push(N),t++}var Jc=Td===t;if(t=Wc,e!==null&&(Wc?e.length=Wc:e=null),Jc){const N=t,V=t,B=t,Oe=t;let Be=!1;const Nt=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.text===void 0){const Je={};e===null?e=[Je]:e.push(Je),t++}var Mt=Nt===t;Be=Be||Mt;const _=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.items===void 0){const Je={};e===null?e=[Je]:e.push(Je),t++}var Mt=_===t;Be=Be||Mt;const ye=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.bullets===void 0){const Je={};e===null?e=[Je]:e.push(Je),t++}var Mt=ye===t;Be=Be||Mt;const Se=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.image===void 0){const Je={};e===null?e=[Je]:e.push(Je),t++}var Mt=Se===t;Be=Be||Mt;const Ue=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.video===void 0){const Je={};e===null?e=[Je]:e.push(Je),t++}var Mt=Ue===t;Be=Be||Mt;const ia=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.chart===void 0){const Je={};e===null?e=[Je]:e.push(Je),t++}var Mt=ia===t;Be=Be||Mt;const Yt=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.table===void 0){const Je={};e===null?e=[Je]:e.push(Je),t++}var Mt=Yt===t;Be=Be||Mt;const Ca=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.code===void 0){const Je={};e===null?e=[Je]:e.push(Je),t++}var Mt=Ca===t;Be=Be||Mt;const ks=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.metric===void 0){const Je={};e===null?e=[Je]:e.push(Je),t++}var Mt=ks===t;Be=Be||Mt;const Et=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.quote===void 0){const Je={};e===null?e=[Je]:e.push(Je),t++}var Mt=Et===t;Be=Be||Mt;const Pa=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.timeline===void 0){const Je={};e===null?e=[Je]:e.push(Je),t++}var Mt=Pa===t;Be=Be||Mt;const Aa=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.diagram===void 0){const Je={};e===null?e=[Je]:e.push(Je),t++}var Mt=Aa===t;if(Be=Be||Mt,Be)t=Oe,e!==null&&(Oe?e.length=Oe:e=null);else{const Je={};e===null?e=[Je]:e.push(Je),t++}var Cd=B===t;if(Cd){const Je={instancePath:s,schemaPath:"#/allOf/12/then/not",keyword:"not",params:{},message:"must NOT be valid",schema:Y.allOf[12].then.not,parentSchema:Y.allOf[12].then,data:a};e===null?e=[Je]:e.push(Je),t++}else t=V,e!==null&&(V?e.length=V:e=null);if(a&&typeof a=="object"&&!Array.isArray(a)&&a.type!==void 0){let Je=a.type;if(Je!=="group"){const $h={instancePath:s+"/type",schemaPath:"#/allOf/12/then/properties/type/const",keyword:"const",params:{allowedValue:"group"},message:"must be equal to constant",schema:"group",parentSchema:Y.allOf[12].then.properties.type,data:Je};e===null?e=[$h]:e.push($h),t++}}var Jc=N===t;if(Xc=Jc,Xc){var jn={};jn.type=!0}}if(!Xc){const N={instancePath:s,schemaPath:"#/allOf/12/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[12].if,parentSchema:Y.allOf[12],data:a};e===null?e=[N]:e.push(N),t++}jn!==!0&&(jn=jn||{},jn.type=!0);const Kc=t;let Ah=!0;const Vd=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.columns===void 0){const N={};e===null?e=[N]:e.push(N),t++}var Yc=Vd===t;if(t=Kc,e!==null&&(Kc?e.length=Kc:e=null),Yc){const N=t,V=t;let B=!1;const Oe=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.items===void 0){const _={instancePath:s,schemaPath:"#/allOf/13/then/anyOf/0/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'",schema:Y.allOf[13].then.anyOf[0].required,parentSchema:Y.allOf[13].then.anyOf[0],data:a};e===null?e=[_]:e.push(_),t++}var Qc=Oe===t;B=B||Qc;const Be=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.bullets===void 0){const _={instancePath:s,schemaPath:"#/allOf/13/then/anyOf/1/required",keyword:"required",params:{missingProperty:"bullets"},message:"must have required property 'bullets'",schema:Y.allOf[13].then.anyOf[1].required,parentSchema:Y.allOf[13].then.anyOf[1],data:a};e===null?e=[_]:e.push(_),t++}var Qc=Be===t;if(B=B||Qc,B)t=V,e!==null&&(V?e.length=V:e=null);else{const _={instancePath:s,schemaPath:"#/allOf/13/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:Y.allOf[13].then.anyOf,parentSchema:Y.allOf[13].then,data:a};e===null?e=[_]:e.push(_),t++}var Yc=N===t;Ah=Yc}if(!Ah){const N={instancePath:s,schemaPath:"#/allOf/13/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Y.allOf[13].if,parentSchema:Y.allOf[13],data:a};e===null?e=[N]:e.push(N),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){for(const N in a)if(!va.call(Y.properties,N)){const V={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:N},message:"must NOT have additional properties",schema:!1,parentSchema:Y,data:a};e===null?e=[V]:e.push(V),t++}if(a.id!==void 0){let N=a.id;if(typeof N!="string"){const V={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Y.properties.id.type,parentSchema:Y.properties.id,data:N};e===null?e=[V]:e.push(V),t++}}if(a.extensions!==void 0){let N=a.extensions;if(!(N&&typeof N=="object"&&!Array.isArray(N))){const V={instancePath:s+"/extensions",schemaPath:"#/properties/extensions/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.properties.extensions.type,parentSchema:Y.properties.extensions,data:N};e===null?e=[V]:e.push(V),t++}}if(a.region!==void 0){let N=a.region;if(typeof N=="string"){if(!bt.test(N)){const V={instancePath:s+"/region",schemaPath:"#/properties/region/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Y.properties.region,data:N};e===null?e=[V]:e.push(V),t++}}else{const V={instancePath:s+"/region",schemaPath:"#/properties/region/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Y.properties.region.type,parentSchema:Y.properties.region,data:N};e===null?e=[V]:e.push(V),t++}}if(a.type!==void 0){let N=a.type;if(typeof N!="string"){const V={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Y.properties.type.type,parentSchema:Y.properties.type,data:N};e===null?e=[V]:e.push(V),t++}if(!(N==="text"||N==="list"||N==="image"||N==="chart"||N==="table"||N==="video"||N==="code"||N==="metric"||N==="quote"||N==="timeline"||N==="diagram"||N==="group")){const V={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Y.properties.type.enum},message:"must be equal to one of the allowed values",schema:Y.properties.type.enum,parentSchema:Y.properties.type,data:N};e===null?e=[V]:e.push(V),t++}}if(a.text!==void 0){let N=a.text;const V=t;let B=!1,Oe=null;const Be=t;if(typeof N!="string"){const _={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Y.properties.text.oneOf[0].type,parentSchema:Y.properties.text.oneOf[0],data:N};e===null?e=[_]:e.push(_),t++}var Un=Be===t;Un&&(B=!0,Oe=0);const Nt=t;if(Array.isArray(N)){const _=N.length;for(let ye=0;ye<_;ye++)J(N[ye],{instancePath:s+"/text/"+ye,parentData:N,parentDataProperty:ye,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const _={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Y.properties.text.oneOf[1].type,parentSchema:Y.properties.text.oneOf[1],data:N};e===null?e=[_]:e.push(_),t++}var Un=Nt===t;if(Un&&B?(B=!1,Oe=[Oe,1]):Un&&(B=!0,Oe=1),B)t=V,e!==null&&(V?e.length=V:e=null);else{const _={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:Oe},message:"must match exactly one schema in oneOf",schema:Y.properties.text.oneOf,parentSchema:Y.properties.text,data:N};e===null?e=[_]:e.push(_),t++}}if(a.items!==void 0){let N=a.items;if(Array.isArray(N)){const V=N.length;for(let B=0;B<V;B++)as(N[B],{instancePath:s+"/items/"+B,parentData:N,parentDataProperty:B,rootData:v,dynamicAnchors:b})||(e=e===null?as.errors:e.concat(as.errors),t=e.length)}else{const V={instancePath:s+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Y.properties.items.type,parentSchema:Y.properties.items,data:N};e===null?e=[V]:e.push(V),t++}}if(a.bullets!==void 0){let N=a.bullets;if(Array.isArray(N)){const V=N.length;for(let B=0;B<V;B++)ss(N[B],{instancePath:s+"/bullets/"+B,parentData:N,parentDataProperty:B,rootData:v,dynamicAnchors:b})||(e=e===null?ss.errors:e.concat(ss.errors),t=e.length)}else{const V={instancePath:s+"/bullets",schemaPath:"#/properties/bullets/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Y.properties.bullets.type,parentSchema:Y.properties.bullets,data:N};e===null?e=[V]:e.push(V),t++}}if(a.numbering!==void 0&&(ns(a.numbering,{instancePath:s+"/numbering",parentData:a,parentDataProperty:"numbering",rootData:v,dynamicAnchors:b})||(e=e===null?ns.errors:e.concat(ns.errors),t=e.length)),a.columns!==void 0){let N=a.columns;const V=t;let B=!1,Oe=null;const Be=t;if(N!=="auto"){const _={instancePath:s+"/columns",schemaPath:"#/properties/columns/oneOf/0/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:Y.properties.columns.oneOf[0],data:N};e===null?e=[_]:e.push(_),t++}var En=Be===t;En&&(B=!0,Oe=0);const Nt=t;if(!(typeof N=="number"&&!(N%1)&&!isNaN(N))){const _={instancePath:s+"/columns",schemaPath:"#/properties/columns/oneOf/1/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Y.properties.columns.oneOf[1].type,parentSchema:Y.properties.columns.oneOf[1],data:N};e===null?e=[_]:e.push(_),t++}if(typeof N=="number"){if(N>3||isNaN(N)){const _={instancePath:s+"/columns",schemaPath:"#/properties/columns/oneOf/1/maximum",keyword:"maximum",params:{comparison:"<=",limit:3},message:"must be <= 3",schema:3,parentSchema:Y.properties.columns.oneOf[1],data:N};e===null?e=[_]:e.push(_),t++}if(N<1||isNaN(N)){const _={instancePath:s+"/columns",schemaPath:"#/properties/columns/oneOf/1/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Y.properties.columns.oneOf[1],data:N};e===null?e=[_]:e.push(_),t++}}var En=Nt===t;if(En&&B?(B=!1,Oe=[Oe,1]):En&&(B=!0,Oe=1),B)t=V,e!==null&&(V?e.length=V:e=null);else{const _={instancePath:s+"/columns",schemaPath:"#/properties/columns/oneOf",keyword:"oneOf",params:{passingSchemas:Oe},message:"must match exactly one schema in oneOf",schema:Y.properties.columns.oneOf,parentSchema:Y.properties.columns,data:N};e===null?e=[_]:e.push(_),t++}}if(a.image!==void 0){let N=a.image;const V=t;let B=!1,Oe=null;const Be=t;if(typeof N!="string"){const _={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:N};e===null?e=[_]:e.push(_),t++}var Wn=Be===t;Wn&&(B=!0,Oe=0);const Nt=t;if(N&&typeof N=="object"&&!Array.isArray(N)){if(N.src===void 0){const _={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:N};e===null?e=[_]:e.push(_),t++}for(const _ in N)if(!(_==="src"||_==="alt"||_==="title"||_==="description"||_==="mediaType")){const ye={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:_},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:N};e===null?e=[ye]:e.push(ye),t++}if(N.src!==void 0){let _=N.src;if(typeof _!="string"){const ye={instancePath:s+"/image/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:_};e===null?e=[ye]:e.push(ye),t++}}if(N.alt!==void 0){let _=N.alt;if(typeof _!="string"){const ye={instancePath:s+"/image/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:_};e===null?e=[ye]:e.push(ye),t++}}if(N.title!==void 0){let _=N.title;if(typeof _!="string"){const ye={instancePath:s+"/image/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:_};e===null?e=[ye]:e.push(ye),t++}}if(N.description!==void 0){let _=N.description;if(typeof _!="string"){const ye={instancePath:s+"/image/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:_};e===null?e=[ye]:e.push(ye),t++}}if(N.mediaType!==void 0){let _=N.mediaType;if(typeof _!="string"){const ye={instancePath:s+"/image/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:_};e===null?e=[ye]:e.push(ye),t++}}}else{const _={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:N};e===null?e=[_]:e.push(_),t++}var Wn=Nt===t;if(Wn&&B?(B=!1,Oe=[Oe,1]):Wn&&(B=!0,Oe=1),B)t=V,e!==null&&(V?e.length=V:e=null);else{const _={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:Oe},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:N};e===null?e=[_]:e.push(_),t++}}if(a.fit!==void 0){let N=a.fit;if(typeof N!="string"){const V={instancePath:s+"/fit",schemaPath:"#/properties/fit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Y.properties.fit.type,parentSchema:Y.properties.fit,data:N};e===null?e=[V]:e.push(V),t++}if(!(N==="cover"||N==="contain"||N==="stretch"||N==="auto")){const V={instancePath:s+"/fit",schemaPath:"#/properties/fit/enum",keyword:"enum",params:{allowedValues:Y.properties.fit.enum},message:"must be equal to one of the allowed values",schema:Y.properties.fit.enum,parentSchema:Y.properties.fit,data:N};e===null?e=[V]:e.push(V),t++}}if(a.focus!==void 0){let N=a.focus;if(N&&typeof N=="object"&&!Array.isArray(N)){if(N.x===void 0){const V={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/required",keyword:"required",params:{missingProperty:"x"},message:"must have required property 'x'",schema:tt.required,parentSchema:tt,data:N};e===null?e=[V]:e.push(V),t++}if(N.y===void 0){const V={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/required",keyword:"required",params:{missingProperty:"y"},message:"must have required property 'y'",schema:tt.required,parentSchema:tt,data:N};e===null?e=[V]:e.push(V),t++}for(const V in N)if(!(V==="x"||V==="y")){const B={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:V},message:"must NOT have additional properties",schema:!1,parentSchema:tt,data:N};e===null?e=[B]:e.push(B),t++}if(N.x!==void 0){let V=N.x;if(typeof V=="number"){if(V>1||isNaN(V)){const B={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:tt.properties.x,data:V};e===null?e=[B]:e.push(B),t++}if(V<0||isNaN(V)){const B={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:tt.properties.x,data:V};e===null?e=[B]:e.push(B),t++}}else{const B={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/type",keyword:"type",params:{type:"number"},message:"must be number",schema:tt.properties.x.type,parentSchema:tt.properties.x,data:V};e===null?e=[B]:e.push(B),t++}}if(N.y!==void 0){let V=N.y;if(typeof V=="number"){if(V>1||isNaN(V)){const B={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:tt.properties.y,data:V};e===null?e=[B]:e.push(B),t++}if(V<0||isNaN(V)){const B={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:tt.properties.y,data:V};e===null?e=[B]:e.push(B),t++}}else{const B={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/type",keyword:"type",params:{type:"number"},message:"must be number",schema:tt.properties.y.type,parentSchema:tt.properties.y,data:V};e===null?e=[B]:e.push(B),t++}}}else{const V={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/type",keyword:"type",params:{type:"object"},message:"must be object",schema:tt.type,parentSchema:tt,data:N};e===null?e=[V]:e.push(V),t++}}if(a.aspectRatio!==void 0){let N=a.aspectRatio;if(typeof N=="number"){if(N>10||isNaN(N)){const V={instancePath:s+"/aspectRatio",schemaPath:"#/properties/aspectRatio/maximum",keyword:"maximum",params:{comparison:"<=",limit:10},message:"must be <= 10",schema:10,parentSchema:Y.properties.aspectRatio,data:N};e===null?e=[V]:e.push(V),t++}if(N<=0||isNaN(N)){const V={instancePath:s+"/aspectRatio",schemaPath:"#/properties/aspectRatio/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:Y.properties.aspectRatio,data:N};e===null?e=[V]:e.push(V),t++}}else{const V={instancePath:s+"/aspectRatio",schemaPath:"#/properties/aspectRatio/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Y.properties.aspectRatio.type,parentSchema:Y.properties.aspectRatio,data:N};e===null?e=[V]:e.push(V),t++}}if(a.shape!==void 0){let N=a.shape;if(typeof N!="string"){const V={instancePath:s+"/shape",schemaPath:"#/properties/shape/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Y.properties.shape.type,parentSchema:Y.properties.shape,data:N};e===null?e=[V]:e.push(V),t++}if(!(N==="rectangle"||N==="rounded"||N==="circle"||N==="hexagon")){const V={instancePath:s+"/shape",schemaPath:"#/properties/shape/enum",keyword:"enum",params:{allowedValues:Y.properties.shape.enum},message:"must be equal to one of the allowed values",schema:Y.properties.shape.enum,parentSchema:Y.properties.shape,data:N};e===null?e=[V]:e.push(V),t++}}if(a.cornerRadius!==void 0){let N=a.cornerRadius;if(typeof N=="number"){if(N>.5||isNaN(N)){const V={instancePath:s+"/cornerRadius",schemaPath:"#/properties/cornerRadius/maximum",keyword:"maximum",params:{comparison:"<=",limit:.5},message:"must be <= 0.5",schema:.5,parentSchema:Y.properties.cornerRadius,data:N};e===null?e=[V]:e.push(V),t++}if(N<0||isNaN(N)){const V={instancePath:s+"/cornerRadius",schemaPath:"#/properties/cornerRadius/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Y.properties.cornerRadius,data:N};e===null?e=[V]:e.push(V),t++}}else{const V={instancePath:s+"/cornerRadius",schemaPath:"#/properties/cornerRadius/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Y.properties.cornerRadius.type,parentSchema:Y.properties.cornerRadius,data:N};e===null?e=[V]:e.push(V),t++}}if(a.border!==void 0&&(Ys(a.border,{instancePath:s+"/border",parentData:a,parentDataProperty:"border",rootData:v,dynamicAnchors:b})||(e=e===null?Ys.errors:e.concat(Ys.errors),t=e.length)),a.opacity!==void 0){let N=a.opacity;if(typeof N=="number"){if(N>1||isNaN(N)){const V={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:Y.properties.opacity,data:N};e===null?e=[V]:e.push(V),t++}if(N<0||isNaN(N)){const V={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Y.properties.opacity,data:N};e===null?e=[V]:e.push(V),t++}}else{const V={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Y.properties.opacity.type,parentSchema:Y.properties.opacity,data:N};e===null?e=[V]:e.push(V),t++}}if(a.recolor!==void 0&&(xa(a.recolor,{instancePath:s+"/recolor",parentData:a,parentDataProperty:"recolor",rootData:v,dynamicAnchors:b})||(e=e===null?xa.errors:e.concat(xa.errors),t=e.length)),a.overlay!==void 0&&(Na(a.overlay,{instancePath:s+"/overlay",parentData:a,parentDataProperty:"overlay",rootData:v,dynamicAnchors:b})||(e=e===null?Na.errors:e.concat(Na.errors),t=e.length)),a.placement!==void 0){let N=a.placement;if(N&&typeof N=="object"&&!Array.isArray(N)){if(N.edge===void 0){const V={instancePath:s+"/placement",schemaPath:"#/$defs/ImagePlacement/required",keyword:"required",params:{missingProperty:"edge"},message:"must have required property 'edge'",schema:ua.required,parentSchema:ua,data:N};e===null?e=[V]:e.push(V),t++}for(const V in N)if(!(V==="edge"||V==="size"||V==="inset")){const B={instancePath:s+"/placement",schemaPath:"#/$defs/ImagePlacement/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:V},message:"must NOT have additional properties",schema:!1,parentSchema:ua,data:N};e===null?e=[B]:e.push(B),t++}if(N.edge!==void 0){let V=N.edge;if(typeof V!="string"){const B={instancePath:s+"/placement/edge",schemaPath:"#/$defs/ImagePlacement/properties/edge/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ua.properties.edge.type,parentSchema:ua.properties.edge,data:V};e===null?e=[B]:e.push(B),t++}if(!(V==="left"||V==="right"||V==="top"||V==="bottom")){const B={instancePath:s+"/placement/edge",schemaPath:"#/$defs/ImagePlacement/properties/edge/enum",keyword:"enum",params:{allowedValues:ua.properties.edge.enum},message:"must be equal to one of the allowed values",schema:ua.properties.edge.enum,parentSchema:ua.properties.edge,data:V};e===null?e=[B]:e.push(B),t++}}if(N.size!==void 0){let V=N.size;if(typeof V=="number"){if(V>.9||isNaN(V)){const B={instancePath:s+"/placement/size",schemaPath:"#/$defs/ImagePlacement/properties/size/maximum",keyword:"maximum",params:{comparison:"<=",limit:.9},message:"must be <= 0.9",schema:.9,parentSchema:ua.properties.size,data:V};e===null?e=[B]:e.push(B),t++}if(V<.1||isNaN(V)){const B={instancePath:s+"/placement/size",schemaPath:"#/$defs/ImagePlacement/properties/size/minimum",keyword:"minimum",params:{comparison:">=",limit:.1},message:"must be >= 0.1",schema:.1,parentSchema:ua.properties.size,data:V};e===null?e=[B]:e.push(B),t++}}else{const B={instancePath:s+"/placement/size",schemaPath:"#/$defs/ImagePlacement/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ua.properties.size.type,parentSchema:ua.properties.size,data:V};e===null?e=[B]:e.push(B),t++}}if(N.inset!==void 0){let V=N.inset;if(typeof V!="boolean"){const B={instancePath:s+"/placement/inset",schemaPath:"#/$defs/ImagePlacement/properties/inset/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ua.properties.inset.type,parentSchema:ua.properties.inset,data:V};e===null?e=[B]:e.push(B),t++}}}else{const V={instancePath:s+"/placement",schemaPath:"#/$defs/ImagePlacement/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ua.type,parentSchema:ua,data:N};e===null?e=[V]:e.push(V),t++}}if(a.video!==void 0){let N=a.video;const V=t;let B=!1,Oe=null;const Be=t;if(typeof N!="string"){const _={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:N};e===null?e=[_]:e.push(_),t++}var Xn=Be===t;Xn&&(B=!0,Oe=0);const Nt=t;if(N&&typeof N=="object"&&!Array.isArray(N)){if(N.src===void 0){const _={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:N};e===null?e=[_]:e.push(_),t++}for(const _ in N)if(!(_==="src"||_==="alt"||_==="title"||_==="description"||_==="mediaType")){const ye={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:_},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:N};e===null?e=[ye]:e.push(ye),t++}if(N.src!==void 0){let _=N.src;if(typeof _!="string"){const ye={instancePath:s+"/video/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:_};e===null?e=[ye]:e.push(ye),t++}}if(N.alt!==void 0){let _=N.alt;if(typeof _!="string"){const ye={instancePath:s+"/video/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:_};e===null?e=[ye]:e.push(ye),t++}}if(N.title!==void 0){let _=N.title;if(typeof _!="string"){const ye={instancePath:s+"/video/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:_};e===null?e=[ye]:e.push(ye),t++}}if(N.description!==void 0){let _=N.description;if(typeof _!="string"){const ye={instancePath:s+"/video/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:_};e===null?e=[ye]:e.push(ye),t++}}if(N.mediaType!==void 0){let _=N.mediaType;if(typeof _!="string"){const ye={instancePath:s+"/video/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:_};e===null?e=[ye]:e.push(ye),t++}}}else{const _={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:N};e===null?e=[_]:e.push(_),t++}var Xn=Nt===t;if(Xn&&B?(B=!1,Oe=[Oe,1]):Xn&&(B=!0,Oe=1),B)t=V,e!==null&&(V?e.length=V:e=null);else{const _={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:Oe},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:N};e===null?e=[_]:e.push(_),t++}}if(a.chart!==void 0&&(ps(a.chart,{instancePath:s+"/chart",parentData:a,parentDataProperty:"chart",rootData:v,dynamicAnchors:b})||(e=e===null?ps.errors:e.concat(ps.errors),t=e.length)),a.table!==void 0&&(ms(a.table,{instancePath:s+"/table",parentData:a,parentDataProperty:"table",rootData:v,dynamicAnchors:b})||(e=e===null?ms.errors:e.concat(ms.errors),t=e.length)),a.code!==void 0){let N=a.code;const V=t;let B=!1,Oe=null;const Be=t;if(typeof N!="string"){const _={instancePath:s+"/code",schemaPath:"#/properties/code/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Y.properties.code.oneOf[0].type,parentSchema:Y.properties.code.oneOf[0],data:N};e===null?e=[_]:e.push(_),t++}var Kn=Be===t;Kn&&(B=!0,Oe=0);const Nt=t;if(N&&typeof N=="object"&&!Array.isArray(N)){if(N.source===void 0){const _={instancePath:s+"/code",schemaPath:"#/$defs/Code/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:se.required,parentSchema:se,data:N};e===null?e=[_]:e.push(_),t++}for(const _ in N)if(!(_==="source"||_==="language"||_==="filename"||_==="highlight")){const ye={instancePath:s+"/code",schemaPath:"#/$defs/Code/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:_},message:"must NOT have additional properties",schema:!1,parentSchema:se,data:N};e===null?e=[ye]:e.push(ye),t++}if(N.source!==void 0){let _=N.source;if(typeof _!="string"){const ye={instancePath:s+"/code/source",schemaPath:"#/$defs/Code/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.source.type,parentSchema:se.properties.source,data:_};e===null?e=[ye]:e.push(ye),t++}}if(N.language!==void 0){let _=N.language;if(typeof _!="string"){const ye={instancePath:s+"/code/language",schemaPath:"#/$defs/Code/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.language.type,parentSchema:se.properties.language,data:_};e===null?e=[ye]:e.push(ye),t++}}if(N.filename!==void 0){let _=N.filename;if(typeof _!="string"){const ye={instancePath:s+"/code/filename",schemaPath:"#/$defs/Code/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.filename.type,parentSchema:se.properties.filename,data:_};e===null?e=[ye]:e.push(ye),t++}}if(N.highlight!==void 0){let _=N.highlight;if(Array.isArray(_)){if(_.length<1){const Se={instancePath:s+"/code/highlight",schemaPath:"#/$defs/Code/properties/highlight/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:se.properties.highlight,data:_};e===null?e=[Se]:e.push(Se),t++}const ye=_.length;for(let Se=0;Se<ye;Se++){let Ue=_[Se];const ia=t;let Yt=!1,Ca=null;const ks=t;if(!(typeof Ue=="number"&&!(Ue%1)&&!isNaN(Ue))){const Pa={instancePath:s+"/code/highlight/"+Se,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/0/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:se.properties.highlight.items.oneOf[0].type,parentSchema:se.properties.highlight.items.oneOf[0],data:Ue};e===null?e=[Pa]:e.push(Pa),t++}if(typeof Ue=="number"&&(Ue<1||isNaN(Ue))){const Pa={instancePath:s+"/code/highlight/"+Se,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/0/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:se.properties.highlight.items.oneOf[0],data:Ue};e===null?e=[Pa]:e.push(Pa),t++}var Jn=ks===t;Jn&&(Yt=!0,Ca=0);const Et=t;if(Array.isArray(Ue)){if(Ue.length>2){const Aa={instancePath:s+"/code/highlight/"+Se,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items",schema:2,parentSchema:se.properties.highlight.items.oneOf[1],data:Ue};e===null?e=[Aa]:e.push(Aa),t++}if(Ue.length<2){const Aa={instancePath:s+"/code/highlight/"+Se,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:se.properties.highlight.items.oneOf[1],data:Ue};e===null?e=[Aa]:e.push(Aa),t++}const Pa=Ue.length;for(let Aa=0;Aa<Pa;Aa++){let gs=Ue[Aa];if(!(typeof gs=="number"&&!(gs%1)&&!isNaN(gs))){const Je={instancePath:s+"/code/highlight/"+Se+"/"+Aa,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/items/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:se.properties.highlight.items.oneOf[1].items.type,parentSchema:se.properties.highlight.items.oneOf[1].items,data:gs};e===null?e=[Je]:e.push(Je),t++}if(typeof gs=="number"&&(gs<1||isNaN(gs))){const Je={instancePath:s+"/code/highlight/"+Se+"/"+Aa,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/items/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:se.properties.highlight.items.oneOf[1].items,data:gs};e===null?e=[Je]:e.push(Je),t++}}}else{const Pa={instancePath:s+"/code/highlight/"+Se,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:se.properties.highlight.items.oneOf[1].type,parentSchema:se.properties.highlight.items.oneOf[1],data:Ue};e===null?e=[Pa]:e.push(Pa),t++}var Jn=Et===t;if(Jn&&Yt?(Yt=!1,Ca=[Ca,1]):Jn&&(Yt=!0,Ca=1),Yt)t=ia,e!==null&&(ia?e.length=ia:e=null);else{const Pa={instancePath:s+"/code/highlight/"+Se,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf",keyword:"oneOf",params:{passingSchemas:Ca},message:"must match exactly one schema in oneOf",schema:se.properties.highlight.items.oneOf,parentSchema:se.properties.highlight.items,data:Ue};e===null?e=[Pa]:e.push(Pa),t++}}}else{const ye={instancePath:s+"/code/highlight",schemaPath:"#/$defs/Code/properties/highlight/type",keyword:"type",params:{type:"array"},message:"must be array",schema:se.properties.highlight.type,parentSchema:se.properties.highlight,data:_};e===null?e=[ye]:e.push(ye),t++}}}else{const _={instancePath:s+"/code",schemaPath:"#/$defs/Code/type",keyword:"type",params:{type:"object"},message:"must be object",schema:se.type,parentSchema:se,data:N};e===null?e=[_]:e.push(_),t++}var Kn=Nt===t;if(Kn&&B?(B=!1,Oe=[Oe,1]):Kn&&(B=!0,Oe=1),B)t=V,e!==null&&(V?e.length=V:e=null);else{const _={instancePath:s+"/code",schemaPath:"#/properties/code/oneOf",keyword:"oneOf",params:{passingSchemas:Oe},message:"must match exactly one schema in oneOf",schema:Y.properties.code.oneOf,parentSchema:Y.properties.code,data:N};e===null?e=[_]:e.push(_),t++}}if(a.metric!==void 0){let N=a.metric;const V=t;let B=!1,Oe=null;const Be=t;if(typeof N!="string"){const _={instancePath:s+"/metric",schemaPath:"#/properties/metric/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Y.properties.metric.oneOf[0].type,parentSchema:Y.properties.metric.oneOf[0],data:N};e===null?e=[_]:e.push(_),t++}var Ss=Be===t;Ss&&(B=!0,Oe=0);const Nt=t;if(typeof N!="number"){const _={instancePath:s+"/metric",schemaPath:"#/properties/metric/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Y.properties.metric.oneOf[1].type,parentSchema:Y.properties.metric.oneOf[1],data:N};e===null?e=[_]:e.push(_),t++}var Ss=Nt===t;if(Ss&&B)B=!1,Oe=[Oe,1];else{Ss&&(B=!0,Oe=1);const _=t;if(N&&typeof N=="object"&&!Array.isArray(N)){if(N.value===void 0){const Se={instancePath:s+"/metric",schemaPath:"#/$defs/Metric/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:Q.required,parentSchema:Q,data:N};e===null?e=[Se]:e.push(Se),t++}for(const Se in N)if(!(Se==="value"||Se==="label"||Se==="description"||Se==="unit"||Se==="delta"||Se==="trend"||Se==="sentiment")){const Ue={instancePath:s+"/metric",schemaPath:"#/$defs/Metric/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Se},message:"must NOT have additional properties",schema:!1,parentSchema:Q,data:N};e===null?e=[Ue]:e.push(Ue),t++}if(N.value!==void 0){let Se=N.value;const Ue=t;let ia=!1,Yt=null;const Ca=t;if(typeof Se!="string"){const Et={instancePath:s+"/metric/value",schemaPath:"#/$defs/Metric/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.value.oneOf[0].type,parentSchema:Q.properties.value.oneOf[0],data:Se};e===null?e=[Et]:e.push(Et),t++}var Yn=Ca===t;Yn&&(ia=!0,Yt=0);const ks=t;if(typeof Se!="number"){const Et={instancePath:s+"/metric/value",schemaPath:"#/$defs/Metric/properties/value/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Q.properties.value.oneOf[1].type,parentSchema:Q.properties.value.oneOf[1],data:Se};e===null?e=[Et]:e.push(Et),t++}var Yn=ks===t;if(Yn&&ia?(ia=!1,Yt=[Yt,1]):Yn&&(ia=!0,Yt=1),ia)t=Ue,e!==null&&(Ue?e.length=Ue:e=null);else{const Et={instancePath:s+"/metric/value",schemaPath:"#/$defs/Metric/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:Yt},message:"must match exactly one schema in oneOf",schema:Q.properties.value.oneOf,parentSchema:Q.properties.value,data:Se};e===null?e=[Et]:e.push(Et),t++}}if(N.label!==void 0){let Se=N.label;if(typeof Se!="string"){const Ue={instancePath:s+"/metric/label",schemaPath:"#/$defs/Metric/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.label.type,parentSchema:Q.properties.label,data:Se};e===null?e=[Ue]:e.push(Ue),t++}}if(N.description!==void 0){let Se=N.description;if(typeof Se!="string"){const Ue={instancePath:s+"/metric/description",schemaPath:"#/$defs/Metric/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.description.type,parentSchema:Q.properties.description,data:Se};e===null?e=[Ue]:e.push(Ue),t++}}if(N.unit!==void 0){let Se=N.unit;if(typeof Se!="string"){const Ue={instancePath:s+"/metric/unit",schemaPath:"#/$defs/Metric/properties/unit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.unit.type,parentSchema:Q.properties.unit,data:Se};e===null?e=[Ue]:e.push(Ue),t++}}if(N.delta!==void 0){let Se=N.delta;const Ue=t;let ia=!1,Yt=null;const Ca=t;if(typeof Se!="string"){const Et={instancePath:s+"/metric/delta",schemaPath:"#/$defs/Metric/properties/delta/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.delta.oneOf[0].type,parentSchema:Q.properties.delta.oneOf[0],data:Se};e===null?e=[Et]:e.push(Et),t++}var Qn=Ca===t;Qn&&(ia=!0,Yt=0);const ks=t;if(typeof Se!="number"){const Et={instancePath:s+"/metric/delta",schemaPath:"#/$defs/Metric/properties/delta/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Q.properties.delta.oneOf[1].type,parentSchema:Q.properties.delta.oneOf[1],data:Se};e===null?e=[Et]:e.push(Et),t++}var Qn=ks===t;if(Qn&&ia?(ia=!1,Yt=[Yt,1]):Qn&&(ia=!0,Yt=1),ia)t=Ue,e!==null&&(Ue?e.length=Ue:e=null);else{const Et={instancePath:s+"/metric/delta",schemaPath:"#/$defs/Metric/properties/delta/oneOf",keyword:"oneOf",params:{passingSchemas:Yt},message:"must match exactly one schema in oneOf",schema:Q.properties.delta.oneOf,parentSchema:Q.properties.delta,data:Se};e===null?e=[Et]:e.push(Et),t++}}if(N.trend!==void 0){let Se=N.trend;if(typeof Se!="string"){const Ue={instancePath:s+"/metric/trend",schemaPath:"#/$defs/Metric/properties/trend/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.trend.type,parentSchema:Q.properties.trend,data:Se};e===null?e=[Ue]:e.push(Ue),t++}if(!(Se==="up"||Se==="down"||Se==="flat")){const Ue={instancePath:s+"/metric/trend",schemaPath:"#/$defs/Metric/properties/trend/enum",keyword:"enum",params:{allowedValues:Q.properties.trend.enum},message:"must be equal to one of the allowed values",schema:Q.properties.trend.enum,parentSchema:Q.properties.trend,data:Se};e===null?e=[Ue]:e.push(Ue),t++}}if(N.sentiment!==void 0){let Se=N.sentiment;if(typeof Se!="string"){const Ue={instancePath:s+"/metric/sentiment",schemaPath:"#/$defs/Metric/properties/sentiment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.sentiment.type,parentSchema:Q.properties.sentiment,data:Se};e===null?e=[Ue]:e.push(Ue),t++}if(!(Se==="positive"||Se==="negative"||Se==="neutral")){const Ue={instancePath:s+"/metric/sentiment",schemaPath:"#/$defs/Metric/properties/sentiment/enum",keyword:"enum",params:{allowedValues:Q.properties.sentiment.enum},message:"must be equal to one of the allowed values",schema:Q.properties.sentiment.enum,parentSchema:Q.properties.sentiment,data:Se};e===null?e=[Ue]:e.push(Ue),t++}}}else{const Se={instancePath:s+"/metric",schemaPath:"#/$defs/Metric/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Q.type,parentSchema:Q,data:N};e===null?e=[Se]:e.push(Se),t++}var Ss=_===t;Ss&&B?(B=!1,Oe=[Oe,2]):Ss&&(B=!0,Oe=2)}if(B)t=V,e!==null&&(V?e.length=V:e=null);else{const _={instancePath:s+"/metric",schemaPath:"#/properties/metric/oneOf",keyword:"oneOf",params:{passingSchemas:Oe},message:"must match exactly one schema in oneOf",schema:Y.properties.metric.oneOf,parentSchema:Y.properties.metric,data:N};e===null?e=[_]:e.push(_),t++}}if(a.quote!==void 0){let N=a.quote;const V=t;let B=!1,Oe=null;const Be=t;if(typeof N!="string"){const _={instancePath:s+"/quote",schemaPath:"#/properties/quote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Y.properties.quote.oneOf[0].type,parentSchema:Y.properties.quote.oneOf[0],data:N};e===null?e=[_]:e.push(_),t++}var Gn=Be===t;Gn&&(B=!0,Oe=0);const Nt=t;cs(N,{instancePath:s+"/quote",parentData:a,parentDataProperty:"quote",rootData:v,dynamicAnchors:b})||(e=e===null?cs.errors:e.concat(cs.errors),t=e.length);var Gn=Nt===t;if(Gn&&B?(B=!1,Oe=[Oe,1]):Gn&&(B=!0,Oe=1),B)t=V,e!==null&&(V?e.length=V:e=null);else{const _={instancePath:s+"/quote",schemaPath:"#/properties/quote/oneOf",keyword:"oneOf",params:{passingSchemas:Oe},message:"must match exactly one schema in oneOf",schema:Y.properties.quote.oneOf,parentSchema:Y.properties.quote,data:N};e===null?e=[_]:e.push(_),t++}}if(a.timeline!==void 0&&(hs(a.timeline,{instancePath:s+"/timeline",parentData:a,parentDataProperty:"timeline",rootData:v,dynamicAnchors:b})||(e=e===null?hs.errors:e.concat(hs.errors),t=e.length)),a.diagram!==void 0){let N=a.diagram;const V=t;let B=!1,Oe=null;const Be=t;if(typeof N!="string"){const _={instancePath:s+"/diagram",schemaPath:"#/properties/diagram/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Y.properties.diagram.oneOf[0].type,parentSchema:Y.properties.diagram.oneOf[0],data:N};e===null?e=[_]:e.push(_),t++}var eo=Be===t;eo&&(B=!0,Oe=0);const Nt=t;if(N&&typeof N=="object"&&!Array.isArray(N)){if(N.source===void 0){const _={instancePath:s+"/diagram",schemaPath:"#/$defs/Diagram/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:ze.required,parentSchema:ze,data:N};e===null?e=[_]:e.push(_),t++}for(const _ in N)if(!(_==="source"||_==="syntax"||_==="alt")){const ye={instancePath:s+"/diagram",schemaPath:"#/$defs/Diagram/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:_},message:"must NOT have additional properties",schema:!1,parentSchema:ze,data:N};e===null?e=[ye]:e.push(ye),t++}if(N.source!==void 0){let _=N.source;if(typeof _=="string"){if(pe(_)<1){const ye={instancePath:s+"/diagram/source",schemaPath:"#/$defs/Diagram/properties/source/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:ze.properties.source,data:_};e===null?e=[ye]:e.push(ye),t++}}else{const ye={instancePath:s+"/diagram/source",schemaPath:"#/$defs/Diagram/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.source.type,parentSchema:ze.properties.source,data:_};e===null?e=[ye]:e.push(ye),t++}}if(N.syntax!==void 0){let _=N.syntax;if(typeof _!="string"){const ye={instancePath:s+"/diagram/syntax",schemaPath:"#/$defs/Diagram/properties/syntax/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.syntax.type,parentSchema:ze.properties.syntax,data:_};e===null?e=[ye]:e.push(ye),t++}if(_!=="mermaid"){const ye={instancePath:s+"/diagram/syntax",schemaPath:"#/$defs/Diagram/properties/syntax/enum",keyword:"enum",params:{allowedValues:ze.properties.syntax.enum},message:"must be equal to one of the allowed values",schema:ze.properties.syntax.enum,parentSchema:ze.properties.syntax,data:_};e===null?e=[ye]:e.push(ye),t++}}if(N.alt!==void 0){let _=N.alt;if(typeof _!="string"){const ye={instancePath:s+"/diagram/alt",schemaPath:"#/$defs/Diagram/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.alt.type,parentSchema:ze.properties.alt,data:_};e===null?e=[ye]:e.push(ye),t++}}}else{const _={instancePath:s+"/diagram",schemaPath:"#/$defs/Diagram/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ze.type,parentSchema:ze,data:N};e===null?e=[_]:e.push(_),t++}var eo=Nt===t;if(eo&&B?(B=!1,Oe=[Oe,1]):eo&&(B=!0,Oe=1),B)t=V,e!==null&&(V?e.length=V:e=null);else{const _={instancePath:s+"/diagram",schemaPath:"#/properties/diagram/oneOf",keyword:"oneOf",params:{passingSchemas:Oe},message:"must match exactly one schema in oneOf",schema:Y.properties.diagram.oneOf,parentSchema:Y.properties.diagram,data:N};e===null?e=[_]:e.push(_),t++}}if(a.caption!==void 0&&(ls(a.caption,{instancePath:s+"/caption",parentData:a,parentDataProperty:"caption",rootData:v,dynamicAnchors:b})||(e=e===null?ls.errors:e.concat(ls.errors),t=e.length)),a.blocks!==void 0){let N=a.blocks;if(Array.isArray(N)){if(N.length<1){const B={instancePath:s+"/blocks",schemaPath:"#/properties/blocks/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Y.properties.blocks,data:N};e===null?e=[B]:e.push(B),t++}const V=N.length;for(let B=0;B<V;B++)sh.validate(N[B],{instancePath:s+"/blocks/"+B,parentData:N,parentDataProperty:B,rootData:v,dynamicAnchors:b})||(e=e===null?sh.validate.errors:e.concat(sh.validate.errors),t=e.length)}else{const V={instancePath:s+"/blocks",schemaPath:"#/properties/blocks/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Y.properties.blocks.type,parentSchema:Y.properties.blocks,data:N};e===null?e=[V]:e.push(V),t++}}if(a.composition!==void 0){let N=a.composition;if(N&&typeof N=="object"&&!Array.isArray(N)){for(const V in N)if(!(V==="mode"||V==="columns"||V==="gap"||V==="padding"||V==="weights"||V==="minFontSize"||V==="maxFontSize"||V==="overflow")){const B={instancePath:s+"/composition",schemaPath:"#/$defs/Composition/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:V},message:"must NOT have additional properties",schema:!1,parentSchema:de,data:N};e===null?e=[B]:e.push(B),t++}if(N.mode!==void 0){let V=N.mode;if(typeof V!="string"){const B={instancePath:s+"/composition/mode",schemaPath:"#/$defs/Composition/properties/mode/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.mode.type,parentSchema:de.properties.mode,data:V};e===null?e=[B]:e.push(B),t++}if(!(V==="auto"||V==="grid"||V==="row"||V==="column")){const B={instancePath:s+"/composition/mode",schemaPath:"#/$defs/Composition/properties/mode/enum",keyword:"enum",params:{allowedValues:de.properties.mode.enum},message:"must be equal to one of the allowed values",schema:de.properties.mode.enum,parentSchema:de.properties.mode,data:V};e===null?e=[B]:e.push(B),t++}}if(N.columns!==void 0){let V=N.columns;if(!(typeof V=="number"&&!(V%1)&&!isNaN(V))){const B={instancePath:s+"/composition/columns",schemaPath:"#/$defs/Composition/properties/columns/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:de.properties.columns.type,parentSchema:de.properties.columns,data:V};e===null?e=[B]:e.push(B),t++}if(typeof V=="number"){if(V>12||isNaN(V)){const B={instancePath:s+"/composition/columns",schemaPath:"#/$defs/Composition/properties/columns/maximum",keyword:"maximum",params:{comparison:"<=",limit:12},message:"must be <= 12",schema:12,parentSchema:de.properties.columns,data:V};e===null?e=[B]:e.push(B),t++}if(V<1||isNaN(V)){const B={instancePath:s+"/composition/columns",schemaPath:"#/$defs/Composition/properties/columns/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:de.properties.columns,data:V};e===null?e=[B]:e.push(B),t++}}}if(N.gap!==void 0){let V=N.gap;if(typeof V=="number"){if(V>.1||isNaN(V)){const B={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/maximum",keyword:"maximum",params:{comparison:"<=",limit:.1},message:"must be <= 0.1",schema:.1,parentSchema:de.properties.gap,data:V};e===null?e=[B]:e.push(B),t++}if(V<0||isNaN(V)){const B={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:de.properties.gap,data:V};e===null?e=[B]:e.push(B),t++}}else{const B={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/type",keyword:"type",params:{type:"number"},message:"must be number",schema:de.properties.gap.type,parentSchema:de.properties.gap,data:V};e===null?e=[B]:e.push(B),t++}}if(N.padding!==void 0){let V=N.padding;if(typeof V=="number"){if(V>.2||isNaN(V)){const B={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/maximum",keyword:"maximum",params:{comparison:"<=",limit:.2},message:"must be <= 0.2",schema:.2,parentSchema:de.properties.padding,data:V};e===null?e=[B]:e.push(B),t++}if(V<0||isNaN(V)){const B={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:de.properties.padding,data:V};e===null?e=[B]:e.push(B),t++}}else{const B={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/type",keyword:"type",params:{type:"number"},message:"must be number",schema:de.properties.padding.type,parentSchema:de.properties.padding,data:V};e===null?e=[B]:e.push(B),t++}}if(N.weights!==void 0){let V=N.weights;if(Array.isArray(V)){if(V.length>12){const Oe={instancePath:s+"/composition/weights",schemaPath:"#/$defs/Composition/properties/weights/maxItems",keyword:"maxItems",params:{limit:12},message:"must NOT have more than 12 items",schema:12,parentSchema:de.properties.weights,data:V};e===null?e=[Oe]:e.push(Oe),t++}if(V.length<1){const Oe={instancePath:s+"/composition/weights",schemaPath:"#/$defs/Composition/properties/weights/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:de.properties.weights,data:V};e===null?e=[Oe]:e.push(Oe),t++}const B=V.length;for(let Oe=0;Oe<B;Oe++){let Be=V[Oe];if(typeof Be=="number"){if(Be>100||isNaN(Be)){const Nt={instancePath:s+"/composition/weights/"+Oe,schemaPath:"#/$defs/Composition/properties/weights/items/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:de.properties.weights.items,data:Be};e===null?e=[Nt]:e.push(Nt),t++}if(Be<=0||isNaN(Be)){const Nt={instancePath:s+"/composition/weights/"+Oe,schemaPath:"#/$defs/Composition/properties/weights/items/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:de.properties.weights.items,data:Be};e===null?e=[Nt]:e.push(Nt),t++}}else{const Nt={instancePath:s+"/composition/weights/"+Oe,schemaPath:"#/$defs/Composition/properties/weights/items/type",keyword:"type",params:{type:"number"},message:"must be number",schema:de.properties.weights.items.type,parentSchema:de.properties.weights.items,data:Be};e===null?e=[Nt]:e.push(Nt),t++}}}else{const B={instancePath:s+"/composition/weights",schemaPath:"#/$defs/Composition/properties/weights/type",keyword:"type",params:{type:"array"},message:"must be array",schema:de.properties.weights.type,parentSchema:de.properties.weights,data:V};e===null?e=[B]:e.push(B),t++}}if(N.minFontSize!==void 0){let V=N.minFontSize;if(typeof V=="number"){if(V>32||isNaN(V)){const B={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/maximum",keyword:"maximum",params:{comparison:"<=",limit:32},message:"must be <= 32",schema:32,parentSchema:de.properties.minFontSize,data:V};e===null?e=[B]:e.push(B),t++}if(V<8||isNaN(V)){const B={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/minimum",keyword:"minimum",params:{comparison:">=",limit:8},message:"must be >= 8",schema:8,parentSchema:de.properties.minFontSize,data:V};e===null?e=[B]:e.push(B),t++}}else{const B={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:de.properties.minFontSize.type,parentSchema:de.properties.minFontSize,data:V};e===null?e=[B]:e.push(B),t++}}if(N.maxFontSize!==void 0){let V=N.maxFontSize;if(typeof V=="number"){if(V>200||isNaN(V)){const B={instancePath:s+"/composition/maxFontSize",schemaPath:"#/$defs/Composition/properties/maxFontSize/maximum",keyword:"maximum",params:{comparison:"<=",limit:200},message:"must be <= 200",schema:200,parentSchema:de.properties.maxFontSize,data:V};e===null?e=[B]:e.push(B),t++}if(V<8||isNaN(V)){const B={instancePath:s+"/composition/maxFontSize",schemaPath:"#/$defs/Composition/properties/maxFontSize/minimum",keyword:"minimum",params:{comparison:">=",limit:8},message:"must be >= 8",schema:8,parentSchema:de.properties.maxFontSize,data:V};e===null?e=[B]:e.push(B),t++}}else{const B={instancePath:s+"/composition/maxFontSize",schemaPath:"#/$defs/Composition/properties/maxFontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:de.properties.maxFontSize.type,parentSchema:de.properties.maxFontSize,data:V};e===null?e=[B]:e.push(B),t++}}if(N.overflow!==void 0){let V=N.overflow;if(typeof V!="string"){const B={instancePath:s+"/composition/overflow",schemaPath:"#/$defs/Composition/properties/overflow/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.overflow.type,parentSchema:de.properties.overflow,data:V};e===null?e=[B]:e.push(B),t++}if(!(V==="warn"||V==="error")){const B={instancePath:s+"/composition/overflow",schemaPath:"#/$defs/Composition/properties/overflow/enum",keyword:"enum",params:{allowedValues:de.properties.overflow.enum},message:"must be equal to one of the allowed values",schema:de.properties.overflow.enum,parentSchema:de.properties.overflow,data:V};e===null?e=[B]:e.push(B),t++}}}else{const V={instancePath:s+"/composition",schemaPath:"#/$defs/Composition/type",keyword:"type",params:{type:"object"},message:"must be object",schema:de.type,parentSchema:de,data:N};e===null?e=[V]:e.push(V),t++}}if(a.emphasis!==void 0){let N=a.emphasis;if(typeof N!="boolean"){const V={instancePath:s+"/emphasis",schemaPath:"#/properties/emphasis/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Y.properties.emphasis.type,parentSchema:Y.properties.emphasis,data:N};e===null?e=[V]:e.push(V),t++}}}else{const N={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Y.type,parentSchema:Y,data:a};e===null?e=[N]:e.push(N),t++}return X.errors=e,t===0}X.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Nh=j.presentation.$defs.SlideDesign;function Qs(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qs.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Ya(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Ya.errors:e.concat(Ya.errors),t=e.length);const r=t,n=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.dimensions===void 0){const i={};e===null?e=[i]:e.push(i),t++}var o=n===t;if(o){const i={instancePath:s,schemaPath:"#/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:Nh.allOf[1].not,parentSchema:Nh.allOf[1],data:a};e===null?e=[i]:e.push(i),t++}else t=r,e!==null&&(r?e.length=r:e=null);return Qs.errors=e,t===0}Qs.evaluated={props:{theme:!0,colorScheme:!0,fontScheme:!0,dimensions:!0,background:!0,variant:!0,logo:!0,watermark:!0,header:!0,footer:!0,titleAlignment:!0,contentAlignment:!0,contentBox:!0,contentDirection:!0,chartPrimary:!0,imageFit:!0,listBullet:!0,listStyle:!0,mirror:!0},dynamicProps:!1,dynamicItems:!1};function Gs(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Gs.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const A in a)if(!va.call(ve.properties,A)){const f={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:A},message:"must NOT have additional properties",schema:!1,parentSchema:ve,data:a};e===null?e=[f]:e.push(f),t++}if(a.id!==void 0){let A=a.id;if(typeof A!="string"){const f={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.id.type,parentSchema:ve.properties.id,data:A};e===null?e=[f]:e.push(f),t++}}if(a.type!==void 0){let A=a.type;if(typeof A!="string"){const f={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.type.type,parentSchema:ve.properties.type,data:A};e===null?e=[f]:e.push(f),t++}if(!(A==="text"||A==="list"||A==="image"||A==="chart"||A==="table"||A==="video"||A==="code"||A==="metric"||A==="quote"||A==="timeline"||A==="diagram")){const f={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ve.properties.type.enum},message:"must be equal to one of the allowed values",schema:ve.properties.type.enum,parentSchema:ve.properties.type,data:A};e===null?e=[f]:e.push(f),t++}}if(a.beat!==void 0){let A=a.beat;const f=t;let P=!1,w=null;const $=t;if(typeof A!="string"){const z={instancePath:s+"/beat",schemaPath:"#/properties/beat/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.beat.oneOf[0].type,parentSchema:ve.properties.beat.oneOf[0],data:A};e===null?e=[z]:e.push(z),t++}var r=$===t;r&&(P=!0,w=0);const F=t;if(Array.isArray(A)){const z=A.length;for(let L=0;L<z;L++){let M=A[L];if(typeof M!="string"){const H={instancePath:s+"/beat/"+L,schemaPath:"#/properties/beat/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.beat.oneOf[1].items.type,parentSchema:ve.properties.beat.oneOf[1].items,data:M};e===null?e=[H]:e.push(H),t++}}}else{const z={instancePath:s+"/beat",schemaPath:"#/properties/beat/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.beat.oneOf[1].type,parentSchema:ve.properties.beat.oneOf[1],data:A};e===null?e=[z]:e.push(z),t++}var r=F===t;if(r&&P?(P=!1,w=[w,1]):r&&(P=!0,w=1),P)t=f,e!==null&&(f?e.length=f:e=null);else{const z={instancePath:s+"/beat",schemaPath:"#/properties/beat/oneOf",keyword:"oneOf",params:{passingSchemas:w},message:"must match exactly one schema in oneOf",schema:ve.properties.beat.oneOf,parentSchema:ve.properties.beat,data:A};e===null?e=[z]:e.push(z),t++}}if(a.layout!==void 0){let A=a.layout;if(typeof A=="string"){if(!Bt.test(A)){const f={instancePath:s+"/layout",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:A};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/layout",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:A};e===null?e=[f]:e.push(f),t++}}if(a.title!==void 0){let A=a.title;const f=t;let P=!1,w=null;const $=t;if(typeof A!="string"){const z={instancePath:s+"/title",schemaPath:"#/properties/title/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.title.oneOf[0].type,parentSchema:ve.properties.title.oneOf[0],data:A};e===null?e=[z]:e.push(z),t++}var n=$===t;n&&(P=!0,w=0);const F=t;if(Array.isArray(A)){const z=A.length;for(let L=0;L<z;L++)J(A[L],{instancePath:s+"/title/"+L,parentData:A,parentDataProperty:L,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const z={instancePath:s+"/title",schemaPath:"#/properties/title/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.title.oneOf[1].type,parentSchema:ve.properties.title.oneOf[1],data:A};e===null?e=[z]:e.push(z),t++}var n=F===t;if(n&&P?(P=!1,w=[w,1]):n&&(P=!0,w=1),P)t=f,e!==null&&(f?e.length=f:e=null);else{const z={instancePath:s+"/title",schemaPath:"#/properties/title/oneOf",keyword:"oneOf",params:{passingSchemas:w},message:"must match exactly one schema in oneOf",schema:ve.properties.title.oneOf,parentSchema:ve.properties.title,data:A};e===null?e=[z]:e.push(z),t++}}if(a.subtitle!==void 0){let A=a.subtitle;const f=t;let P=!1,w=null;const $=t;if(typeof A!="string"){const z={instancePath:s+"/subtitle",schemaPath:"#/properties/subtitle/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.subtitle.oneOf[0].type,parentSchema:ve.properties.subtitle.oneOf[0],data:A};e===null?e=[z]:e.push(z),t++}var o=$===t;o&&(P=!0,w=0);const F=t;if(Array.isArray(A)){const z=A.length;for(let L=0;L<z;L++)J(A[L],{instancePath:s+"/subtitle/"+L,parentData:A,parentDataProperty:L,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const z={instancePath:s+"/subtitle",schemaPath:"#/properties/subtitle/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.subtitle.oneOf[1].type,parentSchema:ve.properties.subtitle.oneOf[1],data:A};e===null?e=[z]:e.push(z),t++}var o=F===t;if(o&&P?(P=!1,w=[w,1]):o&&(P=!0,w=1),P)t=f,e!==null&&(f?e.length=f:e=null);else{const z={instancePath:s+"/subtitle",schemaPath:"#/properties/subtitle/oneOf",keyword:"oneOf",params:{passingSchemas:w},message:"must match exactly one schema in oneOf",schema:ve.properties.subtitle.oneOf,parentSchema:ve.properties.subtitle,data:A};e===null?e=[z]:e.push(z),t++}}if(a.tag!==void 0){let A=a.tag;const f=t;let P=!1,w=null;const $=t;if(typeof A!="string"){const z={instancePath:s+"/tag",schemaPath:"#/properties/tag/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.tag.oneOf[0].type,parentSchema:ve.properties.tag.oneOf[0],data:A};e===null?e=[z]:e.push(z),t++}var i=$===t;i&&(P=!0,w=0);const F=t;if(Array.isArray(A)){const z=A.length;for(let L=0;L<z;L++)J(A[L],{instancePath:s+"/tag/"+L,parentData:A,parentDataProperty:L,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const z={instancePath:s+"/tag",schemaPath:"#/properties/tag/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.tag.oneOf[1].type,parentSchema:ve.properties.tag.oneOf[1],data:A};e===null?e=[z]:e.push(z),t++}var i=F===t;if(i&&P?(P=!1,w=[w,1]):i&&(P=!0,w=1),P)t=f,e!==null&&(f?e.length=f:e=null);else{const z={instancePath:s+"/tag",schemaPath:"#/properties/tag/oneOf",keyword:"oneOf",params:{passingSchemas:w},message:"must match exactly one schema in oneOf",schema:ve.properties.tag.oneOf,parentSchema:ve.properties.tag,data:A};e===null?e=[z]:e.push(z),t++}}if(a.text!==void 0){let A=a.text;const f=t;let P=!1,w=null;const $=t;if(typeof A!="string"){const z={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.text.oneOf[0].type,parentSchema:ve.properties.text.oneOf[0],data:A};e===null?e=[z]:e.push(z),t++}var h=$===t;h&&(P=!0,w=0);const F=t;if(Array.isArray(A)){const z=A.length;for(let L=0;L<z;L++)J(A[L],{instancePath:s+"/text/"+L,parentData:A,parentDataProperty:L,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const z={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.text.oneOf[1].type,parentSchema:ve.properties.text.oneOf[1],data:A};e===null?e=[z]:e.push(z),t++}var h=F===t;if(h&&P?(P=!1,w=[w,1]):h&&(P=!0,w=1),P)t=f,e!==null&&(f?e.length=f:e=null);else{const z={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:w},message:"must match exactly one schema in oneOf",schema:ve.properties.text.oneOf,parentSchema:ve.properties.text,data:A};e===null?e=[z]:e.push(z),t++}}if(a.items!==void 0){let A=a.items;if(Array.isArray(A)){const f=A.length;for(let P=0;P<f;P++)as(A[P],{instancePath:s+"/items/"+P,parentData:A,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?as.errors:e.concat(as.errors),t=e.length)}else{const f={instancePath:s+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.items.type,parentSchema:ve.properties.items,data:A};e===null?e=[f]:e.push(f),t++}}if(a.bullets!==void 0){let A=a.bullets;if(Array.isArray(A)){const f=A.length;for(let P=0;P<f;P++)ss(A[P],{instancePath:s+"/bullets/"+P,parentData:A,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?ss.errors:e.concat(ss.errors),t=e.length)}else{const f={instancePath:s+"/bullets",schemaPath:"#/properties/bullets/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.bullets.type,parentSchema:ve.properties.bullets,data:A};e===null?e=[f]:e.push(f),t++}}if(a.numbering!==void 0&&(ns(a.numbering,{instancePath:s+"/numbering",parentData:a,parentDataProperty:"numbering",rootData:v,dynamicAnchors:b})||(e=e===null?ns.errors:e.concat(ns.errors),t=e.length)),a.image!==void 0){let A=a.image;const f=t;let P=!1,w=null;const $=t;if(typeof A!="string"){const z={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:A};e===null?e=[z]:e.push(z),t++}var c=$===t;c&&(P=!0,w=0);const F=t;if(A&&typeof A=="object"&&!Array.isArray(A)){if(A.src===void 0){const z={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:A};e===null?e=[z]:e.push(z),t++}for(const z in A)if(!(z==="src"||z==="alt"||z==="title"||z==="description"||z==="mediaType")){const L={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:z},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:A};e===null?e=[L]:e.push(L),t++}if(A.src!==void 0){let z=A.src;if(typeof z!="string"){const L={instancePath:s+"/image/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:z};e===null?e=[L]:e.push(L),t++}}if(A.alt!==void 0){let z=A.alt;if(typeof z!="string"){const L={instancePath:s+"/image/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:z};e===null?e=[L]:e.push(L),t++}}if(A.title!==void 0){let z=A.title;if(typeof z!="string"){const L={instancePath:s+"/image/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:z};e===null?e=[L]:e.push(L),t++}}if(A.description!==void 0){let z=A.description;if(typeof z!="string"){const L={instancePath:s+"/image/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:z};e===null?e=[L]:e.push(L),t++}}if(A.mediaType!==void 0){let z=A.mediaType;if(typeof z!="string"){const L={instancePath:s+"/image/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:z};e===null?e=[L]:e.push(L),t++}}}else{const z={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:A};e===null?e=[z]:e.push(z),t++}var c=F===t;if(c&&P?(P=!1,w=[w,1]):c&&(P=!0,w=1),P)t=f,e!==null&&(f?e.length=f:e=null);else{const z={instancePath:s+"/image",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:w},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:A};e===null?e=[z]:e.push(z),t++}}if(a.video!==void 0){let A=a.video;const f=t;let P=!1,w=null;const $=t;if(typeof A!="string"){const z={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:A};e===null?e=[z]:e.push(z),t++}var y=$===t;y&&(P=!0,w=0);const F=t;if(A&&typeof A=="object"&&!Array.isArray(A)){if(A.src===void 0){const z={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:A};e===null?e=[z]:e.push(z),t++}for(const z in A)if(!(z==="src"||z==="alt"||z==="title"||z==="description"||z==="mediaType")){const L={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:z},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:A};e===null?e=[L]:e.push(L),t++}if(A.src!==void 0){let z=A.src;if(typeof z!="string"){const L={instancePath:s+"/video/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:z};e===null?e=[L]:e.push(L),t++}}if(A.alt!==void 0){let z=A.alt;if(typeof z!="string"){const L={instancePath:s+"/video/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:z};e===null?e=[L]:e.push(L),t++}}if(A.title!==void 0){let z=A.title;if(typeof z!="string"){const L={instancePath:s+"/video/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:z};e===null?e=[L]:e.push(L),t++}}if(A.description!==void 0){let z=A.description;if(typeof z!="string"){const L={instancePath:s+"/video/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:z};e===null?e=[L]:e.push(L),t++}}if(A.mediaType!==void 0){let z=A.mediaType;if(typeof z!="string"){const L={instancePath:s+"/video/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:z};e===null?e=[L]:e.push(L),t++}}}else{const z={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:A};e===null?e=[z]:e.push(z),t++}var y=F===t;if(y&&P?(P=!1,w=[w,1]):y&&(P=!0,w=1),P)t=f,e!==null&&(f?e.length=f:e=null);else{const z={instancePath:s+"/video",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:w},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:A};e===null?e=[z]:e.push(z),t++}}if(a.chart!==void 0&&(ps(a.chart,{instancePath:s+"/chart",parentData:a,parentDataProperty:"chart",rootData:v,dynamicAnchors:b})||(e=e===null?ps.errors:e.concat(ps.errors),t=e.length)),a.table!==void 0&&(ms(a.table,{instancePath:s+"/table",parentData:a,parentDataProperty:"table",rootData:v,dynamicAnchors:b})||(e=e===null?ms.errors:e.concat(ms.errors),t=e.length)),a.code!==void 0){let A=a.code;const f=t;let P=!1,w=null;const $=t;if(typeof A!="string"){const z={instancePath:s+"/code",schemaPath:"#/properties/code/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.code.oneOf[0].type,parentSchema:ve.properties.code.oneOf[0],data:A};e===null?e=[z]:e.push(z),t++}var l=$===t;l&&(P=!0,w=0);const F=t;if(A&&typeof A=="object"&&!Array.isArray(A)){if(A.source===void 0){const z={instancePath:s+"/code",schemaPath:"#/$defs/Code/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:se.required,parentSchema:se,data:A};e===null?e=[z]:e.push(z),t++}for(const z in A)if(!(z==="source"||z==="language"||z==="filename"||z==="highlight")){const L={instancePath:s+"/code",schemaPath:"#/$defs/Code/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:z},message:"must NOT have additional properties",schema:!1,parentSchema:se,data:A};e===null?e=[L]:e.push(L),t++}if(A.source!==void 0){let z=A.source;if(typeof z!="string"){const L={instancePath:s+"/code/source",schemaPath:"#/$defs/Code/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.source.type,parentSchema:se.properties.source,data:z};e===null?e=[L]:e.push(L),t++}}if(A.language!==void 0){let z=A.language;if(typeof z!="string"){const L={instancePath:s+"/code/language",schemaPath:"#/$defs/Code/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.language.type,parentSchema:se.properties.language,data:z};e===null?e=[L]:e.push(L),t++}}if(A.filename!==void 0){let z=A.filename;if(typeof z!="string"){const L={instancePath:s+"/code/filename",schemaPath:"#/$defs/Code/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.filename.type,parentSchema:se.properties.filename,data:z};e===null?e=[L]:e.push(L),t++}}if(A.highlight!==void 0){let z=A.highlight;if(Array.isArray(z)){if(z.length<1){const M={instancePath:s+"/code/highlight",schemaPath:"#/$defs/Code/properties/highlight/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:se.properties.highlight,data:z};e===null?e=[M]:e.push(M),t++}const L=z.length;for(let M=0;M<L;M++){let H=z[M];const R=t;let C=!1,T=null;const U=t;if(!(typeof H=="number"&&!(H%1)&&!isNaN(H))){const te={instancePath:s+"/code/highlight/"+M,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/0/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:se.properties.highlight.items.oneOf[0].type,parentSchema:se.properties.highlight.items.oneOf[0],data:H};e===null?e=[te]:e.push(te),t++}if(typeof H=="number"&&(H<1||isNaN(H))){const te={instancePath:s+"/code/highlight/"+M,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/0/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:se.properties.highlight.items.oneOf[0],data:H};e===null?e=[te]:e.push(te),t++}var g=U===t;g&&(C=!0,T=0);const ae=t;if(Array.isArray(H)){if(H.length>2){const G={instancePath:s+"/code/highlight/"+M,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items",schema:2,parentSchema:se.properties.highlight.items.oneOf[1],data:H};e===null?e=[G]:e.push(G),t++}if(H.length<2){const G={instancePath:s+"/code/highlight/"+M,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:se.properties.highlight.items.oneOf[1],data:H};e===null?e=[G]:e.push(G),t++}const te=H.length;for(let G=0;G<te;G++){let Me=H[G];if(!(typeof Me=="number"&&!(Me%1)&&!isNaN(Me))){const Ke={instancePath:s+"/code/highlight/"+M+"/"+G,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/items/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:se.properties.highlight.items.oneOf[1].items.type,parentSchema:se.properties.highlight.items.oneOf[1].items,data:Me};e===null?e=[Ke]:e.push(Ke),t++}if(typeof Me=="number"&&(Me<1||isNaN(Me))){const Ke={instancePath:s+"/code/highlight/"+M+"/"+G,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/items/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:se.properties.highlight.items.oneOf[1].items,data:Me};e===null?e=[Ke]:e.push(Ke),t++}}}else{const te={instancePath:s+"/code/highlight/"+M,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:se.properties.highlight.items.oneOf[1].type,parentSchema:se.properties.highlight.items.oneOf[1],data:H};e===null?e=[te]:e.push(te),t++}var g=ae===t;if(g&&C?(C=!1,T=[T,1]):g&&(C=!0,T=1),C)t=R,e!==null&&(R?e.length=R:e=null);else{const te={instancePath:s+"/code/highlight/"+M,schemaPath:"#/$defs/Code/properties/highlight/items/oneOf",keyword:"oneOf",params:{passingSchemas:T},message:"must match exactly one schema in oneOf",schema:se.properties.highlight.items.oneOf,parentSchema:se.properties.highlight.items,data:H};e===null?e=[te]:e.push(te),t++}}}else{const L={instancePath:s+"/code/highlight",schemaPath:"#/$defs/Code/properties/highlight/type",keyword:"type",params:{type:"array"},message:"must be array",schema:se.properties.highlight.type,parentSchema:se.properties.highlight,data:z};e===null?e=[L]:e.push(L),t++}}}else{const z={instancePath:s+"/code",schemaPath:"#/$defs/Code/type",keyword:"type",params:{type:"object"},message:"must be object",schema:se.type,parentSchema:se,data:A};e===null?e=[z]:e.push(z),t++}var l=F===t;if(l&&P?(P=!1,w=[w,1]):l&&(P=!0,w=1),P)t=f,e!==null&&(f?e.length=f:e=null);else{const z={instancePath:s+"/code",schemaPath:"#/properties/code/oneOf",keyword:"oneOf",params:{passingSchemas:w},message:"must match exactly one schema in oneOf",schema:ve.properties.code.oneOf,parentSchema:ve.properties.code,data:A};e===null?e=[z]:e.push(z),t++}}if(a.metric!==void 0){let A=a.metric;const f=t;let P=!1,w=null;const $=t;if(typeof A!="string"){const z={instancePath:s+"/metric",schemaPath:"#/properties/metric/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.metric.oneOf[0].type,parentSchema:ve.properties.metric.oneOf[0],data:A};e===null?e=[z]:e.push(z),t++}var p=$===t;p&&(P=!0,w=0);const F=t;if(typeof A!="number"){const z={instancePath:s+"/metric",schemaPath:"#/properties/metric/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ve.properties.metric.oneOf[1].type,parentSchema:ve.properties.metric.oneOf[1],data:A};e===null?e=[z]:e.push(z),t++}var p=F===t;if(p&&P)P=!1,w=[w,1];else{p&&(P=!0,w=1);const z=t;if(A&&typeof A=="object"&&!Array.isArray(A)){if(A.value===void 0){const M={instancePath:s+"/metric",schemaPath:"#/$defs/Metric/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:Q.required,parentSchema:Q,data:A};e===null?e=[M]:e.push(M),t++}for(const M in A)if(!(M==="value"||M==="label"||M==="description"||M==="unit"||M==="delta"||M==="trend"||M==="sentiment")){const H={instancePath:s+"/metric",schemaPath:"#/$defs/Metric/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:M},message:"must NOT have additional properties",schema:!1,parentSchema:Q,data:A};e===null?e=[H]:e.push(H),t++}if(A.value!==void 0){let M=A.value;const H=t;let R=!1,C=null;const T=t;if(typeof M!="string"){const ae={instancePath:s+"/metric/value",schemaPath:"#/$defs/Metric/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.value.oneOf[0].type,parentSchema:Q.properties.value.oneOf[0],data:M};e===null?e=[ae]:e.push(ae),t++}var d=T===t;d&&(R=!0,C=0);const U=t;if(typeof M!="number"){const ae={instancePath:s+"/metric/value",schemaPath:"#/$defs/Metric/properties/value/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Q.properties.value.oneOf[1].type,parentSchema:Q.properties.value.oneOf[1],data:M};e===null?e=[ae]:e.push(ae),t++}var d=U===t;if(d&&R?(R=!1,C=[C,1]):d&&(R=!0,C=1),R)t=H,e!==null&&(H?e.length=H:e=null);else{const ae={instancePath:s+"/metric/value",schemaPath:"#/$defs/Metric/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:C},message:"must match exactly one schema in oneOf",schema:Q.properties.value.oneOf,parentSchema:Q.properties.value,data:M};e===null?e=[ae]:e.push(ae),t++}}if(A.label!==void 0){let M=A.label;if(typeof M!="string"){const H={instancePath:s+"/metric/label",schemaPath:"#/$defs/Metric/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.label.type,parentSchema:Q.properties.label,data:M};e===null?e=[H]:e.push(H),t++}}if(A.description!==void 0){let M=A.description;if(typeof M!="string"){const H={instancePath:s+"/metric/description",schemaPath:"#/$defs/Metric/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.description.type,parentSchema:Q.properties.description,data:M};e===null?e=[H]:e.push(H),t++}}if(A.unit!==void 0){let M=A.unit;if(typeof M!="string"){const H={instancePath:s+"/metric/unit",schemaPath:"#/$defs/Metric/properties/unit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.unit.type,parentSchema:Q.properties.unit,data:M};e===null?e=[H]:e.push(H),t++}}if(A.delta!==void 0){let M=A.delta;const H=t;let R=!1,C=null;const T=t;if(typeof M!="string"){const ae={instancePath:s+"/metric/delta",schemaPath:"#/$defs/Metric/properties/delta/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.delta.oneOf[0].type,parentSchema:Q.properties.delta.oneOf[0],data:M};e===null?e=[ae]:e.push(ae),t++}var O=T===t;O&&(R=!0,C=0);const U=t;if(typeof M!="number"){const ae={instancePath:s+"/metric/delta",schemaPath:"#/$defs/Metric/properties/delta/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Q.properties.delta.oneOf[1].type,parentSchema:Q.properties.delta.oneOf[1],data:M};e===null?e=[ae]:e.push(ae),t++}var O=U===t;if(O&&R?(R=!1,C=[C,1]):O&&(R=!0,C=1),R)t=H,e!==null&&(H?e.length=H:e=null);else{const ae={instancePath:s+"/metric/delta",schemaPath:"#/$defs/Metric/properties/delta/oneOf",keyword:"oneOf",params:{passingSchemas:C},message:"must match exactly one schema in oneOf",schema:Q.properties.delta.oneOf,parentSchema:Q.properties.delta,data:M};e===null?e=[ae]:e.push(ae),t++}}if(A.trend!==void 0){let M=A.trend;if(typeof M!="string"){const H={instancePath:s+"/metric/trend",schemaPath:"#/$defs/Metric/properties/trend/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.trend.type,parentSchema:Q.properties.trend,data:M};e===null?e=[H]:e.push(H),t++}if(!(M==="up"||M==="down"||M==="flat")){const H={instancePath:s+"/metric/trend",schemaPath:"#/$defs/Metric/properties/trend/enum",keyword:"enum",params:{allowedValues:Q.properties.trend.enum},message:"must be equal to one of the allowed values",schema:Q.properties.trend.enum,parentSchema:Q.properties.trend,data:M};e===null?e=[H]:e.push(H),t++}}if(A.sentiment!==void 0){let M=A.sentiment;if(typeof M!="string"){const H={instancePath:s+"/metric/sentiment",schemaPath:"#/$defs/Metric/properties/sentiment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.sentiment.type,parentSchema:Q.properties.sentiment,data:M};e===null?e=[H]:e.push(H),t++}if(!(M==="positive"||M==="negative"||M==="neutral")){const H={instancePath:s+"/metric/sentiment",schemaPath:"#/$defs/Metric/properties/sentiment/enum",keyword:"enum",params:{allowedValues:Q.properties.sentiment.enum},message:"must be equal to one of the allowed values",schema:Q.properties.sentiment.enum,parentSchema:Q.properties.sentiment,data:M};e===null?e=[H]:e.push(H),t++}}}else{const M={instancePath:s+"/metric",schemaPath:"#/$defs/Metric/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Q.type,parentSchema:Q,data:A};e===null?e=[M]:e.push(M),t++}var p=z===t;p&&P?(P=!1,w=[w,2]):p&&(P=!0,w=2)}if(P)t=f,e!==null&&(f?e.length=f:e=null);else{const z={instancePath:s+"/metric",schemaPath:"#/properties/metric/oneOf",keyword:"oneOf",params:{passingSchemas:w},message:"must match exactly one schema in oneOf",schema:ve.properties.metric.oneOf,parentSchema:ve.properties.metric,data:A};e===null?e=[z]:e.push(z),t++}}if(a.quote!==void 0){let A=a.quote;const f=t;let P=!1,w=null;const $=t;if(typeof A!="string"){const z={instancePath:s+"/quote",schemaPath:"#/properties/quote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.quote.oneOf[0].type,parentSchema:ve.properties.quote.oneOf[0],data:A};e===null?e=[z]:e.push(z),t++}var S=$===t;S&&(P=!0,w=0);const F=t;cs(A,{instancePath:s+"/quote",parentData:a,parentDataProperty:"quote",rootData:v,dynamicAnchors:b})||(e=e===null?cs.errors:e.concat(cs.errors),t=e.length);var S=F===t;if(S&&P?(P=!1,w=[w,1]):S&&(P=!0,w=1),P)t=f,e!==null&&(f?e.length=f:e=null);else{const z={instancePath:s+"/quote",schemaPath:"#/properties/quote/oneOf",keyword:"oneOf",params:{passingSchemas:w},message:"must match exactly one schema in oneOf",schema:ve.properties.quote.oneOf,parentSchema:ve.properties.quote,data:A};e===null?e=[z]:e.push(z),t++}}if(a.timeline!==void 0&&(hs(a.timeline,{instancePath:s+"/timeline",parentData:a,parentDataProperty:"timeline",rootData:v,dynamicAnchors:b})||(e=e===null?hs.errors:e.concat(hs.errors),t=e.length)),a.diagram!==void 0){let A=a.diagram;const f=t;let P=!1,w=null;const $=t;if(typeof A!="string"){const z={instancePath:s+"/diagram",schemaPath:"#/properties/diagram/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.diagram.oneOf[0].type,parentSchema:ve.properties.diagram.oneOf[0],data:A};e===null?e=[z]:e.push(z),t++}var I=$===t;I&&(P=!0,w=0);const F=t;if(A&&typeof A=="object"&&!Array.isArray(A)){if(A.source===void 0){const z={instancePath:s+"/diagram",schemaPath:"#/$defs/Diagram/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:ze.required,parentSchema:ze,data:A};e===null?e=[z]:e.push(z),t++}for(const z in A)if(!(z==="source"||z==="syntax"||z==="alt")){const L={instancePath:s+"/diagram",schemaPath:"#/$defs/Diagram/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:z},message:"must NOT have additional properties",schema:!1,parentSchema:ze,data:A};e===null?e=[L]:e.push(L),t++}if(A.source!==void 0){let z=A.source;if(typeof z=="string"){if(pe(z)<1){const L={instancePath:s+"/diagram/source",schemaPath:"#/$defs/Diagram/properties/source/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:ze.properties.source,data:z};e===null?e=[L]:e.push(L),t++}}else{const L={instancePath:s+"/diagram/source",schemaPath:"#/$defs/Diagram/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.source.type,parentSchema:ze.properties.source,data:z};e===null?e=[L]:e.push(L),t++}}if(A.syntax!==void 0){let z=A.syntax;if(typeof z!="string"){const L={instancePath:s+"/diagram/syntax",schemaPath:"#/$defs/Diagram/properties/syntax/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.syntax.type,parentSchema:ze.properties.syntax,data:z};e===null?e=[L]:e.push(L),t++}if(z!=="mermaid"){const L={instancePath:s+"/diagram/syntax",schemaPath:"#/$defs/Diagram/properties/syntax/enum",keyword:"enum",params:{allowedValues:ze.properties.syntax.enum},message:"must be equal to one of the allowed values",schema:ze.properties.syntax.enum,parentSchema:ze.properties.syntax,data:z};e===null?e=[L]:e.push(L),t++}}if(A.alt!==void 0){let z=A.alt;if(typeof z!="string"){const L={instancePath:s+"/diagram/alt",schemaPath:"#/$defs/Diagram/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.alt.type,parentSchema:ze.properties.alt,data:z};e===null?e=[L]:e.push(L),t++}}}else{const z={instancePath:s+"/diagram",schemaPath:"#/$defs/Diagram/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ze.type,parentSchema:ze,data:A};e===null?e=[z]:e.push(z),t++}var I=F===t;if(I&&P?(P=!1,w=[w,1]):I&&(P=!0,w=1),P)t=f,e!==null&&(f?e.length=f:e=null);else{const z={instancePath:s+"/diagram",schemaPath:"#/properties/diagram/oneOf",keyword:"oneOf",params:{passingSchemas:w},message:"must match exactly one schema in oneOf",schema:ve.properties.diagram.oneOf,parentSchema:ve.properties.diagram,data:A};e===null?e=[z]:e.push(z),t++}}if(a.caption!==void 0&&(ls(a.caption,{instancePath:s+"/caption",parentData:a,parentDataProperty:"caption",rootData:v,dynamicAnchors:b})||(e=e===null?ls.errors:e.concat(ls.errors),t=e.length)),a.blocks!==void 0){let A=a.blocks;if(Array.isArray(A)){const f=A.length;for(let P=0;P<f;P++)X(A[P],{instancePath:s+"/blocks/"+P,parentData:A,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)}else{const f={instancePath:s+"/blocks",schemaPath:"#/properties/blocks/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ve.properties.blocks.type,parentSchema:ve.properties.blocks,data:A};e===null?e=[f]:e.push(f),t++}}if(a.design!==void 0&&(Qs(a.design,{instancePath:s+"/design",parentData:a,parentDataProperty:"design",rootData:v,dynamicAnchors:b})||(e=e===null?Qs.errors:e.concat(Qs.errors),t=e.length)),a.left!==void 0&&(X(a.left,{instancePath:s+"/left",parentData:a,parentDataProperty:"left",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a.center!==void 0&&(X(a.center,{instancePath:s+"/center",parentData:a,parentDataProperty:"center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a.right!==void 0&&(X(a.right,{instancePath:s+"/right",parentData:a,parentDataProperty:"right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["left+center"]!==void 0&&(X(a["left+center"],{instancePath:s+"/left+center",parentData:a,parentDataProperty:"left+center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["center+right"]!==void 0&&(X(a["center+right"],{instancePath:s+"/center+right",parentData:a,parentDataProperty:"center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["left+center+right"]!==void 0&&(X(a["left+center+right"],{instancePath:s+"/left+center+right",parentData:a,parentDataProperty:"left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a.top!==void 0&&(X(a.top,{instancePath:s+"/top",parentData:a,parentDataProperty:"top",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a.middle!==void 0&&(X(a.middle,{instancePath:s+"/middle",parentData:a,parentDataProperty:"middle",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a.bottom!==void 0&&(X(a.bottom,{instancePath:s+"/bottom",parentData:a,parentDataProperty:"bottom",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle"]!==void 0&&(X(a["top+middle"],{instancePath:s+"/top+middle",parentData:a,parentDataProperty:"top+middle",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["middle+bottom"]!==void 0&&(X(a["middle+bottom"],{instancePath:s+"/middle+bottom",parentData:a,parentDataProperty:"middle+bottom",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle+bottom"]!==void 0&&(X(a["top+middle+bottom"],{instancePath:s+"/top+middle+bottom",parentData:a,parentDataProperty:"top+middle+bottom",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top:left"]!==void 0&&(X(a["top:left"],{instancePath:s+"/top:left",parentData:a,parentDataProperty:"top:left",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top:center"]!==void 0&&(X(a["top:center"],{instancePath:s+"/top:center",parentData:a,parentDataProperty:"top:center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top:right"]!==void 0&&(X(a["top:right"],{instancePath:s+"/top:right",parentData:a,parentDataProperty:"top:right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top:left+center"]!==void 0&&(X(a["top:left+center"],{instancePath:s+"/top:left+center",parentData:a,parentDataProperty:"top:left+center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top:center+right"]!==void 0&&(X(a["top:center+right"],{instancePath:s+"/top:center+right",parentData:a,parentDataProperty:"top:center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top:left+center+right"]!==void 0&&(X(a["top:left+center+right"],{instancePath:s+"/top:left+center+right",parentData:a,parentDataProperty:"top:left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["middle:left"]!==void 0&&(X(a["middle:left"],{instancePath:s+"/middle:left",parentData:a,parentDataProperty:"middle:left",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["middle:center"]!==void 0&&(X(a["middle:center"],{instancePath:s+"/middle:center",parentData:a,parentDataProperty:"middle:center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["middle:right"]!==void 0&&(X(a["middle:right"],{instancePath:s+"/middle:right",parentData:a,parentDataProperty:"middle:right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["middle:left+center"]!==void 0&&(X(a["middle:left+center"],{instancePath:s+"/middle:left+center",parentData:a,parentDataProperty:"middle:left+center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["middle:center+right"]!==void 0&&(X(a["middle:center+right"],{instancePath:s+"/middle:center+right",parentData:a,parentDataProperty:"middle:center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["middle:left+center+right"]!==void 0&&(X(a["middle:left+center+right"],{instancePath:s+"/middle:left+center+right",parentData:a,parentDataProperty:"middle:left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["bottom:left"]!==void 0&&(X(a["bottom:left"],{instancePath:s+"/bottom:left",parentData:a,parentDataProperty:"bottom:left",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["bottom:center"]!==void 0&&(X(a["bottom:center"],{instancePath:s+"/bottom:center",parentData:a,parentDataProperty:"bottom:center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["bottom:right"]!==void 0&&(X(a["bottom:right"],{instancePath:s+"/bottom:right",parentData:a,parentDataProperty:"bottom:right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["bottom:left+center"]!==void 0&&(X(a["bottom:left+center"],{instancePath:s+"/bottom:left+center",parentData:a,parentDataProperty:"bottom:left+center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["bottom:center+right"]!==void 0&&(X(a["bottom:center+right"],{instancePath:s+"/bottom:center+right",parentData:a,parentDataProperty:"bottom:center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["bottom:left+center+right"]!==void 0&&(X(a["bottom:left+center+right"],{instancePath:s+"/bottom:left+center+right",parentData:a,parentDataProperty:"bottom:left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle:left"]!==void 0&&(X(a["top+middle:left"],{instancePath:s+"/top+middle:left",parentData:a,parentDataProperty:"top+middle:left",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle:center"]!==void 0&&(X(a["top+middle:center"],{instancePath:s+"/top+middle:center",parentData:a,parentDataProperty:"top+middle:center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle:right"]!==void 0&&(X(a["top+middle:right"],{instancePath:s+"/top+middle:right",parentData:a,parentDataProperty:"top+middle:right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle:left+center"]!==void 0&&(X(a["top+middle:left+center"],{instancePath:s+"/top+middle:left+center",parentData:a,parentDataProperty:"top+middle:left+center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle:center+right"]!==void 0&&(X(a["top+middle:center+right"],{instancePath:s+"/top+middle:center+right",parentData:a,parentDataProperty:"top+middle:center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle:left+center+right"]!==void 0&&(X(a["top+middle:left+center+right"],{instancePath:s+"/top+middle:left+center+right",parentData:a,parentDataProperty:"top+middle:left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["middle+bottom:left"]!==void 0&&(X(a["middle+bottom:left"],{instancePath:s+"/middle+bottom:left",parentData:a,parentDataProperty:"middle+bottom:left",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["middle+bottom:center"]!==void 0&&(X(a["middle+bottom:center"],{instancePath:s+"/middle+bottom:center",parentData:a,parentDataProperty:"middle+bottom:center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["middle+bottom:right"]!==void 0&&(X(a["middle+bottom:right"],{instancePath:s+"/middle+bottom:right",parentData:a,parentDataProperty:"middle+bottom:right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["middle+bottom:left+center"]!==void 0&&(X(a["middle+bottom:left+center"],{instancePath:s+"/middle+bottom:left+center",parentData:a,parentDataProperty:"middle+bottom:left+center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["middle+bottom:center+right"]!==void 0&&(X(a["middle+bottom:center+right"],{instancePath:s+"/middle+bottom:center+right",parentData:a,parentDataProperty:"middle+bottom:center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["middle+bottom:left+center+right"]!==void 0&&(X(a["middle+bottom:left+center+right"],{instancePath:s+"/middle+bottom:left+center+right",parentData:a,parentDataProperty:"middle+bottom:left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle+bottom:left"]!==void 0&&(X(a["top+middle+bottom:left"],{instancePath:s+"/top+middle+bottom:left",parentData:a,parentDataProperty:"top+middle+bottom:left",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle+bottom:center"]!==void 0&&(X(a["top+middle+bottom:center"],{instancePath:s+"/top+middle+bottom:center",parentData:a,parentDataProperty:"top+middle+bottom:center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle+bottom:right"]!==void 0&&(X(a["top+middle+bottom:right"],{instancePath:s+"/top+middle+bottom:right",parentData:a,parentDataProperty:"top+middle+bottom:right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle+bottom:left+center"]!==void 0&&(X(a["top+middle+bottom:left+center"],{instancePath:s+"/top+middle+bottom:left+center",parentData:a,parentDataProperty:"top+middle+bottom:left+center",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle+bottom:center+right"]!==void 0&&(X(a["top+middle+bottom:center+right"],{instancePath:s+"/top+middle+bottom:center+right",parentData:a,parentDataProperty:"top+middle+bottom:center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a["top+middle+bottom:left+center+right"]!==void 0&&(X(a["top+middle+bottom:left+center+right"],{instancePath:s+"/top+middle+bottom:left+center+right",parentData:a,parentDataProperty:"top+middle+bottom:left+center+right",rootData:v,dynamicAnchors:b})||(e=e===null?X.errors:e.concat(X.errors),t=e.length)),a.notes!==void 0){let A=a.notes;if(typeof A!="string"){const f={instancePath:s+"/notes",schemaPath:"#/properties/notes/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.notes.type,parentSchema:ve.properties.notes,data:A};e===null?e=[f]:e.push(f),t++}}if(a.section!==void 0){let A=a.section;if(typeof A!="string"){const f={instancePath:s+"/section",schemaPath:"#/properties/section/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ve.properties.section.type,parentSchema:ve.properties.section,data:A};e===null?e=[f]:e.push(f),t++}}if(a.hidden!==void 0){let A=a.hidden;if(typeof A!="boolean"){const f={instancePath:s+"/hidden",schemaPath:"#/properties/hidden/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ve.properties.hidden.type,parentSchema:ve.properties.hidden,data:A};e===null?e=[f]:e.push(f),t++}}if(a.composition!==void 0){let A=a.composition;if(A&&typeof A=="object"&&!Array.isArray(A)){for(const f in A)if(!(f==="mode"||f==="columns"||f==="gap"||f==="padding"||f==="weights"||f==="minFontSize"||f==="maxFontSize"||f==="overflow")){const P={instancePath:s+"/composition",schemaPath:"#/$defs/Composition/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties",schema:!1,parentSchema:de,data:A};e===null?e=[P]:e.push(P),t++}if(A.mode!==void 0){let f=A.mode;if(typeof f!="string"){const P={instancePath:s+"/composition/mode",schemaPath:"#/$defs/Composition/properties/mode/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.mode.type,parentSchema:de.properties.mode,data:f};e===null?e=[P]:e.push(P),t++}if(!(f==="auto"||f==="grid"||f==="row"||f==="column")){const P={instancePath:s+"/composition/mode",schemaPath:"#/$defs/Composition/properties/mode/enum",keyword:"enum",params:{allowedValues:de.properties.mode.enum},message:"must be equal to one of the allowed values",schema:de.properties.mode.enum,parentSchema:de.properties.mode,data:f};e===null?e=[P]:e.push(P),t++}}if(A.columns!==void 0){let f=A.columns;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f))){const P={instancePath:s+"/composition/columns",schemaPath:"#/$defs/Composition/properties/columns/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:de.properties.columns.type,parentSchema:de.properties.columns,data:f};e===null?e=[P]:e.push(P),t++}if(typeof f=="number"){if(f>12||isNaN(f)){const P={instancePath:s+"/composition/columns",schemaPath:"#/$defs/Composition/properties/columns/maximum",keyword:"maximum",params:{comparison:"<=",limit:12},message:"must be <= 12",schema:12,parentSchema:de.properties.columns,data:f};e===null?e=[P]:e.push(P),t++}if(f<1||isNaN(f)){const P={instancePath:s+"/composition/columns",schemaPath:"#/$defs/Composition/properties/columns/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:de.properties.columns,data:f};e===null?e=[P]:e.push(P),t++}}}if(A.gap!==void 0){let f=A.gap;if(typeof f=="number"){if(f>.1||isNaN(f)){const P={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/maximum",keyword:"maximum",params:{comparison:"<=",limit:.1},message:"must be <= 0.1",schema:.1,parentSchema:de.properties.gap,data:f};e===null?e=[P]:e.push(P),t++}if(f<0||isNaN(f)){const P={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:de.properties.gap,data:f};e===null?e=[P]:e.push(P),t++}}else{const P={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/type",keyword:"type",params:{type:"number"},message:"must be number",schema:de.properties.gap.type,parentSchema:de.properties.gap,data:f};e===null?e=[P]:e.push(P),t++}}if(A.padding!==void 0){let f=A.padding;if(typeof f=="number"){if(f>.2||isNaN(f)){const P={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/maximum",keyword:"maximum",params:{comparison:"<=",limit:.2},message:"must be <= 0.2",schema:.2,parentSchema:de.properties.padding,data:f};e===null?e=[P]:e.push(P),t++}if(f<0||isNaN(f)){const P={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:de.properties.padding,data:f};e===null?e=[P]:e.push(P),t++}}else{const P={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/type",keyword:"type",params:{type:"number"},message:"must be number",schema:de.properties.padding.type,parentSchema:de.properties.padding,data:f};e===null?e=[P]:e.push(P),t++}}if(A.weights!==void 0){let f=A.weights;if(Array.isArray(f)){if(f.length>12){const w={instancePath:s+"/composition/weights",schemaPath:"#/$defs/Composition/properties/weights/maxItems",keyword:"maxItems",params:{limit:12},message:"must NOT have more than 12 items",schema:12,parentSchema:de.properties.weights,data:f};e===null?e=[w]:e.push(w),t++}if(f.length<1){const w={instancePath:s+"/composition/weights",schemaPath:"#/$defs/Composition/properties/weights/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:de.properties.weights,data:f};e===null?e=[w]:e.push(w),t++}const P=f.length;for(let w=0;w<P;w++){let $=f[w];if(typeof $=="number"){if($>100||isNaN($)){const F={instancePath:s+"/composition/weights/"+w,schemaPath:"#/$defs/Composition/properties/weights/items/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:de.properties.weights.items,data:$};e===null?e=[F]:e.push(F),t++}if($<=0||isNaN($)){const F={instancePath:s+"/composition/weights/"+w,schemaPath:"#/$defs/Composition/properties/weights/items/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:de.properties.weights.items,data:$};e===null?e=[F]:e.push(F),t++}}else{const F={instancePath:s+"/composition/weights/"+w,schemaPath:"#/$defs/Composition/properties/weights/items/type",keyword:"type",params:{type:"number"},message:"must be number",schema:de.properties.weights.items.type,parentSchema:de.properties.weights.items,data:$};e===null?e=[F]:e.push(F),t++}}}else{const P={instancePath:s+"/composition/weights",schemaPath:"#/$defs/Composition/properties/weights/type",keyword:"type",params:{type:"array"},message:"must be array",schema:de.properties.weights.type,parentSchema:de.properties.weights,data:f};e===null?e=[P]:e.push(P),t++}}if(A.minFontSize!==void 0){let f=A.minFontSize;if(typeof f=="number"){if(f>32||isNaN(f)){const P={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/maximum",keyword:"maximum",params:{comparison:"<=",limit:32},message:"must be <= 32",schema:32,parentSchema:de.properties.minFontSize,data:f};e===null?e=[P]:e.push(P),t++}if(f<8||isNaN(f)){const P={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/minimum",keyword:"minimum",params:{comparison:">=",limit:8},message:"must be >= 8",schema:8,parentSchema:de.properties.minFontSize,data:f};e===null?e=[P]:e.push(P),t++}}else{const P={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:de.properties.minFontSize.type,parentSchema:de.properties.minFontSize,data:f};e===null?e=[P]:e.push(P),t++}}if(A.maxFontSize!==void 0){let f=A.maxFontSize;if(typeof f=="number"){if(f>200||isNaN(f)){const P={instancePath:s+"/composition/maxFontSize",schemaPath:"#/$defs/Composition/properties/maxFontSize/maximum",keyword:"maximum",params:{comparison:"<=",limit:200},message:"must be <= 200",schema:200,parentSchema:de.properties.maxFontSize,data:f};e===null?e=[P]:e.push(P),t++}if(f<8||isNaN(f)){const P={instancePath:s+"/composition/maxFontSize",schemaPath:"#/$defs/Composition/properties/maxFontSize/minimum",keyword:"minimum",params:{comparison:">=",limit:8},message:"must be >= 8",schema:8,parentSchema:de.properties.maxFontSize,data:f};e===null?e=[P]:e.push(P),t++}}else{const P={instancePath:s+"/composition/maxFontSize",schemaPath:"#/$defs/Composition/properties/maxFontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:de.properties.maxFontSize.type,parentSchema:de.properties.maxFontSize,data:f};e===null?e=[P]:e.push(P),t++}}if(A.overflow!==void 0){let f=A.overflow;if(typeof f!="string"){const P={instancePath:s+"/composition/overflow",schemaPath:"#/$defs/Composition/properties/overflow/type",keyword:"type",params:{type:"string"},message:"must be string",schema:de.properties.overflow.type,parentSchema:de.properties.overflow,data:f};e===null?e=[P]:e.push(P),t++}if(!(f==="warn"||f==="error")){const P={instancePath:s+"/composition/overflow",schemaPath:"#/$defs/Composition/properties/overflow/enum",keyword:"enum",params:{allowedValues:de.properties.overflow.enum},message:"must be equal to one of the allowed values",schema:de.properties.overflow.enum,parentSchema:de.properties.overflow,data:f};e===null?e=[P]:e.push(P),t++}}}else{const f={instancePath:s+"/composition",schemaPath:"#/$defs/Composition/type",keyword:"type",params:{type:"object"},message:"must be object",schema:de.type,parentSchema:de,data:A};e===null?e=[f]:e.push(f),t++}}if(a.extensions!==void 0){let A=a.extensions;if(!(A&&typeof A=="object"&&!Array.isArray(A))){const f={instancePath:s+"/extensions",schemaPath:"#/properties/extensions/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ve.properties.extensions.type,parentSchema:ve.properties.extensions,data:A};e===null?e=[f]:e.push(f),t++}}}else{const A={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ve.type,parentSchema:ve,data:a};e===null?e=[A]:e.push(A),t++}return Gs.errors=e,t===0}Gs.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ra=j.presentation.$defs.Reference;function er(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=er.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ra.required,parentSchema:ra,data:a};e===null?e=[n]:e.push(n),t++}if(a.text===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:ra.required,parentSchema:ra,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="id"||n==="text"||n==="url")){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ra,data:a};e===null?e=[o]:e.push(o),t++}if(a.id!==void 0){let n=a.id;if(typeof n=="string"){if(pe(n)<1){const o={instancePath:s+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:ra.properties.id,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ra.properties.id.type,parentSchema:ra.properties.id,data:n};e===null?e=[o]:e.push(o),t++}}if(a.text!==void 0){let n=a.text;const o=t;let i=!1,h=null;const c=t;if(typeof n!="string"){const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ra.properties.text.oneOf[0].type,parentSchema:ra.properties.text.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(Array.isArray(n)){const g=n.length;for(let l=0;l<g;l++)J(n[l],{instancePath:s+"/text/"+l,parentData:n,parentDataProperty:l,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ra.properties.text.oneOf[1].type,parentSchema:ra.properties.text.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=o,e!==null&&(o?e.length=o:e=null);else{const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:ra.properties.text.oneOf,parentSchema:ra.properties.text,data:n};e===null?e=[g]:e.push(g),t++}}if(a.url!==void 0){let n=a.url;if(typeof n!="string"){const o={instancePath:s+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ra.properties.url.type,parentSchema:ra.properties.url,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ra.type,parentSchema:ra,data:a};e===null?e=[n]:e.push(n),t++}return er.errors=e,t===0}er.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Vn=j.presentation.$defs.Datasets,Ut=j.presentation.$defs.Dataset;function tr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=tr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.columns===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columns"},message:"must have required property 'columns'",schema:Ut.required,parentSchema:Ut,data:a};e===null?e=[i]:e.push(i),t++}if(a.rows===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'",schema:Ut.required,parentSchema:Ut,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!(i==="title"||i==="description"||i==="columns"||i==="rows"||i==="source")){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:Ut,data:a};e===null?e=[h]:e.push(h),t++}if(a.title!==void 0){let i=a.title;if(typeof i!="string"){const h={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ut.properties.title.type,parentSchema:Ut.properties.title,data:i};e===null?e=[h]:e.push(h),t++}}if(a.description!==void 0){let i=a.description;if(typeof i!="string"){const h={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ut.properties.description.type,parentSchema:Ut.properties.description,data:i};e===null?e=[h]:e.push(h),t++}}if(a.columns!==void 0){let i=a.columns;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/columns",schemaPath:"#/properties/columns/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Ut.properties.columns,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];const g=t;let l=!1,p=null;const d=t;if(typeof y!="string"){const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ut.properties.columns.items.oneOf[0].type,parentSchema:Ut.properties.columns.items.oneOf[0],data:y};e===null?e=[S]:e.push(S),t++}var r=d===t;r&&(l=!0,p=0);const O=t;aa(y,{instancePath:s+"/columns/"+c,parentData:i,parentDataProperty:c,rootData:v,dynamicAnchors:b})||(e=e===null?aa.errors:e.concat(aa.errors),t=e.length);var r=O===t;if(r&&l?(l=!1,p=[p,1]):r&&(l=!0,p=1),l)t=g,e!==null&&(g?e.length=g:e=null);else{const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Ut.properties.columns.items.oneOf,parentSchema:Ut.properties.columns.items,data:y};e===null?e=[S]:e.push(S),t++}}}else{const h={instancePath:s+"/columns",schemaPath:"#/properties/columns/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ut.properties.columns.type,parentSchema:Ut.properties.columns,data:i};e===null?e=[h]:e.push(h),t++}}if(a.rows!==void 0){let i=a.rows;if(Array.isArray(i)){const h=i.length;for(let c=0;c<h;c++){let y=i[c];if(Array.isArray(y)){const g=y.length;for(let l=0;l<g;l++){let p=y[l];const d=t;let O=!1,S=null;const I=t;if(typeof p!="string"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:dt.oneOf[0].type,parentSchema:dt.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var n=I===t;n&&(O=!0,S=0);const A=t;if(typeof p!="number"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:dt.oneOf[1].type,parentSchema:dt.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var n=A===t;if(n&&O)O=!1,S=[S,1];else{n&&(O=!0,S=1);const f=t;if(typeof p!="boolean"){const w={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:dt.oneOf[2].type,parentSchema:dt.oneOf[2],data:p};e===null?e=[w]:e.push(w),t++}var n=f===t;if(n&&O)O=!1,S=[S,2];else{n&&(O=!0,S=2);const w=t;if(p!==null){const F={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/3/type",keyword:"type",params:{type:"null"},message:"must be null",schema:dt.oneOf[3].type,parentSchema:dt.oneOf[3],data:p};e===null?e=[F]:e.push(F),t++}var n=w===t;n&&O?(O=!1,S=[S,3]):n&&(O=!0,S=3)}}if(O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:dt.oneOf,parentSchema:dt,data:p};e===null?e=[f]:e.push(f),t++}}}else{const g={instancePath:s+"/rows/"+c,schemaPath:"#/properties/rows/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ut.properties.rows.items.type,parentSchema:Ut.properties.rows.items,data:y};e===null?e=[g]:e.push(g),t++}}}else{const h={instancePath:s+"/rows",schemaPath:"#/properties/rows/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ut.properties.rows.type,parentSchema:Ut.properties.rows,data:i};e===null?e=[h]:e.push(h),t++}}if(a.source!==void 0){let i=a.source;if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.src===void 0){const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:re.required,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}for(const h in i)if(!(h==="src"||h==="sheet"||h==="range"||h==="fields"||h==="retrieved"||h==="description")){const c={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:re,data:i};e===null?e=[c]:e.push(c),t++}if(i.src!==void 0){let h=i.src;if(typeof h!="string"){const c={instancePath:s+"/source/src",schemaPath:"#/$defs/DataSourceRef/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.src.type,parentSchema:re.properties.src,data:h};e===null?e=[c]:e.push(c),t++}}if(i.sheet!==void 0){let h=i.sheet;if(typeof h!="string"){const c={instancePath:s+"/source/sheet",schemaPath:"#/$defs/DataSourceRef/properties/sheet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.sheet.type,parentSchema:re.properties.sheet,data:h};e===null?e=[c]:e.push(c),t++}}if(i.range!==void 0){let h=i.range;if(typeof h!="string"){const c={instancePath:s+"/source/range",schemaPath:"#/$defs/DataSourceRef/properties/range/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.range.type,parentSchema:re.properties.range,data:h};e===null?e=[c]:e.push(c),t++}}if(i.fields!==void 0){let h=i.fields;if(Array.isArray(h)){const c=h.length;for(let y=0;y<c;y++){let g=h[y];if(typeof g!="string"){const l={instancePath:s+"/source/fields/"+y,schemaPath:"#/$defs/DataSourceRef/properties/fields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.fields.items.type,parentSchema:re.properties.fields.items,data:g};e===null?e=[l]:e.push(l),t++}}}else{const c={instancePath:s+"/source/fields",schemaPath:"#/$defs/DataSourceRef/properties/fields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:re.properties.fields.type,parentSchema:re.properties.fields,data:h};e===null?e=[c]:e.push(c),t++}}if(i.retrieved!==void 0){let h=i.retrieved;if(typeof h!="string"){const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.retrieved.type,parentSchema:re.properties.retrieved,data:h};e===null?e=[p]:e.push(p),t++}const c=t;let y=!1;const g=t;if(typeof h=="string"&&!Tn.validate(h)){const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/0/format",keyword:"format",params:{format:"date"},message:'must match format "date"',schema:"date",parentSchema:re.properties.retrieved.anyOf[0],data:h};e===null?e=[p]:e.push(p),t++}var o=g===t;y=y||o;const l=t;if(typeof h=="string"&&!Cn.validate(h)){const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/1/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"',schema:"date-time",parentSchema:re.properties.retrieved.anyOf[1],data:h};e===null?e=[p]:e.push(p),t++}var o=l===t;if(y=y||o,y)t=c,e!==null&&(c?e.length=c:e=null);else{const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:re.properties.retrieved.anyOf,parentSchema:re.properties.retrieved,data:h};e===null?e=[p]:e.push(p),t++}}if(i.description!==void 0){let h=i.description;if(typeof h!="string"){const c={instancePath:s+"/source/description",schemaPath:"#/$defs/DataSourceRef/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.description.type,parentSchema:re.properties.description,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/type",keyword:"type",params:{type:"object"},message:"must be object",schema:re.type,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ut.type,parentSchema:Ut,data:a};e===null?e=[i]:e.push(i),t++}return tr.errors=e,t===0}tr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ar(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ar.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const n in a){const o=t;if(typeof n=="string"&&!Xs.test(n)){const i={instancePath:s,schemaPath:"#/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$"},message:'must match pattern "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"',schema:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$",parentSchema:Vn.propertyNames,data:n,propertyName:n};e===null?e=[i]:e.push(i),t++}var r=o===t;if(!r){const i={instancePath:s,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName:n},message:"property name must be valid",schema:Vn.propertyNames,parentSchema:Vn,data:a};e===null?e=[i]:e.push(i),t++}}for(const n in a)tr(a[n],{instancePath:s+"/"+n.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?tr.errors:e.concat(tr.errors),t=e.length)}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Vn.type,parentSchema:Vn,data:a};e===null?e=[n]:e.push(n),t++}return ar.errors=e,t===0}ar.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ln=j.presentation.$defs.Assets;function sr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=sr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const o in a){const i=t;if(typeof o=="string"&&!Xs.test(o)){const h={instancePath:s,schemaPath:"#/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$"},message:'must match pattern "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"',schema:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$",parentSchema:Ln.propertyNames,data:o,propertyName:o};e===null?e=[h]:e.push(h),t++}var r=i===t;if(!r){const h={instancePath:s,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName:o},message:"property name must be valid",schema:Ln.propertyNames,parentSchema:Ln,data:a};e===null?e=[h]:e.push(h),t++}}for(const o in a){let i=a[o];const h=t;let c=!1,y=null;const g=t;if(typeof i!="string"){const p={instancePath:s+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:i};e===null?e=[p]:e.push(p),t++}var n=g===t;n&&(c=!0,y=0);const l=t;if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.src===void 0){const p={instancePath:s+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:i};e===null?e=[p]:e.push(p),t++}for(const p in i)if(!(p==="src"||p==="alt"||p==="title"||p==="description"||p==="mediaType")){const d={instancePath:s+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:i};e===null?e=[d]:e.push(d),t++}if(i.src!==void 0){let p=i.src;if(typeof p!="string"){const d={instancePath:s+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:p};e===null?e=[d]:e.push(d),t++}}if(i.alt!==void 0){let p=i.alt;if(typeof p!="string"){const d={instancePath:s+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:p};e===null?e=[d]:e.push(d),t++}}if(i.title!==void 0){let p=i.title;if(typeof p!="string"){const d={instancePath:s+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:p};e===null?e=[d]:e.push(d),t++}}if(i.description!==void 0){let p=i.description;if(typeof p!="string"){const d={instancePath:s+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:p};e===null?e=[d]:e.push(d),t++}}if(i.mediaType!==void 0){let p=i.mediaType;if(typeof p!="string"){const d={instancePath:s+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:p};e===null?e=[d]:e.push(d),t++}}}else{const p={instancePath:s+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:i};e===null?e=[p]:e.push(p),t++}var n=l===t;if(n&&c?(c=!1,y=[y,1]):n&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const p={instancePath:s+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:i};e===null?e=[p]:e.push(p),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ln.type,parentSchema:Ln,data:a};e===null?e=[o]:e.push(o),t++}return sr.errors=e,t===0}sr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ya=j.presentation.$defs.Catalogs,ws=j.presentation.$defs.CatalogGroup,rr=j.presentation.$defs.CatalogSource,K=j.presentation.$defs.CatalogRecords,Ih=new RegExp("^(?:https://[^\\s]+|pkg:[^\\s]+)$","u");function ja(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ja.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const R in a)if(!va.call(ws.properties,R)){const C={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:R},message:"must NOT have additional properties",schema:!1,parentSchema:ws,data:a};e===null?e=[C]:e.push(C),t++}if(a.source!==void 0){let R=a.source;if(typeof R=="string"){if(!Ih.test(R)){const C={instancePath:s+"/source",schemaPath:"#/$defs/CatalogSource/pattern",keyword:"pattern",params:{pattern:"^(?:https://[^\\s]+|pkg:[^\\s]+)$"},message:'must match pattern "^(?:https://[^\\s]+|pkg:[^\\s]+)$"',schema:"^(?:https://[^\\s]+|pkg:[^\\s]+)$",parentSchema:rr,data:R};e===null?e=[C]:e.push(C),t++}}else{const C={instancePath:s+"/source",schemaPath:"#/$defs/CatalogSource/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rr.type,parentSchema:rr,data:R};e===null?e=[C]:e.push(C),t++}}if(a.layouts!==void 0){let R=a.layouts;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/layouts",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var r=T===t;if(!r){const U={instancePath:s+"/layouts",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/layouts/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var n=Me===t;G=G||n;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var n=Ke===t;if(G=G||n,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var o=ae===t;if(o){const Z={instancePath:s+"/layouts/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/layouts",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.themes!==void 0){let R=a.themes;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/themes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var i=T===t;if(!i){const U={instancePath:s+"/themes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/themes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var h=Me===t;G=G||h;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var h=Ke===t;if(G=G||h,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var c=ae===t;if(c){const Z={instancePath:s+"/themes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/themes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.colorSchemes!==void 0){let R=a.colorSchemes;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/colorSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var y=T===t;if(!y){const U={instancePath:s+"/colorSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/colorSchemes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var g=Me===t;G=G||g;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var g=Ke===t;if(G=G||g,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var l=ae===t;if(l){const Z={instancePath:s+"/colorSchemes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/colorSchemes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.fontSchemes!==void 0){let R=a.fontSchemes;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/fontSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var p=T===t;if(!p){const U={instancePath:s+"/fontSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/fontSchemes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var d=Me===t;G=G||d;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var d=Ke===t;if(G=G||d,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var O=ae===t;if(O){const Z={instancePath:s+"/fontSchemes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/fontSchemes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.narratives!==void 0){let R=a.narratives;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/narratives",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var S=T===t;if(!S){const U={instancePath:s+"/narratives",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/narratives/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var I=Me===t;G=G||I;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var I=Ke===t;if(G=G||I,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var A=ae===t;if(A){const Z={instancePath:s+"/narratives/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/narratives",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.audiences!==void 0){let R=a.audiences;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/audiences",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var f=T===t;if(!f){const U={instancePath:s+"/audiences",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/audiences/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var P=Me===t;G=G||P;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var P=Ke===t;if(G=G||P,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var w=ae===t;if(w){const Z={instancePath:s+"/audiences/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/audiences",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.purposes!==void 0){let R=a.purposes;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/purposes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var $=T===t;if(!$){const U={instancePath:s+"/purposes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/purposes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var F=Me===t;G=G||F;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var F=Ke===t;if(G=G||F,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var z=ae===t;if(z){const Z={instancePath:s+"/purposes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/purposes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.tones!==void 0){let R=a.tones;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/tones",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var L=T===t;if(!L){const U={instancePath:s+"/tones",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/tones/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var M=Me===t;G=G||M;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var M=Ke===t;if(G=G||M,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var H=ae===t;if(H){const Z={instancePath:s+"/tones/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/tones",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}}else{const R={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ws.type,parentSchema:ws,data:a};e===null?e=[R]:e.push(R),t++}return ja.errors=e,t===0}ja.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function nr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=nr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const c in a){const y=t;if(typeof c=="string"&&!bt.test(c)){const g={instancePath:s,schemaPath:"#/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:ya.propertyNames,data:c,propertyName:c};e===null?e=[g]:e.push(g),t++}var r=y===t;if(!r){const g={instancePath:s,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName:c},message:"property name must be valid",schema:ya.propertyNames,parentSchema:ya,data:a};e===null?e=[g]:e.push(g),t++}}for(const c in a)if(!(c==="default"||c==="custom")){let y=a[c];if(ja(y,{instancePath:s+"/"+c.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:a,parentDataProperty:c,rootData:v,dynamicAnchors:b})||(e=e===null?ja.errors:e.concat(ja.errors),t=e.length),y&&typeof y=="object"&&!Array.isArray(y)&&y.source===void 0){const g={instancePath:s+"/"+c.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/allOf/1/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:ya.additionalProperties.allOf[1].required,parentSchema:ya.additionalProperties.allOf[1],data:y};e===null?e=[g]:e.push(g),t++}}if(a.default!==void 0){let c=a.default;const y=t;let g=!1,l=null;const p=t;ja(c,{instancePath:s+"/default",parentData:a,parentDataProperty:"default",rootData:v,dynamicAnchors:b})||(e=e===null?ja.errors:e.concat(ja.errors),t=e.length);const d=t;let O=!0;const S=t,I=t;let A=!1;const f=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.layouts===void 0){const R={};e===null?e=[R]:e.push(R),t++}var n=f===t;A=A||n;const P=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.themes===void 0){const R={};e===null?e=[R]:e.push(R),t++}var n=P===t;A=A||n;const w=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.colorSchemes===void 0){const R={};e===null?e=[R]:e.push(R),t++}var n=w===t;A=A||n;const $=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.fontSchemes===void 0){const R={};e===null?e=[R]:e.push(R),t++}var n=$===t;A=A||n;const F=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.narratives===void 0){const R={};e===null?e=[R]:e.push(R),t++}var n=F===t;A=A||n;const z=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.audiences===void 0){const R={};e===null?e=[R]:e.push(R),t++}var n=z===t;A=A||n;const L=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.purposes===void 0){const R={};e===null?e=[R]:e.push(R),t++}var n=L===t;A=A||n;const M=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.tones===void 0){const R={};e===null?e=[R]:e.push(R),t++}var n=M===t;if(A=A||n,A)t=I,e!==null&&(I?e.length=I:e=null);else{const R={};e===null?e=[R]:e.push(R),t++}var o=S===t;if(t=d,e!==null&&(d?e.length=d:e=null),o){const R=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.source===void 0){const T={instancePath:s+"/default",schemaPath:"#/properties/default/oneOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:ya.properties.default.oneOf[0].allOf[1].then.required,parentSchema:ya.properties.default.oneOf[0].allOf[1].then,data:c};e===null?e=[T]:e.push(T),t++}var o=R===t;O=o}if(!O){const R={instancePath:s+"/default",schemaPath:"#/properties/default/oneOf/0/allOf/1/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:ya.properties.default.oneOf[0].allOf[1].if,parentSchema:ya.properties.default.oneOf[0].allOf[1],data:c};e===null?e=[R]:e.push(R),t++}var i=p===t;i&&(g=!0,l=0);const H=t;if(c!==!1){const R={instancePath:s+"/default",schemaPath:"#/properties/default/oneOf/1/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:ya.properties.default.oneOf[1],data:c};e===null?e=[R]:e.push(R),t++}var i=H===t;if(i&&g?(g=!1,l=[l,1]):i&&(g=!0,l=1),g)t=y,e!==null&&(y?e.length=y:e=null);else{const R={instancePath:s+"/default",schemaPath:"#/properties/default/oneOf",keyword:"oneOf",params:{passingSchemas:l},message:"must match exactly one schema in oneOf",schema:ya.properties.default.oneOf,parentSchema:ya.properties.default,data:c};e===null?e=[R]:e.push(R),t++}}if(a.custom!==void 0){let c=a.custom;ja(c,{instancePath:s+"/custom",parentData:a,parentDataProperty:"custom",rootData:v,dynamicAnchors:b})||(e=e===null?ja.errors:e.concat(ja.errors),t=e.length);const y=t,g=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&c.source===void 0){const l={};e===null?e=[l]:e.push(l),t++}var h=g===t;if(h){const l={instancePath:s+"/custom",schemaPath:"#/properties/custom/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid",schema:ya.properties.custom.allOf[1].not,parentSchema:ya.properties.custom.allOf[1],data:c};e===null?e=[l]:e.push(l),t++}else t=y,e!==null&&(y?e.length=y:e=null)}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ya.type,parentSchema:ya,data:a};e===null?e=[c]:e.push(c),t++}return nr.errors=e,t===0}nr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function oo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=oo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.slides===void 0){const P={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"slides"},message:"must have required property 'slides'",schema:fe.required,parentSchema:fe,data:a};e===null?e=[P]:e.push(P),t++}for(const P in a)if(!va.call(fe.properties,P)){const w={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties",schema:!1,parentSchema:fe,data:a};e===null?e=[w]:e.push(w),t++}if(a.$schema!==void 0){let P=a.$schema;if(typeof P!="string"){const w={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.$schema.type,parentSchema:fe.properties.$schema,data:P};e===null?e=[w]:e.push(w),t++}if(P!=="https://openpresentation.org/schema/opf/v1"){const w={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf/v1",parentSchema:fe.properties.$schema,data:P};e===null?e=[w]:e.push(w),t++}}if(a.name!==void 0){let P=a.name;if(typeof P!="string"){const w={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.name.type,parentSchema:fe.properties.name,data:P};e===null?e=[w]:e.push(w),t++}}if(a.description!==void 0){let P=a.description;if(typeof P!="string"){const w={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.description.type,parentSchema:fe.properties.description,data:P};e===null?e=[w]:e.push(w),t++}}if(a.filename!==void 0){let P=a.filename;if(typeof P!="string"){const w={instancePath:s+"/filename",schemaPath:"#/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.filename.type,parentSchema:fe.properties.filename,data:P};e===null?e=[w]:e.push(w),t++}}if(a.organization!==void 0){let P=a.organization;const w=t;let $=!1,F=null;const z=t;Ma(P,{instancePath:s+"/organization",parentData:a,parentDataProperty:"organization",rootData:v,dynamicAnchors:b})||(e=e===null?Ma.errors:e.concat(Ma.errors),t=e.length);var n=z===t;if(n){$=!0,F=0;var r={};r.id=!0,r.name=!0,r.legalName=!0,r.logo=!0,r.domain=!0,r.email=!0,r.phone=!0,r.tagline=!0,r.role=!0,r.socials=!0}const L=t;if(Array.isArray(P)){if(P.length<1){const H={instancePath:s+"/organization",schemaPath:"#/properties/organization/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:fe.properties.organization.oneOf[1],data:P};e===null?e=[H]:e.push(H),t++}const M=P.length;for(let H=0;H<M;H++)Ma(P[H],{instancePath:s+"/organization/"+H,parentData:P,parentDataProperty:H,rootData:v,dynamicAnchors:b})||(e=e===null?Ma.errors:e.concat(Ma.errors),t=e.length)}else{const M={instancePath:s+"/organization",schemaPath:"#/properties/organization/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:fe.properties.organization.oneOf[1].type,parentSchema:fe.properties.organization.oneOf[1],data:P};e===null?e=[M]:e.push(M),t++}var n=L===t;if(n&&$?($=!1,F=[F,1]):n&&($=!0,F=1),$)t=w,e!==null&&(w?e.length=w:e=null);else{const M={instancePath:s+"/organization",schemaPath:"#/properties/organization/oneOf",keyword:"oneOf",params:{passingSchemas:F},message:"must match exactly one schema in oneOf",schema:fe.properties.organization.oneOf,parentSchema:fe.properties.organization,data:P};e===null?e=[M]:e.push(M),t++}}if(a.speaker!==void 0){let P=a.speaker;const w=t;let $=!1,F=null;const z=t;Ba(P,{instancePath:s+"/speaker",parentData:a,parentDataProperty:"speaker",rootData:v,dynamicAnchors:b})||(e=e===null?Ba.errors:e.concat(Ba.errors),t=e.length);var i=z===t;if(i){$=!0,F=0;var o={};o.id=!0,o.name=!0,o.title=!0,o.photo=!0,o.email=!0,o.phone=!0,o.bio=!0,o.organizationId=!0,o.socials=!0}const L=t;if(Array.isArray(P)){if(P.length<1){const H={instancePath:s+"/speaker",schemaPath:"#/properties/speaker/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:fe.properties.speaker.oneOf[1],data:P};e===null?e=[H]:e.push(H),t++}const M=P.length;for(let H=0;H<M;H++)Ba(P[H],{instancePath:s+"/speaker/"+H,parentData:P,parentDataProperty:H,rootData:v,dynamicAnchors:b})||(e=e===null?Ba.errors:e.concat(Ba.errors),t=e.length)}else{const M={instancePath:s+"/speaker",schemaPath:"#/properties/speaker/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:fe.properties.speaker.oneOf[1].type,parentSchema:fe.properties.speaker.oneOf[1],data:P};e===null?e=[M]:e.push(M),t++}var i=L===t;if(i&&$?($=!1,F=[F,1]):i&&($=!0,F=1),$)t=w,e!==null&&(w?e.length=w:e=null);else{const M={instancePath:s+"/speaker",schemaPath:"#/properties/speaker/oneOf",keyword:"oneOf",params:{passingSchemas:F},message:"must match exactly one schema in oneOf",schema:fe.properties.speaker.oneOf,parentSchema:fe.properties.speaker,data:P};e===null?e=[M]:e.push(M),t++}}if(a.author!==void 0){let P=a.author;const w=t;let $=!1,F=null;const z=t;if(typeof P!="string"){const M={instancePath:s+"/author",schemaPath:"#/properties/author/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.author.oneOf[0].type,parentSchema:fe.properties.author.oneOf[0],data:P};e===null?e=[M]:e.push(M),t++}var h=z===t;h&&($=!0,F=0);const L=t;if(Array.isArray(P)){if(P.length<1){const H={instancePath:s+"/author",schemaPath:"#/properties/author/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:fe.properties.author.oneOf[1],data:P};e===null?e=[H]:e.push(H),t++}const M=P.length;for(let H=0;H<M;H++){let R=P[H];if(typeof R!="string"){const C={instancePath:s+"/author/"+H,schemaPath:"#/properties/author/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.author.oneOf[1].items.type,parentSchema:fe.properties.author.oneOf[1].items,data:R};e===null?e=[C]:e.push(C),t++}}}else{const M={instancePath:s+"/author",schemaPath:"#/properties/author/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:fe.properties.author.oneOf[1].type,parentSchema:fe.properties.author.oneOf[1],data:P};e===null?e=[M]:e.push(M),t++}var h=L===t;if(h&&$?($=!1,F=[F,1]):h&&($=!0,F=1),$)t=w,e!==null&&(w?e.length=w:e=null);else{const M={instancePath:s+"/author",schemaPath:"#/properties/author/oneOf",keyword:"oneOf",params:{passingSchemas:F},message:"must match exactly one schema in oneOf",schema:fe.properties.author.oneOf,parentSchema:fe.properties.author,data:P};e===null?e=[M]:e.push(M),t++}}if(a.audience!==void 0){let P=a.audience;const w=t;let $=!1,F=null;const z=t;if(typeof P!="string"){const M={instancePath:s+"/audience",schemaPath:"#/properties/audience/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.audience.oneOf[0].type,parentSchema:fe.properties.audience.oneOf[0],data:P};e===null?e=[M]:e.push(M),t++}var c=z===t;c&&($=!0,F=0);const L=t;Ha(P,{instancePath:s+"/audience",parentData:a,parentDataProperty:"audience",rootData:v,dynamicAnchors:b})||(e=e===null?Ha.errors:e.concat(Ha.errors),t=e.length);var c=L===t;if(c&&$)$=!1,F=[F,1];else{if(c){$=!0,F=1;var y={};y.id=!0,y.name=!0,y.summary=!0,y.description=!0,y.seniority=!0,y.technicalFluency=!0,y.decisionPower=!0,y.attentionBudgetMinutes=!0,y.recommendedNarratives=!0,y.recommendedTones=!0,y.tags=!0}const M=t;if(Array.isArray(P)){if(P.length<1){const C={instancePath:s+"/audience",schemaPath:"#/properties/audience/oneOf/2/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:fe.properties.audience.oneOf[2],data:P};e===null?e=[C]:e.push(C),t++}const R=P.length;for(let C=0;C<R;C++){let T=P[C];const U=t;let ae=!1,te=null;const G=t;if(typeof T!="string"){const Ke={instancePath:s+"/audience/"+C,schemaPath:"#/properties/audience/oneOf/2/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.audience.oneOf[2].items.oneOf[0].type,parentSchema:fe.properties.audience.oneOf[2].items.oneOf[0],data:T};e===null?e=[Ke]:e.push(Ke),t++}var g=G===t;g&&(ae=!0,te=0);const Me=t;Ha(T,{instancePath:s+"/audience/"+C,parentData:P,parentDataProperty:C,rootData:v,dynamicAnchors:b})||(e=e===null?Ha.errors:e.concat(Ha.errors),t=e.length);var g=Me===t;if(g&&ae)ae=!1,te=[te,1];else if(g){ae=!0,te=1;var l={};l.id=!0,l.name=!0,l.summary=!0,l.description=!0,l.seniority=!0,l.technicalFluency=!0,l.decisionPower=!0,l.attentionBudgetMinutes=!0,l.recommendedNarratives=!0,l.recommendedTones=!0,l.tags=!0}if(ae)t=U,e!==null&&(U?e.length=U:e=null);else{const Ke={instancePath:s+"/audience/"+C,schemaPath:"#/properties/audience/oneOf/2/items/oneOf",keyword:"oneOf",params:{passingSchemas:te},message:"must match exactly one schema in oneOf",schema:fe.properties.audience.oneOf[2].items.oneOf,parentSchema:fe.properties.audience.oneOf[2].items,data:T};e===null?e=[Ke]:e.push(Ke),t++}}}else{const R={instancePath:s+"/audience",schemaPath:"#/properties/audience/oneOf/2/type",keyword:"type",params:{type:"array"},message:"must be array",schema:fe.properties.audience.oneOf[2].type,parentSchema:fe.properties.audience.oneOf[2],data:P};e===null?e=[R]:e.push(R),t++}var c=M===t;c&&$?($=!1,F=[F,2]):c&&($=!0,F=2)}if($)t=w,e!==null&&(w?e.length=w:e=null);else{const M={instancePath:s+"/audience",schemaPath:"#/properties/audience/oneOf",keyword:"oneOf",params:{passingSchemas:F},message:"must match exactly one schema in oneOf",schema:fe.properties.audience.oneOf,parentSchema:fe.properties.audience,data:P};e===null?e=[M]:e.push(M),t++}}if(a.purpose!==void 0){let P=a.purpose;const w=t;let $=!1,F=null;const z=t;if(typeof P!="string"){const M={instancePath:s+"/purpose",schemaPath:"#/properties/purpose/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.purpose.oneOf[0].type,parentSchema:fe.properties.purpose.oneOf[0],data:P};e===null?e=[M]:e.push(M),t++}var p=z===t;p&&($=!0,F=0);const L=t;Ts(P,{instancePath:s+"/purpose",parentData:a,parentDataProperty:"purpose",rootData:v,dynamicAnchors:b})||(e=e===null?Ts.errors:e.concat(Ts.errors),t=e.length);var p=L===t;if(p&&$)$=!1,F=[F,1];else if(p){$=!0,F=1;var d={};d.id=!0,d.name=!0,d.summary=!0,d.description=!0,d.outcome=!0,d.successCriteria=!0,d.recommendedNarratives=!0,d.recommendedTones=!0,d.tags=!0}if($)t=w,e!==null&&(w?e.length=w:e=null);else{const M={instancePath:s+"/purpose",schemaPath:"#/properties/purpose/oneOf",keyword:"oneOf",params:{passingSchemas:F},message:"must match exactly one schema in oneOf",schema:fe.properties.purpose.oneOf,parentSchema:fe.properties.purpose,data:P};e===null?e=[M]:e.push(M),t++}}if(a.language!==void 0){let P=a.language;const w=t;let $=!1,F=null;const z=t;if(typeof P=="string"){if(!to.test(P)){const M={instancePath:s+"/language",schemaPath:"#/$defs/LanguageTag/pattern",keyword:"pattern",params:{pattern:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"',schema:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$",parentSchema:$a,data:P};e===null?e=[M]:e.push(M),t++}}else{const M={instancePath:s+"/language",schemaPath:"#/$defs/LanguageTag/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$a.type,parentSchema:$a,data:P};e===null?e=[M]:e.push(M),t++}var O=z===t;O&&($=!0,F=0);const L=t;Cs(P,{instancePath:s+"/language",parentData:a,parentDataProperty:"language",rootData:v,dynamicAnchors:b})||(e=e===null?Cs.errors:e.concat(Cs.errors),t=e.length);var O=L===t;if(O&&$)$=!1,F=[F,1];else if(O){$=!0,F=1;var S={};S.name=!0,S.bcp47=!0,S.ooxmlLang=!0,S.code=!0,S.direction=!0,S.script=!0,S.fontScheme=!0,S.googleFontScheme=!0,S.summary=!0,S.description=!0,S.tags=!0}if($)t=w,e!==null&&(w?e.length=w:e=null);else{const M={instancePath:s+"/language",schemaPath:"#/properties/language/oneOf",keyword:"oneOf",params:{passingSchemas:F},message:"must match exactly one schema in oneOf",schema:fe.properties.language.oneOf,parentSchema:fe.properties.language,data:P};e===null?e=[M]:e.push(M),t++}}if(a.tone!==void 0){let P=a.tone;const w=t;let $=!1,F=null;const z=t;if(typeof P=="string"){if(!Bt.test(P)){const M={instancePath:s+"/tone",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:P};e===null?e=[M]:e.push(M),t++}}else{const M={instancePath:s+"/tone",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:P};e===null?e=[M]:e.push(M),t++}var I=z===t;I&&($=!0,F=0);const L=t;Vs(P,{instancePath:s+"/tone",parentData:a,parentDataProperty:"tone",rootData:v,dynamicAnchors:b})||(e=e===null?Vs.errors:e.concat(Vs.errors),t=e.length);var I=L===t;if(I&&$)$=!1,F=[F,1];else if(I){$=!0,F=1;var A={};A.id=!0,A.name=!0,A.summary=!0,A.description=!0,A.voiceCues=!0,A.avoid=!0,A.samplePhrases=!0,A.recommendedNarratives=!0,A.tags=!0}if($)t=w,e!==null&&(w?e.length=w:e=null);else{const M={instancePath:s+"/tone",schemaPath:"#/properties/tone/oneOf",keyword:"oneOf",params:{passingSchemas:F},message:"must match exactly one schema in oneOf",schema:fe.properties.tone.oneOf,parentSchema:fe.properties.tone,data:P};e===null?e=[M]:e.push(M),t++}}if(a.takeaway!==void 0){let P=a.takeaway;const w=t;let $=!1,F=null;const z=t;if(typeof P!="string"){const M={instancePath:s+"/takeaway",schemaPath:"#/properties/takeaway/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.takeaway.oneOf[0].type,parentSchema:fe.properties.takeaway.oneOf[0],data:P};e===null?e=[M]:e.push(M),t++}var f=z===t;f&&($=!0,F=0);const L=t;if(Array.isArray(P)){if(P.length<1){const H={instancePath:s+"/takeaway",schemaPath:"#/properties/takeaway/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:fe.properties.takeaway.oneOf[1],data:P};e===null?e=[H]:e.push(H),t++}const M=P.length;for(let H=0;H<M;H++){let R=P[H];if(typeof R!="string"){const C={instancePath:s+"/takeaway/"+H,schemaPath:"#/properties/takeaway/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.takeaway.oneOf[1].items.type,parentSchema:fe.properties.takeaway.oneOf[1].items,data:R};e===null?e=[C]:e.push(C),t++}}}else{const M={instancePath:s+"/takeaway",schemaPath:"#/properties/takeaway/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:fe.properties.takeaway.oneOf[1].type,parentSchema:fe.properties.takeaway.oneOf[1],data:P};e===null?e=[M]:e.push(M),t++}var f=L===t;if(f&&$?($=!1,F=[F,1]):f&&($=!0,F=1),$)t=w,e!==null&&(w?e.length=w:e=null);else{const M={instancePath:s+"/takeaway",schemaPath:"#/properties/takeaway/oneOf",keyword:"oneOf",params:{passingSchemas:F},message:"must match exactly one schema in oneOf",schema:fe.properties.takeaway.oneOf,parentSchema:fe.properties.takeaway,data:P};e===null?e=[M]:e.push(M),t++}}if(a.duration!==void 0){let P=a.duration;if(!(typeof P=="number"&&!(P%1)&&!isNaN(P))){const w={instancePath:s+"/duration",schemaPath:"#/properties/duration/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:fe.properties.duration.type,parentSchema:fe.properties.duration,data:P};e===null?e=[w]:e.push(w),t++}if(typeof P=="number"&&(P<1||isNaN(P))){const w={instancePath:s+"/duration",schemaPath:"#/properties/duration/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:fe.properties.duration,data:P};e===null?e=[w]:e.push(w),t++}}if(a.tags!==void 0){let P=a.tags;if(Array.isArray(P)){const w=P.length;for(let $=0;$<w;$++){let F=P[$];if(typeof F!="string"){const z={instancePath:s+"/tags/"+$,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fe.properties.tags.items.type,parentSchema:fe.properties.tags.items,data:F};e===null?e=[z]:e.push(z),t++}}}else{const w={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:fe.properties.tags.type,parentSchema:fe.properties.tags,data:P};e===null?e=[w]:e.push(w),t++}}if(a.design!==void 0&&(Ya(a.design,{instancePath:s+"/design",parentData:a,parentDataProperty:"design",rootData:v,dynamicAnchors:b})||(e=e===null?Ya.errors:e.concat(Ya.errors),t=e.length)),a.variables!==void 0&&(Es(a.variables,{instancePath:s+"/variables",parentData:a,parentDataProperty:"variables",rootData:v,dynamicAnchors:b})||(e=e===null?Es.errors:e.concat(Es.errors),t=e.length)),a.template!==void 0){let P=a.template;if(typeof P!="boolean"){const w={instancePath:s+"/template",schemaPath:"#/properties/template/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:fe.properties.template.type,parentSchema:fe.properties.template,data:P};e===null?e=[w]:e.push(w),t++}}if(a.narrative!==void 0){let P=a.narrative;if(typeof P=="string"){if(!Bt.test(P)){const w={instancePath:s+"/narrative",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:P};e===null?e=[w]:e.push(w),t++}}else{const w={instancePath:s+"/narrative",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:P};e===null?e=[w]:e.push(w),t++}}if(a.slides!==void 0){let P=a.slides;if(Array.isArray(P)){if(P.length<1){const $={instancePath:s+"/slides",schemaPath:"#/properties/slides/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:fe.properties.slides,data:P};e===null?e=[$]:e.push($),t++}const w=P.length;for(let $=0;$<w;$++)Gs(P[$],{instancePath:s+"/slides/"+$,parentData:P,parentDataProperty:$,rootData:v,dynamicAnchors:b})||(e=e===null?Gs.errors:e.concat(Gs.errors),t=e.length)}else{const w={instancePath:s+"/slides",schemaPath:"#/properties/slides/type",keyword:"type",params:{type:"array"},message:"must be array",schema:fe.properties.slides.type,parentSchema:fe.properties.slides,data:P};e===null?e=[w]:e.push(w),t++}}if(a.references!==void 0){let P=a.references;if(Array.isArray(P)){const w=P.length;for(let $=0;$<w;$++)er(P[$],{instancePath:s+"/references/"+$,parentData:P,parentDataProperty:$,rootData:v,dynamicAnchors:b})||(e=e===null?er.errors:e.concat(er.errors),t=e.length)}else{const w={instancePath:s+"/references",schemaPath:"#/properties/references/type",keyword:"type",params:{type:"array"},message:"must be array",schema:fe.properties.references.type,parentSchema:fe.properties.references,data:P};e===null?e=[w]:e.push(w),t++}}if(a.datasets!==void 0&&(ar(a.datasets,{instancePath:s+"/datasets",parentData:a,parentDataProperty:"datasets",rootData:v,dynamicAnchors:b})||(e=e===null?ar.errors:e.concat(ar.errors),t=e.length)),a.assets!==void 0&&(sr(a.assets,{instancePath:s+"/assets",parentData:a,parentDataProperty:"assets",rootData:v,dynamicAnchors:b})||(e=e===null?sr.errors:e.concat(sr.errors),t=e.length)),a.catalogs!==void 0&&(nr(a.catalogs,{instancePath:s+"/catalogs",parentData:a,parentDataProperty:"catalogs",rootData:v,dynamicAnchors:b})||(e=e===null?nr.errors:e.concat(nr.errors),t=e.length)),a.extensions!==void 0){let P=a.extensions;if(!(P&&typeof P=="object"&&!Array.isArray(P))){const w={instancePath:s+"/extensions",schemaPath:"#/properties/extensions/type",keyword:"type",params:{type:"object"},message:"must be object",schema:fe.properties.extensions.type,parentSchema:fe.properties.extensions,data:P};e===null?e=[w]:e.push(w),t++}}}else{const P={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:fe.type,parentSchema:fe,data:a};e===null?e=[P]:e.push(P),t++}return oo.errors=e,t===0}oo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch0=po,j.presentation.properties.organization.oneOf[0];function or(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=or.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const h={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ce.required,parentSchema:ce,data:a};e===null?e=[h]:e.push(h),t++}if(a.name===void 0){const h={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ce.required,parentSchema:ce,data:a};e===null?e=[h]:e.push(h),t++}if(a.id!==void 0){let h=a.id;if(typeof h=="string"){if(!zs.test(h)){const c={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9_-]+$"},message:'must match pattern "^[a-zA-Z0-9_-]+$"',schema:"^[a-zA-Z0-9_-]+$",parentSchema:ce.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.id.type,parentSchema:ce.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}if(a.name!==void 0){let h=a.name;if(typeof h!="string"){const c={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.name.type,parentSchema:ce.properties.name,data:h};e===null?e=[c]:e.push(c),t++}}if(a.legalName!==void 0){let h=a.legalName;if(typeof h!="string"){const c={instancePath:s+"/legalName",schemaPath:"#/properties/legalName/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.legalName.type,parentSchema:ce.properties.legalName,data:h};e===null?e=[c]:e.push(c),t++}}if(a.logo!==void 0){let h=a.logo;const c=t;let y=!1,g=null;const l=t,p=t;let d=!1,O=null;const S=t;if(typeof h!="string"){const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:h};e===null?e=[f]:e.push(f),t++}var r=S===t;r&&(d=!0,O=0);const I=t;if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.src===void 0){const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:h};e===null?e=[f]:e.push(f),t++}for(const f in h)if(!(f==="src"||f==="alt"||f==="title"||f==="description"||f==="mediaType")){const P={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:h};e===null?e=[P]:e.push(P),t++}if(h.src!==void 0){let f=h.src;if(typeof f!="string"){const P={instancePath:s+"/logo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:f};e===null?e=[P]:e.push(P),t++}}if(h.alt!==void 0){let f=h.alt;if(typeof f!="string"){const P={instancePath:s+"/logo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:f};e===null?e=[P]:e.push(P),t++}}if(h.title!==void 0){let f=h.title;if(typeof f!="string"){const P={instancePath:s+"/logo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:f};e===null?e=[P]:e.push(P),t++}}if(h.description!==void 0){let f=h.description;if(typeof f!="string"){const P={instancePath:s+"/logo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:f};e===null?e=[P]:e.push(P),t++}}if(h.mediaType!==void 0){let f=h.mediaType;if(typeof f!="string"){const P={instancePath:s+"/logo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:f};e===null?e=[P]:e.push(P),t++}}}else{const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:h};e===null?e=[f]:e.push(f),t++}var r=I===t;if(r&&d)d=!1,O=[O,1];else if(r){d=!0,O=1;var n=!0}if(d)t=p,e!==null&&(p?e.length=p:e=null);else{const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:O},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:h};e===null?e=[f]:e.push(f),t++}var o=l===t;o&&(y=!0,g=0);const A=t;Da(h,{instancePath:s+"/logo",parentData:a,parentDataProperty:"logo",rootData:v,dynamicAnchors:b})||(e=e===null?Da.errors:e.concat(Da.errors),t=e.length);var o=A===t;if(o&&y?(y=!1,g=[g,1]):o&&(y=!0,g=1,n!==!0&&(n=!0)),y)t=c,e!==null&&(c?e.length=c:e=null);else{const f={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf",schema:ce.properties.logo.oneOf,parentSchema:ce.properties.logo,data:h};e===null?e=[f]:e.push(f),t++}}if(a.domain!==void 0){let h=a.domain;if(typeof h!="string"){const c={instancePath:s+"/domain",schemaPath:"#/properties/domain/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.domain.type,parentSchema:ce.properties.domain,data:h};e===null?e=[c]:e.push(c),t++}}if(a.email!==void 0){let h=a.email;if(typeof h=="string"){if(!Fs.test(h)){const c={instancePath:s+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"',schema:"email",parentSchema:ce.properties.email,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.email.type,parentSchema:ce.properties.email,data:h};e===null?e=[c]:e.push(c),t++}}if(a.phone!==void 0){let h=a.phone;if(typeof h!="string"){const c={instancePath:s+"/phone",schemaPath:"#/properties/phone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.phone.type,parentSchema:ce.properties.phone,data:h};e===null?e=[c]:e.push(c),t++}}if(a.tagline!==void 0){let h=a.tagline;if(typeof h!="string"){const c={instancePath:s+"/tagline",schemaPath:"#/properties/tagline/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.tagline.type,parentSchema:ce.properties.tagline,data:h};e===null?e=[c]:e.push(c),t++}}if(a.role!==void 0){let h=a.role;if(typeof h!="string"){const c={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.role.type,parentSchema:ce.properties.role,data:h};e===null?e=[c]:e.push(c),t++}if(!(h==="primary"||h==="partner"||h==="client"||h==="sponsor"||h==="host")){const c={instancePath:s+"/role",schemaPath:"#/properties/role/enum",keyword:"enum",params:{allowedValues:ce.properties.role.enum},message:"must be equal to one of the allowed values",schema:ce.properties.role.enum,parentSchema:ce.properties.role,data:h};e===null?e=[c]:e.push(c),t++}}if(a.socials!==void 0){let h=a.socials;if(h&&typeof h=="object"&&!Array.isArray(h)){for(const c in h){const y=t;if(!(c==="linkedin"||c==="x"||c==="github"||c==="youtube"||c==="instagram"||c==="facebook"||c==="tiktok"||c==="threads"||c==="mastodon"||c==="bluesky")){const g={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames/enum",keyword:"enum",params:{allowedValues:Te.propertyNames.enum},message:"must be equal to one of the allowed values",schema:Te.propertyNames.enum,parentSchema:Te.propertyNames,data:c,propertyName:c};e===null?e=[g]:e.push(g),t++}var i=y===t;if(!i){const g={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames",keyword:"propertyNames",params:{propertyName:c},message:"property name must be valid",schema:Te.propertyNames,parentSchema:Te,data:h};e===null?e=[g]:e.push(g),t++}}for(const c in h){let y=h[c];if(typeof y!="string"){const g={instancePath:s+"/socials/"+c.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Socials/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.additionalProperties.type,parentSchema:Te.additionalProperties,data:y};e===null?e=[g]:e.push(g),t++}}}else{const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Te.type,parentSchema:Te,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ce.type,parentSchema:ce,data:a};e===null?e=[h]:e.push(h),t++}return or.errors=e,t===0}or.evaluated={props:{id:!0,name:!0,legalName:!0,logo:!0,domain:!0,email:!0,phone:!0,tagline:!0,role:!0,socials:!0},dynamicProps:!1,dynamicItems:!1};function po(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=po.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),or(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?or.errors:e.concat(or.errors),t=e.length),po.errors=e,t===0}po.evaluated={props:{id:!0,name:!0,legalName:!0,logo:!0,domain:!0,email:!0,phone:!0,tagline:!0,role:!0,socials:!0},dynamicProps:!1,dynamicItems:!1},D.branch1=io;var rh=j.presentation.properties.organization.oneOf[1];function pr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=pr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const h={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ce.required,parentSchema:ce,data:a};e===null?e=[h]:e.push(h),t++}if(a.name===void 0){const h={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ce.required,parentSchema:ce,data:a};e===null?e=[h]:e.push(h),t++}if(a.id!==void 0){let h=a.id;if(typeof h=="string"){if(!zs.test(h)){const c={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9_-]+$"},message:'must match pattern "^[a-zA-Z0-9_-]+$"',schema:"^[a-zA-Z0-9_-]+$",parentSchema:ce.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.id.type,parentSchema:ce.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}if(a.name!==void 0){let h=a.name;if(typeof h!="string"){const c={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.name.type,parentSchema:ce.properties.name,data:h};e===null?e=[c]:e.push(c),t++}}if(a.legalName!==void 0){let h=a.legalName;if(typeof h!="string"){const c={instancePath:s+"/legalName",schemaPath:"#/properties/legalName/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.legalName.type,parentSchema:ce.properties.legalName,data:h};e===null?e=[c]:e.push(c),t++}}if(a.logo!==void 0){let h=a.logo;const c=t;let y=!1,g=null;const l=t,p=t;let d=!1,O=null;const S=t;if(typeof h!="string"){const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:h};e===null?e=[f]:e.push(f),t++}var r=S===t;r&&(d=!0,O=0);const I=t;if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.src===void 0){const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:h};e===null?e=[f]:e.push(f),t++}for(const f in h)if(!(f==="src"||f==="alt"||f==="title"||f==="description"||f==="mediaType")){const P={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:h};e===null?e=[P]:e.push(P),t++}if(h.src!==void 0){let f=h.src;if(typeof f!="string"){const P={instancePath:s+"/logo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:f};e===null?e=[P]:e.push(P),t++}}if(h.alt!==void 0){let f=h.alt;if(typeof f!="string"){const P={instancePath:s+"/logo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:f};e===null?e=[P]:e.push(P),t++}}if(h.title!==void 0){let f=h.title;if(typeof f!="string"){const P={instancePath:s+"/logo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:f};e===null?e=[P]:e.push(P),t++}}if(h.description!==void 0){let f=h.description;if(typeof f!="string"){const P={instancePath:s+"/logo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:f};e===null?e=[P]:e.push(P),t++}}if(h.mediaType!==void 0){let f=h.mediaType;if(typeof f!="string"){const P={instancePath:s+"/logo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:f};e===null?e=[P]:e.push(P),t++}}}else{const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:h};e===null?e=[f]:e.push(f),t++}var r=I===t;if(r&&d)d=!1,O=[O,1];else if(r){d=!0,O=1;var n=!0}if(d)t=p,e!==null&&(p?e.length=p:e=null);else{const f={instancePath:s+"/logo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:O},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:h};e===null?e=[f]:e.push(f),t++}var o=l===t;o&&(y=!0,g=0);const A=t;Da(h,{instancePath:s+"/logo",parentData:a,parentDataProperty:"logo",rootData:v,dynamicAnchors:b})||(e=e===null?Da.errors:e.concat(Da.errors),t=e.length);var o=A===t;if(o&&y?(y=!1,g=[g,1]):o&&(y=!0,g=1,n!==!0&&(n=!0)),y)t=c,e!==null&&(c?e.length=c:e=null);else{const f={instancePath:s+"/logo",schemaPath:"#/properties/logo/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf",schema:ce.properties.logo.oneOf,parentSchema:ce.properties.logo,data:h};e===null?e=[f]:e.push(f),t++}}if(a.domain!==void 0){let h=a.domain;if(typeof h!="string"){const c={instancePath:s+"/domain",schemaPath:"#/properties/domain/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.domain.type,parentSchema:ce.properties.domain,data:h};e===null?e=[c]:e.push(c),t++}}if(a.email!==void 0){let h=a.email;if(typeof h=="string"){if(!Fs.test(h)){const c={instancePath:s+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"',schema:"email",parentSchema:ce.properties.email,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.email.type,parentSchema:ce.properties.email,data:h};e===null?e=[c]:e.push(c),t++}}if(a.phone!==void 0){let h=a.phone;if(typeof h!="string"){const c={instancePath:s+"/phone",schemaPath:"#/properties/phone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.phone.type,parentSchema:ce.properties.phone,data:h};e===null?e=[c]:e.push(c),t++}}if(a.tagline!==void 0){let h=a.tagline;if(typeof h!="string"){const c={instancePath:s+"/tagline",schemaPath:"#/properties/tagline/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.tagline.type,parentSchema:ce.properties.tagline,data:h};e===null?e=[c]:e.push(c),t++}}if(a.role!==void 0){let h=a.role;if(typeof h!="string"){const c={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ce.properties.role.type,parentSchema:ce.properties.role,data:h};e===null?e=[c]:e.push(c),t++}if(!(h==="primary"||h==="partner"||h==="client"||h==="sponsor"||h==="host")){const c={instancePath:s+"/role",schemaPath:"#/properties/role/enum",keyword:"enum",params:{allowedValues:ce.properties.role.enum},message:"must be equal to one of the allowed values",schema:ce.properties.role.enum,parentSchema:ce.properties.role,data:h};e===null?e=[c]:e.push(c),t++}}if(a.socials!==void 0){let h=a.socials;if(h&&typeof h=="object"&&!Array.isArray(h)){for(const c in h){const y=t;if(!(c==="linkedin"||c==="x"||c==="github"||c==="youtube"||c==="instagram"||c==="facebook"||c==="tiktok"||c==="threads"||c==="mastodon"||c==="bluesky")){const g={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames/enum",keyword:"enum",params:{allowedValues:Te.propertyNames.enum},message:"must be equal to one of the allowed values",schema:Te.propertyNames.enum,parentSchema:Te.propertyNames,data:c,propertyName:c};e===null?e=[g]:e.push(g),t++}var i=y===t;if(!i){const g={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames",keyword:"propertyNames",params:{propertyName:c},message:"property name must be valid",schema:Te.propertyNames,parentSchema:Te,data:h};e===null?e=[g]:e.push(g),t++}}for(const c in h){let y=h[c];if(typeof y!="string"){const g={instancePath:s+"/socials/"+c.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Socials/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.additionalProperties.type,parentSchema:Te.additionalProperties,data:y};e===null?e=[g]:e.push(g),t++}}}else{const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Te.type,parentSchema:Te,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ce.type,parentSchema:ce,data:a};e===null?e=[h]:e.push(h),t++}return pr.errors=e,t===0}pr.evaluated={props:{id:!0,name:!0,legalName:!0,logo:!0,domain:!0,email:!0,phone:!0,tagline:!0,role:!0,socials:!0},dynamicProps:!1,dynamicItems:!1};function io(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=io.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:rh,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++)pr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?pr.errors:e.concat(pr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:rh.type,parentSchema:rh,data:a};e===null?e=[r]:e.push(r),t++}return io.errors=e,t===0}io.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch2=mo,j.presentation.properties.speaker.oneOf[0];function ir(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ir.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ke.required,parentSchema:ke,data:a};e===null?e=[o]:e.push(o),t++}if(a.name===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ke.required,parentSchema:ke,data:a};e===null?e=[o]:e.push(o),t++}if(a.id!==void 0){let o=a.id;if(typeof o=="string"){if(!zs.test(o)){const i={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9_-]+$"},message:'must match pattern "^[a-zA-Z0-9_-]+$"',schema:"^[a-zA-Z0-9_-]+$",parentSchema:ke.properties.id,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.id.type,parentSchema:ke.properties.id,data:o};e===null?e=[i]:e.push(i),t++}}if(a.name!==void 0){let o=a.name;if(typeof o!="string"){const i={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.name.type,parentSchema:ke.properties.name,data:o};e===null?e=[i]:e.push(i),t++}}if(a.title!==void 0){let o=a.title;if(typeof o!="string"){const i={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.title.type,parentSchema:ke.properties.title,data:o};e===null?e=[i]:e.push(i),t++}}if(a.photo!==void 0){let o=a.photo;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/photo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/photo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/photo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/photo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/photo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}if(a.email!==void 0){let o=a.email;if(typeof o=="string"){if(!Fs.test(o)){const i={instancePath:s+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"',schema:"email",parentSchema:ke.properties.email,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.email.type,parentSchema:ke.properties.email,data:o};e===null?e=[i]:e.push(i),t++}}if(a.phone!==void 0){let o=a.phone;if(typeof o!="string"){const i={instancePath:s+"/phone",schemaPath:"#/properties/phone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.phone.type,parentSchema:ke.properties.phone,data:o};e===null?e=[i]:e.push(i),t++}}if(a.bio!==void 0){let o=a.bio;if(typeof o!="string"){const i={instancePath:s+"/bio",schemaPath:"#/properties/bio/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.bio.type,parentSchema:ke.properties.bio,data:o};e===null?e=[i]:e.push(i),t++}}if(a.organizationId!==void 0){let o=a.organizationId;if(typeof o!="string"){const i={instancePath:s+"/organizationId",schemaPath:"#/properties/organizationId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.organizationId.type,parentSchema:ke.properties.organizationId,data:o};e===null?e=[i]:e.push(i),t++}}if(a.socials!==void 0){let o=a.socials;if(o&&typeof o=="object"&&!Array.isArray(o)){for(const i in o){const h=t;if(!(i==="linkedin"||i==="x"||i==="github"||i==="youtube"||i==="instagram"||i==="facebook"||i==="tiktok"||i==="threads"||i==="mastodon"||i==="bluesky")){const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames/enum",keyword:"enum",params:{allowedValues:Te.propertyNames.enum},message:"must be equal to one of the allowed values",schema:Te.propertyNames.enum,parentSchema:Te.propertyNames,data:i,propertyName:i};e===null?e=[c]:e.push(c),t++}var n=h===t;if(!n){const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames",keyword:"propertyNames",params:{propertyName:i},message:"property name must be valid",schema:Te.propertyNames,parentSchema:Te,data:o};e===null?e=[c]:e.push(c),t++}}for(const i in o){let h=o[i];if(typeof h!="string"){const c={instancePath:s+"/socials/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Socials/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.additionalProperties.type,parentSchema:Te.additionalProperties,data:h};e===null?e=[c]:e.push(c),t++}}}else{const i={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Te.type,parentSchema:Te,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ke.type,parentSchema:ke,data:a};e===null?e=[o]:e.push(o),t++}return ir.errors=e,t===0}ir.evaluated={props:{id:!0,name:!0,title:!0,photo:!0,email:!0,phone:!0,bio:!0,organizationId:!0,socials:!0},dynamicProps:!1,dynamicItems:!1};function mo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),ir(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?ir.errors:e.concat(ir.errors),t=e.length),mo.errors=e,t===0}mo.evaluated={props:{id:!0,name:!0,title:!0,photo:!0,email:!0,phone:!0,bio:!0,organizationId:!0,socials:!0},dynamicProps:!1,dynamicItems:!1},D.branch3=co;var nh=j.presentation.properties.speaker.oneOf[1];function mr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:ke.required,parentSchema:ke,data:a};e===null?e=[o]:e.push(o),t++}if(a.name===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ke.required,parentSchema:ke,data:a};e===null?e=[o]:e.push(o),t++}if(a.id!==void 0){let o=a.id;if(typeof o=="string"){if(!zs.test(o)){const i={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9_-]+$"},message:'must match pattern "^[a-zA-Z0-9_-]+$"',schema:"^[a-zA-Z0-9_-]+$",parentSchema:ke.properties.id,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.id.type,parentSchema:ke.properties.id,data:o};e===null?e=[i]:e.push(i),t++}}if(a.name!==void 0){let o=a.name;if(typeof o!="string"){const i={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.name.type,parentSchema:ke.properties.name,data:o};e===null?e=[i]:e.push(i),t++}}if(a.title!==void 0){let o=a.title;if(typeof o!="string"){const i={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.title.type,parentSchema:ke.properties.title,data:o};e===null?e=[i]:e.push(i),t++}}if(a.photo!==void 0){let o=a.photo;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/photo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/photo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/photo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/photo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/photo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}if(a.email!==void 0){let o=a.email;if(typeof o=="string"){if(!Fs.test(o)){const i={instancePath:s+"/email",schemaPath:"#/properties/email/format",keyword:"format",params:{format:"email"},message:'must match format "email"',schema:"email",parentSchema:ke.properties.email,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.email.type,parentSchema:ke.properties.email,data:o};e===null?e=[i]:e.push(i),t++}}if(a.phone!==void 0){let o=a.phone;if(typeof o!="string"){const i={instancePath:s+"/phone",schemaPath:"#/properties/phone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.phone.type,parentSchema:ke.properties.phone,data:o};e===null?e=[i]:e.push(i),t++}}if(a.bio!==void 0){let o=a.bio;if(typeof o!="string"){const i={instancePath:s+"/bio",schemaPath:"#/properties/bio/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.bio.type,parentSchema:ke.properties.bio,data:o};e===null?e=[i]:e.push(i),t++}}if(a.organizationId!==void 0){let o=a.organizationId;if(typeof o!="string"){const i={instancePath:s+"/organizationId",schemaPath:"#/properties/organizationId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ke.properties.organizationId.type,parentSchema:ke.properties.organizationId,data:o};e===null?e=[i]:e.push(i),t++}}if(a.socials!==void 0){let o=a.socials;if(o&&typeof o=="object"&&!Array.isArray(o)){for(const i in o){const h=t;if(!(i==="linkedin"||i==="x"||i==="github"||i==="youtube"||i==="instagram"||i==="facebook"||i==="tiktok"||i==="threads"||i==="mastodon"||i==="bluesky")){const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames/enum",keyword:"enum",params:{allowedValues:Te.propertyNames.enum},message:"must be equal to one of the allowed values",schema:Te.propertyNames.enum,parentSchema:Te.propertyNames,data:i,propertyName:i};e===null?e=[c]:e.push(c),t++}var n=h===t;if(!n){const c={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/propertyNames",keyword:"propertyNames",params:{propertyName:i},message:"property name must be valid",schema:Te.propertyNames,parentSchema:Te,data:o};e===null?e=[c]:e.push(c),t++}}for(const i in o){let h=o[i];if(typeof h!="string"){const c={instancePath:s+"/socials/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Socials/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Te.additionalProperties.type,parentSchema:Te.additionalProperties,data:h};e===null?e=[c]:e.push(c),t++}}}else{const i={instancePath:s+"/socials",schemaPath:"#/$defs/Socials/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Te.type,parentSchema:Te,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ke.type,parentSchema:ke,data:a};e===null?e=[o]:e.push(o),t++}return mr.errors=e,t===0}mr.evaluated={props:{id:!0,name:!0,title:!0,photo:!0,email:!0,phone:!0,bio:!0,organizationId:!0,socials:!0},dynamicProps:!1,dynamicItems:!1};function co(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=co.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:nh,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++)mr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?mr.errors:e.concat(mr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:nh.type,parentSchema:nh,data:a};e===null?e=[r]:e.push(r),t++}return co.errors=e,t===0}co.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch4=ho;var zh=j.presentation.properties.author.oneOf[0];function ho(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ho.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:zh.type,parentSchema:zh,data:a};e===null?e=[r]:e.push(r),t++}return ho.errors=e,t===0}ho.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch5=lo;var Rn=j.presentation.properties.author.oneOf[1];function lo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=lo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Rn,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++){let o=a[n];if(typeof o!="string"){const i={instancePath:s+"/"+n,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rn.items.type,parentSchema:Rn.items,data:o};e===null?e=[i]:e.push(i),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Rn.type,parentSchema:Rn,data:a};e===null?e=[r]:e.push(r),t++}return lo.errors=e,t===0}lo.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch6=uo;var jh=j.presentation.properties.audience.oneOf[0];function uo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=uo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:jh.type,parentSchema:jh,data:a};e===null?e=[r]:e.push(r),t++}return uo.errors=e,t===0}uo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch7=yo,j.presentation.properties.audience.oneOf[1];function cr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=cr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const o=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:E.anyOf[0].required,parentSchema:E.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=o===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:E.anyOf[1].required,parentSchema:E.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:E.anyOf,parentSchema:E,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Bt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.name.type,parentSchema:E.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.summary.type,parentSchema:E.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.description.type,parentSchema:E.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.seniority!==void 0){let c=a.seniority;if(typeof c!="string"){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.seniority.type,parentSchema:E.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="ic"||c==="manager"||c==="director"||c==="vp"||c==="c-suite"||c==="mixed")){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/enum",keyword:"enum",params:{allowedValues:E.properties.seniority.enum},message:"must be equal to one of the allowed values",schema:E.properties.seniority.enum,parentSchema:E.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}}if(a.technicalFluency!==void 0){let c=a.technicalFluency;if(typeof c!="string"){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.technicalFluency.type,parentSchema:E.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="low"||c==="medium"||c==="high"||c==="mixed")){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/enum",keyword:"enum",params:{allowedValues:E.properties.technicalFluency.enum},message:"must be equal to one of the allowed values",schema:E.properties.technicalFluency.enum,parentSchema:E.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}}if(a.decisionPower!==void 0){let c=a.decisionPower;if(typeof c!="string"){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.decisionPower.type,parentSchema:E.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="informational"||c==="advisory"||c==="decision-maker")){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/enum",keyword:"enum",params:{allowedValues:E.properties.decisionPower.enum},message:"must be equal to one of the allowed values",schema:E.properties.decisionPower.enum,parentSchema:E.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}}if(a.attentionBudgetMinutes!==void 0){let c=a.attentionBudgetMinutes;if(typeof c=="number"){if(c<=0||isNaN(c)){const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:E.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/type",keyword:"type",params:{type:"number"},message:"must be number",schema:E.properties.attentionBudgetMinutes.type,parentSchema:E.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.recommendedNarratives.items.type,parentSchema:E.properties.recommendedNarratives.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:E.properties.recommendedNarratives.type,parentSchema:E.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedTones!==void 0){let c=a.recommendedTones;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedTones/"+g,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.recommendedTones.items.type,parentSchema:E.properties.recommendedTones.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:E.properties.recommendedTones.type,parentSchema:E.properties.recommendedTones,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.tags.items.type,parentSchema:E.properties.tags.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:E.properties.tags.type,parentSchema:E.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:E.type,parentSchema:E,data:a};e===null?e=[c]:e.push(c),t++}return cr.errors=e,t===0}cr.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};function yo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=yo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),cr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?cr.errors:e.concat(cr.errors),t=e.length),yo.errors=e,t===0}yo.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1},D.branch8=fo;var As=j.presentation.properties.audience.oneOf[2];function hr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const o=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:E.anyOf[0].required,parentSchema:E.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=o===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:E.anyOf[1].required,parentSchema:E.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:E.anyOf,parentSchema:E,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Bt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.name.type,parentSchema:E.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.summary.type,parentSchema:E.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.description.type,parentSchema:E.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.seniority!==void 0){let c=a.seniority;if(typeof c!="string"){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.seniority.type,parentSchema:E.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="ic"||c==="manager"||c==="director"||c==="vp"||c==="c-suite"||c==="mixed")){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/enum",keyword:"enum",params:{allowedValues:E.properties.seniority.enum},message:"must be equal to one of the allowed values",schema:E.properties.seniority.enum,parentSchema:E.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}}if(a.technicalFluency!==void 0){let c=a.technicalFluency;if(typeof c!="string"){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.technicalFluency.type,parentSchema:E.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="low"||c==="medium"||c==="high"||c==="mixed")){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/enum",keyword:"enum",params:{allowedValues:E.properties.technicalFluency.enum},message:"must be equal to one of the allowed values",schema:E.properties.technicalFluency.enum,parentSchema:E.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}}if(a.decisionPower!==void 0){let c=a.decisionPower;if(typeof c!="string"){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.decisionPower.type,parentSchema:E.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="informational"||c==="advisory"||c==="decision-maker")){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/enum",keyword:"enum",params:{allowedValues:E.properties.decisionPower.enum},message:"must be equal to one of the allowed values",schema:E.properties.decisionPower.enum,parentSchema:E.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}}if(a.attentionBudgetMinutes!==void 0){let c=a.attentionBudgetMinutes;if(typeof c=="number"){if(c<=0||isNaN(c)){const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:E.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/type",keyword:"type",params:{type:"number"},message:"must be number",schema:E.properties.attentionBudgetMinutes.type,parentSchema:E.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.recommendedNarratives.items.type,parentSchema:E.properties.recommendedNarratives.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:E.properties.recommendedNarratives.type,parentSchema:E.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedTones!==void 0){let c=a.recommendedTones;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedTones/"+g,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.recommendedTones.items.type,parentSchema:E.properties.recommendedTones.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:E.properties.recommendedTones.type,parentSchema:E.properties.recommendedTones,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.tags.items.type,parentSchema:E.properties.tags.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:E.properties.tags.type,parentSchema:E.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:E.type,parentSchema:E,data:a};e===null?e=[c]:e.push(c),t++}return hr.errors=e,t===0}hr.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};function fo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const i={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:As,data:a};e===null?e=[i]:e.push(i),t++}const o=a.length;for(let i=0;i<o;i++){let h=a[i];const c=t;let y=!1,g=null;const l=t;if(typeof h!="string"){const d={instancePath:s+"/"+i,schemaPath:"#/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:As.items.oneOf[0].type,parentSchema:As.items.oneOf[0],data:h};e===null?e=[d]:e.push(d),t++}var r=l===t;r&&(y=!0,g=0);const p=t;hr(h,{instancePath:s+"/"+i,parentData:a,parentDataProperty:i,rootData:v,dynamicAnchors:b})||(e=e===null?hr.errors:e.concat(hr.errors),t=e.length);var r=p===t;if(r&&y)y=!1,g=[g,1];else if(r){y=!0,g=1;var n={};n.id=!0,n.name=!0,n.summary=!0,n.description=!0,n.seniority=!0,n.technicalFluency=!0,n.decisionPower=!0,n.attentionBudgetMinutes=!0,n.recommendedNarratives=!0,n.recommendedTones=!0,n.tags=!0}if(y)t=c,e!==null&&(c?e.length=c:e=null);else{const d={instancePath:s+"/"+i,schemaPath:"#/items/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf",schema:As.items.oneOf,parentSchema:As.items,data:h};e===null?e=[d]:e.push(d),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:As.type,parentSchema:As,data:a};e===null?e=[o]:e.push(o),t++}return fo.errors=e,t===0}fo.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch9=go;var Fh=j.presentation.properties.audience.oneOf[2].items.oneOf[0];function go(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=go.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fh.type,parentSchema:Fh,data:a};e===null?e=[r]:e.push(r),t++}return go.errors=e,t===0}go.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch10=Po,j.presentation.properties.audience.oneOf[2].items.oneOf[1];function lr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=lr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const o=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:E.anyOf[0].required,parentSchema:E.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=o===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:E.anyOf[1].required,parentSchema:E.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:E.anyOf,parentSchema:E,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Bt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.name.type,parentSchema:E.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.summary.type,parentSchema:E.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.description.type,parentSchema:E.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.seniority!==void 0){let c=a.seniority;if(typeof c!="string"){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.seniority.type,parentSchema:E.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="ic"||c==="manager"||c==="director"||c==="vp"||c==="c-suite"||c==="mixed")){const y={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/enum",keyword:"enum",params:{allowedValues:E.properties.seniority.enum},message:"must be equal to one of the allowed values",schema:E.properties.seniority.enum,parentSchema:E.properties.seniority,data:c};e===null?e=[y]:e.push(y),t++}}if(a.technicalFluency!==void 0){let c=a.technicalFluency;if(typeof c!="string"){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.technicalFluency.type,parentSchema:E.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="low"||c==="medium"||c==="high"||c==="mixed")){const y={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/enum",keyword:"enum",params:{allowedValues:E.properties.technicalFluency.enum},message:"must be equal to one of the allowed values",schema:E.properties.technicalFluency.enum,parentSchema:E.properties.technicalFluency,data:c};e===null?e=[y]:e.push(y),t++}}if(a.decisionPower!==void 0){let c=a.decisionPower;if(typeof c!="string"){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.decisionPower.type,parentSchema:E.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="informational"||c==="advisory"||c==="decision-maker")){const y={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/enum",keyword:"enum",params:{allowedValues:E.properties.decisionPower.enum},message:"must be equal to one of the allowed values",schema:E.properties.decisionPower.enum,parentSchema:E.properties.decisionPower,data:c};e===null?e=[y]:e.push(y),t++}}if(a.attentionBudgetMinutes!==void 0){let c=a.attentionBudgetMinutes;if(typeof c=="number"){if(c<=0||isNaN(c)){const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:E.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/type",keyword:"type",params:{type:"number"},message:"must be number",schema:E.properties.attentionBudgetMinutes.type,parentSchema:E.properties.attentionBudgetMinutes,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.recommendedNarratives.items.type,parentSchema:E.properties.recommendedNarratives.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:E.properties.recommendedNarratives.type,parentSchema:E.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedTones!==void 0){let c=a.recommendedTones;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedTones/"+g,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.recommendedTones.items.type,parentSchema:E.properties.recommendedTones.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:E.properties.recommendedTones.type,parentSchema:E.properties.recommendedTones,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:E.properties.tags.items.type,parentSchema:E.properties.tags.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:E.properties.tags.type,parentSchema:E.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:E.type,parentSchema:E,data:a};e===null?e=[c]:e.push(c),t++}return lr.errors=e,t===0}lr.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};function Po(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Po.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),lr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?lr.errors:e.concat(lr.errors),t=e.length),Po.errors=e,t===0}Po.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1},D.branch11=vo;var Th=j.presentation.properties.purpose.oneOf[0];function vo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Th.type,parentSchema:Th,data:a};e===null?e=[r]:e.push(r),t++}return vo.errors=e,t===0}vo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch12=bo,j.presentation.properties.purpose.oneOf[1];function dr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=dr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const o=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:$e.anyOf[0].required,parentSchema:$e.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=o===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:$e.anyOf[1].required,parentSchema:$e.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:$e.anyOf,parentSchema:$e,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Bt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.name.type,parentSchema:$e.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.summary.type,parentSchema:$e.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.description.type,parentSchema:$e.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.outcome!==void 0){let c=a.outcome;if(typeof c!="string"){const y={instancePath:s+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.outcome.type,parentSchema:$e.properties.outcome,data:c};e===null?e=[y]:e.push(y),t++}}if(a.successCriteria!==void 0){let c=a.successCriteria;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/successCriteria/"+g,schemaPath:"#/properties/successCriteria/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.successCriteria.items.type,parentSchema:$e.properties.successCriteria.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/successCriteria",schemaPath:"#/properties/successCriteria/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$e.properties.successCriteria.type,parentSchema:$e.properties.successCriteria,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.recommendedNarratives.items.type,parentSchema:$e.properties.recommendedNarratives.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$e.properties.recommendedNarratives.type,parentSchema:$e.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedTones!==void 0){let c=a.recommendedTones;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedTones/"+g,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.recommendedTones.items.type,parentSchema:$e.properties.recommendedTones.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$e.properties.recommendedTones.type,parentSchema:$e.properties.recommendedTones,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$e.properties.tags.items.type,parentSchema:$e.properties.tags.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:$e.properties.tags.type,parentSchema:$e.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:$e.type,parentSchema:$e,data:a};e===null?e=[c]:e.push(c),t++}return dr.errors=e,t===0}dr.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,outcome:!0,successCriteria:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};function bo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=bo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),dr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?dr.errors:e.concat(dr.errors),t=e.length),bo.errors=e,t===0}bo.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,outcome:!0,successCriteria:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0},dynamicProps:!1,dynamicItems:!1},D.branch13=Oo,j.presentation.properties.language.oneOf[0];function Oo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Oo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!to.test(a)){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/LanguageTag/pattern",keyword:"pattern",params:{pattern:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"',schema:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$",parentSchema:$a,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/LanguageTag/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$a.type,parentSchema:$a,data:a};e===null?e=[r]:e.push(r),t++}return Oo.errors=e,t===0}Oo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch14=wo,j.presentation.properties.language.oneOf[1];function ur(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ur.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t,n=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const i={};e===null?e=[i]:e.push(i),t++}var o=n===t;if(o){const i={instancePath:s,schemaPath:"#/not",keyword:"not",params:{},message:"must NOT be valid",schema:Ce.not,parentSchema:Ce,data:a};e===null?e=[i]:e.push(i),t++}else t=r,e!==null&&(r?e.length=r:e=null);if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.bcp47===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bcp47"},message:"must have required property 'bcp47'",schema:Ce.required,parentSchema:Ce,data:a};e===null?e=[i]:e.push(i),t++}if(a.name!==void 0){let i=a.name;if(typeof i!="string"){const h={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.name.type,parentSchema:Ce.properties.name,data:i};e===null?e=[h]:e.push(h),t++}}if(a.bcp47!==void 0){let i=a.bcp47;if(typeof i=="string"){if(!to.test(i)){const h={instancePath:s+"/bcp47",schemaPath:"#/$defs/LanguageTag/pattern",keyword:"pattern",params:{pattern:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$"',schema:"^(?:[A-Za-z]{2,3}|[iIxX])(?:-[A-Za-z0-9]{1,8})*$",parentSchema:$a,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/bcp47",schemaPath:"#/$defs/LanguageTag/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$a.type,parentSchema:$a,data:i};e===null?e=[h]:e.push(h),t++}}if(a.ooxmlLang!==void 0){let i=a.ooxmlLang;if(typeof i!="string"){const h={instancePath:s+"/ooxmlLang",schemaPath:"#/properties/ooxmlLang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.ooxmlLang.type,parentSchema:Ce.properties.ooxmlLang,data:i};e===null?e=[h]:e.push(h),t++}}if(a.code!==void 0){let i=a.code;if(typeof i!="string"){const h={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.code.type,parentSchema:Ce.properties.code,data:i};e===null?e=[h]:e.push(h),t++}}if(a.direction!==void 0){let i=a.direction;if(typeof i!="string"){const h={instancePath:s+"/direction",schemaPath:"#/properties/direction/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.direction.type,parentSchema:Ce.properties.direction,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="ltr"||i==="rtl")){const h={instancePath:s+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues:Ce.properties.direction.enum},message:"must be equal to one of the allowed values",schema:Ce.properties.direction.enum,parentSchema:Ce.properties.direction,data:i};e===null?e=[h]:e.push(h),t++}}if(a.script!==void 0){let i=a.script;if(typeof i!="string"){const h={instancePath:s+"/script",schemaPath:"#/properties/script/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.script.type,parentSchema:Ce.properties.script,data:i};e===null?e=[h]:e.push(h),t++}}if(a.fontScheme!==void 0){let i=a.fontScheme;if(typeof i=="string"){if(!Bt.test(i)){const h={instancePath:s+"/fontScheme",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/fontScheme",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:i};e===null?e=[h]:e.push(h),t++}}if(a.googleFontScheme!==void 0){let i=a.googleFontScheme;if(typeof i=="string"){if(!Bt.test(i)){const h={instancePath:s+"/googleFontScheme",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/googleFontScheme",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:i};e===null?e=[h]:e.push(h),t++}}if(a.summary!==void 0){let i=a.summary;if(typeof i!="string"){const h={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.summary.type,parentSchema:Ce.properties.summary,data:i};e===null?e=[h]:e.push(h),t++}}if(a.description!==void 0){let i=a.description;if(typeof i!="string"){const h={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.description.type,parentSchema:Ce.properties.description,data:i};e===null?e=[h]:e.push(h),t++}}if(a.tags!==void 0){let i=a.tags;if(Array.isArray(i)){const h=i.length;for(let c=0;c<h;c++){let y=i[c];if(typeof y!="string"){const g={instancePath:s+"/tags/"+c,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ce.properties.tags.items.type,parentSchema:Ce.properties.tags.items,data:y};e===null?e=[g]:e.push(g),t++}}}else{const h={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ce.properties.tags.type,parentSchema:Ce.properties.tags,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ce.type,parentSchema:Ce,data:a};e===null?e=[i]:e.push(i),t++}return ur.errors=e,t===0}ur.evaluated={props:{name:!0,bcp47:!0,ooxmlLang:!0,code:!0,direction:!0,script:!0,fontScheme:!0,googleFontScheme:!0,summary:!0,description:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};function wo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),ur(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?ur.errors:e.concat(ur.errors),t=e.length),wo.errors=e,t===0}wo.evaluated={props:{name:!0,bcp47:!0,ooxmlLang:!0,code:!0,direction:!0,script:!0,fontScheme:!0,googleFontScheme:!0,summary:!0,description:!0,tags:!0},dynamicProps:!1,dynamicItems:!1},D.branch15=So,j.presentation.properties.tone.oneOf[0];function So(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=So.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!Bt.test(a)){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:a};e===null?e=[r]:e.push(r),t++}return So.errors=e,t===0}So.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch16=ko,j.presentation.properties.tone.oneOf[1];function yr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=yr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const o=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const c={instancePath:s,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:we.anyOf[0].required,parentSchema:we.anyOf[0],data:a};e===null?e=[c]:e.push(c),t++}var h=o===t;n=n||h;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const c={instancePath:s,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:we.anyOf[1].required,parentSchema:we.anyOf[1],data:a};e===null?e=[c]:e.push(c),t++}var h=i===t;if(n=n||h,n)t=r,e!==null&&(r?e.length=r:e=null);else{const c={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:we.anyOf,parentSchema:we,data:a};e===null?e=[c]:e.push(c),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let c=a.id;if(typeof c=="string"){if(!Bt.test(c)){const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:c};e===null?e=[y]:e.push(y),t++}}if(a.name!==void 0){let c=a.name;if(typeof c!="string"){const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.name.type,parentSchema:we.properties.name,data:c};e===null?e=[y]:e.push(y),t++}}if(a.summary!==void 0){let c=a.summary;if(typeof c!="string"){const y={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.summary.type,parentSchema:we.properties.summary,data:c};e===null?e=[y]:e.push(y),t++}}if(a.description!==void 0){let c=a.description;if(typeof c!="string"){const y={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.description.type,parentSchema:we.properties.description,data:c};e===null?e=[y]:e.push(y),t++}}if(a.voiceCues!==void 0){let c=a.voiceCues;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/voiceCues/"+g,schemaPath:"#/properties/voiceCues/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.voiceCues.items.type,parentSchema:we.properties.voiceCues.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/voiceCues",schemaPath:"#/properties/voiceCues/type",keyword:"type",params:{type:"array"},message:"must be array",schema:we.properties.voiceCues.type,parentSchema:we.properties.voiceCues,data:c};e===null?e=[y]:e.push(y),t++}}if(a.avoid!==void 0){let c=a.avoid;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/avoid/"+g,schemaPath:"#/properties/avoid/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.avoid.items.type,parentSchema:we.properties.avoid.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/avoid",schemaPath:"#/properties/avoid/type",keyword:"type",params:{type:"array"},message:"must be array",schema:we.properties.avoid.type,parentSchema:we.properties.avoid,data:c};e===null?e=[y]:e.push(y),t++}}if(a.samplePhrases!==void 0){let c=a.samplePhrases;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/samplePhrases/"+g,schemaPath:"#/properties/samplePhrases/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.samplePhrases.items.type,parentSchema:we.properties.samplePhrases.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/samplePhrases",schemaPath:"#/properties/samplePhrases/type",keyword:"type",params:{type:"array"},message:"must be array",schema:we.properties.samplePhrases.type,parentSchema:we.properties.samplePhrases,data:c};e===null?e=[y]:e.push(y),t++}}if(a.recommendedNarratives!==void 0){let c=a.recommendedNarratives;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/recommendedNarratives/"+g,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.recommendedNarratives.items.type,parentSchema:we.properties.recommendedNarratives.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:we.properties.recommendedNarratives.type,parentSchema:we.properties.recommendedNarratives,data:c};e===null?e=[y]:e.push(y),t++}}if(a.tags!==void 0){let c=a.tags;if(Array.isArray(c)){const y=c.length;for(let g=0;g<y;g++){let l=c[g];if(typeof l!="string"){const p={instancePath:s+"/tags/"+g,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:we.properties.tags.items.type,parentSchema:we.properties.tags.items,data:l};e===null?e=[p]:e.push(p),t++}}}else{const y={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:we.properties.tags.type,parentSchema:we.properties.tags,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:we.type,parentSchema:we,data:a};e===null?e=[c]:e.push(c),t++}return yr.errors=e,t===0}yr.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,voiceCues:!0,avoid:!0,samplePhrases:!0,recommendedNarratives:!0,tags:!0},dynamicProps:!1,dynamicItems:!1};function ko(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ko.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),yr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?yr.errors:e.concat(yr.errors),t=e.length),ko.errors=e,t===0}ko.evaluated={props:{id:!0,name:!0,summary:!0,description:!0,voiceCues:!0,avoid:!0,samplePhrases:!0,recommendedNarratives:!0,tags:!0},dynamicProps:!1,dynamicItems:!1},D.branch17=Ao;var Ch=j.presentation.properties.takeaway.oneOf[0];function Ao(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ao.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ch.type,parentSchema:Ch,data:a};e===null?e=[r]:e.push(r),t++}return Ao.errors=e,t===0}Ao.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch18=$o;var Zn=j.presentation.properties.takeaway.oneOf[1];function $o(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$o.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Zn,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++){let o=a[n];if(typeof o!="string"){const i={instancePath:s+"/"+n,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Zn.items.type,parentSchema:Zn.items,data:o};e===null?e=[i]:e.push(i),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Zn.type,parentSchema:Zn,data:a};e===null?e=[r]:e.push(r),t++}return $o.errors=e,t===0}$o.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch19=Do;var Vh=j.presentation.$defs.Asset.oneOf[0];function Do(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Do.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Vh.type,parentSchema:Vh,data:a};e===null?e=[r]:e.push(r),t++}return Do.errors=e,t===0}Do.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch20=qo;var Sa=j.presentation.$defs.Asset.oneOf[1];function qo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=qo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.src===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:Sa.required,parentSchema:Sa,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="src"||r==="alt"||r==="title"||r==="description"||r==="mediaType")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Sa,data:a};e===null?e=[n]:e.push(n),t++}if(a.src!==void 0){let r=a.src;if(typeof r!="string"){const n={instancePath:s+"/src",schemaPath:"#/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Sa.properties.src.type,parentSchema:Sa.properties.src,data:r};e===null?e=[n]:e.push(n),t++}}if(a.alt!==void 0){let r=a.alt;if(typeof r!="string"){const n={instancePath:s+"/alt",schemaPath:"#/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Sa.properties.alt.type,parentSchema:Sa.properties.alt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.title!==void 0){let r=a.title;if(typeof r!="string"){const n={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Sa.properties.title.type,parentSchema:Sa.properties.title,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Sa.properties.description.type,parentSchema:Sa.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.mediaType!==void 0){let r=a.mediaType;if(typeof r!="string"){const n={instancePath:s+"/mediaType",schemaPath:"#/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Sa.properties.mediaType.type,parentSchema:Sa.properties.mediaType,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Sa.type,parentSchema:Sa,data:a};e===null?e=[r]:e.push(r),t++}return qo.errors=e,t===0}qo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch21=xo;var Lh=j.presentation.$defs.Audience.anyOf[0];function xo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Lh.required,parentSchema:Lh,data:a};e===null?e=[r]:e.push(r),t++}return xo.errors=e,t===0}xo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch22=No;var Rh=j.presentation.$defs.Audience.anyOf[1];function No(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=No.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Rh.required,parentSchema:Rh,data:a};e===null?e=[r]:e.push(r),t++}return No.errors=e,t===0}No.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch23=Io;var Zh=j.presentation.$defs.Purpose.anyOf[0];function Io(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Io.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Zh.required,parentSchema:Zh,data:a};e===null?e=[r]:e.push(r),t++}return Io.errors=e,t===0}Io.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch24=zo;var Mh=j.presentation.$defs.Purpose.anyOf[1];function zo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=zo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Mh.required,parentSchema:Mh,data:a};e===null?e=[r]:e.push(r),t++}return zo.errors=e,t===0}zo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch25=jo;var Bh=j.presentation.$defs.Tone.anyOf[0];function jo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=jo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Bh.required,parentSchema:Bh,data:a};e===null?e=[r]:e.push(r),t++}return jo.errors=e,t===0}jo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch26=Fo;var Hh=j.presentation.$defs.Tone.anyOf[1];function Fo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Fo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Hh.required,parentSchema:Hh,data:a};e===null?e=[r]:e.push(r),t++}return Fo.errors=e,t===0}Fo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch27=To,j.presentation.$defs.Organization.properties.logo.oneOf[0];function To(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=To.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.src===void 0){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}for(const g in a)if(!(g==="src"||g==="alt"||g==="title"||g==="description"||g==="mediaType")){const l={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:a};e===null?e=[l]:e.push(l),t++}if(a.src!==void 0){let g=a.src;if(typeof g!="string"){const l={instancePath:s+"/src",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:g};e===null?e=[l]:e.push(l),t++}}if(a.alt!==void 0){let g=a.alt;if(typeof g!="string"){const l={instancePath:s+"/alt",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:g};e===null?e=[l]:e.push(l),t++}}if(a.title!==void 0){let g=a.title;if(typeof g!="string"){const l={instancePath:s+"/title",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:g};e===null?e=[l]:e.push(l),t++}}if(a.description!==void 0){let g=a.description;if(typeof g!="string"){const l={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:g};e===null?e=[l]:e.push(l),t++}}if(a.mediaType!==void 0){let g=a.mediaType;if(typeof g!="string"){const l={instancePath:s+"/mediaType",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:g};e===null?e=[l]:e.push(l),t++}}}else{const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}var c=h===t;if(c&&n)n=!1,o=[o,1];else if(c){n=!0,o=1;var y=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:a};e===null?e=[g]:e.push(g),t++}return To.errors=e,m.props=y,t===0}To.evaluated={dynamicProps:!0,dynamicItems:!1},D.branch28=Co,j.presentation.$defs.Organization.properties.logo.oneOf[1];function fr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(Object.keys(a).length<1){const r={instancePath:s,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:Ps,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="full"||r==="stacked"||r==="icon"||r==="wordmark")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ps,data:a};e===null?e=[n]:e.push(n),t++}a.full!==void 0&&(Dt(a.full,{instancePath:s+"/full",parentData:a,parentDataProperty:"full",rootData:v,dynamicAnchors:b})||(e=e===null?Dt.errors:e.concat(Dt.errors),t=e.length)),a.stacked!==void 0&&(Dt(a.stacked,{instancePath:s+"/stacked",parentData:a,parentDataProperty:"stacked",rootData:v,dynamicAnchors:b})||(e=e===null?Dt.errors:e.concat(Dt.errors),t=e.length)),a.icon!==void 0&&(Dt(a.icon,{instancePath:s+"/icon",parentData:a,parentDataProperty:"icon",rootData:v,dynamicAnchors:b})||(e=e===null?Dt.errors:e.concat(Dt.errors),t=e.length)),a.wordmark!==void 0&&(Dt(a.wordmark,{instancePath:s+"/wordmark",parentData:a,parentDataProperty:"wordmark",rootData:v,dynamicAnchors:b})||(e=e===null?Dt.errors:e.concat(Dt.errors),t=e.length))}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ps.type,parentSchema:Ps,data:a};e===null?e=[r]:e.push(r),t++}return fr.errors=e,t===0}fr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Co(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Co.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),fr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?fr.errors:e.concat(fr.errors),t=e.length),Co.errors=e,t===0}Co.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch29=Vo;var _h=j.presentation.$defs.Design.properties.colorScheme.oneOf[0];function Vo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Vo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_h.type,parentSchema:_h,data:a};e===null?e=[r]:e.push(r),t++}return Vo.errors=e,t===0}Vo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch30=Lo,j.presentation.$defs.Design.properties.colorScheme.oneOf[1];function gr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=gr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!Bt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent1!==void 0){let r=a.accent1;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent2!==void 0){let r=a.accent2;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent3!==void 0){let r=a.accent3;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent3",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent3",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent4!==void 0){let r=a.accent4;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent4",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent4",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent5!==void 0){let r=a.accent5;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent5",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent5",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent6!==void 0){let r=a.accent6;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent6",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent6",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dark1!==void 0){let r=a.dark1;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/dark1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dark1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dark2!==void 0){let r=a.dark2;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/dark2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dark2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.light1!==void 0){let r=a.light1;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/light1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/light1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.light2!==void 0){let r=a.light2;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/light2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/light2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.hyperlink!==void 0){let r=a.hyperlink;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/hyperlink",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/hyperlink",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.followedHyperlink!==void 0){let r=a.followedHyperlink;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/followedHyperlink",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/followedHyperlink",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.primary!==void 0){let r=a.primary;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/primary",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/primary",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.secondary!==void 0){let r=a.secondary;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/secondary",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/secondary",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent!==void 0){let r=a.accent;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.background!==void 0){let r=a.background;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/background",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/background",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.surface!==void 0){let r=a.surface;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/surface",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/surface",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.text!==void 0){let r=a.text;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/text",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/text",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.textSecondary!==void 0){let r=a.textSecondary;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/textSecondary",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/textSecondary",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ao.type,parentSchema:ao,data:a};e===null?e=[r]:e.push(r),t++}return gr.errors=e,t===0}gr.evaluated={props:{id:!0,accent1:!0,accent2:!0,accent3:!0,accent4:!0,accent5:!0,accent6:!0,dark1:!0,dark2:!0,light1:!0,light2:!0,hyperlink:!0,followedHyperlink:!0,primary:!0,secondary:!0,accent:!0,background:!0,surface:!0,text:!0,textSecondary:!0},dynamicProps:!1,dynamicItems:!1};function Lo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Lo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),gr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?gr.errors:e.concat(gr.errors),t=e.length),Lo.errors=e,t===0}Lo.evaluated={props:{id:!0,accent1:!0,accent2:!0,accent3:!0,accent4:!0,accent5:!0,accent6:!0,dark1:!0,dark2:!0,light1:!0,light2:!0,hyperlink:!0,followedHyperlink:!0,primary:!0,secondary:!0,accent:!0,background:!0,surface:!0,text:!0,textSecondary:!0},dynamicProps:!1,dynamicItems:!1},D.branch31=Ro;var Uh=j.presentation.$defs.Design.properties.fontScheme.oneOf[0];function Ro(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ro.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Uh.type,parentSchema:Uh,data:a};e===null?e=[r]:e.push(r),t++}return Ro.errors=e,t===0}Ro.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch32=Zo,j.presentation.$defs.Design.properties.fontScheme.oneOf[1];function Pr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Pr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!Bt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:xe,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/$defs/CatalogReference/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xe.type,parentSchema:xe,data:r};e===null?e=[n]:e.push(n),t++}}if(a.major!==void 0){let r=a.major;if(typeof r!="string"){const n={instancePath:s+"/major",schemaPath:"#/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.major.type,parentSchema:ne.properties.major,data:r};e===null?e=[n]:e.push(n),t++}}if(a.minor!==void 0){let r=a.minor;if(typeof r!="string"){const n={instancePath:s+"/minor",schemaPath:"#/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.minor.type,parentSchema:ne.properties.minor,data:r};e===null?e=[n]:e.push(n),t++}}if(a.eastAsian!==void 0){let r=a.eastAsian;if(r&&typeof r=="object"&&!Array.isArray(r)){if(Object.keys(r).length<1){const n={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:ne.properties.eastAsian,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="major"||n==="minor")){const o={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ne.properties.eastAsian,data:r};e===null?e=[o]:e.push(o),t++}if(r.major!==void 0){let n=r.major;if(typeof n!="string"){const o={instancePath:s+"/eastAsian/major",schemaPath:"#/properties/eastAsian/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.eastAsian.properties.major.type,parentSchema:ne.properties.eastAsian.properties.major,data:n};e===null?e=[o]:e.push(o),t++}}if(r.minor!==void 0){let n=r.minor;if(typeof n!="string"){const o={instancePath:s+"/eastAsian/minor",schemaPath:"#/properties/eastAsian/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.eastAsian.properties.minor.type,parentSchema:ne.properties.eastAsian.properties.minor,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ne.properties.eastAsian.type,parentSchema:ne.properties.eastAsian,data:r};e===null?e=[n]:e.push(n),t++}}if(a.complexScript!==void 0){let r=a.complexScript;if(r&&typeof r=="object"&&!Array.isArray(r)){if(Object.keys(r).length<1){const n={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:ne.properties.complexScript,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="major"||n==="minor")){const o={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:ne.properties.complexScript,data:r};e===null?e=[o]:e.push(o),t++}if(r.major!==void 0){let n=r.major;if(typeof n!="string"){const o={instancePath:s+"/complexScript/major",schemaPath:"#/properties/complexScript/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.complexScript.properties.major.type,parentSchema:ne.properties.complexScript.properties.major,data:n};e===null?e=[o]:e.push(o),t++}}if(r.minor!==void 0){let n=r.minor;if(typeof n!="string"){const o={instancePath:s+"/complexScript/minor",schemaPath:"#/properties/complexScript/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.complexScript.properties.minor.type,parentSchema:ne.properties.complexScript.properties.minor,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ne.properties.complexScript.type,parentSchema:ne.properties.complexScript,data:r};e===null?e=[n]:e.push(n),t++}}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.type.type,parentSchema:ne.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="sans-serif"||r==="serif"||r==="monospace")){const n={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ne.properties.type.enum},message:"must be equal to one of the allowed values",schema:ne.properties.type.enum,parentSchema:ne.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.app!==void 0){let r=a.app;if(typeof r!="string"){const n={instancePath:s+"/app",schemaPath:"#/properties/app/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.app.type,parentSchema:ne.properties.app,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="powerpoint"||r==="google-slides")){const n={instancePath:s+"/app",schemaPath:"#/properties/app/enum",keyword:"enum",params:{allowedValues:ne.properties.app.enum},message:"must be equal to one of the allowed values",schema:ne.properties.app.enum,parentSchema:ne.properties.app,data:r};e===null?e=[n]:e.push(n),t++}}if(a.languageFamily!==void 0){let r=a.languageFamily;if(typeof r!="string"){const n={instancePath:s+"/languageFamily",schemaPath:"#/properties/languageFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.languageFamily.type,parentSchema:ne.properties.languageFamily,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="latin"||r==="ea"||r==="cs"||r==="eastAsian"||r==="complexScript")){const n={instancePath:s+"/languageFamily",schemaPath:"#/properties/languageFamily/enum",keyword:"enum",params:{allowedValues:ne.properties.languageFamily.enum},message:"must be equal to one of the allowed values",schema:ne.properties.languageFamily.enum,parentSchema:ne.properties.languageFamily,data:r};e===null?e=[n]:e.push(n),t++}}if(a.heading!==void 0){let r=a.heading;if(typeof r!="string"){const n={instancePath:s+"/heading",schemaPath:"#/properties/heading/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.heading.type,parentSchema:ne.properties.heading,data:r};e===null?e=[n]:e.push(n),t++}}if(a.body!==void 0){let r=a.body;if(typeof r!="string"){const n={instancePath:s+"/body",schemaPath:"#/properties/body/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.body.type,parentSchema:ne.properties.body,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent!==void 0){let r=a.accent;if(typeof r!="string"){const n={instancePath:s+"/accent",schemaPath:"#/properties/accent/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.accent.type,parentSchema:ne.properties.accent,data:r};e===null?e=[n]:e.push(n),t++}}if(a.code!==void 0){let r=a.code;if(typeof r!="string"){const n={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ne.properties.code.type,parentSchema:ne.properties.code,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ne.type,parentSchema:ne,data:a};e===null?e=[r]:e.push(r),t++}return Pr.errors=e,t===0}Pr.evaluated={props:{id:!0,major:!0,minor:!0,eastAsian:!0,complexScript:!0,type:!0,app:!0,languageFamily:!0,heading:!0,body:!0,accent:!0,code:!0},dynamicProps:!1,dynamicItems:!1};function Zo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Zo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Pr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Pr.errors:e.concat(Pr.errors),t=e.length),Zo.errors=e,t===0}Zo.evaluated={props:{id:!0,major:!0,minor:!0,eastAsian:!0,complexScript:!0,type:!0,app:!0,languageFamily:!0,heading:!0,body:!0,accent:!0,code:!0},dynamicProps:!1,dynamicItems:!1},D.branch33=Mo,j.presentation.$defs.Design.properties.dimensions.oneOf[0];function Mo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Mo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DimensionPreset/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xt.type,parentSchema:Xt,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="16:9"||a==="4:3"||a==="16:10"||a==="1:1"||a==="4:5"||a==="9:16"||a==="letter"||a==="a4"||a==="widescreen"||a==="standard")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DimensionPreset/enum",keyword:"enum",params:{allowedValues:Xt.enum},message:"must be equal to one of the allowed values",schema:Xt.enum,parentSchema:Xt,data:a};e===null?e=[r]:e.push(r),t++}return Mo.errors=e,t===0}Mo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch34=Bo,j.presentation.$defs.Design.properties.dimensions.oneOf[1];function vr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.preset!==void 0){let r=a.preset;if(typeof r!="string"){const n={instancePath:s+"/preset",schemaPath:"#/$defs/DimensionPreset/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xt.type,parentSchema:Xt,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="16:9"||r==="4:3"||r==="16:10"||r==="1:1"||r==="4:5"||r==="9:16"||r==="letter"||r==="a4"||r==="widescreen"||r==="standard")){const n={instancePath:s+"/preset",schemaPath:"#/$defs/DimensionPreset/enum",keyword:"enum",params:{allowedValues:Xt.enum},message:"must be equal to one of the allowed values",schema:Xt.enum,parentSchema:Xt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.widthInches!==void 0){let r=a.widthInches;if(typeof r=="number"){if(r<=0||isNaN(r)){const n={instancePath:s+"/widthInches",schemaPath:"#/properties/widthInches/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ca.properties.widthInches,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/widthInches",schemaPath:"#/properties/widthInches/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ca.properties.widthInches.type,parentSchema:ca.properties.widthInches,data:r};e===null?e=[n]:e.push(n),t++}}if(a.heightInches!==void 0){let r=a.heightInches;if(typeof r=="number"){if(r<=0||isNaN(r)){const n={instancePath:s+"/heightInches",schemaPath:"#/properties/heightInches/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:ca.properties.heightInches,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/heightInches",schemaPath:"#/properties/heightInches/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ca.properties.heightInches.type,parentSchema:ca.properties.heightInches,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ca.type,parentSchema:ca,data:a};e===null?e=[r]:e.push(r),t++}return vr.errors=e,t===0}vr.evaluated={props:{preset:!0,widthInches:!0,heightInches:!0},dynamicProps:!1,dynamicItems:!1};function Bo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Bo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),vr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?vr.errors:e.concat(vr.errors),t=e.length),Bo.errors=e,t===0}Bo.evaluated={props:{preset:!0,widthInches:!0,heightInches:!0},dynamicProps:!1,dynamicItems:!1},D.branch35=Ho,j.presentation.$defs.Design.properties.background.oneOf[0];function br(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=br.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const y={instancePath:s,schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:jt.type,parentSchema:jt,data:a};e===null?e=[y]:e.push(y),t++}if(!(a==="light1"||a==="light2"||a==="dark1"||a==="dark2")){const y={instancePath:s,schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:jt.enum},message:"must be equal to one of the allowed values",schema:jt.enum,parentSchema:jt,data:a};e===null?e=[y]:e.push(y),t++}var c=i===t;c&&(n=!0,o=0);const h=t;if(typeof a=="string"){if(!Ae.test(a)){const y={instancePath:s,schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:a};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s,schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:a};e===null?e=[y]:e.push(y),t++}var c=h===t;if(c&&n)n=!1,o=[o,1];else{c&&(n=!0,o=1);const y=t;if(typeof a=="string"){if(!eh.test(a)){const l={instancePath:s,schemaPath:"#/$defs/ImageSource/pattern",keyword:"pattern",params:{pattern:"^(asset:|https://|data:|\\./|\\.\\./)"},message:'must match pattern "^(asset:|https://|data:|\\./|\\.\\./)"',schema:"^(asset:|https://|data:|\\./|\\.\\./)",parentSchema:_a,data:a};e===null?e=[l]:e.push(l),t++}}else{const l={instancePath:s,schemaPath:"#/$defs/ImageSource/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_a.type,parentSchema:_a,data:a};e===null?e=[l]:e.push(l),t++}var c=y===t;c&&n?(n=!1,o=[o,2]):c&&(n=!0,o=2)}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const y={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:so.oneOf,parentSchema:so,data:a};e===null?e=[y]:e.push(y),t++}return br.errors=e,t===0}br.evaluated={dynamicProps:!1,dynamicItems:!1};function Ho(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ho.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),br(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?br.errors:e.concat(br.errors),t=e.length),Ho.errors=e,t===0}Ho.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch36=_o,j.presentation.$defs.Design.properties.background.oneOf[1];function $s(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$s.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;Ua(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Ua.errors:e.concat(Ua.errors),t=e.length);var y=i===t;if(y){n=!0,o=0;var h={};h.type=!0,h.slot=!0}const c=t;Ea(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Ea.errors:e.concat(Ea.errors),t=e.length);var y=c===t;if(y&&n)n=!1,o=[o,1];else{y&&(n=!0,o=1,h!==!0&&(h=h||{},h.type=!0,h.color=!0,h.opacity=!0));const g=t;Wa(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Wa.errors:e.concat(Wa.errors),t=e.length);var y=g===t;if(y&&n)n=!1,o=[o,2];else{y&&(n=!0,o=2,h!==!0&&(h=h||{},h.tone=!0,h.type=!0,h.gradient=!0,h.opacity=!0));const p=t;Xa(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Xa.errors:e.concat(Xa.errors),t=e.length);var y=p===t;if(y&&n)n=!1,o=[o,3];else{y&&(n=!0,o=3,h!==!0&&(h=!0));const O=t;Ja(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Ja.errors:e.concat(Ja.errors),t=e.length);var y=O===t;y&&n?(n=!1,o=[o,4]):y&&(n=!0,o=4,h!==!0&&(h=h||{},h.type=!0,h.pattern=!0,h.opacity=!0))}}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:ro.oneOf,parentSchema:ro,data:a};e===null?e=[g]:e.push(g),t++}return $s.errors=e,m.props=h,t===0}$s.evaluated={dynamicProps:!0,dynamicItems:!1};function _o(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=_o.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),!$s(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b}))e=e===null?$s.errors:e.concat($s.errors),t=e.length;else var r=$s.evaluated.props;return _o.errors=e,m.props=r,t===0}_o.evaluated={dynamicProps:!0,dynamicItems:!1},D.branch37=Uo,j.presentation.$defs.Design.properties.variant.oneOf[0];function Uo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Uo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.type,parentSchema:Ie,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="light1"||a==="light2"||a==="dark1"||a==="dark2"||a==="accent1"||a==="accent2"||a==="accent3"||a==="accent4"||a==="accent5"||a==="accent6")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values",schema:Ie.enum,parentSchema:Ie,data:a};e===null?e=[r]:e.push(r),t++}return Uo.errors=e,t===0}Uo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch38=Eo,j.presentation.$defs.Design.properties.variant.oneOf[1];function Or(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Or.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.background===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"background"},message:"must have required property 'background'",schema:oe.required,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="background"||r==="accents")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:oe,data:a};e===null?e=[n]:e.push(n),t++}if(a.background!==void 0){let r=a.background;if(typeof r!="string"){const n={instancePath:s+"/background",schemaPath:"#/$defs/ColorVariantSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.type,parentSchema:Ie,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2"||r==="accent1"||r==="accent2"||r==="accent3"||r==="accent4"||r==="accent5"||r==="accent6")){const n={instancePath:s+"/background",schemaPath:"#/$defs/ColorVariantSlot/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values",schema:Ie.enum,parentSchema:Ie,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accents!==void 0){let r=a.accents;if(Array.isArray(r)){if(r.length>6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items",schema:6,parentSchema:oe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}if(r.length<6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/minItems",keyword:"minItems",params:{limit:6},message:"must NOT have fewer than 6 items",schema:6,parentSchema:oe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.accents.items.type,parentSchema:oe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="accent1"||c==="accent2"||c==="accent3"||c==="accent4"||c==="accent5"||c==="accent6")){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/enum",keyword:"enum",params:{allowedValues:oe.properties.accents.items.enum},message:"must be equal to one of the allowed values",schema:oe.properties.accents.items.enum,parentSchema:oe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}}let o=r.length,i;if(o>1){const h={};for(;o--;){let c=r[o];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/accents",schemaPath:"#/properties/accents/uniqueItems",keyword:"uniqueItems",params:{i:o,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+o+" are identical)",schema:!0,parentSchema:oe.properties.accents,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=o}}}}else{const n={instancePath:s+"/accents",schemaPath:"#/properties/accents/type",keyword:"type",params:{type:"array"},message:"must be array",schema:oe.properties.accents.type,parentSchema:oe.properties.accents,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:oe.type,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}return Or.errors=e,t===0}Or.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Eo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Eo.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Or(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Or.errors:e.concat(Or.errors),t=e.length),Eo.errors=e,t===0}Eo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch39=Wo;var oh=j.presentation.$defs.Design.properties.logo.oneOf[0];function Wo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Wo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!qh.test(a)){const r={instancePath:s,schemaPath:"#/pattern",keyword:"pattern",params:{pattern:"^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$"},message:'must match pattern "^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$"',schema:"^var:organization(\\.[A-Za-z0-9_-]+)?\\.logo(\\.(full|stacked|icon|wordmark))?$",parentSchema:oh,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oh.type,parentSchema:oh,data:a};e===null?e=[r]:e.push(r),t++}return Wo.errors=e,t===0}Wo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch40=Xo;var ph=j.presentation.$defs.Design.properties.logo.oneOf[1];function Xo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Xo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ph.type,parentSchema:ph,data:a};e===null?e=[r]:e.push(r),t++}if(a!==!1){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:ph,data:a};e===null?e=[r]:e.push(r),t++}return Xo.errors=e,t===0}Xo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch41=Jo;var ih=j.presentation.$defs.Design.properties.watermark.oneOf[0];function Jo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Jo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ih.type,parentSchema:ih,data:a};e===null?e=[r]:e.push(r),t++}if(a!==!1){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:ih,data:a};e===null?e=[r]:e.push(r),t++}return Jo.errors=e,t===0}Jo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch42=Ko,j.presentation.$defs.Design.properties.watermark.oneOf[1];function Ko(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ko.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.src===void 0){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}for(const g in a)if(!(g==="src"||g==="alt"||g==="title"||g==="description"||g==="mediaType")){const l={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:a};e===null?e=[l]:e.push(l),t++}if(a.src!==void 0){let g=a.src;if(typeof g!="string"){const l={instancePath:s+"/src",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:g};e===null?e=[l]:e.push(l),t++}}if(a.alt!==void 0){let g=a.alt;if(typeof g!="string"){const l={instancePath:s+"/alt",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:g};e===null?e=[l]:e.push(l),t++}}if(a.title!==void 0){let g=a.title;if(typeof g!="string"){const l={instancePath:s+"/title",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:g};e===null?e=[l]:e.push(l),t++}}if(a.description!==void 0){let g=a.description;if(typeof g!="string"){const l={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:g};e===null?e=[l]:e.push(l),t++}}if(a.mediaType!==void 0){let g=a.mediaType;if(typeof g!="string"){const l={instancePath:s+"/mediaType",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:g};e===null?e=[l]:e.push(l),t++}}}else{const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}var c=h===t;if(c&&n)n=!1,o=[o,1];else if(c){n=!0,o=1;var y=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:a};e===null?e=[g]:e.push(g),t++}return Ko.errors=e,m.props=y,t===0}Ko.evaluated={dynamicProps:!0,dynamicItems:!1},D.branch43=Yo,j.presentation.$defs.Design.properties.watermark.oneOf[2];function Yo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Yo.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.src===void 0){const y={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/oneOf/0/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:ht.oneOf[0].required,parentSchema:ht.oneOf[0],data:a};e===null?e=[y]:e.push(y),t++}var c=i===t;c&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.text===void 0){const y={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:ht.oneOf[1].required,parentSchema:ht.oneOf[1],data:a};e===null?e=[y]:e.push(y),t++}var c=h===t;if(c&&n?(n=!1,o=[o,1]):c&&(n=!0,o=1),n)t=r,e!==null&&(r?e.length=r:e=null);else{const y={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:ht.oneOf,parentSchema:ht,data:a};e===null?e=[y]:e.push(y),t++}if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.opacity===void 0){const y={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/required",keyword:"required",params:{missingProperty:"opacity"},message:"must have required property 'opacity'",schema:ht.required,parentSchema:ht,data:a};e===null?e=[y]:e.push(y),t++}for(const y in a)if(!(y==="src"||y==="text"||y==="opacity")){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties",schema:!1,parentSchema:ht,data:a};e===null?e=[g]:e.push(g),t++}if(a.src!==void 0){let y=a.src;if(typeof y!="string"){const g={instancePath:s+"/src",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ht.properties.src.type,parentSchema:ht.properties.src,data:y};e===null?e=[g]:e.push(g),t++}}if(a.text!==void 0){let y=a.text;if(typeof y=="string"){if(pe(y)<1){const g={instancePath:s+"/text",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/properties/text/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:ht.properties.text,data:y};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/text",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ht.properties.text.type,parentSchema:ht.properties.text,data:y};e===null?e=[g]:e.push(g),t++}}if(a.opacity!==void 0){let y=a.opacity;if(typeof y=="number"){if(y>1||isNaN(y)){const g={instancePath:s+"/opacity",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:ht.properties.opacity,data:y};e===null?e=[g]:e.push(g),t++}if(y<0||isNaN(y)){const g={instancePath:s+"/opacity",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:ht.properties.opacity,data:y};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/opacity",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:ht.properties.opacity.type,parentSchema:ht.properties.opacity,data:y};e===null?e=[g]:e.push(g),t++}}}else{const y={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Watermark/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ht.type,parentSchema:ht,data:a};e===null?e=[y]:e.push(y),t++}return Yo.errors=e,t===0}Yo.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch44=Qo;var mh=j.presentation.$defs.Design.properties.header.oneOf[0];function Qo(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qo.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:mh.type,parentSchema:mh,data:a};e===null?e=[r]:e.push(r),t++}if(a!==!1){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:mh,data:a};e===null?e=[r]:e.push(r),t++}return Qo.errors=e,t===0}Qo.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch45=Go,j.presentation.$defs.Design.properties.header.oneOf[1];function wr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a))a.left!==void 0&&(St(a.left,{instancePath:s+"/left",parentData:a,parentDataProperty:"left",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length)),a.center!==void 0&&(St(a.center,{instancePath:s+"/center",parentData:a,parentDataProperty:"center",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length)),a.right!==void 0&&(St(a.right,{instancePath:s+"/right",parentData:a,parentDataProperty:"right",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length));else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:_s.type,parentSchema:_s,data:a};e===null?e=[r]:e.push(r),t++}return wr.errors=e,t===0}wr.evaluated={props:{left:!0,center:!0,right:!0},dynamicProps:!1,dynamicItems:!1};function Go(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Go.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),wr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?wr.errors:e.concat(wr.errors),t=e.length),Go.errors=e,t===0}Go.evaluated={props:{left:!0,center:!0,right:!0},dynamicProps:!1,dynamicItems:!1},D.branch46=ep;var ch=j.presentation.$defs.Design.properties.footer.oneOf[0];function ep(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ep.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ch.type,parentSchema:ch,data:a};e===null?e=[r]:e.push(r),t++}if(a!==!1){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:ch,data:a};e===null?e=[r]:e.push(r),t++}return ep.errors=e,t===0}ep.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch47=tp,j.presentation.$defs.Design.properties.footer.oneOf[1];function Sr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Sr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a))a.left!==void 0&&(St(a.left,{instancePath:s+"/left",parentData:a,parentDataProperty:"left",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length)),a.center!==void 0&&(St(a.center,{instancePath:s+"/center",parentData:a,parentDataProperty:"center",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length)),a.right!==void 0&&(St(a.right,{instancePath:s+"/right",parentData:a,parentDataProperty:"right",rootData:v,dynamicAnchors:b})||(e=e===null?St.errors:e.concat(St.errors),t=e.length));else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:_s.type,parentSchema:_s,data:a};e===null?e=[r]:e.push(r),t++}return Sr.errors=e,t===0}Sr.evaluated={props:{left:!0,center:!0,right:!0},dynamicProps:!1,dynamicItems:!1};function tp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=tp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Sr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Sr.errors:e.concat(Sr.errors),t=e.length),tp.errors=e,t===0}tp.evaluated={props:{left:!0,center:!0,right:!0},dynamicProps:!1,dynamicItems:!1},D.branch48=ap,j.presentation.$defs.ColorRef.anyOf[0];function ap(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ap.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!Ae.test(a)){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:a};e===null?e=[r]:e.push(r),t++}return ap.errors=e,t===0}ap.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch49=sp;var Mn=j.presentation.$defs.ColorRef.anyOf[1];function sp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=sp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Mn.type,parentSchema:Mn,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="accent1"||a==="accent2"||a==="accent3"||a==="accent4"||a==="accent5"||a==="accent6"||a==="dark1"||a==="dark2"||a==="light1"||a==="light2"||a==="hyperlink"||a==="followedHyperlink"||a==="primary"||a==="secondary"||a==="accent"||a==="background"||a==="surface"||a==="surfaceAlt"||a==="text"||a==="textSecondary")){const r={instancePath:s,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Mn.enum},message:"must be equal to one of the allowed values",schema:Mn.enum,parentSchema:Mn,data:a};e===null?e=[r]:e.push(r),t++}return sp.errors=e,t===0}sp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch50=rp;var hh=j.presentation.$defs.ColorRef.anyOf[2];function rp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=rp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!th.test(a)){const r={instancePath:s,schemaPath:"#/pattern",keyword:"pattern",params:{pattern:"^var:[a-z][a-z0-9-]*$"},message:'must match pattern "^var:[a-z][a-z0-9-]*$"',schema:"^var:[a-z][a-z0-9-]*$",parentSchema:hh,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:hh.type,parentSchema:hh,data:a};e===null?e=[r]:e.push(r),t++}return rp.errors=e,t===0}rp.evaluated={dynamicProps:!1,dynamicItems:!1},D.definition0=np;function np(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=np.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a=="string"){if(!Ae.test(a)){const g={instancePath:s,schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:a};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s,schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,o=0);const h=t;Qa(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Qa.errors:e.concat(Qa.errors),t=e.length);var c=h===t;if(c&&n)n=!1,o=[o,1];else{if(c){n=!0,o=1;var y=!0}const g=t;Ga(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Ga.errors:e.concat(Ga.errors),t=e.length);var c=g===t;if(c&&n)n=!1,o=[o,2];else{c&&(n=!0,o=2,y!==!0&&(y=!0));const p=t;es(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?es.errors:e.concat(es.errors),t=e.length);var c=p===t;if(c&&n)n=!1,o=[o,3];else{c&&(n=!0,o=3,y!==!0&&(y=!0));const O=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const I={instancePath:s,schemaPath:"#/$defs/DateVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ie.required,parentSchema:ie,data:a};e===null?e=[I]:e.push(I),t++}for(const I in a)if(!(I==="type"||I==="value"||I==="required"||I==="label"||I==="description"||I==="example"||I==="format")){const A={instancePath:s,schemaPath:"#/$defs/DateVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties",schema:!1,parentSchema:ie,data:a};e===null?e=[A]:e.push(A),t++}if(a.type!==void 0){let I=a.type;if(typeof I!="string"){const A={instancePath:s+"/type",schemaPath:"#/$defs/DateVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.type.type,parentSchema:ie.properties.type,data:I};e===null?e=[A]:e.push(A),t++}if(I!=="date"){const A={instancePath:s+"/type",schemaPath:"#/$defs/DateVariable/properties/type/const",keyword:"const",params:{allowedValue:"date"},message:"must be equal to constant",schema:"date",parentSchema:ie.properties.type,data:I};e===null?e=[A]:e.push(A),t++}}if(a.value!==void 0){let I=a.value;if(typeof I=="string"){if(!vs.test(I)){const A={instancePath:s+"/value",schemaPath:"#/$defs/DateVariable/properties/value/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:ie.properties.value,data:I};e===null?e=[A]:e.push(A),t++}}else{const A={instancePath:s+"/value",schemaPath:"#/$defs/DateVariable/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.value.type,parentSchema:ie.properties.value,data:I};e===null?e=[A]:e.push(A),t++}}if(a.required!==void 0){let I=a.required;if(typeof I!="boolean"){const A={instancePath:s+"/required",schemaPath:"#/$defs/DateVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ie.properties.required.type,parentSchema:ie.properties.required,data:I};e===null?e=[A]:e.push(A),t++}}if(a.label!==void 0){let I=a.label;if(typeof I!="string"){const A={instancePath:s+"/label",schemaPath:"#/$defs/DateVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.label.type,parentSchema:ie.properties.label,data:I};e===null?e=[A]:e.push(A),t++}}if(a.description!==void 0){let I=a.description;if(typeof I!="string"){const A={instancePath:s+"/description",schemaPath:"#/$defs/DateVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.description.type,parentSchema:ie.properties.description,data:I};e===null?e=[A]:e.push(A),t++}}if(a.example!==void 0){let I=a.example;if(typeof I=="string"){if(!vs.test(I)){const A={instancePath:s+"/example",schemaPath:"#/$defs/DateVariable/properties/example/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:ie.properties.example,data:I};e===null?e=[A]:e.push(A),t++}}else{const A={instancePath:s+"/example",schemaPath:"#/$defs/DateVariable/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.example.type,parentSchema:ie.properties.example,data:I};e===null?e=[A]:e.push(A),t++}}if(a.format!==void 0){let I=a.format;if(typeof I!="string"){const A={instancePath:s+"/format",schemaPath:"#/$defs/DateVariable/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.format.type,parentSchema:ie.properties.format,data:I};e===null?e=[A]:e.push(A),t++}}}else{const I={instancePath:s,schemaPath:"#/$defs/DateVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ie.type,parentSchema:ie,data:a};e===null?e=[I]:e.push(I),t++}var c=O===t;if(c&&n)n=!1,o=[o,4];else{c&&(n=!0,o=4,y!==!0&&(y=!0));const I=t;ts(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?ts.errors:e.concat(ts.errors),t=e.length);var c=I===t;if(c&&n)n=!1,o=[o,5];else{c&&(n=!0,o=5,y!==!0&&(y=!0));const f=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const w={instancePath:s,schemaPath:"#/$defs/UrlVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ue.required,parentSchema:ue,data:a};e===null?e=[w]:e.push(w),t++}for(const w in a)if(!(w==="type"||w==="value"||w==="required"||w==="label"||w==="description"||w==="example")){const $={instancePath:s,schemaPath:"#/$defs/UrlVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties",schema:!1,parentSchema:ue,data:a};e===null?e=[$]:e.push($),t++}if(a.type!==void 0){let w=a.type;if(typeof w!="string"){const $={instancePath:s+"/type",schemaPath:"#/$defs/UrlVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.type.type,parentSchema:ue.properties.type,data:w};e===null?e=[$]:e.push($),t++}if(w!=="url"){const $={instancePath:s+"/type",schemaPath:"#/$defs/UrlVariable/properties/type/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant",schema:"url",parentSchema:ue.properties.type,data:w};e===null?e=[$]:e.push($),t++}}if(a.value!==void 0){let w=a.value;if(typeof w=="string"){if(!bs.test(w)){const $={instancePath:s+"/value",schemaPath:"#/$defs/UrlVariable/properties/value/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:ue.properties.value,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/value",schemaPath:"#/$defs/UrlVariable/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.value.type,parentSchema:ue.properties.value,data:w};e===null?e=[$]:e.push($),t++}}if(a.required!==void 0){let w=a.required;if(typeof w!="boolean"){const $={instancePath:s+"/required",schemaPath:"#/$defs/UrlVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ue.properties.required.type,parentSchema:ue.properties.required,data:w};e===null?e=[$]:e.push($),t++}}if(a.label!==void 0){let w=a.label;if(typeof w!="string"){const $={instancePath:s+"/label",schemaPath:"#/$defs/UrlVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.label.type,parentSchema:ue.properties.label,data:w};e===null?e=[$]:e.push($),t++}}if(a.description!==void 0){let w=a.description;if(typeof w!="string"){const $={instancePath:s+"/description",schemaPath:"#/$defs/UrlVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.description.type,parentSchema:ue.properties.description,data:w};e===null?e=[$]:e.push($),t++}}if(a.example!==void 0){let w=a.example;if(typeof w=="string"){if(!bs.test(w)){const $={instancePath:s+"/example",schemaPath:"#/$defs/UrlVariable/properties/example/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:ue.properties.example,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/example",schemaPath:"#/$defs/UrlVariable/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.example.type,parentSchema:ue.properties.example,data:w};e===null?e=[$]:e.push($),t++}}}else{const w={instancePath:s,schemaPath:"#/$defs/UrlVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ue.type,parentSchema:ue,data:a};e===null?e=[w]:e.push(w),t++}var c=f===t;if(c&&n)n=!1,o=[o,6];else{c&&(n=!0,o=6,y!==!0&&(y=!0));const w=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const F={instancePath:s,schemaPath:"#/$defs/ListVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:me.required,parentSchema:me,data:a};e===null?e=[F]:e.push(F),t++}for(const F in a)if(!(F==="type"||F==="value"||F==="required"||F==="label"||F==="description"||F==="example")){const z={instancePath:s,schemaPath:"#/$defs/ListVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:F},message:"must NOT have additional properties",schema:!1,parentSchema:me,data:a};e===null?e=[z]:e.push(z),t++}if(a.type!==void 0){let F=a.type;if(typeof F!="string"){const z={instancePath:s+"/type",schemaPath:"#/$defs/ListVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.type.type,parentSchema:me.properties.type,data:F};e===null?e=[z]:e.push(z),t++}if(F!=="list"){const z={instancePath:s+"/type",schemaPath:"#/$defs/ListVariable/properties/type/const",keyword:"const",params:{allowedValue:"list"},message:"must be equal to constant",schema:"list",parentSchema:me.properties.type,data:F};e===null?e=[z]:e.push(z),t++}}if(a.value!==void 0){let F=a.value;if(Array.isArray(F)){const z=F.length;for(let L=0;L<z;L++){let M=F[L];if(typeof M!="string"){const H={instancePath:s+"/value/"+L,schemaPath:"#/$defs/ListVariable/properties/value/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.value.items.type,parentSchema:me.properties.value.items,data:M};e===null?e=[H]:e.push(H),t++}}}else{const z={instancePath:s+"/value",schemaPath:"#/$defs/ListVariable/properties/value/type",keyword:"type",params:{type:"array"},message:"must be array",schema:me.properties.value.type,parentSchema:me.properties.value,data:F};e===null?e=[z]:e.push(z),t++}}if(a.required!==void 0){let F=a.required;if(typeof F!="boolean"){const z={instancePath:s+"/required",schemaPath:"#/$defs/ListVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:me.properties.required.type,parentSchema:me.properties.required,data:F};e===null?e=[z]:e.push(z),t++}}if(a.label!==void 0){let F=a.label;if(typeof F!="string"){const z={instancePath:s+"/label",schemaPath:"#/$defs/ListVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.label.type,parentSchema:me.properties.label,data:F};e===null?e=[z]:e.push(z),t++}}if(a.description!==void 0){let F=a.description;if(typeof F!="string"){const z={instancePath:s+"/description",schemaPath:"#/$defs/ListVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.description.type,parentSchema:me.properties.description,data:F};e===null?e=[z]:e.push(z),t++}}if(a.example!==void 0){let F=a.example;if(Array.isArray(F)){const z=F.length;for(let L=0;L<z;L++){let M=F[L];if(typeof M!="string"){const H={instancePath:s+"/example/"+L,schemaPath:"#/$defs/ListVariable/properties/example/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.example.items.type,parentSchema:me.properties.example.items,data:M};e===null?e=[H]:e.push(H),t++}}}else{const z={instancePath:s+"/example",schemaPath:"#/$defs/ListVariable/properties/example/type",keyword:"type",params:{type:"array"},message:"must be array",schema:me.properties.example.type,parentSchema:me.properties.example,data:F};e===null?e=[z]:e.push(z),t++}}}else{const F={instancePath:s,schemaPath:"#/$defs/ListVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:me.type,parentSchema:me,data:a};e===null?e=[F]:e.push(F),t++}var c=w===t;c&&n?(n=!1,o=[o,7]):c&&(n=!0,o=7,y!==!0&&(y=!0))}}}}}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:no.oneOf,parentSchema:no,data:a};e===null?e=[g]:e.push(g),t++}return np.errors=e,m.props=y,t===0}np.evaluated={dynamicProps:!0,dynamicItems:!1},D.branch51=op,j.presentation.$defs.Variable.oneOf[0];function op(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=op.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!Ae.test(a)){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:a};e===null?e=[r]:e.push(r),t++}return op.errors=e,t===0}op.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch52=pp,j.presentation.$defs.Variable.oneOf[1];function kr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=kr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:nt.required,parentSchema:nt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:nt,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.type.type,parentSchema:nt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="color"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"color"},message:"must be equal to constant",schema:"color",parentSchema:nt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/value",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:nt.properties.required.type,parentSchema:nt.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.label.type,parentSchema:nt.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.description.type,parentSchema:nt.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/example",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:nt.type,parentSchema:nt,data:a};e===null?e=[r]:e.push(r),t++}return kr.errors=e,t===0}kr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function pp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=pp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),kr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?kr.errors:e.concat(kr.errors),t=e.length),pp.errors=e,t===0}pp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch53=ip,j.presentation.$defs.Variable.oneOf[2];function Ar(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ar.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Pe.required,parentSchema:Pe,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="type"||o==="value"||o==="required"||o==="label"||o==="description"||o==="example")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:Pe,data:a};e===null?e=[i]:e.push(i),t++}if(a.type!==void 0){let o=a.type;if(typeof o!="string"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.type.type,parentSchema:Pe.properties.type,data:o};e===null?e=[i]:e.push(i),t++}if(o!=="text"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"text"},message:"must be equal to constant",schema:"text",parentSchema:Pe.properties.type,data:o};e===null?e=[i]:e.push(i),t++}}if(a.value!==void 0){let o=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.value.oneOf[0].type,parentSchema:Pe.properties.value.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(o)){const l=o.length;for(let p=0;p<l;p++)J(o[p],{instancePath:s+"/value/"+p,parentData:o,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pe.properties.value.oneOf[1].type,parentSchema:Pe.properties.value.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Pe.properties.value.oneOf,parentSchema:Pe.properties.value,data:o};e===null?e=[l]:e.push(l),t++}}if(a.required!==void 0){let o=a.required;if(typeof o!="boolean"){const i={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Pe.properties.required.type,parentSchema:Pe.properties.required,data:o};e===null?e=[i]:e.push(i),t++}}if(a.label!==void 0){let o=a.label;if(typeof o!="string"){const i={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.label.type,parentSchema:Pe.properties.label,data:o};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let o=a.description;if(typeof o!="string"){const i={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.description.type,parentSchema:Pe.properties.description,data:o};e===null?e=[i]:e.push(i),t++}}if(a.example!==void 0){let o=a.example;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.example.oneOf[0].type,parentSchema:Pe.properties.example.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(Array.isArray(o)){const l=o.length;for(let p=0;p<l;p++)J(o[p],{instancePath:s+"/example/"+p,parentData:o,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pe.properties.example.oneOf[1].type,parentSchema:Pe.properties.example.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Pe.properties.example.oneOf,parentSchema:Pe.properties.example,data:o};e===null?e=[l]:e.push(l),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Pe.type,parentSchema:Pe,data:a};e===null?e=[o]:e.push(o),t++}return Ar.errors=e,t===0}Ar.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ip(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ip.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Ar(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Ar.errors:e.concat(Ar.errors),t=e.length),ip.errors=e,t===0}ip.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch54=mp,j.presentation.$defs.Variable.oneOf[3];function $r(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$r.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Le.required,parentSchema:Le,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Le,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.type.type,parentSchema:Le.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="number"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"number"},message:"must be equal to constant",schema:"number",parentSchema:Le.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r!="number"){const n={instancePath:s+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Le.properties.value.type,parentSchema:Le.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Le.properties.required.type,parentSchema:Le.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.label.type,parentSchema:Le.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.description.type,parentSchema:Le.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r!="number"){const n={instancePath:s+"/example",schemaPath:"#/properties/example/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Le.properties.example.type,parentSchema:Le.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Le.type,parentSchema:Le,data:a};e===null?e=[r]:e.push(r),t++}return $r.errors=e,t===0}$r.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function mp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),$r(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?$r.errors:e.concat($r.errors),t=e.length),mp.errors=e,t===0}mp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch55=cp,j.presentation.$defs.Variable.oneOf[4];function cp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=cp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ie.required,parentSchema:ie,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example"||r==="format")){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ie,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.type.type,parentSchema:ie.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="date"){const n={instancePath:s+"/type",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/type/const",keyword:"const",params:{allowedValue:"date"},message:"must be equal to constant",schema:"date",parentSchema:ie.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!vs.test(r)){const n={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/value/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:ie.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.value.type,parentSchema:ie.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ie.properties.required.type,parentSchema:ie.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.label.type,parentSchema:ie.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.description.type,parentSchema:ie.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!vs.test(r)){const n={instancePath:s+"/example",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/example/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:ie.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.example.type,parentSchema:ie.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.format.type,parentSchema:ie.properties.format,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/DateVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ie.type,parentSchema:ie,data:a};e===null?e=[r]:e.push(r),t++}return cp.errors=e,t===0}cp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch56=hp,j.presentation.$defs.Variable.oneOf[5];function Dr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Dr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ot.required,parentSchema:ot,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="type"||o==="value"||o==="required"||o==="label"||o==="description"||o==="example")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:ot,data:a};e===null?e=[i]:e.push(i),t++}if(a.type!==void 0){let o=a.type;if(typeof o!="string"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ot.properties.type.type,parentSchema:ot.properties.type,data:o};e===null?e=[i]:e.push(i),t++}if(o!=="image"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"image"},message:"must be equal to constant",schema:"image",parentSchema:ot.properties.type,data:o};e===null?e=[i]:e.push(i),t++}}if(a.value!==void 0){let o=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/value/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/value/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/value/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/value/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/value/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}if(a.required!==void 0){let o=a.required;if(typeof o!="boolean"){const i={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ot.properties.required.type,parentSchema:ot.properties.required,data:o};e===null?e=[i]:e.push(i),t++}}if(a.label!==void 0){let o=a.label;if(typeof o!="string"){const i={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ot.properties.label.type,parentSchema:ot.properties.label,data:o};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let o=a.description;if(typeof o!="string"){const i={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ot.properties.description.type,parentSchema:ot.properties.description,data:o};e===null?e=[i]:e.push(i),t++}}if(a.example!==void 0){let o=a.example;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/example/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/example/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/example/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/example/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/example/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ot.type,parentSchema:ot,data:a};e===null?e=[o]:e.push(o),t++}return Dr.errors=e,t===0}Dr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function hp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Dr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Dr.errors:e.concat(Dr.errors),t=e.length),hp.errors=e,t===0}hp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch57=lp,j.presentation.$defs.Variable.oneOf[6];function lp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=lp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ue.required,parentSchema:ue,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ue,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.type.type,parentSchema:ue.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="url"){const n={instancePath:s+"/type",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/type/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant",schema:"url",parentSchema:ue.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!bs.test(r)){const n={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/value/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:ue.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.value.type,parentSchema:ue.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ue.properties.required.type,parentSchema:ue.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.label.type,parentSchema:ue.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.description.type,parentSchema:ue.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!bs.test(r)){const n={instancePath:s+"/example",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/example/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:ue.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.example.type,parentSchema:ue.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/UrlVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ue.type,parentSchema:ue,data:a};e===null?e=[r]:e.push(r),t++}return lp.errors=e,t===0}lp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch58=dp,j.presentation.$defs.Variable.oneOf[7];function dp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=dp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:me.required,parentSchema:me,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:me,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.type.type,parentSchema:me.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="list"){const n={instancePath:s+"/type",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/type/const",keyword:"const",params:{allowedValue:"list"},message:"must be equal to constant",schema:"list",parentSchema:me.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/value/"+o,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/value/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.value.items.type,parentSchema:me.properties.value.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/value/type",keyword:"type",params:{type:"array"},message:"must be array",schema:me.properties.value.type,parentSchema:me.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:me.properties.required.type,parentSchema:me.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.label.type,parentSchema:me.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.description.type,parentSchema:me.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/example/"+o,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/example/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.example.items.type,parentSchema:me.properties.example.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/example",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/properties/example/type",keyword:"type",params:{type:"array"},message:"must be array",schema:me.properties.example.type,parentSchema:me.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ListVariable/type",keyword:"type",params:{type:"object"},message:"must be object",schema:me.type,parentSchema:me,data:a};e===null?e=[r]:e.push(r),t++}return dp.errors=e,t===0}dp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.definition1=up;function up(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=up.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:nt.required,parentSchema:nt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:nt,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.type.type,parentSchema:nt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="color"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"color"},message:"must be equal to constant",schema:"color",parentSchema:nt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/value",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:nt.properties.required.type,parentSchema:nt.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.label.type,parentSchema:nt.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nt.properties.description.type,parentSchema:nt.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/example",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:nt.type,parentSchema:nt,data:a};e===null?e=[r]:e.push(r),t++}return up.errors=e,t===0}up.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.definition2=yp;function yp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=yp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Pe.required,parentSchema:Pe,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="type"||o==="value"||o==="required"||o==="label"||o==="description"||o==="example")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:Pe,data:a};e===null?e=[i]:e.push(i),t++}if(a.type!==void 0){let o=a.type;if(typeof o!="string"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.type.type,parentSchema:Pe.properties.type,data:o};e===null?e=[i]:e.push(i),t++}if(o!=="text"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"text"},message:"must be equal to constant",schema:"text",parentSchema:Pe.properties.type,data:o};e===null?e=[i]:e.push(i),t++}}if(a.value!==void 0){let o=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.value.oneOf[0].type,parentSchema:Pe.properties.value.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(o)){const l=o.length;for(let p=0;p<l;p++)J(o[p],{instancePath:s+"/value/"+p,parentData:o,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pe.properties.value.oneOf[1].type,parentSchema:Pe.properties.value.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"#/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Pe.properties.value.oneOf,parentSchema:Pe.properties.value,data:o};e===null?e=[l]:e.push(l),t++}}if(a.required!==void 0){let o=a.required;if(typeof o!="boolean"){const i={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Pe.properties.required.type,parentSchema:Pe.properties.required,data:o};e===null?e=[i]:e.push(i),t++}}if(a.label!==void 0){let o=a.label;if(typeof o!="string"){const i={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.label.type,parentSchema:Pe.properties.label,data:o};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let o=a.description;if(typeof o!="string"){const i={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.description.type,parentSchema:Pe.properties.description,data:o};e===null?e=[i]:e.push(i),t++}}if(a.example!==void 0){let o=a.example;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Pe.properties.example.oneOf[0].type,parentSchema:Pe.properties.example.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(Array.isArray(o)){const l=o.length;for(let p=0;p<l;p++)J(o[p],{instancePath:s+"/example/"+p,parentData:o,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pe.properties.example.oneOf[1].type,parentSchema:Pe.properties.example.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/example",schemaPath:"#/properties/example/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Pe.properties.example.oneOf,parentSchema:Pe.properties.example,data:o};e===null?e=[l]:e.push(l),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Pe.type,parentSchema:Pe,data:a};e===null?e=[o]:e.push(o),t++}return yp.errors=e,t===0}yp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch59=fp;var Eh=j.presentation.$defs.TextVariable.properties.value.oneOf[0];function fp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Eh.type,parentSchema:Eh,data:a};e===null?e=[r]:e.push(r),t++}return fp.errors=e,t===0}fp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch60=gp;var Wh=j.presentation.$defs.TextVariable.properties.value.oneOf[1];function qr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=qr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return qr.errors=e,m.props=l,t===0}qr.evaluated={dynamicProps:!0,dynamicItems:!1};function gp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=gp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)qr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?qr.errors:e.concat(qr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Wh.type,parentSchema:Wh,data:a};e===null?e=[r]:e.push(r),t++}return gp.errors=e,t===0}gp.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch61=Pp;var Xh=j.presentation.$defs.TextVariable.properties.example.oneOf[0];function Pp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Pp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xh.type,parentSchema:Xh,data:a};e===null?e=[r]:e.push(r),t++}return Pp.errors=e,t===0}Pp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch62=vp;var Jh=j.presentation.$defs.TextVariable.properties.example.oneOf[1];function xr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return xr.errors=e,m.props=l,t===0}xr.evaluated={dynamicProps:!0,dynamicItems:!1};function vp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)xr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?xr.errors:e.concat(xr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Jh.type,parentSchema:Jh,data:a};e===null?e=[r]:e.push(r),t++}return vp.errors=e,t===0}vp.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.definition3=bp;function bp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=bp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:Le.required,parentSchema:Le,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Le,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.type.type,parentSchema:Le.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="number"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"number"},message:"must be equal to constant",schema:"number",parentSchema:Le.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r!="number"){const n={instancePath:s+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Le.properties.value.type,parentSchema:Le.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Le.properties.required.type,parentSchema:Le.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.label.type,parentSchema:Le.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Le.properties.description.type,parentSchema:Le.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r!="number"){const n={instancePath:s+"/example",schemaPath:"#/properties/example/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Le.properties.example.type,parentSchema:Le.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Le.type,parentSchema:Le,data:a};e===null?e=[r]:e.push(r),t++}return bp.errors=e,t===0}bp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.definition4=Op;function Op(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Op.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ie.required,parentSchema:ie,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ie,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.type.type,parentSchema:ie.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="date"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"date"},message:"must be equal to constant",schema:"date",parentSchema:ie.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!vs.test(r)){const n={instancePath:s+"/value",schemaPath:"#/properties/value/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:ie.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.value.type,parentSchema:ie.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ie.properties.required.type,parentSchema:ie.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.label.type,parentSchema:ie.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.description.type,parentSchema:ie.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!vs.test(r)){const n={instancePath:s+"/example",schemaPath:"#/properties/example/pattern",keyword:"pattern",params:{pattern:"^\\d{4}-\\d{2}-\\d{2}$"},message:'must match pattern "^\\d{4}-\\d{2}-\\d{2}$"',schema:"^\\d{4}-\\d{2}-\\d{2}$",parentSchema:ie.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"#/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.example.type,parentSchema:ie.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ie.properties.format.type,parentSchema:ie.properties.format,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ie.type,parentSchema:ie,data:a};e===null?e=[r]:e.push(r),t++}return Op.errors=e,t===0}Op.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.definition5=wp;function wp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ot.required,parentSchema:ot,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="type"||o==="value"||o==="required"||o==="label"||o==="description"||o==="example")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:ot,data:a};e===null?e=[i]:e.push(i),t++}if(a.type!==void 0){let o=a.type;if(typeof o!="string"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ot.properties.type.type,parentSchema:ot.properties.type,data:o};e===null?e=[i]:e.push(i),t++}if(o!=="image"){const i={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"image"},message:"must be equal to constant",schema:"image",parentSchema:ot.properties.type,data:o};e===null?e=[i]:e.push(i),t++}}if(a.value!==void 0){let o=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/value/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/value/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/value/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/value/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/value/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}if(a.required!==void 0){let o=a.required;if(typeof o!="boolean"){const i={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ot.properties.required.type,parentSchema:ot.properties.required,data:o};e===null?e=[i]:e.push(i),t++}}if(a.label!==void 0){let o=a.label;if(typeof o!="string"){const i={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ot.properties.label.type,parentSchema:ot.properties.label,data:o};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let o=a.description;if(typeof o!="string"){const i={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ot.properties.description.type,parentSchema:ot.properties.description,data:o};e===null?e=[i]:e.push(i),t++}}if(a.example!==void 0){let o=a.example;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/example/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/example/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/example/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/example/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/example/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/example",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ot.type,parentSchema:ot,data:a};e===null?e=[o]:e.push(o),t++}return wp.errors=e,t===0}wp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.definition6=Sp;function Sp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Sp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ue.required,parentSchema:ue,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ue,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.type.type,parentSchema:ue.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="url"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant",schema:"url",parentSchema:ue.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(typeof r=="string"){if(!bs.test(r)){const n={instancePath:s+"/value",schemaPath:"#/properties/value/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:ue.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.value.type,parentSchema:ue.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ue.properties.required.type,parentSchema:ue.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.label.type,parentSchema:ue.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.description.type,parentSchema:ue.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(typeof r=="string"){if(!bs.test(r)){const n={instancePath:s+"/example",schemaPath:"#/properties/example/pattern",keyword:"pattern",params:{pattern:"^(?:https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(?:https?://|mailto:|tel:)\\S+$"',schema:"^(?:https?://|mailto:|tel:)\\S+$",parentSchema:ue.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/example",schemaPath:"#/properties/example/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ue.properties.example.type,parentSchema:ue.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ue.type,parentSchema:ue,data:a};e===null?e=[r]:e.push(r),t++}return Sp.errors=e,t===0}Sp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.definition7=kp;function kp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=kp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:me.required,parentSchema:me,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="type"||r==="value"||r==="required"||r==="label"||r==="description"||r==="example")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:me,data:a};e===null?e=[n]:e.push(n),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.type.type,parentSchema:me.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="list"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"list"},message:"must be equal to constant",schema:"list",parentSchema:me.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.value!==void 0){let r=a.value;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/value/"+o,schemaPath:"#/properties/value/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.value.items.type,parentSchema:me.properties.value.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type:"array"},message:"must be array",schema:me.properties.value.type,parentSchema:me.properties.value,data:r};e===null?e=[n]:e.push(n),t++}}if(a.required!==void 0){let r=a.required;if(typeof r!="boolean"){const n={instancePath:s+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:me.properties.required.type,parentSchema:me.properties.required,data:r};e===null?e=[n]:e.push(n),t++}}if(a.label!==void 0){let r=a.label;if(typeof r!="string"){const n={instancePath:s+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.label.type,parentSchema:me.properties.label,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.description.type,parentSchema:me.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.example!==void 0){let r=a.example;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/example/"+o,schemaPath:"#/properties/example/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:me.properties.example.items.type,parentSchema:me.properties.example.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/example",schemaPath:"#/properties/example/type",keyword:"type",params:{type:"array"},message:"must be array",schema:me.properties.example.type,parentSchema:me.properties.example,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:me.type,parentSchema:me,data:a};e===null?e=[r]:e.push(r),t++}return kp.errors=e,t===0}kp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch63=Ap,j.presentation.$defs.BackgroundShortcut.oneOf[0];function Ap(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ap.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:jt.type,parentSchema:jt,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="light1"||a==="light2"||a==="dark1"||a==="dark2")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:jt.enum},message:"must be equal to one of the allowed values",schema:jt.enum,parentSchema:jt,data:a};e===null?e=[r]:e.push(r),t++}return Ap.errors=e,t===0}Ap.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch64=$p,j.presentation.$defs.BackgroundShortcut.oneOf[1];function $p(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$p.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!Ae.test(a)){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:a};e===null?e=[r]:e.push(r),t++}return $p.errors=e,t===0}$p.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch65=Dp,j.presentation.$defs.BackgroundShortcut.oneOf[2];function Dp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Dp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(!eh.test(a)){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ImageSource/pattern",keyword:"pattern",params:{pattern:"^(asset:|https://|data:|\\./|\\.\\./)"},message:'must match pattern "^(asset:|https://|data:|\\./|\\.\\./)"',schema:"^(asset:|https://|data:|\\./|\\.\\./)",parentSchema:_a,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ImageSource/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_a.type,parentSchema:_a,data:a};e===null?e=[r]:e.push(r),t++}return Dp.errors=e,t===0}Dp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch66=qp,j.presentation.$defs.Background.oneOf[0];function Nr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Nr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ta.required,parentSchema:ta,data:a};e===null?e=[r]:e.push(r),t++}if(a.slot===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"slot"},message:"must have required property 'slot'",schema:ta.required,parentSchema:ta,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ta.properties.type.type,parentSchema:ta.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="theme"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"theme"},message:"must be equal to constant",schema:"theme",parentSchema:ta.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.slot!==void 0){let r=a.slot;if(typeof r!="string"){const n={instancePath:s+"/slot",schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:jt.type,parentSchema:jt,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2")){const n={instancePath:s+"/slot",schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:jt.enum},message:"must be equal to one of the allowed values",schema:jt.enum,parentSchema:jt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ta.type,parentSchema:ta,data:a};e===null?e=[r]:e.push(r),t++}return Nr.errors=e,t===0}Nr.evaluated={props:{type:!0,slot:!0},dynamicProps:!1,dynamicItems:!1};function qp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=qp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Nr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Nr.errors:e.concat(Nr.errors),t=e.length),qp.errors=e,t===0}qp.evaluated={props:{type:!0,slot:!0},dynamicProps:!1,dynamicItems:!1},D.branch67=xp,j.presentation.$defs.Background.oneOf[1];function Ir(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ir.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:It.required,parentSchema:It,data:a};e===null?e=[r]:e.push(r),t++}if(a.color===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:It.required,parentSchema:It,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:It.properties.type.type,parentSchema:It.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="solid"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"solid"},message:"must be equal to constant",schema:"solid",parentSchema:It.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.color!==void 0&&(Ve(a.color,{instancePath:s+"/color",parentData:a,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)),a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:It.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:It.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:It.properties.opacity.type,parentSchema:It.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:It.type,parentSchema:It,data:a};e===null?e=[r]:e.push(r),t++}return Ir.errors=e,t===0}Ir.evaluated={props:{type:!0,color:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1};function xp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Ir(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Ir.errors:e.concat(Ir.errors),t=e.length),xp.errors=e,t===0}xp.evaluated={props:{type:!0,color:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1},D.branch68=Np,j.presentation.$defs.Background.oneOf[2];function zr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=zr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:be.required,parentSchema:be,data:a};e===null?e=[r]:e.push(r),t++}if(a.gradient===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"gradient"},message:"must have required property 'gradient'",schema:be.required,parentSchema:be,data:a};e===null?e=[r]:e.push(r),t++}if(a.tone!==void 0){let r=a.tone;if(typeof r!="string"){const n={instancePath:s+"/tone",schemaPath:"#/properties/tone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:be.properties.tone.type,parentSchema:be.properties.tone,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="dark"||r==="light")){const n={instancePath:s+"/tone",schemaPath:"#/properties/tone/enum",keyword:"enum",params:{allowedValues:be.properties.tone.enum},message:"must be equal to one of the allowed values",schema:be.properties.tone.enum,parentSchema:be.properties.tone,data:r};e===null?e=[n]:e.push(n),t++}}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:be.properties.type.type,parentSchema:be.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="gradient"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"gradient"},message:"must be equal to constant",schema:"gradient",parentSchema:be.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.gradient!==void 0){let r=a.gradient;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.angle!==void 0){let n=r.angle;if(typeof n!="number"){const o={instancePath:s+"/gradient/angle",schemaPath:"#/properties/gradient/properties/angle/type",keyword:"type",params:{type:"number"},message:"must be number",schema:be.properties.gradient.properties.angle.type,parentSchema:be.properties.gradient.properties.angle,data:n};e===null?e=[o]:e.push(o),t++}}if(r.stops!==void 0){let n=r.stops;if(Array.isArray(n)){if(n.length<2){const i={instancePath:s+"/gradient/stops",schemaPath:"#/properties/gradient/properties/stops/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:be.properties.gradient.properties.stops,data:n};e===null?e=[i]:e.push(i),t++}const o=n.length;for(let i=0;i<o;i++){let h=n[i];if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.color===void 0){const c={instancePath:s+"/gradient/stops/"+i,schemaPath:"#/properties/gradient/properties/stops/items/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:be.properties.gradient.properties.stops.items.required,parentSchema:be.properties.gradient.properties.stops.items,data:h};e===null?e=[c]:e.push(c),t++}if(h.position===void 0){const c={instancePath:s+"/gradient/stops/"+i,schemaPath:"#/properties/gradient/properties/stops/items/required",keyword:"required",params:{missingProperty:"position"},message:"must have required property 'position'",schema:be.properties.gradient.properties.stops.items.required,parentSchema:be.properties.gradient.properties.stops.items,data:h};e===null?e=[c]:e.push(c),t++}if(h.color!==void 0&&(Ve(h.color,{instancePath:s+"/gradient/stops/"+i+"/color",parentData:h,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)),h.position!==void 0){let c=h.position;if(typeof c=="number"){if(c>1||isNaN(c)){const y={instancePath:s+"/gradient/stops/"+i+"/position",schemaPath:"#/properties/gradient/properties/stops/items/properties/position/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:be.properties.gradient.properties.stops.items.properties.position,data:c};e===null?e=[y]:e.push(y),t++}if(c<0||isNaN(c)){const y={instancePath:s+"/gradient/stops/"+i+"/position",schemaPath:"#/properties/gradient/properties/stops/items/properties/position/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:be.properties.gradient.properties.stops.items.properties.position,data:c};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/gradient/stops/"+i+"/position",schemaPath:"#/properties/gradient/properties/stops/items/properties/position/type",keyword:"type",params:{type:"number"},message:"must be number",schema:be.properties.gradient.properties.stops.items.properties.position.type,parentSchema:be.properties.gradient.properties.stops.items.properties.position,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s+"/gradient/stops/"+i,schemaPath:"#/properties/gradient/properties/stops/items/type",keyword:"type",params:{type:"object"},message:"must be object",schema:be.properties.gradient.properties.stops.items.type,parentSchema:be.properties.gradient.properties.stops.items,data:h};e===null?e=[c]:e.push(c),t++}}}else{const o={instancePath:s+"/gradient/stops",schemaPath:"#/properties/gradient/properties/stops/type",keyword:"type",params:{type:"array"},message:"must be array",schema:be.properties.gradient.properties.stops.type,parentSchema:be.properties.gradient.properties.stops,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/gradient",schemaPath:"#/properties/gradient/type",keyword:"type",params:{type:"object"},message:"must be object",schema:be.properties.gradient.type,parentSchema:be.properties.gradient,data:r};e===null?e=[n]:e.push(n),t++}}if(a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:be.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:be.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:be.properties.opacity.type,parentSchema:be.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:be.type,parentSchema:be,data:a};e===null?e=[r]:e.push(r),t++}return zr.errors=e,t===0}zr.evaluated={props:{tone:!0,type:!0,gradient:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1};function Np(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Np.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),zr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?zr.errors:e.concat(zr.errors),t=e.length),Np.errors=e,t===0}Np.evaluated={props:{tone:!0,type:!0,gradient:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1},D.branch69=Ip,j.presentation.$defs.Background.oneOf[3];function jr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=jr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:De.required,parentSchema:De,data:a};e===null?e=[n]:e.push(n),t++}if(a.src===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:De.required,parentSchema:De,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!va.call(De.properties,n)){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:De,data:a};e===null?e=[o]:e.push(o),t++}if(a.tone!==void 0){let n=a.tone;if(typeof n!="string"){const o={instancePath:s+"/tone",schemaPath:"#/properties/tone/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.properties.tone.type,parentSchema:De.properties.tone,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="dark"||n==="light")){const o={instancePath:s+"/tone",schemaPath:"#/properties/tone/enum",keyword:"enum",params:{allowedValues:De.properties.tone.enum},message:"must be equal to one of the allowed values",schema:De.properties.tone.enum,parentSchema:De.properties.tone,data:n};e===null?e=[o]:e.push(o),t++}}if(a.type!==void 0){let n=a.type;if(typeof n!="string"){const o={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.properties.type.type,parentSchema:De.properties.type,data:n};e===null?e=[o]:e.push(o),t++}if(n!=="image"){const o={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"image"},message:"must be equal to constant",schema:"image",parentSchema:De.properties.type,data:n};e===null?e=[o]:e.push(o),t++}}if(a.src!==void 0){let n=a.src;if(typeof n!="string"){const o={instancePath:s+"/src",schemaPath:"#/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.properties.src.type,parentSchema:De.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}if(a.alt!==void 0){let n=a.alt;if(typeof n!="string"){const o={instancePath:s+"/alt",schemaPath:"#/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.properties.alt.type,parentSchema:De.properties.alt,data:n};e===null?e=[o]:e.push(o),t++}}if(a.fit!==void 0){let n=a.fit;if(typeof n!="string"){const o={instancePath:s+"/fit",schemaPath:"#/properties/fit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:De.properties.fit.type,parentSchema:De.properties.fit,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="cover"||n==="contain"||n==="stretch"||n==="tile")){const o={instancePath:s+"/fit",schemaPath:"#/properties/fit/enum",keyword:"enum",params:{allowedValues:De.properties.fit.enum},message:"must be equal to one of the allowed values",schema:De.properties.fit.enum,parentSchema:De.properties.fit,data:n};e===null?e=[o]:e.push(o),t++}}if(a.focus!==void 0){let n=a.focus;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.x===void 0){const o={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/required",keyword:"required",params:{missingProperty:"x"},message:"must have required property 'x'",schema:tt.required,parentSchema:tt,data:n};e===null?e=[o]:e.push(o),t++}if(n.y===void 0){const o={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/required",keyword:"required",params:{missingProperty:"y"},message:"must have required property 'y'",schema:tt.required,parentSchema:tt,data:n};e===null?e=[o]:e.push(o),t++}for(const o in n)if(!(o==="x"||o==="y")){const i={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:tt,data:n};e===null?e=[i]:e.push(i),t++}if(n.x!==void 0){let o=n.x;if(typeof o=="number"){if(o>1||isNaN(o)){const i={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:tt.properties.x,data:o};e===null?e=[i]:e.push(i),t++}if(o<0||isNaN(o)){const i={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:tt.properties.x,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/focus/x",schemaPath:"#/$defs/ImageFocus/properties/x/type",keyword:"type",params:{type:"number"},message:"must be number",schema:tt.properties.x.type,parentSchema:tt.properties.x,data:o};e===null?e=[i]:e.push(i),t++}}if(n.y!==void 0){let o=n.y;if(typeof o=="number"){if(o>1||isNaN(o)){const i={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:tt.properties.y,data:o};e===null?e=[i]:e.push(i),t++}if(o<0||isNaN(o)){const i={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:tt.properties.y,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/focus/y",schemaPath:"#/$defs/ImageFocus/properties/y/type",keyword:"type",params:{type:"number"},message:"must be number",schema:tt.properties.y.type,parentSchema:tt.properties.y,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s+"/focus",schemaPath:"#/$defs/ImageFocus/type",keyword:"type",params:{type:"object"},message:"must be object",schema:tt.type,parentSchema:tt,data:n};e===null?e=[o]:e.push(o),t++}}if(a.opacity!==void 0){let n=a.opacity;if(typeof n=="number"){if(n>1||isNaN(n)){const o={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:De.properties.opacity,data:n};e===null?e=[o]:e.push(o),t++}if(n<0||isNaN(n)){const o={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:De.properties.opacity,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:De.properties.opacity.type,parentSchema:De.properties.opacity,data:n};e===null?e=[o]:e.push(o),t++}}if(a.recolor!==void 0&&(xa(a.recolor,{instancePath:s+"/recolor",parentData:a,parentDataProperty:"recolor",rootData:v,dynamicAnchors:b})||(e=e===null?xa.errors:e.concat(xa.errors),t=e.length)),a.overlay!==void 0){let n=a.overlay;const o=t;let i=!1,h=null;const c=t;Na(n,{instancePath:s+"/overlay",parentData:a,parentDataProperty:"overlay",rootData:v,dynamicAnchors:b})||(e=e===null?Na.errors:e.concat(Na.errors),t=e.length);var r=c===t;r&&(i=!0,h=0);const y=t;if(n!==!1){const g={instancePath:s+"/overlay",schemaPath:"#/properties/overlay/oneOf/1/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:De.properties.overlay.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=o,e!==null&&(o?e.length=o:e=null);else{const g={instancePath:s+"/overlay",schemaPath:"#/properties/overlay/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:De.properties.overlay.oneOf,parentSchema:De.properties.overlay,data:n};e===null?e=[g]:e.push(g),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:De.type,parentSchema:De,data:a};e===null?e=[n]:e.push(n),t++}return jr.errors=e,t===0}jr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Ip(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ip.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),jr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?jr.errors:e.concat(jr.errors),t=e.length),Ip.errors=e,t===0}Ip.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch70=zp,j.presentation.$defs.Background.oneOf[4];function Fr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Fr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:yt.required,parentSchema:yt,data:a};e===null?e=[r]:e.push(r),t++}if(a.pattern===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pattern"},message:"must have required property 'pattern'",schema:yt.required,parentSchema:yt,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.properties.type.type,parentSchema:yt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="pattern"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"pattern"},message:"must be equal to constant",schema:"pattern",parentSchema:yt.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.pattern!==void 0){let r=a.pattern;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.preset===void 0){const n={instancePath:s+"/pattern",schemaPath:"#/properties/pattern/required",keyword:"required",params:{missingProperty:"preset"},message:"must have required property 'preset'",schema:yt.properties.pattern.required,parentSchema:yt.properties.pattern,data:r};e===null?e=[n]:e.push(n),t++}if(r.preset!==void 0){let n=r.preset;if(typeof n!="string"){const o={instancePath:s+"/pattern/preset",schemaPath:"#/properties/pattern/properties/preset/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yt.properties.pattern.properties.preset.type,parentSchema:yt.properties.pattern.properties.preset,data:n};e===null?e=[o]:e.push(o),t++}}r.foregroundColor!==void 0&&(Ve(r.foregroundColor,{instancePath:s+"/pattern/foregroundColor",parentData:r,parentDataProperty:"foregroundColor",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)),r.backgroundColor!==void 0&&(Ve(r.backgroundColor,{instancePath:s+"/pattern/backgroundColor",parentData:r,parentDataProperty:"backgroundColor",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length))}else{const n={instancePath:s+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"object"},message:"must be object",schema:yt.properties.pattern.type,parentSchema:yt.properties.pattern,data:r};e===null?e=[n]:e.push(n),t++}}if(a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:yt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:yt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:yt.properties.opacity.type,parentSchema:yt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:yt.type,parentSchema:yt,data:a};e===null?e=[r]:e.push(r),t++}return Fr.errors=e,t===0}Fr.evaluated={props:{type:!0,pattern:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1};function zp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=zp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Fr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Fr.errors:e.concat(Fr.errors),t=e.length),zp.errors=e,t===0}zp.evaluated={props:{type:!0,pattern:!0,opacity:!0},dynamicProps:!1,dynamicItems:!1},D.branch71=jp,j.presentation.$defs.ImageBackground.properties.overlay.oneOf[0];function Tr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Tr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.color===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"color"},message:"must have required property 'color'",schema:lt.required,parentSchema:lt,data:a};e===null?e=[r]:e.push(r),t++}if(a.opacity===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"opacity"},message:"must have required property 'opacity'",schema:lt.required,parentSchema:lt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="color"||r==="opacity"||r==="edge"||r==="size")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:lt,data:a};e===null?e=[n]:e.push(n),t++}if(a.color!==void 0&&(Ve(a.color,{instancePath:s+"/color",parentData:a,parentDataProperty:"color",rootData:v,dynamicAnchors:b})||(e=e===null?Ve.errors:e.concat(Ve.errors),t=e.length)),a.opacity!==void 0){let r=a.opacity;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:lt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}if(r<0||isNaN(r)){const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:lt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/opacity",schemaPath:"#/properties/opacity/type",keyword:"type",params:{type:"number"},message:"must be number",schema:lt.properties.opacity.type,parentSchema:lt.properties.opacity,data:r};e===null?e=[n]:e.push(n),t++}}if(a.edge!==void 0){let r=a.edge;if(typeof r!="string"){const n={instancePath:s+"/edge",schemaPath:"#/properties/edge/type",keyword:"type",params:{type:"string"},message:"must be string",schema:lt.properties.edge.type,parentSchema:lt.properties.edge,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="top"||r==="bottom"||r==="left"||r==="right")){const n={instancePath:s+"/edge",schemaPath:"#/properties/edge/enum",keyword:"enum",params:{allowedValues:lt.properties.edge.enum},message:"must be equal to one of the allowed values",schema:lt.properties.edge.enum,parentSchema:lt.properties.edge,data:r};e===null?e=[n]:e.push(n),t++}}if(a.size!==void 0){let r=a.size;if(typeof r=="number"){if(r>1||isNaN(r)){const n={instancePath:s+"/size",schemaPath:"#/properties/size/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1",schema:1,parentSchema:lt.properties.size,data:r};e===null?e=[n]:e.push(n),t++}if(r<.05||isNaN(r)){const n={instancePath:s+"/size",schemaPath:"#/properties/size/minimum",keyword:"minimum",params:{comparison:">=",limit:.05},message:"must be >= 0.05",schema:.05,parentSchema:lt.properties.size,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/size",schemaPath:"#/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number",schema:lt.properties.size.type,parentSchema:lt.properties.size,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:lt.type,parentSchema:lt,data:a};e===null?e=[r]:e.push(r),t++}return Tr.errors=e,t===0}Tr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function jp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=jp.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Tr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Tr.errors:e.concat(Tr.errors),t=e.length),jp.errors=e,t===0}jp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch72=Fp;var Rd=j.presentation.$defs.ImageBackground.properties.overlay.oneOf[1];function Fp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Fp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!==!1){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:Rd,data:a};e===null?e=[r]:e.push(r),t++}return Fp.errors=e,t===0}Fp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch73=Tp;var lh=j.presentation.$defs.ImageRecolor.oneOf[0];function Tp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Tp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:lh.type,parentSchema:lh,data:a};e===null?e=[r]:e.push(r),t++}if(a!=="grayscale"){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:"grayscale"},message:"must be equal to constant",schema:"grayscale",parentSchema:lh,data:a};e===null?e=[r]:e.push(r),t++}return Tp.errors=e,t===0}Tp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch74=Cp;var Ds=j.presentation.$defs.ImageRecolor.oneOf[1];function ds(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ds.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1;const o=t;if(typeof a=="string"){if(!Ae.test(a)){const y={instancePath:s,schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:W,data:a};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s,schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:W.type,parentSchema:W,data:a};e===null?e=[y]:e.push(y),t++}var c=o===t;n=n||c;const i=t;if(typeof a!="string"){const y={instancePath:s,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Jt.anyOf[1].type,parentSchema:Jt.anyOf[1],data:a};e===null?e=[y]:e.push(y),t++}if(!(a==="accent1"||a==="accent2"||a==="accent3"||a==="accent4"||a==="accent5"||a==="accent6"||a==="dark1"||a==="dark2"||a==="light1"||a==="light2"||a==="hyperlink"||a==="followedHyperlink"||a==="primary"||a==="secondary"||a==="accent"||a==="background"||a==="surface"||a==="surfaceAlt"||a==="text"||a==="textSecondary")){const y={instancePath:s,schemaPath:"#/anyOf/1/enum",keyword:"enum",params:{allowedValues:Jt.anyOf[1].enum},message:"must be equal to one of the allowed values",schema:Jt.anyOf[1].enum,parentSchema:Jt.anyOf[1],data:a};e===null?e=[y]:e.push(y),t++}var c=i===t;n=n||c;const h=t;if(typeof a=="string"){if(!th.test(a)){const y={instancePath:s,schemaPath:"#/anyOf/2/pattern",keyword:"pattern",params:{pattern:"^var:[a-z][a-z0-9-]*$"},message:'must match pattern "^var:[a-z][a-z0-9-]*$"',schema:"^var:[a-z][a-z0-9-]*$",parentSchema:Jt.anyOf[2],data:a};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Jt.anyOf[2].type,parentSchema:Jt.anyOf[2],data:a};e===null?e=[y]:e.push(y),t++}var c=h===t;if(n=n||c,n)t=r,e!==null&&(r?e.length=r:e=null);else{const y={instancePath:s,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:Jt.anyOf,parentSchema:Jt,data:a};e===null?e=[y]:e.push(y),t++}return ds.errors=e,t===0}ds.evaluated={dynamicProps:!1,dynamicItems:!1};function Cp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Cp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.dark===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"dark"},message:"must have required property 'dark'",schema:Ds.required,parentSchema:Ds,data:a};e===null?e=[r]:e.push(r),t++}if(a.light===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"light"},message:"must have required property 'light'",schema:Ds.required,parentSchema:Ds,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="dark"||r==="light")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ds,data:a};e===null?e=[n]:e.push(n),t++}a.dark!==void 0&&(ds(a.dark,{instancePath:s+"/dark",parentData:a,parentDataProperty:"dark",rootData:v,dynamicAnchors:b})||(e=e===null?ds.errors:e.concat(ds.errors),t=e.length)),a.light!==void 0&&(ds(a.light,{instancePath:s+"/light",parentData:a,parentDataProperty:"light",rootData:v,dynamicAnchors:b})||(e=e===null?ds.errors:e.concat(ds.errors),t=e.length))}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ds.type,parentSchema:Ds,data:a};e===null?e=[r]:e.push(r),t++}return Cp.errors=e,t===0}Cp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch75=Vp,j.presentation.$defs.LogoSource.oneOf[0];function Vp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Vp.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.src===void 0){const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}for(const g in a)if(!(g==="src"||g==="alt"||g==="title"||g==="description"||g==="mediaType")){const l={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:a};e===null?e=[l]:e.push(l),t++}if(a.src!==void 0){let g=a.src;if(typeof g!="string"){const l={instancePath:s+"/src",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:g};e===null?e=[l]:e.push(l),t++}}if(a.alt!==void 0){let g=a.alt;if(typeof g!="string"){const l={instancePath:s+"/alt",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:g};e===null?e=[l]:e.push(l),t++}}if(a.title!==void 0){let g=a.title;if(typeof g!="string"){const l={instancePath:s+"/title",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:g};e===null?e=[l]:e.push(l),t++}}if(a.description!==void 0){let g=a.description;if(typeof g!="string"){const l={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:g};e===null?e=[l]:e.push(l),t++}}if(a.mediaType!==void 0){let g=a.mediaType;if(typeof g!="string"){const l={instancePath:s+"/mediaType",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:g};e===null?e=[l]:e.push(l),t++}}}else{const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}var c=h===t;if(c&&n)n=!1,o=[o,1];else if(c){n=!0,o=1;var y=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:a};e===null?e=[g]:e.push(g),t++}return Vp.errors=e,m.props=y,t===0}Vp.evaluated={dynamicProps:!0,dynamicItems:!1},D.branch76=Rp;var Lp=j.presentation.$defs.LogoSource.oneOf[1];function Rp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Rp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(Object.keys(a).length<1){const o={instancePath:s,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:Lp,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="onLight"||o==="onDark")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:Lp,data:a};e===null?e=[i]:e.push(i),t++}if(a.onLight!==void 0){let o=a.onLight;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/onLight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/onLight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/onLight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/onLight/src",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/onLight/alt",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/onLight/title",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/onLight/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/onLight/mediaType",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/onLight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/onLight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}if(a.onDark!==void 0){let o=a.onDark;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/onDark",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/onDark",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/onDark",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/onDark/src",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/onDark/alt",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/onDark/title",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/onDark/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/onDark/mediaType",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/onDark",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/onDark",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Lp.type,parentSchema:Lp,data:a};e===null?e=[o]:e.push(o),t++}return Rp.errors=e,t===0}Rp.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch77=Zp;var Kh=j.presentation.$defs.Watermark.oneOf[0];function Zp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Zp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.src===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:Kh.required,parentSchema:Kh,data:a};e===null?e=[r]:e.push(r),t++}return Zp.errors=e,t===0}Zp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch78=Mp;var Yh=j.presentation.$defs.Watermark.oneOf[1];function Mp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Mp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.text===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:Yh.required,parentSchema:Yh,data:a};e===null?e=[r]:e.push(r),t++}return Mp.errors=e,t===0}Mp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch79=Bp;var Qh=j.presentation.$defs.HeaderFooterItem.properties.date.oneOf[0];function Bp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Bp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Qh.type,parentSchema:Qh,data:a};e===null?e=[r]:e.push(r),t++}return Bp.errors=e,t===0}Bp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch80=Hp;var Gh=j.presentation.$defs.HeaderFooterItem.properties.date.oneOf[1];function Hp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Hp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Gh.type,parentSchema:Gh,data:a};e===null?e=[r]:e.push(r),t++}return Hp.errors=e,t===0}Hp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch81=_p;var el=j.presentation.$defs.Slide.properties.beat.oneOf[0];function _p(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=_p.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:el.type,parentSchema:el,data:a};e===null?e=[r]:e.push(r),t++}return _p.errors=e,t===0}_p.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch82=Ep;var Up=j.presentation.$defs.Slide.properties.beat.oneOf[1];function Ep(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ep.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++){let o=a[n];if(typeof o!="string"){const i={instancePath:s+"/"+n,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Up.items.type,parentSchema:Up.items,data:o};e===null?e=[i]:e.push(i),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Up.type,parentSchema:Up,data:a};e===null?e=[r]:e.push(r),t++}return Ep.errors=e,t===0}Ep.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch83=Wp;var tl=j.presentation.$defs.Slide.properties.title.oneOf[0];function Wp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Wp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:tl.type,parentSchema:tl,data:a};e===null?e=[r]:e.push(r),t++}return Wp.errors=e,t===0}Wp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch84=Xp;var al=j.presentation.$defs.Slide.properties.title.oneOf[1];function Cr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Cr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return Cr.errors=e,m.props=l,t===0}Cr.evaluated={dynamicProps:!0,dynamicItems:!1};function Xp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Xp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Cr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Cr.errors:e.concat(Cr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:al.type,parentSchema:al,data:a};e===null?e=[r]:e.push(r),t++}return Xp.errors=e,t===0}Xp.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch85=Jp;var sl=j.presentation.$defs.Slide.properties.subtitle.oneOf[0];function Jp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Jp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:sl.type,parentSchema:sl,data:a};e===null?e=[r]:e.push(r),t++}return Jp.errors=e,t===0}Jp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch86=Kp;var rl=j.presentation.$defs.Slide.properties.subtitle.oneOf[1];function Vr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Vr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return Vr.errors=e,m.props=l,t===0}Vr.evaluated={dynamicProps:!0,dynamicItems:!1};function Kp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Kp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Vr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Vr.errors:e.concat(Vr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:rl.type,parentSchema:rl,data:a};e===null?e=[r]:e.push(r),t++}return Kp.errors=e,t===0}Kp.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch87=Yp;var nl=j.presentation.$defs.Slide.properties.tag.oneOf[0];function Yp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Yp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nl.type,parentSchema:nl,data:a};e===null?e=[r]:e.push(r),t++}return Yp.errors=e,t===0}Yp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch88=Qp;var ol=j.presentation.$defs.Slide.properties.tag.oneOf[1];function Lr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Lr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return Lr.errors=e,m.props=l,t===0}Lr.evaluated={dynamicProps:!0,dynamicItems:!1};function Qp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Lr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Lr.errors:e.concat(Lr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ol.type,parentSchema:ol,data:a};e===null?e=[r]:e.push(r),t++}return Qp.errors=e,t===0}Qp.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch89=Gp;var pl=j.presentation.$defs.Slide.properties.text.oneOf[0];function Gp(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Gp.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pl.type,parentSchema:pl,data:a};e===null?e=[r]:e.push(r),t++}return Gp.errors=e,t===0}Gp.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch90=ei;var il=j.presentation.$defs.Slide.properties.text.oneOf[1];function Rr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Rr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return Rr.errors=e,m.props=l,t===0}Rr.evaluated={dynamicProps:!0,dynamicItems:!1};function ei(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ei.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Rr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Rr.errors:e.concat(Rr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:il.type,parentSchema:il,data:a};e===null?e=[r]:e.push(r),t++}return ei.errors=e,t===0}ei.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch91=ti;var ml=j.presentation.$defs.Slide.properties.code.oneOf[0];function ti(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ti.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ml.type,parentSchema:ml,data:a};e===null?e=[r]:e.push(r),t++}return ti.errors=e,t===0}ti.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch92=ai,j.presentation.$defs.Slide.properties.code.oneOf[1];function ai(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ai.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.source===void 0){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:se.required,parentSchema:se,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="source"||n==="language"||n==="filename"||n==="highlight")){const o={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:se,data:a};e===null?e=[o]:e.push(o),t++}if(a.source!==void 0){let n=a.source;if(typeof n!="string"){const o={instancePath:s+"/source",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.source.type,parentSchema:se.properties.source,data:n};e===null?e=[o]:e.push(o),t++}}if(a.language!==void 0){let n=a.language;if(typeof n!="string"){const o={instancePath:s+"/language",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.language.type,parentSchema:se.properties.language,data:n};e===null?e=[o]:e.push(o),t++}}if(a.filename!==void 0){let n=a.filename;if(typeof n!="string"){const o={instancePath:s+"/filename",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.filename.type,parentSchema:se.properties.filename,data:n};e===null?e=[o]:e.push(o),t++}}if(a.highlight!==void 0){let n=a.highlight;if(Array.isArray(n)){if(n.length<1){const i={instancePath:s+"/highlight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:se.properties.highlight,data:n};e===null?e=[i]:e.push(i),t++}const o=n.length;for(let i=0;i<o;i++){let h=n[i];const c=t;let y=!1,g=null;const l=t;if(!(typeof h=="number"&&!(h%1)&&!isNaN(h))){const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/0/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:se.properties.highlight.items.oneOf[0].type,parentSchema:se.properties.highlight.items.oneOf[0],data:h};e===null?e=[d]:e.push(d),t++}if(typeof h=="number"&&(h<1||isNaN(h))){const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/0/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:se.properties.highlight.items.oneOf[0],data:h};e===null?e=[d]:e.push(d),t++}var r=l===t;r&&(y=!0,g=0);const p=t;if(Array.isArray(h)){if(h.length>2){const O={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items",schema:2,parentSchema:se.properties.highlight.items.oneOf[1],data:h};e===null?e=[O]:e.push(O),t++}if(h.length<2){const O={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:se.properties.highlight.items.oneOf[1],data:h};e===null?e=[O]:e.push(O),t++}const d=h.length;for(let O=0;O<d;O++){let S=h[O];if(!(typeof S=="number"&&!(S%1)&&!isNaN(S))){const I={instancePath:s+"/highlight/"+i+"/"+O,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/items/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:se.properties.highlight.items.oneOf[1].items.type,parentSchema:se.properties.highlight.items.oneOf[1].items,data:S};e===null?e=[I]:e.push(I),t++}if(typeof S=="number"&&(S<1||isNaN(S))){const I={instancePath:s+"/highlight/"+i+"/"+O,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/items/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:se.properties.highlight.items.oneOf[1].items,data:S};e===null?e=[I]:e.push(I),t++}}}else{const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:se.properties.highlight.items.oneOf[1].type,parentSchema:se.properties.highlight.items.oneOf[1],data:h};e===null?e=[d]:e.push(d),t++}var r=p===t;if(r&&y?(y=!1,g=[g,1]):r&&(y=!0,g=1),y)t=c,e!==null&&(c?e.length=c:e=null);else{const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf",schema:se.properties.highlight.items.oneOf,parentSchema:se.properties.highlight.items,data:h};e===null?e=[d]:e.push(d),t++}}}else{const o={instancePath:s+"/highlight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/type",keyword:"type",params:{type:"array"},message:"must be array",schema:se.properties.highlight.type,parentSchema:se.properties.highlight,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/type",keyword:"type",params:{type:"object"},message:"must be object",schema:se.type,parentSchema:se,data:a};e===null?e=[n]:e.push(n),t++}return ai.errors=e,t===0}ai.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch93=si;var cl=j.presentation.$defs.Slide.properties.metric.oneOf[0];function si(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=si.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:cl.type,parentSchema:cl,data:a};e===null?e=[r]:e.push(r),t++}return si.errors=e,t===0}si.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch94=ri;var hl=j.presentation.$defs.Slide.properties.metric.oneOf[1];function ri(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ri.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="number"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:hl.type,parentSchema:hl,data:a};e===null?e=[r]:e.push(r),t++}return ri.errors=e,t===0}ri.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch95=ni,j.presentation.$defs.Slide.properties.metric.oneOf[2];function ni(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ni.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){const o={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:Q.required,parentSchema:Q,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="value"||o==="label"||o==="description"||o==="unit"||o==="delta"||o==="trend"||o==="sentiment")){const i={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:Q,data:a};e===null?e=[i]:e.push(i),t++}if(a.value!==void 0){let o=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.value.oneOf[0].type,parentSchema:Q.properties.value.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(typeof o!="number"){const l={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/value/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Q.properties.value.oneOf[1].type,parentSchema:Q.properties.value.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Q.properties.value.oneOf,parentSchema:Q.properties.value,data:o};e===null?e=[l]:e.push(l),t++}}if(a.label!==void 0){let o=a.label;if(typeof o!="string"){const i={instancePath:s+"/label",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.label.type,parentSchema:Q.properties.label,data:o};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let o=a.description;if(typeof o!="string"){const i={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.description.type,parentSchema:Q.properties.description,data:o};e===null?e=[i]:e.push(i),t++}}if(a.unit!==void 0){let o=a.unit;if(typeof o!="string"){const i={instancePath:s+"/unit",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/unit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.unit.type,parentSchema:Q.properties.unit,data:o};e===null?e=[i]:e.push(i),t++}}if(a.delta!==void 0){let o=a.delta;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/delta",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/delta/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.delta.oneOf[0].type,parentSchema:Q.properties.delta.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(typeof o!="number"){const l={instancePath:s+"/delta",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/delta/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Q.properties.delta.oneOf[1].type,parentSchema:Q.properties.delta.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/delta",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/delta/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Q.properties.delta.oneOf,parentSchema:Q.properties.delta,data:o};e===null?e=[l]:e.push(l),t++}}if(a.trend!==void 0){let o=a.trend;if(typeof o!="string"){const i={instancePath:s+"/trend",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/trend/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.trend.type,parentSchema:Q.properties.trend,data:o};e===null?e=[i]:e.push(i),t++}if(!(o==="up"||o==="down"||o==="flat")){const i={instancePath:s+"/trend",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/trend/enum",keyword:"enum",params:{allowedValues:Q.properties.trend.enum},message:"must be equal to one of the allowed values",schema:Q.properties.trend.enum,parentSchema:Q.properties.trend,data:o};e===null?e=[i]:e.push(i),t++}}if(a.sentiment!==void 0){let o=a.sentiment;if(typeof o!="string"){const i={instancePath:s+"/sentiment",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/sentiment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.sentiment.type,parentSchema:Q.properties.sentiment,data:o};e===null?e=[i]:e.push(i),t++}if(!(o==="positive"||o==="negative"||o==="neutral")){const i={instancePath:s+"/sentiment",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/sentiment/enum",keyword:"enum",params:{allowedValues:Q.properties.sentiment.enum},message:"must be equal to one of the allowed values",schema:Q.properties.sentiment.enum,parentSchema:Q.properties.sentiment,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Q.type,parentSchema:Q,data:a};e===null?e=[o]:e.push(o),t++}return ni.errors=e,t===0}ni.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch96=oi;var ll=j.presentation.$defs.Slide.properties.quote.oneOf[0];function oi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=oi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ll.type,parentSchema:ll,data:a};e===null?e=[r]:e.push(r),t++}return oi.errors=e,t===0}oi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch97=pi,j.presentation.$defs.Slide.properties.quote.oneOf[1];function Zr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Zr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:Ee.required,parentSchema:Ee,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="text"||o==="attribution"||o==="role"||o==="photo"||o==="source")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:Ee,data:a};e===null?e=[i]:e.push(i),t++}if(a.text!==void 0){let o=a.text;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.text.oneOf[0].type,parentSchema:Ee.properties.text.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(o)){const l=o.length;for(let p=0;p<l;p++)J(o[p],{instancePath:s+"/text/"+p,parentData:o,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ee.properties.text.oneOf[1].type,parentSchema:Ee.properties.text.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Ee.properties.text.oneOf,parentSchema:Ee.properties.text,data:o};e===null?e=[l]:e.push(l),t++}}if(a.attribution!==void 0){let o=a.attribution;if(typeof o!="string"){const i={instancePath:s+"/attribution",schemaPath:"#/properties/attribution/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.attribution.type,parentSchema:Ee.properties.attribution,data:o};e===null?e=[i]:e.push(i),t++}}if(a.role!==void 0){let o=a.role;if(typeof o!="string"){const i={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.role.type,parentSchema:Ee.properties.role,data:o};e===null?e=[i]:e.push(i),t++}}if(a.photo!==void 0){let o=a.photo;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/photo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/photo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/photo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/photo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/photo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}if(a.source!==void 0){let o=a.source;if(typeof o!="string"){const i={instancePath:s+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.source.type,parentSchema:Ee.properties.source,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ee.type,parentSchema:Ee,data:a};e===null?e=[o]:e.push(o),t++}return Zr.errors=e,t===0}Zr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function pi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=pi.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Zr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Zr.errors:e.concat(Zr.errors),t=e.length),pi.errors=e,t===0}pi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch98=ii;var dl=j.presentation.$defs.Slide.properties.diagram.oneOf[0];function ii(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ii.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:dl.type,parentSchema:dl,data:a};e===null?e=[r]:e.push(r),t++}return ii.errors=e,t===0}ii.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch99=mi,j.presentation.$defs.Slide.properties.diagram.oneOf[1];function mi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.source===void 0){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:ze.required,parentSchema:ze,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="source"||r==="syntax"||r==="alt")){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ze,data:a};e===null?e=[n]:e.push(n),t++}if(a.source!==void 0){let r=a.source;if(typeof r=="string"){if(pe(r)<1){const n={instancePath:s+"/source",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/properties/source/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:ze.properties.source,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/source",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.source.type,parentSchema:ze.properties.source,data:r};e===null?e=[n]:e.push(n),t++}}if(a.syntax!==void 0){let r=a.syntax;if(typeof r!="string"){const n={instancePath:s+"/syntax",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/properties/syntax/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.syntax.type,parentSchema:ze.properties.syntax,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="mermaid"){const n={instancePath:s+"/syntax",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/properties/syntax/enum",keyword:"enum",params:{allowedValues:ze.properties.syntax.enum},message:"must be equal to one of the allowed values",schema:ze.properties.syntax.enum,parentSchema:ze.properties.syntax,data:r};e===null?e=[n]:e.push(n),t++}}if(a.alt!==void 0){let r=a.alt;if(typeof r!="string"){const n={instancePath:s+"/alt",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.alt.type,parentSchema:ze.properties.alt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ze.type,parentSchema:ze,data:a};e===null?e=[r]:e.push(r),t++}return mi.errors=e,t===0}mi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch100=ci;var ul=j.presentation.$defs.ContentPayload.properties.text.oneOf[0];function ci(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ci.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ul.type,parentSchema:ul,data:a};e===null?e=[r]:e.push(r),t++}return ci.errors=e,t===0}ci.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch101=hi;var yl=j.presentation.$defs.ContentPayload.properties.text.oneOf[1];function Mr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Mr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return Mr.errors=e,m.props=l,t===0}Mr.evaluated={dynamicProps:!0,dynamicItems:!1};function hi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Mr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Mr.errors:e.concat(Mr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:yl.type,parentSchema:yl,data:a};e===null?e=[r]:e.push(r),t++}return hi.errors=e,t===0}hi.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch102=li;var Zd=j.presentation.$defs.ContentPayload.properties.columns.oneOf[0];function li(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=li.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!=="auto"){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:Zd,data:a};e===null?e=[r]:e.push(r),t++}return li.errors=e,t===0}li.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch103=ui;var di=j.presentation.$defs.ContentPayload.properties.columns.oneOf[1];function ui(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ui.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),!(typeof a=="number"&&!(a%1)&&!isNaN(a))){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:di.type,parentSchema:di,data:a};e===null?e=[r]:e.push(r),t++}if(typeof a=="number"){if(a>3||isNaN(a)){const r={instancePath:s,schemaPath:"#/maximum",keyword:"maximum",params:{comparison:"<=",limit:3},message:"must be <= 3",schema:3,parentSchema:di,data:a};e===null?e=[r]:e.push(r),t++}if(a<1||isNaN(a)){const r={instancePath:s,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:di,data:a};e===null?e=[r]:e.push(r),t++}}return ui.errors=e,t===0}ui.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch104=yi;var fl=j.presentation.$defs.ContentPayload.properties.code.oneOf[0];function yi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=yi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fl.type,parentSchema:fl,data:a};e===null?e=[r]:e.push(r),t++}return yi.errors=e,t===0}yi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch105=fi,j.presentation.$defs.ContentPayload.properties.code.oneOf[1];function fi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.source===void 0){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:se.required,parentSchema:se,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="source"||n==="language"||n==="filename"||n==="highlight")){const o={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:se,data:a};e===null?e=[o]:e.push(o),t++}if(a.source!==void 0){let n=a.source;if(typeof n!="string"){const o={instancePath:s+"/source",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.source.type,parentSchema:se.properties.source,data:n};e===null?e=[o]:e.push(o),t++}}if(a.language!==void 0){let n=a.language;if(typeof n!="string"){const o={instancePath:s+"/language",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.language.type,parentSchema:se.properties.language,data:n};e===null?e=[o]:e.push(o),t++}}if(a.filename!==void 0){let n=a.filename;if(typeof n!="string"){const o={instancePath:s+"/filename",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string",schema:se.properties.filename.type,parentSchema:se.properties.filename,data:n};e===null?e=[o]:e.push(o),t++}}if(a.highlight!==void 0){let n=a.highlight;if(Array.isArray(n)){if(n.length<1){const i={instancePath:s+"/highlight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:se.properties.highlight,data:n};e===null?e=[i]:e.push(i),t++}const o=n.length;for(let i=0;i<o;i++){let h=n[i];const c=t;let y=!1,g=null;const l=t;if(!(typeof h=="number"&&!(h%1)&&!isNaN(h))){const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/0/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:se.properties.highlight.items.oneOf[0].type,parentSchema:se.properties.highlight.items.oneOf[0],data:h};e===null?e=[d]:e.push(d),t++}if(typeof h=="number"&&(h<1||isNaN(h))){const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/0/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:se.properties.highlight.items.oneOf[0],data:h};e===null?e=[d]:e.push(d),t++}var r=l===t;r&&(y=!0,g=0);const p=t;if(Array.isArray(h)){if(h.length>2){const O={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items",schema:2,parentSchema:se.properties.highlight.items.oneOf[1],data:h};e===null?e=[O]:e.push(O),t++}if(h.length<2){const O={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:se.properties.highlight.items.oneOf[1],data:h};e===null?e=[O]:e.push(O),t++}const d=h.length;for(let O=0;O<d;O++){let S=h[O];if(!(typeof S=="number"&&!(S%1)&&!isNaN(S))){const I={instancePath:s+"/highlight/"+i+"/"+O,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/items/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:se.properties.highlight.items.oneOf[1].items.type,parentSchema:se.properties.highlight.items.oneOf[1].items,data:S};e===null?e=[I]:e.push(I),t++}if(typeof S=="number"&&(S<1||isNaN(S))){const I={instancePath:s+"/highlight/"+i+"/"+O,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/items/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:se.properties.highlight.items.oneOf[1].items,data:S};e===null?e=[I]:e.push(I),t++}}}else{const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:se.properties.highlight.items.oneOf[1].type,parentSchema:se.properties.highlight.items.oneOf[1],data:h};e===null?e=[d]:e.push(d),t++}var r=p===t;if(r&&y?(y=!1,g=[g,1]):r&&(y=!0,g=1),y)t=c,e!==null&&(c?e.length=c:e=null);else{const d={instancePath:s+"/highlight/"+i,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/items/oneOf",keyword:"oneOf",params:{passingSchemas:g},message:"must match exactly one schema in oneOf",schema:se.properties.highlight.items.oneOf,parentSchema:se.properties.highlight.items,data:h};e===null?e=[d]:e.push(d),t++}}}else{const o={instancePath:s+"/highlight",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/properties/highlight/type",keyword:"type",params:{type:"array"},message:"must be array",schema:se.properties.highlight.type,parentSchema:se.properties.highlight,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Code/type",keyword:"type",params:{type:"object"},message:"must be object",schema:se.type,parentSchema:se,data:a};e===null?e=[n]:e.push(n),t++}return fi.errors=e,t===0}fi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch106=gi;var gl=j.presentation.$defs.ContentPayload.properties.metric.oneOf[0];function gi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=gi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:gl.type,parentSchema:gl,data:a};e===null?e=[r]:e.push(r),t++}return gi.errors=e,t===0}gi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch107=Pi;var Pl=j.presentation.$defs.ContentPayload.properties.metric.oneOf[1];function Pi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Pi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="number"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Pl.type,parentSchema:Pl,data:a};e===null?e=[r]:e.push(r),t++}return Pi.errors=e,t===0}Pi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch108=vi,j.presentation.$defs.ContentPayload.properties.metric.oneOf[2];function vi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){const o={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:Q.required,parentSchema:Q,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="value"||o==="label"||o==="description"||o==="unit"||o==="delta"||o==="trend"||o==="sentiment")){const i={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:Q,data:a};e===null?e=[i]:e.push(i),t++}if(a.value!==void 0){let o=a.value;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/value/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.value.oneOf[0].type,parentSchema:Q.properties.value.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(typeof o!="number"){const l={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/value/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Q.properties.value.oneOf[1].type,parentSchema:Q.properties.value.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/value",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Q.properties.value.oneOf,parentSchema:Q.properties.value,data:o};e===null?e=[l]:e.push(l),t++}}if(a.label!==void 0){let o=a.label;if(typeof o!="string"){const i={instancePath:s+"/label",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.label.type,parentSchema:Q.properties.label,data:o};e===null?e=[i]:e.push(i),t++}}if(a.description!==void 0){let o=a.description;if(typeof o!="string"){const i={instancePath:s+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.description.type,parentSchema:Q.properties.description,data:o};e===null?e=[i]:e.push(i),t++}}if(a.unit!==void 0){let o=a.unit;if(typeof o!="string"){const i={instancePath:s+"/unit",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/unit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.unit.type,parentSchema:Q.properties.unit,data:o};e===null?e=[i]:e.push(i),t++}}if(a.delta!==void 0){let o=a.delta;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/delta",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/delta/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.delta.oneOf[0].type,parentSchema:Q.properties.delta.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(typeof o!="number"){const l={instancePath:s+"/delta",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/delta/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Q.properties.delta.oneOf[1].type,parentSchema:Q.properties.delta.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/delta",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/delta/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Q.properties.delta.oneOf,parentSchema:Q.properties.delta,data:o};e===null?e=[l]:e.push(l),t++}}if(a.trend!==void 0){let o=a.trend;if(typeof o!="string"){const i={instancePath:s+"/trend",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/trend/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.trend.type,parentSchema:Q.properties.trend,data:o};e===null?e=[i]:e.push(i),t++}if(!(o==="up"||o==="down"||o==="flat")){const i={instancePath:s+"/trend",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/trend/enum",keyword:"enum",params:{allowedValues:Q.properties.trend.enum},message:"must be equal to one of the allowed values",schema:Q.properties.trend.enum,parentSchema:Q.properties.trend,data:o};e===null?e=[i]:e.push(i),t++}}if(a.sentiment!==void 0){let o=a.sentiment;if(typeof o!="string"){const i={instancePath:s+"/sentiment",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/sentiment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Q.properties.sentiment.type,parentSchema:Q.properties.sentiment,data:o};e===null?e=[i]:e.push(i),t++}if(!(o==="positive"||o==="negative"||o==="neutral")){const i={instancePath:s+"/sentiment",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/properties/sentiment/enum",keyword:"enum",params:{allowedValues:Q.properties.sentiment.enum},message:"must be equal to one of the allowed values",schema:Q.properties.sentiment.enum,parentSchema:Q.properties.sentiment,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Metric/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Q.type,parentSchema:Q,data:a};e===null?e=[o]:e.push(o),t++}return vi.errors=e,t===0}vi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch109=bi;var vl=j.presentation.$defs.ContentPayload.properties.quote.oneOf[0];function bi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=bi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:vl.type,parentSchema:vl,data:a};e===null?e=[r]:e.push(r),t++}return bi.errors=e,t===0}bi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch110=Oi,j.presentation.$defs.ContentPayload.properties.quote.oneOf[1];function Br(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Br.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:Ee.required,parentSchema:Ee,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="text"||o==="attribution"||o==="role"||o==="photo"||o==="source")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:Ee,data:a};e===null?e=[i]:e.push(i),t++}if(a.text!==void 0){let o=a.text;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.text.oneOf[0].type,parentSchema:Ee.properties.text.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(o)){const l=o.length;for(let p=0;p<l;p++)J(o[p],{instancePath:s+"/text/"+p,parentData:o,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ee.properties.text.oneOf[1].type,parentSchema:Ee.properties.text.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Ee.properties.text.oneOf,parentSchema:Ee.properties.text,data:o};e===null?e=[l]:e.push(l),t++}}if(a.attribution!==void 0){let o=a.attribution;if(typeof o!="string"){const i={instancePath:s+"/attribution",schemaPath:"#/properties/attribution/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.attribution.type,parentSchema:Ee.properties.attribution,data:o};e===null?e=[i]:e.push(i),t++}}if(a.role!==void 0){let o=a.role;if(typeof o!="string"){const i={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.role.type,parentSchema:Ee.properties.role,data:o};e===null?e=[i]:e.push(i),t++}}if(a.photo!==void 0){let o=a.photo;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[0].type,parentSchema:k.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.src===void 0){const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:k.oneOf[1].required,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}for(const l in o)if(!(l==="src"||l==="alt"||l==="title"||l==="description"||l==="mediaType")){const p={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties",schema:!1,parentSchema:k.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}if(o.src!==void 0){let l=o.src;if(typeof l!="string"){const p={instancePath:s+"/photo/src",schemaPath:"#/$defs/Asset/oneOf/1/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.src.type,parentSchema:k.oneOf[1].properties.src,data:l};e===null?e=[p]:e.push(p),t++}}if(o.alt!==void 0){let l=o.alt;if(typeof l!="string"){const p={instancePath:s+"/photo/alt",schemaPath:"#/$defs/Asset/oneOf/1/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.alt.type,parentSchema:k.oneOf[1].properties.alt,data:l};e===null?e=[p]:e.push(p),t++}}if(o.title!==void 0){let l=o.title;if(typeof l!="string"){const p={instancePath:s+"/photo/title",schemaPath:"#/$defs/Asset/oneOf/1/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.title.type,parentSchema:k.oneOf[1].properties.title,data:l};e===null?e=[p]:e.push(p),t++}}if(o.description!==void 0){let l=o.description;if(typeof l!="string"){const p={instancePath:s+"/photo/description",schemaPath:"#/$defs/Asset/oneOf/1/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.description.type,parentSchema:k.oneOf[1].properties.description,data:l};e===null?e=[p]:e.push(p),t++}}if(o.mediaType!==void 0){let l=o.mediaType;if(typeof l!="string"){const p={instancePath:s+"/photo/mediaType",schemaPath:"#/$defs/Asset/oneOf/1/properties/mediaType/type",keyword:"type",params:{type:"string"},message:"must be string",schema:k.oneOf[1].properties.mediaType.type,parentSchema:k.oneOf[1].properties.mediaType,data:l};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:k.oneOf[1].type,parentSchema:k.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/photo",schemaPath:"#/$defs/Asset/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:k.oneOf,parentSchema:k,data:o};e===null?e=[l]:e.push(l),t++}}if(a.source!==void 0){let o=a.source;if(typeof o!="string"){const i={instancePath:s+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ee.properties.source.type,parentSchema:Ee.properties.source,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ee.type,parentSchema:Ee,data:a};e===null?e=[o]:e.push(o),t++}return Br.errors=e,t===0}Br.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Oi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Oi.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Br(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Br.errors:e.concat(Br.errors),t=e.length),Oi.errors=e,t===0}Oi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch111=wi;var bl=j.presentation.$defs.ContentPayload.properties.diagram.oneOf[0];function wi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:bl.type,parentSchema:bl,data:a};e===null?e=[r]:e.push(r),t++}return wi.errors=e,t===0}wi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch112=Si,j.presentation.$defs.ContentPayload.properties.diagram.oneOf[1];function Si(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Si.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.source===void 0){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:ze.required,parentSchema:ze,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="source"||r==="syntax"||r==="alt")){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ze,data:a};e===null?e=[n]:e.push(n),t++}if(a.source!==void 0){let r=a.source;if(typeof r=="string"){if(pe(r)<1){const n={instancePath:s+"/source",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/properties/source/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:ze.properties.source,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/source",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.source.type,parentSchema:ze.properties.source,data:r};e===null?e=[n]:e.push(n),t++}}if(a.syntax!==void 0){let r=a.syntax;if(typeof r!="string"){const n={instancePath:s+"/syntax",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/properties/syntax/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.syntax.type,parentSchema:ze.properties.syntax,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="mermaid"){const n={instancePath:s+"/syntax",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/properties/syntax/enum",keyword:"enum",params:{allowedValues:ze.properties.syntax.enum},message:"must be equal to one of the allowed values",schema:ze.properties.syntax.enum,parentSchema:ze.properties.syntax,data:r};e===null?e=[n]:e.push(n),t++}}if(a.alt!==void 0){let r=a.alt;if(typeof r!="string"){const n={instancePath:s+"/alt",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/properties/alt/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ze.properties.alt.type,parentSchema:ze.properties.alt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/Diagram/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ze.type,parentSchema:ze,data:a};e===null?e=[r]:e.push(r),t++}return Si.errors=e,t===0}Si.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch113=ki;var Ol=j.presentation.$defs.ContentPayload.allOf[12].then.not.anyOf[0];function ki(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ki.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.text===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:Ol.required,parentSchema:Ol,data:a};e===null?e=[r]:e.push(r),t++}return ki.errors=e,t===0}ki.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch114=Ai;var wl=j.presentation.$defs.ContentPayload.allOf[12].then.not.anyOf[1];function Ai(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ai.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.items===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'",schema:wl.required,parentSchema:wl,data:a};e===null?e=[r]:e.push(r),t++}return Ai.errors=e,t===0}Ai.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch115=$i;var Sl=j.presentation.$defs.ContentPayload.allOf[12].then.not.anyOf[2];function $i(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$i.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.bullets===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bullets"},message:"must have required property 'bullets'",schema:Sl.required,parentSchema:Sl,data:a};e===null?e=[r]:e.push(r),t++}return $i.errors=e,t===0}$i.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch116=Di;var kl=j.presentation.$defs.ContentPayload.allOf[12].then.not.anyOf[3];function Di(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Di.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.image===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"image"},message:"must have required property 'image'",schema:kl.required,parentSchema:kl,data:a};e===null?e=[r]:e.push(r),t++}return Di.errors=e,t===0}Di.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch117=qi;var Al=j.presentation.$defs.ContentPayload.allOf[12].then.not.anyOf[4];function qi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=qi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.video===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"video"},message:"must have required property 'video'",schema:Al.required,parentSchema:Al,data:a};e===null?e=[r]:e.push(r),t++}return qi.errors=e,t===0}qi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch118=xi;var $l=j.presentation.$defs.ContentPayload.allOf[12].then.not.anyOf[5];function xi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.chart===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"chart"},message:"must have required property 'chart'",schema:$l.required,parentSchema:$l,data:a};e===null?e=[r]:e.push(r),t++}return xi.errors=e,t===0}xi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch119=Ni;var Dl=j.presentation.$defs.ContentPayload.allOf[12].then.not.anyOf[6];function Ni(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ni.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.table===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"table"},message:"must have required property 'table'",schema:Dl.required,parentSchema:Dl,data:a};e===null?e=[r]:e.push(r),t++}return Ni.errors=e,t===0}Ni.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch120=Ii;var ql=j.presentation.$defs.ContentPayload.allOf[12].then.not.anyOf[7];function Ii(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ii.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.code===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"code"},message:"must have required property 'code'",schema:ql.required,parentSchema:ql,data:a};e===null?e=[r]:e.push(r),t++}return Ii.errors=e,t===0}Ii.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch121=zi;var xl=j.presentation.$defs.ContentPayload.allOf[12].then.not.anyOf[8];function zi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=zi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.metric===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"metric"},message:"must have required property 'metric'",schema:xl.required,parentSchema:xl,data:a};e===null?e=[r]:e.push(r),t++}return zi.errors=e,t===0}zi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch122=ji;var Nl=j.presentation.$defs.ContentPayload.allOf[12].then.not.anyOf[9];function ji(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ji.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.quote===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"quote"},message:"must have required property 'quote'",schema:Nl.required,parentSchema:Nl,data:a};e===null?e=[r]:e.push(r),t++}return ji.errors=e,t===0}ji.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch123=Fi;var Il=j.presentation.$defs.ContentPayload.allOf[12].then.not.anyOf[10];function Fi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Fi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.timeline===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"timeline"},message:"must have required property 'timeline'",schema:Il.required,parentSchema:Il,data:a};e===null?e=[r]:e.push(r),t++}return Fi.errors=e,t===0}Fi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch124=Ti;var zl=j.presentation.$defs.ContentPayload.allOf[12].then.not.anyOf[11];function Ti(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ti.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.diagram===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"diagram"},message:"must have required property 'diagram'",schema:zl.required,parentSchema:zl,data:a};e===null?e=[r]:e.push(r),t++}return Ti.errors=e,t===0}Ti.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch125=Ci;var jl=j.presentation.$defs.ContentPayload.allOf[13].then.anyOf[0];function Ci(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ci.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.items===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'",schema:jl.required,parentSchema:jl,data:a};e===null?e=[r]:e.push(r),t++}return Ci.errors=e,t===0}Ci.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch126=Vi;var Fl=j.presentation.$defs.ContentPayload.allOf[13].then.anyOf[1];function Vi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Vi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.bullets===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bullets"},message:"must have required property 'bullets'",schema:Fl.required,parentSchema:Fl,data:a};e===null?e=[r]:e.push(r),t++}return Vi.errors=e,t===0}Vi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch127=Li;var Tl=j.presentation.$defs.Quote.properties.text.oneOf[0];function Li(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Li.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Tl.type,parentSchema:Tl,data:a};e===null?e=[r]:e.push(r),t++}return Li.errors=e,t===0}Li.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch128=Ri;var Cl=j.presentation.$defs.Quote.properties.text.oneOf[1];function Hr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Hr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return Hr.errors=e,m.props=l,t===0}Hr.evaluated={dynamicProps:!0,dynamicItems:!1};function Ri(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ri.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Hr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Hr.errors:e.concat(Hr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Cl.type,parentSchema:Cl,data:a};e===null?e=[r]:e.push(r),t++}return Ri.errors=e,t===0}Ri.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch129=Zi;var dh=j.presentation.$defs.Code.properties.highlight.items.oneOf[0];function Zi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Zi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),!(typeof a=="number"&&!(a%1)&&!isNaN(a))){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:dh.type,parentSchema:dh,data:a};e===null?e=[r]:e.push(r),t++}if(typeof a=="number"&&(a<1||isNaN(a))){const r={instancePath:s,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:dh,data:a};e===null?e=[r]:e.push(r),t++}return Zi.errors=e,t===0}Zi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch130=Mi;var qs=j.presentation.$defs.Code.properties.highlight.items.oneOf[1];function Mi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Mi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length>2){const n={instancePath:s,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items",schema:2,parentSchema:qs,data:a};e===null?e=[n]:e.push(n),t++}if(a.length<2){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items",schema:2,parentSchema:qs,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++){let o=a[n];if(!(typeof o=="number"&&!(o%1)&&!isNaN(o))){const i={instancePath:s+"/"+n,schemaPath:"#/items/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:qs.items.type,parentSchema:qs.items,data:o};e===null?e=[i]:e.push(i),t++}if(typeof o=="number"&&(o<1||isNaN(o))){const i={instancePath:s+"/"+n,schemaPath:"#/items/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:qs.items,data:o};e===null?e=[i]:e.push(i),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:qs.type,parentSchema:qs,data:a};e===null?e=[r]:e.push(r),t++}return Mi.errors=e,t===0}Mi.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch131=Bi;var Vl=j.presentation.$defs.Metric.properties.value.oneOf[0];function Bi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Bi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Vl.type,parentSchema:Vl,data:a};e===null?e=[r]:e.push(r),t++}return Bi.errors=e,t===0}Bi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch132=Hi;var Ll=j.presentation.$defs.Metric.properties.value.oneOf[1];function Hi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Hi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="number"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ll.type,parentSchema:Ll,data:a};e===null?e=[r]:e.push(r),t++}return Hi.errors=e,t===0}Hi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch133=_i;var Rl=j.presentation.$defs.Metric.properties.delta.oneOf[0];function _i(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=_i.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rl.type,parentSchema:Rl,data:a};e===null?e=[r]:e.push(r),t++}return _i.errors=e,t===0}_i.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch134=Ui;var Zl=j.presentation.$defs.Metric.properties.delta.oneOf[1];function Ui(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ui.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="number"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Zl.type,parentSchema:Zl,data:a};e===null?e=[r]:e.push(r),t++}return Ui.errors=e,t===0}Ui.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch135=Ei;var uh=j.presentation.$defs.Timeline.oneOf[0];function Ei(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ei.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:uh,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++){let o=a[n];if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.what===void 0){const i={instancePath:s+"/"+n,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/required",keyword:"required",params:{missingProperty:"what"},message:"must have required property 'what'",schema:qe.required,parentSchema:qe,data:o};e===null?e=[i]:e.push(i),t++}for(const i in o)if(!(i==="when"||i==="what"||i==="description"||i==="status")){const h={instancePath:s+"/"+n,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:qe,data:o};e===null?e=[h]:e.push(h),t++}if(o.when!==void 0){let i=o.when;if(typeof i!="string"){const h={instancePath:s+"/"+n+"/when",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/when/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.when.type,parentSchema:qe.properties.when,data:i};e===null?e=[h]:e.push(h),t++}}if(o.what!==void 0){let i=o.what;if(typeof i!="string"){const h={instancePath:s+"/"+n+"/what",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/what/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.what.type,parentSchema:qe.properties.what,data:i};e===null?e=[h]:e.push(h),t++}}if(o.description!==void 0){let i=o.description;if(typeof i!="string"){const h={instancePath:s+"/"+n+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.description.type,parentSchema:qe.properties.description,data:i};e===null?e=[h]:e.push(h),t++}}if(o.status!==void 0){let i=o.status;if(typeof i!="string"){const h={instancePath:s+"/"+n+"/status",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/status/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.status.type,parentSchema:qe.properties.status,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="done"||i==="current"||i==="planned")){const h={instancePath:s+"/"+n+"/status",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/status/enum",keyword:"enum",params:{allowedValues:qe.properties.status.enum},message:"must be equal to one of the allowed values",schema:qe.properties.status.enum,parentSchema:qe.properties.status,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s+"/"+n,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/type",keyword:"type",params:{type:"object"},message:"must be object",schema:qe.type,parentSchema:qe,data:o};e===null?e=[i]:e.push(i),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:uh.type,parentSchema:uh,data:a};e===null?e=[r]:e.push(r),t++}return Ei.errors=e,t===0}Ei.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch136=Wi;var Fa=j.presentation.$defs.Timeline.oneOf[1];function Wi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Wi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.events===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"events"},message:"must have required property 'events'",schema:Fa.required,parentSchema:Fa,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="name"||r==="description"||r==="events")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Fa,data:a};e===null?e=[n]:e.push(n),t++}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fa.properties.name.type,parentSchema:Fa.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fa.properties.description.type,parentSchema:Fa.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.events!==void 0){let r=a.events;if(Array.isArray(r)){if(r.length<1){const o={instancePath:s+"/events",schemaPath:"#/properties/events/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Fa.properties.events,data:r};e===null?e=[o]:e.push(o),t++}const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.what===void 0){const h={instancePath:s+"/events/"+o,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/required",keyword:"required",params:{missingProperty:"what"},message:"must have required property 'what'",schema:qe.required,parentSchema:qe,data:i};e===null?e=[h]:e.push(h),t++}for(const h in i)if(!(h==="when"||h==="what"||h==="description"||h==="status")){const c={instancePath:s+"/events/"+o,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:qe,data:i};e===null?e=[c]:e.push(c),t++}if(i.when!==void 0){let h=i.when;if(typeof h!="string"){const c={instancePath:s+"/events/"+o+"/when",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/when/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.when.type,parentSchema:qe.properties.when,data:h};e===null?e=[c]:e.push(c),t++}}if(i.what!==void 0){let h=i.what;if(typeof h!="string"){const c={instancePath:s+"/events/"+o+"/what",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/what/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.what.type,parentSchema:qe.properties.what,data:h};e===null?e=[c]:e.push(c),t++}}if(i.description!==void 0){let h=i.description;if(typeof h!="string"){const c={instancePath:s+"/events/"+o+"/description",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.description.type,parentSchema:qe.properties.description,data:h};e===null?e=[c]:e.push(c),t++}}if(i.status!==void 0){let h=i.status;if(typeof h!="string"){const c={instancePath:s+"/events/"+o+"/status",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/status/type",keyword:"type",params:{type:"string"},message:"must be string",schema:qe.properties.status.type,parentSchema:qe.properties.status,data:h};e===null?e=[c]:e.push(c),t++}if(!(h==="done"||h==="current"||h==="planned")){const c={instancePath:s+"/events/"+o+"/status",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/properties/status/enum",keyword:"enum",params:{allowedValues:qe.properties.status.enum},message:"must be equal to one of the allowed values",schema:qe.properties.status.enum,parentSchema:qe.properties.status,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/events/"+o,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/TimelineEvent/type",keyword:"type",params:{type:"object"},message:"must be object",schema:qe.type,parentSchema:qe,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/events",schemaPath:"#/properties/events/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Fa.properties.events.type,parentSchema:Fa.properties.events,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Fa.type,parentSchema:Fa,data:a};e===null?e=[r]:e.push(r),t++}return Wi.errors=e,t===0}Wi.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch137=Xi;var Ml=j.presentation.$defs.ListItem.oneOf[0];function Xi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Xi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ml.type,parentSchema:Ml,data:a};e===null?e=[r]:e.push(r),t++}return Xi.errors=e,t===0}Xi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch138=Ji;var Bl=j.presentation.$defs.ListItem.oneOf[1];function _r(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=_r.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return _r.errors=e,m.props=l,t===0}_r.evaluated={dynamicProps:!0,dynamicItems:!1};function Ji(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ji.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)_r(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?_r.errors:e.concat(_r.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Bl.type,parentSchema:Bl,data:a};e===null?e=[r]:e.push(r),t++}return Ji.errors=e,t===0}Ji.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch139=Ki;var Zt=j.presentation.$defs.ListItem.oneOf[2];function us(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=us.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return us.errors=e,m.props=l,t===0}us.evaluated={dynamicProps:!0,dynamicItems:!1};function Ki(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ki.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:Zt.required,parentSchema:Zt,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="text"||o==="description"||o==="level"||o==="start")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:Zt,data:a};e===null?e=[i]:e.push(i),t++}if(a.text!==void 0){let o=a.text;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Zt.properties.text.oneOf[0].type,parentSchema:Zt.properties.text.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(o)){const l=o.length;for(let p=0;p<l;p++)us(o[p],{instancePath:s+"/text/"+p,parentData:o,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?us.errors:e.concat(us.errors),t=e.length)}else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Zt.properties.text.oneOf[1].type,parentSchema:Zt.properties.text.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Zt.properties.text.oneOf,parentSchema:Zt.properties.text,data:o};e===null?e=[l]:e.push(l),t++}}if(a.description!==void 0){let o=a.description;const i=t;let h=!1,c=null;const y=t;if(typeof o!="string"){const l={instancePath:s+"/description",schemaPath:"#/properties/description/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Zt.properties.description.oneOf[0].type,parentSchema:Zt.properties.description.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(Array.isArray(o)){const l=o.length;for(let p=0;p<l;p++)us(o[p],{instancePath:s+"/description/"+p,parentData:o,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?us.errors:e.concat(us.errors),t=e.length)}else{const l={instancePath:s+"/description",schemaPath:"#/properties/description/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Zt.properties.description.oneOf[1].type,parentSchema:Zt.properties.description.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/description",schemaPath:"#/properties/description/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:Zt.properties.description.oneOf,parentSchema:Zt.properties.description,data:o};e===null?e=[l]:e.push(l),t++}}if(a.level!==void 0){let o=a.level;if(!(typeof o=="number"&&!(o%1)&&!isNaN(o))){const i={instancePath:s+"/level",schemaPath:"#/properties/level/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Zt.properties.level.type,parentSchema:Zt.properties.level,data:o};e===null?e=[i]:e.push(i),t++}if(typeof o=="number"&&(o<0||isNaN(o))){const i={instancePath:s+"/level",schemaPath:"#/properties/level/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Zt.properties.level,data:o};e===null?e=[i]:e.push(i),t++}}if(a.start!==void 0){let o=a.start;if(!(typeof o=="number"&&!(o%1)&&!isNaN(o))){const i={instancePath:s+"/start",schemaPath:"#/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Zt.properties.start.type,parentSchema:Zt.properties.start,data:o};e===null?e=[i]:e.push(i),t++}if(typeof o=="number"){if(o>32767||isNaN(o)){const i={instancePath:s+"/start",schemaPath:"#/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:Zt.properties.start,data:o};e===null?e=[i]:e.push(i),t++}if(o<1||isNaN(o)){const i={instancePath:s+"/start",schemaPath:"#/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Zt.properties.start,data:o};e===null?e=[i]:e.push(i),t++}}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Zt.type,parentSchema:Zt,data:a};e===null?e=[o]:e.push(o),t++}return Ki.errors=e,t===0}Ki.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch140=Yi;var Hl=j.presentation.$defs.ListItem.oneOf[2].properties.text.oneOf[0];function Yi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Yi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Hl.type,parentSchema:Hl,data:a};e===null?e=[r]:e.push(r),t++}return Yi.errors=e,t===0}Yi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch141=Qi;var _l=j.presentation.$defs.ListItem.oneOf[2].properties.text.oneOf[1];function Ur(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ur.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return Ur.errors=e,m.props=l,t===0}Ur.evaluated={dynamicProps:!0,dynamicItems:!1};function Qi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Ur(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Ur.errors:e.concat(Ur.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_l.type,parentSchema:_l,data:a};e===null?e=[r]:e.push(r),t++}return Qi.errors=e,t===0}Qi.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch142=Gi;var Ul=j.presentation.$defs.ListItem.oneOf[2].properties.description.oneOf[0];function Gi(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Gi.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ul.type,parentSchema:Ul,data:a};e===null?e=[r]:e.push(r),t++}return Gi.errors=e,t===0}Gi.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch143=em;var El=j.presentation.$defs.ListItem.oneOf[2].properties.description.oneOf[1];function Er(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Er.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return Er.errors=e,m.props=l,t===0}Er.evaluated={dynamicProps:!0,dynamicItems:!1};function em(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=em.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Er(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Er.errors:e.concat(Er.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:El.type,parentSchema:El,data:a};e===null?e=[r]:e.push(r),t++}return em.errors=e,t===0}em.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch144=tm;var Wl=j.presentation.$defs.BulletItem.oneOf[0];function tm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=tm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Wl.type,parentSchema:Wl,data:a};e===null?e=[r]:e.push(r),t++}return tm.errors=e,t===0}tm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch145=am;var Xl=j.presentation.$defs.BulletItem.oneOf[1];function Wr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Wr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return Wr.errors=e,m.props=l,t===0}Wr.evaluated={dynamicProps:!0,dynamicItems:!1};function am(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=am.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Wr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Wr.errors:e.concat(Wr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Xl.type,parentSchema:Xl,data:a};e===null?e=[r]:e.push(r),t++}return am.errors=e,t===0}am.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch146=sm;var na=j.presentation.$defs.BulletItem.oneOf[2];function Xr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Xr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return Xr.errors=e,m.props=l,t===0}Xr.evaluated={dynamicProps:!0,dynamicItems:!1};function sm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=sm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:na.required,parentSchema:na,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="text"||n==="level"||n==="start")){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:na,data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let n=a.text;const o=t;let i=!1,h=null;const c=t;if(typeof n!="string"){const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:na.properties.text.oneOf[0].type,parentSchema:na.properties.text.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(Array.isArray(n)){const g=n.length;for(let l=0;l<g;l++)Xr(n[l],{instancePath:s+"/text/"+l,parentData:n,parentDataProperty:l,rootData:v,dynamicAnchors:b})||(e=e===null?Xr.errors:e.concat(Xr.errors),t=e.length)}else{const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:na.properties.text.oneOf[1].type,parentSchema:na.properties.text.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=o,e!==null&&(o?e.length=o:e=null);else{const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:na.properties.text.oneOf,parentSchema:na.properties.text,data:n};e===null?e=[g]:e.push(g),t++}}if(a.level!==void 0){let n=a.level;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){const o={instancePath:s+"/level",schemaPath:"#/properties/level/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:na.properties.level.type,parentSchema:na.properties.level,data:n};e===null?e=[o]:e.push(o),t++}if(typeof n=="number"&&(n<0||isNaN(n))){const o={instancePath:s+"/level",schemaPath:"#/properties/level/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:na.properties.level,data:n};e===null?e=[o]:e.push(o),t++}}if(a.start!==void 0){let n=a.start;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){const o={instancePath:s+"/start",schemaPath:"#/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:na.properties.start.type,parentSchema:na.properties.start,data:n};e===null?e=[o]:e.push(o),t++}if(typeof n=="number"){if(n>32767||isNaN(n)){const o={instancePath:s+"/start",schemaPath:"#/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:na.properties.start,data:n};e===null?e=[o]:e.push(o),t++}if(n<1||isNaN(n)){const o={instancePath:s+"/start",schemaPath:"#/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:na.properties.start,data:n};e===null?e=[o]:e.push(o),t++}}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:na.type,parentSchema:na,data:a};e===null?e=[n]:e.push(n),t++}return sm.errors=e,t===0}sm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch147=rm;var Jl=j.presentation.$defs.BulletItem.oneOf[2].properties.text.oneOf[0];function rm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=rm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Jl.type,parentSchema:Jl,data:a};e===null?e=[r]:e.push(r),t++}return rm.errors=e,t===0}rm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch148=nm;var Kl=j.presentation.$defs.BulletItem.oneOf[2].properties.text.oneOf[1];function Jr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Jr.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return Jr.errors=e,m.props=l,t===0}Jr.evaluated={dynamicProps:!0,dynamicItems:!1};function nm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=nm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)Jr(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?Jr.errors:e.concat(Jr.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Kl.type,parentSchema:Kl,data:a};e===null?e=[r]:e.push(r),t++}return nm.errors=e,t===0}nm.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch149=om,j.presentation.$defs.NumberingSpec.oneOf[0];function om(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=om.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:at.type,parentSchema:at,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="arabic"||a==="roman-upper"||a==="roman-lower"||a==="alpha-upper"||a==="alpha-lower")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:at.enum},message:"must be equal to one of the allowed values",schema:at.enum,parentSchema:at,data:a};e===null?e=[r]:e.push(r),t++}return om.errors=e,t===0}om.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch150=pm,j.presentation.$defs.NumberingSpec.oneOf[1];function Kr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Kr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!(r==="style"||r==="start"||r==="suffix")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Qe,data:a};e===null?e=[n]:e.push(n),t++}if(a.style!==void 0){let r=a.style;if(typeof r!="string"){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:at.type,parentSchema:at,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="arabic"||r==="roman-upper"||r==="roman-lower"||r==="alpha-upper"||r==="alpha-lower")){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:at.enum},message:"must be equal to one of the allowed values",schema:at.enum,parentSchema:at,data:r};e===null?e=[n]:e.push(n),t++}}if(a.start!==void 0){let r=a.start;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/start",schemaPath:"#/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Qe.properties.start.type,parentSchema:Qe.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"){if(r>32767||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:Qe.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(r<1||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Qe.properties.start,data:r};e===null?e=[n]:e.push(n),t++}}}if(a.suffix!==void 0){let r=a.suffix;if(typeof r!="string"){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qe.properties.suffix.type,parentSchema:Qe.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="period"||r==="paren"||r==="paren-both")){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/enum",keyword:"enum",params:{allowedValues:Qe.properties.suffix.enum},message:"must be equal to one of the allowed values",schema:Qe.properties.suffix.enum,parentSchema:Qe.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Qe.type,parentSchema:Qe,data:a};e===null?e=[r]:e.push(r),t++}return Kr.errors=e,t===0}Kr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function pm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=pm.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Kr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Kr.errors:e.concat(Kr.errors),t=e.length),pm.errors=e,t===0}pm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch151=im;var Yr=j.presentation.$defs.NumberingSpec.oneOf[2];function Qr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!(r==="style"||r==="start"||r==="suffix")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Qe,data:a};e===null?e=[n]:e.push(n),t++}if(a.style!==void 0){let r=a.style;if(typeof r!="string"){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:at.type,parentSchema:at,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="arabic"||r==="roman-upper"||r==="roman-lower"||r==="alpha-upper"||r==="alpha-lower")){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:at.enum},message:"must be equal to one of the allowed values",schema:at.enum,parentSchema:at,data:r};e===null?e=[n]:e.push(n),t++}}if(a.start!==void 0){let r=a.start;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/start",schemaPath:"#/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Qe.properties.start.type,parentSchema:Qe.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"){if(r>32767||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:Qe.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(r<1||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Qe.properties.start,data:r};e===null?e=[n]:e.push(n),t++}}}if(a.suffix!==void 0){let r=a.suffix;if(typeof r!="string"){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qe.properties.suffix.type,parentSchema:Qe.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="period"||r==="paren"||r==="paren-both")){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/enum",keyword:"enum",params:{allowedValues:Qe.properties.suffix.enum},message:"must be equal to one of the allowed values",schema:Qe.properties.suffix.enum,parentSchema:Qe.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Qe.type,parentSchema:Qe,data:a};e===null?e=[r]:e.push(r),t++}return Qr.errors=e,t===0}Qr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function im(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=im.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length>9){const o={instancePath:s,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:9},message:"must NOT have more than 9 items",schema:9,parentSchema:Yr,data:a};e===null?e=[o]:e.push(o),t++}if(a.length<1){const o={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Yr,data:a};e===null?e=[o]:e.push(o),t++}const n=a.length;for(let o=0;o<n;o++){let i=a[o];const h=t;let c=!1,y=null;const g=t;if(typeof i!="string"){const p={instancePath:s+"/"+o,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:at.type,parentSchema:at,data:i};e===null?e=[p]:e.push(p),t++}if(!(i==="arabic"||i==="roman-upper"||i==="roman-lower"||i==="alpha-upper"||i==="alpha-lower")){const p={instancePath:s+"/"+o,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:at.enum},message:"must be equal to one of the allowed values",schema:at.enum,parentSchema:at,data:i};e===null?e=[p]:e.push(p),t++}var r=g===t;r&&(c=!0,y=0);const l=t;Qr(i,{instancePath:s+"/"+o,parentData:a,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?Qr.errors:e.concat(Qr.errors),t=e.length);var r=l===t;if(r&&c?(c=!1,y=[y,1]):r&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const p={instancePath:s+"/"+o,schemaPath:"#/items/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:Yr.items.oneOf,parentSchema:Yr.items,data:i};e===null?e=[p]:e.push(p),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Yr.type,parentSchema:Yr,data:a};e===null?e=[n]:e.push(n),t++}return im.errors=e,t===0}im.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch152=mm,j.presentation.$defs.NumberingSpec.oneOf[2].items.oneOf[0];function mm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:at.type,parentSchema:at,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="arabic"||a==="roman-upper"||a==="roman-lower"||a==="alpha-upper"||a==="alpha-lower")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:at.enum},message:"must be equal to one of the allowed values",schema:at.enum,parentSchema:at,data:a};e===null?e=[r]:e.push(r),t++}return mm.errors=e,t===0}mm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch153=cm,j.presentation.$defs.NumberingSpec.oneOf[2].items.oneOf[1];function Gr(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Gr.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!(r==="style"||r==="start"||r==="suffix")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Qe,data:a};e===null?e=[n]:e.push(n),t++}if(a.style!==void 0){let r=a.style;if(typeof r!="string"){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:at.type,parentSchema:at,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="arabic"||r==="roman-upper"||r==="roman-lower"||r==="alpha-upper"||r==="alpha-lower")){const n={instancePath:s+"/style",schemaPath:"#/$defs/NumberingStyle/enum",keyword:"enum",params:{allowedValues:at.enum},message:"must be equal to one of the allowed values",schema:at.enum,parentSchema:at,data:r};e===null?e=[n]:e.push(n),t++}}if(a.start!==void 0){let r=a.start;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/start",schemaPath:"#/properties/start/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Qe.properties.start.type,parentSchema:Qe.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"){if(r>32767||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/maximum",keyword:"maximum",params:{comparison:"<=",limit:32767},message:"must be <= 32767",schema:32767,parentSchema:Qe.properties.start,data:r};e===null?e=[n]:e.push(n),t++}if(r<1||isNaN(r)){const n={instancePath:s+"/start",schemaPath:"#/properties/start/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Qe.properties.start,data:r};e===null?e=[n]:e.push(n),t++}}}if(a.suffix!==void 0){let r=a.suffix;if(typeof r!="string"){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Qe.properties.suffix.type,parentSchema:Qe.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="period"||r==="paren"||r==="paren-both")){const n={instancePath:s+"/suffix",schemaPath:"#/properties/suffix/enum",keyword:"enum",params:{allowedValues:Qe.properties.suffix.enum},message:"must be equal to one of the allowed values",schema:Qe.properties.suffix.enum,parentSchema:Qe.properties.suffix,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Qe.type,parentSchema:Qe,data:a};e===null?e=[r]:e.push(r),t++}return Gr.errors=e,t===0}Gr.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function cm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=cm.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Gr(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Gr.errors:e.concat(Gr.errors),t=e.length),cm.errors=e,t===0}cm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch154=hm;var Yl=j.presentation.$defs.TextRun.oneOf[0];function hm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Yl.type,parentSchema:Yl,data:a};e===null?e=[r]:e.push(r),t++}return hm.errors=e,t===0}hm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch155=lm;var He=j.presentation.$defs.TextRun.oneOf[1];function en(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=en.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return en.errors=e,m.props=l,t===0}en.evaluated={dynamicProps:!0,dynamicItems:!1};function lm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=lm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:He.required,parentSchema:He,data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let o=a.text;if(typeof o!="string"){const i={instancePath:s+"/text",schemaPath:"#/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.text.type,parentSchema:He.properties.text,data:o};e===null?e=[i]:e.push(i),t++}}if(a.bold!==void 0){let o=a.bold;if(typeof o!="boolean"){const i={instancePath:s+"/bold",schemaPath:"#/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:He.properties.bold.type,parentSchema:He.properties.bold,data:o};e===null?e=[i]:e.push(i),t++}}if(a.italic!==void 0){let o=a.italic;if(typeof o!="boolean"){const i={instancePath:s+"/italic",schemaPath:"#/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:He.properties.italic.type,parentSchema:He.properties.italic,data:o};e===null?e=[i]:e.push(i),t++}}if(a.underline!==void 0){let o=a.underline;if(typeof o!="boolean"){const i={instancePath:s+"/underline",schemaPath:"#/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:He.properties.underline.type,parentSchema:He.properties.underline,data:o};e===null?e=[i]:e.push(i),t++}}if(a.strikethrough!==void 0){let o=a.strikethrough;if(typeof o!="boolean"){const i={instancePath:s+"/strikethrough",schemaPath:"#/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:He.properties.strikethrough.type,parentSchema:He.properties.strikethrough,data:o};e===null?e=[i]:e.push(i),t++}}if(a.color!==void 0){let o=a.color;if(typeof o!="string"){const i={instancePath:s+"/color",schemaPath:"#/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.color.type,parentSchema:He.properties.color,data:o};e===null?e=[i]:e.push(i),t++}}if(a.fontSize!==void 0){let o=a.fontSize;if(typeof o=="number"){if(o<=0||isNaN(o)){const i={instancePath:s+"/fontSize",schemaPath:"#/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:He.properties.fontSize,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/fontSize",schemaPath:"#/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:He.properties.fontSize.type,parentSchema:He.properties.fontSize,data:o};e===null?e=[i]:e.push(i),t++}}if(a.fontFamily!==void 0){let o=a.fontFamily;if(typeof o!="string"){const i={instancePath:s+"/fontFamily",schemaPath:"#/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.fontFamily.type,parentSchema:He.properties.fontFamily,data:o};e===null?e=[i]:e.push(i),t++}}if(a.code!==void 0){let o=a.code;if(typeof o!="boolean"){const i={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:He.properties.code.type,parentSchema:He.properties.code,data:o};e===null?e=[i]:e.push(i),t++}}if(a.lang!==void 0){let o=a.lang;if(typeof o=="string"){if(!Ft.test(o)){const i={instancePath:s+"/lang",schemaPath:"#/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:He.properties.lang,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/lang",schemaPath:"#/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.lang.type,parentSchema:He.properties.lang,data:o};e===null?e=[i]:e.push(i),t++}}if(a.link!==void 0){let o=a.link;if(typeof o=="string"){if(!Tt.test(o)){const i={instancePath:s+"/link",schemaPath:"#/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:He.properties.link,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/link",schemaPath:"#/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.link.type,parentSchema:He.properties.link,data:o};e===null?e=[i]:e.push(i),t++}}if(a.superscript!==void 0){let o=a.superscript;if(typeof o!="boolean"){const i={instancePath:s+"/superscript",schemaPath:"#/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:He.properties.superscript.type,parentSchema:He.properties.superscript,data:o};e===null?e=[i]:e.push(i),t++}}if(a.subscript!==void 0){let o=a.subscript;if(typeof o!="boolean"){const i={instancePath:s+"/subscript",schemaPath:"#/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:He.properties.subscript.type,parentSchema:He.properties.subscript,data:o};e===null?e=[i]:e.push(i),t++}}if(a.cite!==void 0){let o=a.cite;const i=t;let h=!1,c=null;const y=t;if(typeof o=="string"){if(pe(o)<1){const l={instancePath:s+"/cite",schemaPath:"#/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:He.properties.cite.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}}else{const l={instancePath:s+"/cite",schemaPath:"#/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.cite.oneOf[0].type,parentSchema:He.properties.cite.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var r=y===t;r&&(h=!0,c=0);const g=t;if(Array.isArray(o)){if(o.length<1){const p={instancePath:s+"/cite",schemaPath:"#/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:He.properties.cite.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}const l=o.length;for(let p=0;p<l;p++){let d=o[p];if(typeof d=="string"){if(pe(d)<1){const O={instancePath:s+"/cite/"+p,schemaPath:"#/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:He.properties.cite.oneOf[1].items,data:d};e===null?e=[O]:e.push(O),t++}}else{const O={instancePath:s+"/cite/"+p,schemaPath:"#/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.cite.oneOf[1].items.type,parentSchema:He.properties.cite.oneOf[1].items,data:d};e===null?e=[O]:e.push(O),t++}}}else{const l={instancePath:s+"/cite",schemaPath:"#/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:He.properties.cite.oneOf[1].type,parentSchema:He.properties.cite.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var r=g===t;if(r&&h?(h=!1,c=[c,1]):r&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/cite",schemaPath:"#/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:He.properties.cite.oneOf,parentSchema:He.properties.cite,data:o};e===null?e=[l]:e.push(l),t++}}if(a.footnote!==void 0){let o=a.footnote;const i=t;let h=!1,c=null;const y=t;if(typeof o=="string"){if(pe(o)<1){const l={instancePath:s+"/footnote",schemaPath:"#/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:He.properties.footnote.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}}else{const l={instancePath:s+"/footnote",schemaPath:"#/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:He.properties.footnote.oneOf[0].type,parentSchema:He.properties.footnote.oneOf[0],data:o};e===null?e=[l]:e.push(l),t++}var n=y===t;n&&(h=!0,c=0);const g=t;if(Array.isArray(o)){if(o.length<1){const p={instancePath:s+"/footnote",schemaPath:"#/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:He.properties.footnote.oneOf[1],data:o};e===null?e=[p]:e.push(p),t++}const l=o.length;for(let p=0;p<l;p++)en(o[p],{instancePath:s+"/footnote/"+p,parentData:o,parentDataProperty:p,rootData:v,dynamicAnchors:b})||(e=e===null?en.errors:e.concat(en.errors),t=e.length)}else{const l={instancePath:s+"/footnote",schemaPath:"#/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:He.properties.footnote.oneOf[1].type,parentSchema:He.properties.footnote.oneOf[1],data:o};e===null?e=[l]:e.push(l),t++}var n=g===t;if(n&&h?(h=!1,c=[c,1]):n&&(h=!0,c=1),h)t=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:s+"/footnote",schemaPath:"#/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf",schema:He.properties.footnote.oneOf,parentSchema:He.properties.footnote,data:o};e===null?e=[l]:e.push(l),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:He.type,parentSchema:He,data:a};e===null?e=[o]:e.push(o),t++}return lm.errors=e,t===0}lm.evaluated={props:{text:!0,bold:!0,italic:!0,underline:!0,strikethrough:!0,color:!0,fontSize:!0,fontFamily:!0,code:!0,lang:!0,link:!0,superscript:!0,subscript:!0,cite:!0,footnote:!0},dynamicProps:!1,dynamicItems:!1},D.branch156=dm;var yh=j.presentation.$defs.TextRun.oneOf[1].properties.cite.oneOf[0];function dm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=dm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(pe(a)<1){const r={instancePath:s,schemaPath:"#/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:yh,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:yh.type,parentSchema:yh,data:a};e===null?e=[r]:e.push(r),t++}return dm.errors=e,t===0}dm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch157=um;var tn=j.presentation.$defs.TextRun.oneOf[1].properties.cite.oneOf[1];function um(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=um.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:tn,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++){let o=a[n];if(typeof o=="string"){if(pe(o)<1){const i={instancePath:s+"/"+n,schemaPath:"#/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:tn.items,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/"+n,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:tn.items.type,parentSchema:tn.items,data:o};e===null?e=[i]:e.push(i),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:tn.type,parentSchema:tn,data:a};e===null?e=[r]:e.push(r),t++}return um.errors=e,t===0}um.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch158=ym;var fh=j.presentation.$defs.TextRun.oneOf[1].properties.footnote.oneOf[0];function ym(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ym.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(pe(a)<1){const r={instancePath:s,schemaPath:"#/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:fh,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fh.type,parentSchema:fh,data:a};e===null?e=[r]:e.push(r),t++}return ym.errors=e,t===0}ym.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch159=fm;var gh=j.presentation.$defs.TextRun.oneOf[1].properties.footnote.oneOf[1];function an(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=an.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return an.errors=e,m.props=l,t===0}an.evaluated={dynamicProps:!0,dynamicItems:!1};function fm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){if(a.length<1){const n={instancePath:s,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:gh,data:a};e===null?e=[n]:e.push(n),t++}const r=a.length;for(let n=0;n<r;n++)an(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?an.errors:e.concat(an.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:gh.type,parentSchema:gh,data:a};e===null?e=[r]:e.push(r),t++}return fm.errors=e,t===0}fm.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch160=gm;var Ql=j.presentation.$defs.Caption.oneOf[0];function gm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=gm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ql.type,parentSchema:Ql,data:a};e===null?e=[r]:e.push(r),t++}return gm.errors=e,t===0}gm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch161=Pm;var Gl=j.presentation.$defs.Caption.oneOf[1];function sn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=sn.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return sn.errors=e,m.props=l,t===0}sn.evaluated={dynamicProps:!0,dynamicItems:!1};function Pm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Pm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)sn(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?sn.errors:e.concat(sn.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Gl.type,parentSchema:Gl,data:a};e===null?e=[r]:e.push(r),t++}return Pm.errors=e,t===0}Pm.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch162=vm;var Wt=j.presentation.$defs.Caption.oneOf[2];function rn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=rn.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return rn.errors=e,m.props=l,t===0}rn.evaluated={dynamicProps:!0,dynamicItems:!1};function vm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:Wt.required,parentSchema:Wt,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="text"||n==="position"||n==="align")){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Wt,data:a};e===null?e=[o]:e.push(o),t++}if(a.text!==void 0){let n=a.text;const o=t;let i=!1,h=null;const c=t;if(typeof n!="string"){const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Wt.properties.text.oneOf[0].type,parentSchema:Wt.properties.text.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(Array.isArray(n)){const g=n.length;for(let l=0;l<g;l++)rn(n[l],{instancePath:s+"/text/"+l,parentData:n,parentDataProperty:l,rootData:v,dynamicAnchors:b})||(e=e===null?rn.errors:e.concat(rn.errors),t=e.length)}else{const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Wt.properties.text.oneOf[1].type,parentSchema:Wt.properties.text.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=o,e!==null&&(o?e.length=o:e=null);else{const g={instancePath:s+"/text",schemaPath:"#/properties/text/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:Wt.properties.text.oneOf,parentSchema:Wt.properties.text,data:n};e===null?e=[g]:e.push(g),t++}}if(a.position!==void 0){let n=a.position;if(typeof n!="string"){const o={instancePath:s+"/position",schemaPath:"#/properties/position/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Wt.properties.position.type,parentSchema:Wt.properties.position,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="below"||n==="above")){const o={instancePath:s+"/position",schemaPath:"#/properties/position/enum",keyword:"enum",params:{allowedValues:Wt.properties.position.enum},message:"must be equal to one of the allowed values",schema:Wt.properties.position.enum,parentSchema:Wt.properties.position,data:n};e===null?e=[o]:e.push(o),t++}}if(a.align!==void 0){let n=a.align;if(typeof n!="string"){const o={instancePath:s+"/align",schemaPath:"#/properties/align/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Wt.properties.align.type,parentSchema:Wt.properties.align,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="left"||n==="center"||n==="right")){const o={instancePath:s+"/align",schemaPath:"#/properties/align/enum",keyword:"enum",params:{allowedValues:Wt.properties.align.enum},message:"must be equal to one of the allowed values",schema:Wt.properties.align.enum,parentSchema:Wt.properties.align,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Wt.type,parentSchema:Wt,data:a};e===null?e=[n]:e.push(n),t++}return vm.errors=e,t===0}vm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch163=bm;var ed=j.presentation.$defs.Caption.oneOf[2].properties.text.oneOf[0];function bm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=bm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ed.type,parentSchema:ed,data:a};e===null?e=[r]:e.push(r),t++}return bm.errors=e,t===0}bm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch164=Om;var td=j.presentation.$defs.Caption.oneOf[2].properties.text.oneOf[1];function nn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=nn.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return nn.errors=e,m.props=l,t===0}nn.evaluated={dynamicProps:!0,dynamicItems:!1};function Om(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Om.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)nn(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?nn.errors:e.concat(nn.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:td.type,parentSchema:td,data:a};e===null?e=[r]:e.push(r),t++}return Om.errors=e,t===0}Om.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch165=wm;var ad=j.presentation.$defs.Reference.properties.text.oneOf[0];function wm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ad.type,parentSchema:ad,data:a};e===null?e=[r]:e.push(r),t++}return wm.errors=e,t===0}wm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch166=Sm;var sd=j.presentation.$defs.Reference.properties.text.oneOf[1];function on(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=on.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return on.errors=e,m.props=l,t===0}on.evaluated={dynamicProps:!0,dynamicItems:!1};function Sm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Sm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)on(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?on.errors:e.concat(on.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:sd.type,parentSchema:sd,data:a};e===null?e=[r]:e.push(r),t++}return Sm.errors=e,t===0}Sm.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch167=km,j.presentation.$defs.Chart.properties.data.oneOf[0];function pn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=pn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.columns===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columns"},message:"must have required property 'columns'",schema:Fe.required,parentSchema:Fe,data:a};e===null?e=[i]:e.push(i),t++}if(a.rows===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'",schema:Fe.required,parentSchema:Fe,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!(i==="columns"||i==="rows"||i==="source")){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:Fe,data:a};e===null?e=[h]:e.push(h),t++}if(a.columns!==void 0){let i=a.columns;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/columns",schemaPath:"#/properties/columns/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Fe.properties.columns,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];const g=t;let l=!1,p=null;const d=t;if(typeof y!="string"){const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fe.properties.columns.items.oneOf[0].type,parentSchema:Fe.properties.columns.items.oneOf[0],data:y};e===null?e=[S]:e.push(S),t++}var r=d===t;r&&(l=!0,p=0);const O=t;aa(y,{instancePath:s+"/columns/"+c,parentData:i,parentDataProperty:c,rootData:v,dynamicAnchors:b})||(e=e===null?aa.errors:e.concat(aa.errors),t=e.length);var r=O===t;if(r&&l?(l=!1,p=[p,1]):r&&(l=!0,p=1),l)t=g,e!==null&&(g?e.length=g:e=null);else{const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Fe.properties.columns.items.oneOf,parentSchema:Fe.properties.columns.items,data:y};e===null?e=[S]:e.push(S),t++}}}else{const h={instancePath:s+"/columns",schemaPath:"#/properties/columns/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Fe.properties.columns.type,parentSchema:Fe.properties.columns,data:i};e===null?e=[h]:e.push(h),t++}}if(a.rows!==void 0){let i=a.rows;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/rows",schemaPath:"#/properties/rows/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Fe.properties.rows,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];if(Array.isArray(y)){const g=y.length;for(let l=0;l<g;l++){let p=y[l];const d=t;let O=!1,S=null;const I=t;if(typeof p!="string"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:dt.oneOf[0].type,parentSchema:dt.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var n=I===t;n&&(O=!0,S=0);const A=t;if(typeof p!="number"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:dt.oneOf[1].type,parentSchema:dt.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var n=A===t;if(n&&O)O=!1,S=[S,1];else{n&&(O=!0,S=1);const f=t;if(typeof p!="boolean"){const w={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:dt.oneOf[2].type,parentSchema:dt.oneOf[2],data:p};e===null?e=[w]:e.push(w),t++}var n=f===t;if(n&&O)O=!1,S=[S,2];else{n&&(O=!0,S=2);const w=t;if(p!==null){const F={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/3/type",keyword:"type",params:{type:"null"},message:"must be null",schema:dt.oneOf[3].type,parentSchema:dt.oneOf[3],data:p};e===null?e=[F]:e.push(F),t++}var n=w===t;n&&O?(O=!1,S=[S,3]):n&&(O=!0,S=3)}}if(O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:dt.oneOf,parentSchema:dt,data:p};e===null?e=[f]:e.push(f),t++}}}else{const g={instancePath:s+"/rows/"+c,schemaPath:"#/properties/rows/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Fe.properties.rows.items.type,parentSchema:Fe.properties.rows.items,data:y};e===null?e=[g]:e.push(g),t++}}}else{const h={instancePath:s+"/rows",schemaPath:"#/properties/rows/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Fe.properties.rows.type,parentSchema:Fe.properties.rows,data:i};e===null?e=[h]:e.push(h),t++}}if(a.source!==void 0){let i=a.source;if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.src===void 0){const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:re.required,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}for(const h in i)if(!(h==="src"||h==="sheet"||h==="range"||h==="fields"||h==="retrieved"||h==="description")){const c={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:re,data:i};e===null?e=[c]:e.push(c),t++}if(i.src!==void 0){let h=i.src;if(typeof h!="string"){const c={instancePath:s+"/source/src",schemaPath:"#/$defs/DataSourceRef/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.src.type,parentSchema:re.properties.src,data:h};e===null?e=[c]:e.push(c),t++}}if(i.sheet!==void 0){let h=i.sheet;if(typeof h!="string"){const c={instancePath:s+"/source/sheet",schemaPath:"#/$defs/DataSourceRef/properties/sheet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.sheet.type,parentSchema:re.properties.sheet,data:h};e===null?e=[c]:e.push(c),t++}}if(i.range!==void 0){let h=i.range;if(typeof h!="string"){const c={instancePath:s+"/source/range",schemaPath:"#/$defs/DataSourceRef/properties/range/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.range.type,parentSchema:re.properties.range,data:h};e===null?e=[c]:e.push(c),t++}}if(i.fields!==void 0){let h=i.fields;if(Array.isArray(h)){const c=h.length;for(let y=0;y<c;y++){let g=h[y];if(typeof g!="string"){const l={instancePath:s+"/source/fields/"+y,schemaPath:"#/$defs/DataSourceRef/properties/fields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.fields.items.type,parentSchema:re.properties.fields.items,data:g};e===null?e=[l]:e.push(l),t++}}}else{const c={instancePath:s+"/source/fields",schemaPath:"#/$defs/DataSourceRef/properties/fields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:re.properties.fields.type,parentSchema:re.properties.fields,data:h};e===null?e=[c]:e.push(c),t++}}if(i.retrieved!==void 0){let h=i.retrieved;if(typeof h!="string"){const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.retrieved.type,parentSchema:re.properties.retrieved,data:h};e===null?e=[p]:e.push(p),t++}const c=t;let y=!1;const g=t;if(typeof h=="string"&&!Tn.validate(h)){const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/0/format",keyword:"format",params:{format:"date"},message:'must match format "date"',schema:"date",parentSchema:re.properties.retrieved.anyOf[0],data:h};e===null?e=[p]:e.push(p),t++}var o=g===t;y=y||o;const l=t;if(typeof h=="string"&&!Cn.validate(h)){const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/1/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"',schema:"date-time",parentSchema:re.properties.retrieved.anyOf[1],data:h};e===null?e=[p]:e.push(p),t++}var o=l===t;if(y=y||o,y)t=c,e!==null&&(c?e.length=c:e=null);else{const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:re.properties.retrieved.anyOf,parentSchema:re.properties.retrieved,data:h};e===null?e=[p]:e.push(p),t++}}if(i.description!==void 0){let h=i.description;if(typeof h!="string"){const c={instancePath:s+"/source/description",schemaPath:"#/$defs/DataSourceRef/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.description.type,parentSchema:re.properties.description,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/type",keyword:"type",params:{type:"object"},message:"must be object",schema:re.type,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Fe.type,parentSchema:Fe,data:a};e===null?e=[i]:e.push(i),t++}return pn.errors=e,t===0}pn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function km(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=km.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),pn(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?pn.errors:e.concat(pn.errors),t=e.length),km.errors=e,t===0}km.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch168=Am,j.presentation.$defs.Chart.properties.data.oneOf[1];function mn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.dataset===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"dataset"},message:"must have required property 'dataset'",schema:ba.required,parentSchema:ba,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="dataset"||r==="fields")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ba,data:a};e===null?e=[n]:e.push(n),t++}if(a.dataset!==void 0){let r=a.dataset;if(typeof r=="string"){if(!Xs.test(r)){const n={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$"},message:'must match pattern "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"',schema:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$",parentSchema:za,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:za.type,parentSchema:za,data:r};e===null?e=[n]:e.push(n),t++}}if(a.fields!==void 0){let r=a.fields;if(Array.isArray(r)){if(r.length<1){const h={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Lt,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/fields/"+h,schemaPath:"#/$defs/DatasetFields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Lt.items.type,parentSchema:Lt.items,data:c};e===null?e=[y]:e.push(y),t++}}let o=r.length,i;if(o>1){const h={};for(;o--;){let c=r[o];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/uniqueItems",keyword:"uniqueItems",params:{i:o,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+o+" are identical)",schema:!0,parentSchema:Lt,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=o}}}}else{const n={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Lt.type,parentSchema:Lt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ba.type,parentSchema:ba,data:a};e===null?e=[r]:e.push(r),t++}return mn.errors=e,t===0}mn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Am(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Am.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),mn(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?mn.errors:e.concat(mn.errors),t=e.length),Am.errors=e,t===0}Am.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch169=$m;var rd=j.presentation.$defs.Chart.properties.dataLabels.oneOf[0];function $m(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$m.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:rd.type,parentSchema:rd,data:a};e===null?e=[r]:e.push(r),t++}return $m.errors=e,t===0}$m.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch170=Dm,j.presentation.$defs.Chart.properties.dataLabels.oneOf[1];function Dm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Dm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!(r==="content"||r==="position"||r==="separator")){const n={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ft,data:a};e===null?e=[n]:e.push(n),t++}if(a.content!==void 0){let r=a.content;if(Array.isArray(r)){if(r.length<1){const h={instancePath:s+"/content",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/content/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ft.properties.content,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/content/"+h,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/content/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.content.items.type,parentSchema:ft.properties.content.items,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="value"||c==="percent"||c==="category")){const y={instancePath:s+"/content/"+h,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/content/items/enum",keyword:"enum",params:{allowedValues:ft.properties.content.items.enum},message:"must be equal to one of the allowed values",schema:ft.properties.content.items.enum,parentSchema:ft.properties.content.items,data:c};e===null?e=[y]:e.push(y),t++}}let o=r.length,i;if(o>1){const h={};for(;o--;){let c=r[o];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/content",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/content/uniqueItems",keyword:"uniqueItems",params:{i:o,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+o+" are identical)",schema:!0,parentSchema:ft.properties.content,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=o}}}}else{const n={instancePath:s+"/content",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/content/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ft.properties.content.type,parentSchema:ft.properties.content,data:r};e===null?e=[n]:e.push(n),t++}}if(a.position!==void 0){let r=a.position;if(typeof r!="string"){const n={instancePath:s+"/position",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/position/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.position.type,parentSchema:ft.properties.position,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="auto"||r==="center"||r==="inside-end"||r==="inside-base"||r==="outside-end"||r==="above"||r==="below"||r==="left"||r==="right")){const n={instancePath:s+"/position",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/position/enum",keyword:"enum",params:{allowedValues:ft.properties.position.enum},message:"must be equal to one of the allowed values",schema:ft.properties.position.enum,parentSchema:ft.properties.position,data:r};e===null?e=[n]:e.push(n),t++}}if(a.separator!==void 0){let r=a.separator;if(typeof r!="string"){const n={instancePath:s+"/separator",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/properties/separator/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ft.properties.separator.type,parentSchema:ft.properties.separator,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ChartDataLabels/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ft.type,parentSchema:ft,data:a};e===null?e=[r]:e.push(r),t++}return Dm.errors=e,t===0}Dm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch171=qm;var nd=j.presentation.$defs.Table.properties.columns.items.oneOf[0];function qm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=qm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:nd.type,parentSchema:nd,data:a};e===null?e=[r]:e.push(r),t++}return qm.errors=e,t===0}qm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch172=xm;var od=j.presentation.$defs.Table.properties.columns.items.oneOf[1];function cn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=cn.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return cn.errors=e,m.props=l,t===0}cn.evaluated={dynamicProps:!0,dynamicItems:!1};function xm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)cn(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?cn.errors:e.concat(cn.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:od.type,parentSchema:od,data:a};e===null?e=[r]:e.push(r),t++}return xm.errors=e,t===0}xm.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.branch173=Nm,j.presentation.$defs.Table.properties.columns.items.oneOf[2];function hn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:rt.required,parentSchema:rt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="value"||r==="style"||r==="colSpan"||r==="rowSpan"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:rt,data:a};e===null?e=[n]:e.push(n),t++}if(a.value!==void 0&&(Qt(a.value,{instancePath:s+"/value",parentData:a,parentDataProperty:"value",rootData:v,dynamicAnchors:b})||(e=e===null?Qt.errors:e.concat(Qt.errors),t=e.length)),a.style!==void 0&&(wa(a.style,{instancePath:s+"/style",parentData:a,parentDataProperty:"style",rootData:v,dynamicAnchors:b})||(e=e===null?wa.errors:e.concat(wa.errors),t=e.length)),a.colSpan!==void 0){let r=a.colSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:rt.properties.colSpan.type,parentSchema:rt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:rt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.rowSpan!==void 0){let r=a.rowSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:rt.properties.rowSpan.type,parentSchema:rt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:rt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:rt.type,parentSchema:rt,data:a};e===null?e=[r]:e.push(r),t++}return hn.errors=e,t===0}hn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Nm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Nm.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),hn(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?hn.errors:e.concat(hn.errors),t=e.length),Nm.errors=e,t===0}Nm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch174=Im,j.presentation.$defs.Table.properties.columns.items.oneOf[3];function ln(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ln.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:$t.required,parentSchema:$t,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="name"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:$t,data:a};e===null?e=[n]:e.push(n),t++}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$t.properties.name.type,parentSchema:$t.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:$t.type,parentSchema:$t,data:a};e===null?e=[r]:e.push(r),t++}return ln.errors=e,t===0}ln.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Im(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Im.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),ln(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?ln.errors:e.concat(ln.errors),t=e.length),Im.errors=e,t===0}Im.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch175=zm;var pd=j.presentation.$defs.Table.properties.columns.items.oneOf[4];function zm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=zm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!==null){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"null"},message:"must be null",schema:pd.type,parentSchema:pd,data:a};e===null?e=[r]:e.push(r),t++}return zm.errors=e,t===0}zm.evaluated={dynamicProps:!1,dynamicItems:!1},D.definition8=jm;function jm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=jm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.columns===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columns"},message:"must have required property 'columns'",schema:Fe.required,parentSchema:Fe,data:a};e===null?e=[i]:e.push(i),t++}if(a.rows===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'",schema:Fe.required,parentSchema:Fe,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!(i==="columns"||i==="rows"||i==="source")){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:Fe,data:a};e===null?e=[h]:e.push(h),t++}if(a.columns!==void 0){let i=a.columns;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/columns",schemaPath:"#/properties/columns/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Fe.properties.columns,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];const g=t;let l=!1,p=null;const d=t;if(typeof y!="string"){const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Fe.properties.columns.items.oneOf[0].type,parentSchema:Fe.properties.columns.items.oneOf[0],data:y};e===null?e=[S]:e.push(S),t++}var r=d===t;r&&(l=!0,p=0);const O=t;aa(y,{instancePath:s+"/columns/"+c,parentData:i,parentDataProperty:c,rootData:v,dynamicAnchors:b})||(e=e===null?aa.errors:e.concat(aa.errors),t=e.length);var r=O===t;if(r&&l?(l=!1,p=[p,1]):r&&(l=!0,p=1),l)t=g,e!==null&&(g?e.length=g:e=null);else{const S={instancePath:s+"/columns/"+c,schemaPath:"#/properties/columns/items/oneOf",keyword:"oneOf",params:{passingSchemas:p},message:"must match exactly one schema in oneOf",schema:Fe.properties.columns.items.oneOf,parentSchema:Fe.properties.columns.items,data:y};e===null?e=[S]:e.push(S),t++}}}else{const h={instancePath:s+"/columns",schemaPath:"#/properties/columns/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Fe.properties.columns.type,parentSchema:Fe.properties.columns,data:i};e===null?e=[h]:e.push(h),t++}}if(a.rows!==void 0){let i=a.rows;if(Array.isArray(i)){if(i.length<1){const c={instancePath:s+"/rows",schemaPath:"#/properties/rows/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Fe.properties.rows,data:i};e===null?e=[c]:e.push(c),t++}const h=i.length;for(let c=0;c<h;c++){let y=i[c];if(Array.isArray(y)){const g=y.length;for(let l=0;l<g;l++){let p=y[l];const d=t;let O=!1,S=null;const I=t;if(typeof p!="string"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:dt.oneOf[0].type,parentSchema:dt.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var n=I===t;n&&(O=!0,S=0);const A=t;if(typeof p!="number"){const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:dt.oneOf[1].type,parentSchema:dt.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var n=A===t;if(n&&O)O=!1,S=[S,1];else{n&&(O=!0,S=1);const f=t;if(typeof p!="boolean"){const w={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:dt.oneOf[2].type,parentSchema:dt.oneOf[2],data:p};e===null?e=[w]:e.push(w),t++}var n=f===t;if(n&&O)O=!1,S=[S,2];else{n&&(O=!0,S=2);const w=t;if(p!==null){const F={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf/3/type",keyword:"type",params:{type:"null"},message:"must be null",schema:dt.oneOf[3].type,parentSchema:dt.oneOf[3],data:p};e===null?e=[F]:e.push(F),t++}var n=w===t;n&&O?(O=!1,S=[S,3]):n&&(O=!0,S=3)}}if(O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/rows/"+c+"/"+l,schemaPath:"#/$defs/ChartDataCell/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:dt.oneOf,parentSchema:dt,data:p};e===null?e=[f]:e.push(f),t++}}}else{const g={instancePath:s+"/rows/"+c,schemaPath:"#/properties/rows/items/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Fe.properties.rows.items.type,parentSchema:Fe.properties.rows.items,data:y};e===null?e=[g]:e.push(g),t++}}}else{const h={instancePath:s+"/rows",schemaPath:"#/properties/rows/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Fe.properties.rows.type,parentSchema:Fe.properties.rows,data:i};e===null?e=[h]:e.push(h),t++}}if(a.source!==void 0){let i=a.source;if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.src===void 0){const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/required",keyword:"required",params:{missingProperty:"src"},message:"must have required property 'src'",schema:re.required,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}for(const h in i)if(!(h==="src"||h==="sheet"||h==="range"||h==="fields"||h==="retrieved"||h==="description")){const c={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties",schema:!1,parentSchema:re,data:i};e===null?e=[c]:e.push(c),t++}if(i.src!==void 0){let h=i.src;if(typeof h!="string"){const c={instancePath:s+"/source/src",schemaPath:"#/$defs/DataSourceRef/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.src.type,parentSchema:re.properties.src,data:h};e===null?e=[c]:e.push(c),t++}}if(i.sheet!==void 0){let h=i.sheet;if(typeof h!="string"){const c={instancePath:s+"/source/sheet",schemaPath:"#/$defs/DataSourceRef/properties/sheet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.sheet.type,parentSchema:re.properties.sheet,data:h};e===null?e=[c]:e.push(c),t++}}if(i.range!==void 0){let h=i.range;if(typeof h!="string"){const c={instancePath:s+"/source/range",schemaPath:"#/$defs/DataSourceRef/properties/range/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.range.type,parentSchema:re.properties.range,data:h};e===null?e=[c]:e.push(c),t++}}if(i.fields!==void 0){let h=i.fields;if(Array.isArray(h)){const c=h.length;for(let y=0;y<c;y++){let g=h[y];if(typeof g!="string"){const l={instancePath:s+"/source/fields/"+y,schemaPath:"#/$defs/DataSourceRef/properties/fields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.fields.items.type,parentSchema:re.properties.fields.items,data:g};e===null?e=[l]:e.push(l),t++}}}else{const c={instancePath:s+"/source/fields",schemaPath:"#/$defs/DataSourceRef/properties/fields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:re.properties.fields.type,parentSchema:re.properties.fields,data:h};e===null?e=[c]:e.push(c),t++}}if(i.retrieved!==void 0){let h=i.retrieved;if(typeof h!="string"){const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.retrieved.type,parentSchema:re.properties.retrieved,data:h};e===null?e=[p]:e.push(p),t++}const c=t;let y=!1;const g=t;if(typeof h=="string"&&!Tn.validate(h)){const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/0/format",keyword:"format",params:{format:"date"},message:'must match format "date"',schema:"date",parentSchema:re.properties.retrieved.anyOf[0],data:h};e===null?e=[p]:e.push(p),t++}var o=g===t;y=y||o;const l=t;if(typeof h=="string"&&!Cn.validate(h)){const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf/1/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"',schema:"date-time",parentSchema:re.properties.retrieved.anyOf[1],data:h};e===null?e=[p]:e.push(p),t++}var o=l===t;if(y=y||o,y)t=c,e!==null&&(c?e.length=c:e=null);else{const p={instancePath:s+"/source/retrieved",schemaPath:"#/$defs/DataSourceRef/properties/retrieved/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:re.properties.retrieved.anyOf,parentSchema:re.properties.retrieved,data:h};e===null?e=[p]:e.push(p),t++}}if(i.description!==void 0){let h=i.description;if(typeof h!="string"){const c={instancePath:s+"/source/description",schemaPath:"#/$defs/DataSourceRef/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:re.properties.description.type,parentSchema:re.properties.description,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/source",schemaPath:"#/$defs/DataSourceRef/type",keyword:"type",params:{type:"object"},message:"must be object",schema:re.type,parentSchema:re,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Fe.type,parentSchema:Fe,data:a};e===null?e=[i]:e.push(i),t++}return jm.errors=e,t===0}jm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch176=Fm;var id=j.presentation.$defs.ChartData.properties.columns.items.oneOf[0];function Fm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Fm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:id.type,parentSchema:id,data:a};e===null?e=[r]:e.push(r),t++}return Fm.errors=e,t===0}Fm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch177=Tm,j.presentation.$defs.ChartData.properties.columns.items.oneOf[1];function dn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=dn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:$t.required,parentSchema:$t,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="name"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:$t,data:a};e===null?e=[n]:e.push(n),t++}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$t.properties.name.type,parentSchema:$t.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:$t.type,parentSchema:$t,data:a};e===null?e=[r]:e.push(r),t++}return dn.errors=e,t===0}dn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Tm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Tm.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),dn(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?dn.errors:e.concat(dn.errors),t=e.length),Tm.errors=e,t===0}Tm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.definition9=xs;function xs(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xs.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:$t.required,parentSchema:$t,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="name"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:$t,data:a};e===null?e=[n]:e.push(n),t++}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:$t.properties.name.type,parentSchema:$t.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:$t.type,parentSchema:$t,data:a};e===null?e=[r]:e.push(r),t++}return xs.errors=e,t===0}xs.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch178=Cm;var Md=j.presentation.$defs.DataSourceRef.properties.retrieved.anyOf[0];function Cm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Cm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"&&!Tn.validate(a)){const r={instancePath:s,schemaPath:"#/format",keyword:"format",params:{format:"date"},message:'must match format "date"',schema:"date",parentSchema:Md,data:a};e===null?e=[r]:e.push(r),t++}return Cm.errors=e,t===0}Cm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch179=Vm;var Bd=j.presentation.$defs.DataSourceRef.properties.retrieved.anyOf[1];function Vm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Vm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"&&!Cn.validate(a)){const r={instancePath:s,schemaPath:"#/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"',schema:"date-time",parentSchema:Bd,data:a};e===null?e=[r]:e.push(r),t++}return Vm.errors=e,t===0}Vm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch180=Lm;var md=j.presentation.$defs.Dataset.properties.columns.items.oneOf[0];function Lm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Lm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:md.type,parentSchema:md,data:a};e===null?e=[r]:e.push(r),t++}return Lm.errors=e,t===0}Lm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch181=Rm,j.presentation.$defs.Dataset.properties.columns.items.oneOf[1];function Rm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Rm.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),xs(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?xs.errors:e.concat(xs.errors),t=e.length),Rm.errors=e,t===0}Rm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.definition10=Zm;function Zm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Zm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.dataset===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"dataset"},message:"must have required property 'dataset'",schema:ba.required,parentSchema:ba,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="dataset"||r==="fields")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ba,data:a};e===null?e=[n]:e.push(n),t++}if(a.dataset!==void 0){let r=a.dataset;if(typeof r=="string"){if(!Xs.test(r)){const n={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/pattern",keyword:"pattern",params:{pattern:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$"},message:'must match pattern "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"',schema:"^[a-zA-Z0-9][a-zA-Z0-9._-]*$",parentSchema:za,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dataset",schemaPath:"#/$defs/DatasetId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:za.type,parentSchema:za,data:r};e===null?e=[n]:e.push(n),t++}}if(a.fields!==void 0){let r=a.fields;if(Array.isArray(r)){if(r.length<1){const h={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Lt,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/fields/"+h,schemaPath:"#/$defs/DatasetFields/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Lt.items.type,parentSchema:Lt.items,data:c};e===null?e=[y]:e.push(y),t++}}let o=r.length,i;if(o>1){const h={};for(;o--;){let c=r[o];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/uniqueItems",keyword:"uniqueItems",params:{i:o,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+o+" are identical)",schema:!0,parentSchema:Lt,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=o}}}}else{const n={instancePath:s+"/fields",schemaPath:"#/$defs/DatasetFields/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Lt.type,parentSchema:Lt,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ba.type,parentSchema:ba,data:a};e===null?e=[r]:e.push(r),t++}return Zm.errors=e,t===0}Zm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch182=Mm;var cd=j.presentation.$defs.ChartDataCell.oneOf[0];function Mm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Mm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:cd.type,parentSchema:cd,data:a};e===null?e=[r]:e.push(r),t++}return Mm.errors=e,t===0}Mm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch183=Bm;var hd=j.presentation.$defs.ChartDataCell.oneOf[1];function Bm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Bm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="number"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:hd.type,parentSchema:hd,data:a};e===null?e=[r]:e.push(r),t++}return Bm.errors=e,t===0}Bm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch184=Hm;var ld=j.presentation.$defs.ChartDataCell.oneOf[2];function Hm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Hm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ld.type,parentSchema:ld,data:a};e===null?e=[r]:e.push(r),t++}return Hm.errors=e,t===0}Hm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch185=_m;var dd=j.presentation.$defs.ChartDataCell.oneOf[3];function _m(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=_m.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!==null){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"null"},message:"must be null",schema:dd.type,parentSchema:dd,data:a};e===null?e=[r]:e.push(r),t++}return _m.errors=e,t===0}_m.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch186=Um,j.presentation.$defs.TableCell.oneOf[0];function Ns(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ns.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const g={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Rt.oneOf[0].type,parentSchema:Rt.oneOf[0],data:a};e===null?e=[g]:e.push(g),t++}var c=i===t;c&&(n=!0,o=0);const h=t;if(typeof a!="number"){const g={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Rt.oneOf[1].type,parentSchema:Rt.oneOf[1],data:a};e===null?e=[g]:e.push(g),t++}var c=h===t;if(c&&n)n=!1,o=[o,1];else{c&&(n=!0,o=1);const g=t;if(typeof a!="boolean"){const p={instancePath:s,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:Rt.oneOf[2].type,parentSchema:Rt.oneOf[2],data:a};e===null?e=[p]:e.push(p),t++}var c=g===t;if(c&&n)n=!1,o=[o,2];else{c&&(n=!0,o=2);const p=t;if(a!==null){const O={instancePath:s,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"null"},message:"must be null",schema:Rt.oneOf[3].type,parentSchema:Rt.oneOf[3],data:a};e===null?e=[O]:e.push(O),t++}var c=p===t;if(c&&n)n=!1,o=[o,3];else{c&&(n=!0,o=3);const O=t;if(Array.isArray(a)){const I=a.length;for(let A=0;A<I;A++)J(a[A],{instancePath:s+"/"+A,parentData:a,parentDataProperty:A,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const I={instancePath:s,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Rt.oneOf[4].type,parentSchema:Rt.oneOf[4],data:a};e===null?e=[I]:e.push(I),t++}var c=O===t;if(c&&n)n=!1,o=[o,4];else if(c){n=!0,o=4;var y=!0}}}}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:Rt.oneOf,parentSchema:Rt,data:a};e===null?e=[g]:e.push(g),t++}return Ns.errors=e,m.items=y,t===0}Ns.evaluated={dynamicProps:!1,dynamicItems:!0};function Um(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Um.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),!Ns(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b}))e=e===null?Ns.errors:e.concat(Ns.errors),t=e.length;else var r=Ns.evaluated.items;return Um.errors=e,m.items=r,t===0}Um.evaluated={dynamicProps:!1,dynamicItems:!0},D.branch187=Em,j.presentation.$defs.TableCell.oneOf[1];function un(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=un.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:rt.required,parentSchema:rt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="value"||r==="style"||r==="colSpan"||r==="rowSpan"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:rt,data:a};e===null?e=[n]:e.push(n),t++}if(a.value!==void 0&&(Qt(a.value,{instancePath:s+"/value",parentData:a,parentDataProperty:"value",rootData:v,dynamicAnchors:b})||(e=e===null?Qt.errors:e.concat(Qt.errors),t=e.length)),a.style!==void 0&&(wa(a.style,{instancePath:s+"/style",parentData:a,parentDataProperty:"style",rootData:v,dynamicAnchors:b})||(e=e===null?wa.errors:e.concat(wa.errors),t=e.length)),a.colSpan!==void 0){let r=a.colSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:rt.properties.colSpan.type,parentSchema:rt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:rt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.rowSpan!==void 0){let r=a.rowSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:rt.properties.rowSpan.type,parentSchema:rt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:rt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:rt.type,parentSchema:rt,data:a};e===null?e=[r]:e.push(r),t++}return un.errors=e,t===0}un.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Em(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Em.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),un(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?un.errors:e.concat(un.errors),t=e.length),Em.errors=e,t===0}Em.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch188=Wm;var ud=j.presentation.$defs.TableCellValue.oneOf[0];function Wm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Wm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ud.type,parentSchema:ud,data:a};e===null?e=[r]:e.push(r),t++}return Wm.errors=e,t===0}Wm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch189=Xm;var yd=j.presentation.$defs.TableCellValue.oneOf[1];function Xm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Xm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="number"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:yd.type,parentSchema:yd,data:a};e===null?e=[r]:e.push(r),t++}return Xm.errors=e,t===0}Xm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch190=Jm;var fd=j.presentation.$defs.TableCellValue.oneOf[2];function Jm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Jm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="boolean"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:fd.type,parentSchema:fd,data:a};e===null?e=[r]:e.push(r),t++}return Jm.errors=e,t===0}Jm.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch191=Km;var gd=j.presentation.$defs.TableCellValue.oneOf[3];function Km(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Km.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!==null){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"null"},message:"must be null",schema:gd.type,parentSchema:gd,data:a};e===null?e=[r]:e.push(r),t++}return Km.errors=e,t===0}Km.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch192=Ym;var Pd=j.presentation.$defs.TableCellValue.oneOf[4];function yn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=yn.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;if(typeof a!="string"){const p={instancePath:s,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[0].type,parentSchema:u.oneOf[0],data:a};e===null?e=[p]:e.push(p),t++}var g=i===t;g&&(n=!0,o=0);const h=t;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.text===void 0){const p={instancePath:s,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'",schema:u.oneOf[1].required,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}if(a.text!==void 0){let p=a.text;if(typeof p!="string"){const d={instancePath:s+"/text",schemaPath:"#/oneOf/1/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.text.type,parentSchema:u.oneOf[1].properties.text,data:p};e===null?e=[d]:e.push(d),t++}}if(a.bold!==void 0){let p=a.bold;if(typeof p!="boolean"){const d={instancePath:s+"/bold",schemaPath:"#/oneOf/1/properties/bold/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.bold.type,parentSchema:u.oneOf[1].properties.bold,data:p};e===null?e=[d]:e.push(d),t++}}if(a.italic!==void 0){let p=a.italic;if(typeof p!="boolean"){const d={instancePath:s+"/italic",schemaPath:"#/oneOf/1/properties/italic/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.italic.type,parentSchema:u.oneOf[1].properties.italic,data:p};e===null?e=[d]:e.push(d),t++}}if(a.underline!==void 0){let p=a.underline;if(typeof p!="boolean"){const d={instancePath:s+"/underline",schemaPath:"#/oneOf/1/properties/underline/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.underline.type,parentSchema:u.oneOf[1].properties.underline,data:p};e===null?e=[d]:e.push(d),t++}}if(a.strikethrough!==void 0){let p=a.strikethrough;if(typeof p!="boolean"){const d={instancePath:s+"/strikethrough",schemaPath:"#/oneOf/1/properties/strikethrough/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.strikethrough.type,parentSchema:u.oneOf[1].properties.strikethrough,data:p};e===null?e=[d]:e.push(d),t++}}if(a.color!==void 0){let p=a.color;if(typeof p!="string"){const d={instancePath:s+"/color",schemaPath:"#/oneOf/1/properties/color/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.color.type,parentSchema:u.oneOf[1].properties.color,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontSize!==void 0){let p=a.fontSize;if(typeof p=="number"){if(p<=0||isNaN(p)){const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/fontSize",schemaPath:"#/oneOf/1/properties/fontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:u.oneOf[1].properties.fontSize.type,parentSchema:u.oneOf[1].properties.fontSize,data:p};e===null?e=[d]:e.push(d),t++}}if(a.fontFamily!==void 0){let p=a.fontFamily;if(typeof p!="string"){const d={instancePath:s+"/fontFamily",schemaPath:"#/oneOf/1/properties/fontFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.fontFamily.type,parentSchema:u.oneOf[1].properties.fontFamily,data:p};e===null?e=[d]:e.push(d),t++}}if(a.code!==void 0){let p=a.code;if(typeof p!="boolean"){const d={instancePath:s+"/code",schemaPath:"#/oneOf/1/properties/code/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.code.type,parentSchema:u.oneOf[1].properties.code,data:p};e===null?e=[d]:e.push(d),t++}}if(a.lang!==void 0){let p=a.lang;if(typeof p=="string"){if(!Ft.test(p)){const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/lang",schemaPath:"#/oneOf/1/properties/lang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.lang.type,parentSchema:u.oneOf[1].properties.lang,data:p};e===null?e=[d]:e.push(d),t++}}if(a.link!==void 0){let p=a.link;if(typeof p=="string"){if(!Tt.test(p)){const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/pattern",keyword:"pattern",params:{pattern:"^(https?://|mailto:|tel:)\\S+$"},message:'must match pattern "^(https?://|mailto:|tel:)\\S+$"',schema:"^(https?://|mailto:|tel:)\\S+$",parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}else{const d={instancePath:s+"/link",schemaPath:"#/oneOf/1/properties/link/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.link.type,parentSchema:u.oneOf[1].properties.link,data:p};e===null?e=[d]:e.push(d),t++}}if(a.superscript!==void 0){let p=a.superscript;if(typeof p!="boolean"){const d={instancePath:s+"/superscript",schemaPath:"#/oneOf/1/properties/superscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.superscript.type,parentSchema:u.oneOf[1].properties.superscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.subscript!==void 0){let p=a.subscript;if(typeof p!="boolean"){const d={instancePath:s+"/subscript",schemaPath:"#/oneOf/1/properties/subscript/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:u.oneOf[1].properties.subscript.type,parentSchema:u.oneOf[1].properties.subscript,data:p};e===null?e=[d]:e.push(d),t++}}if(a.cite!==void 0){let p=a.cite;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[0].type,parentSchema:u.oneOf[1].properties.cite.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var c=I===t;c&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++){let w=p[P];if(typeof w=="string"){if(pe(w)<1){const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}else{const $={instancePath:s+"/cite/"+P,schemaPath:"#/oneOf/1/properties/cite/oneOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.cite.oneOf[1].items.type,parentSchema:u.oneOf[1].properties.cite.oneOf[1].items,data:w};e===null?e=[$]:e.push($),t++}}}else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.cite.oneOf[1].type,parentSchema:u.oneOf[1].properties.cite.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var c=A===t;if(c&&O?(O=!1,S=[S,1]):c&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/cite",schemaPath:"#/oneOf/1/properties/cite/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.cite.oneOf,parentSchema:u.oneOf[1].properties.cite,data:p};e===null?e=[f]:e.push(f),t++}}if(a.footnote!==void 0){let p=a.footnote;const d=t;let O=!1,S=null;const I=t;if(typeof p=="string"){if(pe(p)<1){const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:u.oneOf[1].properties.footnote.oneOf[0].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[0],data:p};e===null?e=[f]:e.push(f),t++}var y=I===t;y&&(O=!0,S=0);const A=t;if(Array.isArray(p)){if(p.length<1){const P={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[P]:e.push(P),t++}const f=p.length;for(let P=0;P<f;P++)J(p[P],{instancePath:s+"/footnote/"+P,parentData:p,parentDataProperty:P,rootData:v,dynamicAnchors:b})||(e=e===null?J.errors:e.concat(J.errors),t=e.length)}else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array",schema:u.oneOf[1].properties.footnote.oneOf[1].type,parentSchema:u.oneOf[1].properties.footnote.oneOf[1],data:p};e===null?e=[f]:e.push(f),t++}var y=A===t;if(y&&O?(O=!1,S=[S,1]):y&&(O=!0,S=1),O)t=d,e!==null&&(d?e.length=d:e=null);else{const f={instancePath:s+"/footnote",schemaPath:"#/oneOf/1/properties/footnote/oneOf",keyword:"oneOf",params:{passingSchemas:S},message:"must match exactly one schema in oneOf",schema:u.oneOf[1].properties.footnote.oneOf,parentSchema:u.oneOf[1].properties.footnote,data:p};e===null?e=[f]:e.push(f),t++}}}else{const p={instancePath:s,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:u.oneOf[1].type,parentSchema:u.oneOf[1],data:a};e===null?e=[p]:e.push(p),t++}var g=h===t;if(g&&n)n=!1,o=[o,1];else if(g){n=!0,o=1;var l={};l.text=!0,l.bold=!0,l.italic=!0,l.underline=!0,l.strikethrough=!0,l.color=!0,l.fontSize=!0,l.fontFamily=!0,l.code=!0,l.lang=!0,l.link=!0,l.superscript=!0,l.subscript=!0,l.cite=!0,l.footnote=!0}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const p={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:u.oneOf,parentSchema:u,data:a};e===null?e=[p]:e.push(p),t++}return yn.errors=e,m.props=l,t===0}yn.evaluated={dynamicProps:!0,dynamicItems:!1};function Ym(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ym.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Array.isArray(a)){const r=a.length;for(let n=0;n<r;n++)yn(a[n],{instancePath:s+"/"+n,parentData:a,parentDataProperty:n,rootData:v,dynamicAnchors:b})||(e=e===null?yn.errors:e.concat(yn.errors),t=e.length)}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Pd.type,parentSchema:Pd,data:a};e===null?e=[r]:e.push(r),t++}return Ym.errors=e,t===0}Ym.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1},D.definition11=Qm;function Qm(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Qm.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.value===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:rt.required,parentSchema:rt,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="value"||r==="style"||r==="colSpan"||r==="rowSpan"||r==="format")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:rt,data:a};e===null?e=[n]:e.push(n),t++}if(a.value!==void 0&&(Qt(a.value,{instancePath:s+"/value",parentData:a,parentDataProperty:"value",rootData:v,dynamicAnchors:b})||(e=e===null?Qt.errors:e.concat(Qt.errors),t=e.length)),a.style!==void 0&&(wa(a.style,{instancePath:s+"/style",parentData:a,parentDataProperty:"style",rootData:v,dynamicAnchors:b})||(e=e===null?wa.errors:e.concat(wa.errors),t=e.length)),a.colSpan!==void 0){let r=a.colSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:rt.properties.colSpan.type,parentSchema:rt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/colSpan",schemaPath:"#/properties/colSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:rt.properties.colSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.rowSpan!==void 0){let r=a.rowSpan;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:rt.properties.rowSpan.type,parentSchema:rt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<1||isNaN(r))){const n={instancePath:s+"/rowSpan",schemaPath:"#/properties/rowSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:rt.properties.rowSpan,data:r};e===null?e=[n]:e.push(n),t++}}if(a.format!==void 0){let r=a.format;if(typeof r!="string"){const n={instancePath:s+"/format",schemaPath:"#/$defs/NumberFormat/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_t.type,parentSchema:_t,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:rt.type,parentSchema:rt,data:a};e===null?e=[r]:e.push(r),t++}return Qm.errors=e,t===0}Qm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch193=ec;var Gm=j.presentation.$defs.Catalogs.properties.default.oneOf[0];function fn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const R in a)if(!va.call(ws.properties,R)){const C={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:R},message:"must NOT have additional properties",schema:!1,parentSchema:ws,data:a};e===null?e=[C]:e.push(C),t++}if(a.source!==void 0){let R=a.source;if(typeof R=="string"){if(!Ih.test(R)){const C={instancePath:s+"/source",schemaPath:"#/$defs/CatalogSource/pattern",keyword:"pattern",params:{pattern:"^(?:https://[^\\s]+|pkg:[^\\s]+)$"},message:'must match pattern "^(?:https://[^\\s]+|pkg:[^\\s]+)$"',schema:"^(?:https://[^\\s]+|pkg:[^\\s]+)$",parentSchema:rr,data:R};e===null?e=[C]:e.push(C),t++}}else{const C={instancePath:s+"/source",schemaPath:"#/$defs/CatalogSource/type",keyword:"type",params:{type:"string"},message:"must be string",schema:rr.type,parentSchema:rr,data:R};e===null?e=[C]:e.push(C),t++}}if(a.layouts!==void 0){let R=a.layouts;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/layouts",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var r=T===t;if(!r){const U={instancePath:s+"/layouts",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/layouts/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var n=Me===t;G=G||n;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var n=Ke===t;if(G=G||n,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var o=ae===t;if(o){const Z={instancePath:s+"/layouts/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/layouts",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.themes!==void 0){let R=a.themes;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/themes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var i=T===t;if(!i){const U={instancePath:s+"/themes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/themes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var h=Me===t;G=G||h;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var h=Ke===t;if(G=G||h,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var c=ae===t;if(c){const Z={instancePath:s+"/themes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/themes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.colorSchemes!==void 0){let R=a.colorSchemes;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/colorSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var y=T===t;if(!y){const U={instancePath:s+"/colorSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/colorSchemes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var g=Me===t;G=G||g;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var g=Ke===t;if(G=G||g,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var l=ae===t;if(l){const Z={instancePath:s+"/colorSchemes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/colorSchemes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.fontSchemes!==void 0){let R=a.fontSchemes;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/fontSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var p=T===t;if(!p){const U={instancePath:s+"/fontSchemes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/fontSchemes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var d=Me===t;G=G||d;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var d=Ke===t;if(G=G||d,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var O=ae===t;if(O){const Z={instancePath:s+"/fontSchemes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/fontSchemes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.narratives!==void 0){let R=a.narratives;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/narratives",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var S=T===t;if(!S){const U={instancePath:s+"/narratives",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/narratives/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var I=Me===t;G=G||I;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var I=Ke===t;if(G=G||I,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var A=ae===t;if(A){const Z={instancePath:s+"/narratives/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/narratives",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.audiences!==void 0){let R=a.audiences;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/audiences",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var f=T===t;if(!f){const U={instancePath:s+"/audiences",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/audiences/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var P=Me===t;G=G||P;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var P=Ke===t;if(G=G||P,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var w=ae===t;if(w){const Z={instancePath:s+"/audiences/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/audiences",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.purposes!==void 0){let R=a.purposes;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/purposes",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var $=T===t;if(!$){const U={instancePath:s+"/purposes",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/purposes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var F=Me===t;G=G||F;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var F=Ke===t;if(G=G||F,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var z=ae===t;if(z){const Z={instancePath:s+"/purposes/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/purposes",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}if(a.tones!==void 0){let R=a.tones;if(R&&typeof R=="object"&&!Array.isArray(R)){for(const C in R){const T=t;if(typeof C=="string"&&!bt.test(C)){const U={instancePath:s+"/tones",schemaPath:"#/$defs/CatalogRecords/propertyNames/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:K.propertyNames,data:C,propertyName:C};e===null?e=[U]:e.push(U),t++}var L=T===t;if(!L){const U={instancePath:s+"/tones",schemaPath:"#/$defs/CatalogRecords/propertyNames",keyword:"propertyNames",params:{propertyName:C},message:"property name must be valid",schema:K.propertyNames,parentSchema:K,data:R};e===null?e=[U]:e.push(U),t++}}for(const C in R){let T=R[C];if(!(T&&typeof T=="object"&&!Array.isArray(T))){const Z={instancePath:s+"/tones/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.additionalProperties.type,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}const U=t,ae=t,te=t;let G=!1;const Me=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.$schema===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var M=Me===t;G=G||M;const Ke=t;if(T&&typeof T=="object"&&!Array.isArray(T)&&T.id===void 0){const Z={};e===null?e=[Z]:e.push(Z),t++}var M=Ke===t;if(G=G||M,G)t=te,e!==null&&(te?e.length=te:e=null);else{const Z={};e===null?e=[Z]:e.push(Z),t++}var H=ae===t;if(H){const Z={instancePath:s+"/tones/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/CatalogRecords/additionalProperties/not",keyword:"not",params:{},message:"must NOT be valid",schema:K.additionalProperties.not,parentSchema:K.additionalProperties,data:T};e===null?e=[Z]:e.push(Z),t++}else t=U,e!==null&&(U?e.length=U:e=null)}}else{const C={instancePath:s+"/tones",schemaPath:"#/$defs/CatalogRecords/type",keyword:"type",params:{type:"object"},message:"must be object",schema:K.type,parentSchema:K,data:R};e===null?e=[C]:e.push(C),t++}}}else{const R={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ws.type,parentSchema:ws,data:a};e===null?e=[R]:e.push(R),t++}return fn.errors=e,t===0}fn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function ec(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ec.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),fn(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?fn.errors:e.concat(fn.errors),t=e.length);const r=t;let n=!0;const o=t,i=t;let h=!1;const c=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.layouts===void 0){const f={};e===null?e=[f]:e.push(f),t++}var I=c===t;h=h||I;const y=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.themes===void 0){const f={};e===null?e=[f]:e.push(f),t++}var I=y===t;h=h||I;const g=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.colorSchemes===void 0){const f={};e===null?e=[f]:e.push(f),t++}var I=g===t;h=h||I;const l=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.fontSchemes===void 0){const f={};e===null?e=[f]:e.push(f),t++}var I=l===t;h=h||I;const p=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.narratives===void 0){const f={};e===null?e=[f]:e.push(f),t++}var I=p===t;h=h||I;const d=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.audiences===void 0){const f={};e===null?e=[f]:e.push(f),t++}var I=d===t;h=h||I;const O=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.purposes===void 0){const f={};e===null?e=[f]:e.push(f),t++}var I=O===t;h=h||I;const S=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.tones===void 0){const f={};e===null?e=[f]:e.push(f),t++}var I=S===t;if(h=h||I,h)t=i,e!==null&&(i?e.length=i:e=null);else{const f={};e===null?e=[f]:e.push(f),t++}var A=o===t;if(t=r,e!==null&&(r?e.length=r:e=null),A){const f=t;if(a&&typeof a=="object"&&!Array.isArray(a)&&a.source===void 0){const w={instancePath:s,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'",schema:Gm.allOf[1].then.required,parentSchema:Gm.allOf[1].then,data:a};e===null?e=[w]:e.push(w),t++}var A=f===t;n=A}if(!n){const f={instancePath:s,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema',schema:Gm.allOf[1].if,parentSchema:Gm.allOf[1],data:a};e===null?e=[f]:e.push(f),t++}return ec.errors=e,t===0}ec.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch194=tc;var Hd=j.presentation.$defs.Catalogs.properties.default.oneOf[1];function tc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=tc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!==!1){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant",schema:!1,parentSchema:Hd,data:a};e===null?e=[r]:e.push(r),t++}return tc.errors=e,t===0}tc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch195=ac;var vd=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[0];function ac(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ac.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.layouts===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"layouts"},message:"must have required property 'layouts'",schema:vd.required,parentSchema:vd,data:a};e===null?e=[r]:e.push(r),t++}return ac.errors=e,t===0}ac.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch196=sc;var bd=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[1];function sc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=sc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.themes===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"themes"},message:"must have required property 'themes'",schema:bd.required,parentSchema:bd,data:a};e===null?e=[r]:e.push(r),t++}return sc.errors=e,t===0}sc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch197=rc;var Od=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[2];function rc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=rc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.colorSchemes===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"colorSchemes"},message:"must have required property 'colorSchemes'",schema:Od.required,parentSchema:Od,data:a};e===null?e=[r]:e.push(r),t++}return rc.errors=e,t===0}rc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch198=nc;var wd=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[3];function nc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=nc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.fontSchemes===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"fontSchemes"},message:"must have required property 'fontSchemes'",schema:wd.required,parentSchema:wd,data:a};e===null?e=[r]:e.push(r),t++}return nc.errors=e,t===0}nc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch199=oc;var Sd=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[4];function oc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=oc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.narratives===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"narratives"},message:"must have required property 'narratives'",schema:Sd.required,parentSchema:Sd,data:a};e===null?e=[r]:e.push(r),t++}return oc.errors=e,t===0}oc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch200=pc;var kd=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[5];function pc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=pc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.audiences===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"audiences"},message:"must have required property 'audiences'",schema:kd.required,parentSchema:kd,data:a};e===null?e=[r]:e.push(r),t++}return pc.errors=e,t===0}pc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch201=ic;var Ad=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[6];function ic(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=ic.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.purposes===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"purposes"},message:"must have required property 'purposes'",schema:Ad.required,parentSchema:Ad,data:a};e===null?e=[r]:e.push(r),t++}return ic.errors=e,t===0}ic.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch202=mc;var $d=j.presentation.$defs.Catalogs.properties.default.oneOf[0].allOf[1].if.anyOf[7];function mc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=mc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.tones===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"tones"},message:"must have required property 'tones'",schema:$d.required,parentSchema:$d,data:a};e===null?e=[r]:e.push(r),t++}return mc.errors=e,t===0}mc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch203=cc;var Dd=j.presentation.$defs.CatalogRecords.additionalProperties.not.anyOf[0];function cc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=cc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:Dd.required,parentSchema:Dd,data:a};e===null?e=[r]:e.push(r),t++}return cc.errors=e,t===0}cc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch204=hc;var qd=j.presentation.$defs.CatalogRecords.additionalProperties.not.anyOf[1];function hc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=hc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)&&a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:qd.required,parentSchema:qd,data:a};e===null?e=[r]:e.push(r),t++}return hc.errors=e,t===0}hc.evaluated={dynamicProps:!1,dynamicItems:!1},D.root1=lc;var Ne=j.audience,Ot=Gc().fullFormats.uri;function lc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=lc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:Ne.required,parentSchema:Ne,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Ne.required,parentSchema:Ne,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Ne.required,parentSchema:Ne,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.$schema.type,parentSchema:Ne.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-audience/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-audience/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-audience/v1",parentSchema:Ne.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!bt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Ne.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.id.type,parentSchema:Ne.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.name.type,parentSchema:Ne.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.summary.type,parentSchema:Ne.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.description.type,parentSchema:Ne.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.seniority!==void 0){let r=a.seniority;if(typeof r!="string"){const n={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.seniority.type,parentSchema:Ne.properties.seniority,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="ic"||r==="manager"||r==="director"||r==="vp"||r==="c-suite"||r==="mixed")){const n={instancePath:s+"/seniority",schemaPath:"#/properties/seniority/enum",keyword:"enum",params:{allowedValues:Ne.properties.seniority.enum},message:"must be equal to one of the allowed values",schema:Ne.properties.seniority.enum,parentSchema:Ne.properties.seniority,data:r};e===null?e=[n]:e.push(n),t++}}if(a.technicalFluency!==void 0){let r=a.technicalFluency;if(typeof r!="string"){const n={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.technicalFluency.type,parentSchema:Ne.properties.technicalFluency,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="low"||r==="medium"||r==="high"||r==="mixed")){const n={instancePath:s+"/technicalFluency",schemaPath:"#/properties/technicalFluency/enum",keyword:"enum",params:{allowedValues:Ne.properties.technicalFluency.enum},message:"must be equal to one of the allowed values",schema:Ne.properties.technicalFluency.enum,parentSchema:Ne.properties.technicalFluency,data:r};e===null?e=[n]:e.push(n),t++}}if(a.decisionPower!==void 0){let r=a.decisionPower;if(typeof r!="string"){const n={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.decisionPower.type,parentSchema:Ne.properties.decisionPower,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="informational"||r==="advisory"||r==="decision-maker")){const n={instancePath:s+"/decisionPower",schemaPath:"#/properties/decisionPower/enum",keyword:"enum",params:{allowedValues:Ne.properties.decisionPower.enum},message:"must be equal to one of the allowed values",schema:Ne.properties.decisionPower.enum,parentSchema:Ne.properties.decisionPower,data:r};e===null?e=[n]:e.push(n),t++}}if(a.attentionBudgetMinutes!==void 0){let r=a.attentionBudgetMinutes;if(typeof r=="number"){if(r<=0||isNaN(r)){const n={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:Ne.properties.attentionBudgetMinutes,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/attentionBudgetMinutes",schemaPath:"#/properties/attentionBudgetMinutes/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ne.properties.attentionBudgetMinutes.type,parentSchema:Ne.properties.attentionBudgetMinutes,data:r};e===null?e=[n]:e.push(n),t++}}if(a.recommendedNarratives!==void 0){let r=a.recommendedNarratives;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/recommendedNarratives/"+o,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.recommendedNarratives.items.type,parentSchema:Ne.properties.recommendedNarratives.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ne.properties.recommendedNarratives.type,parentSchema:Ne.properties.recommendedNarratives,data:r};e===null?e=[n]:e.push(n),t++}}if(a.recommendedTones!==void 0){let r=a.recommendedTones;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/recommendedTones/"+o,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.recommendedTones.items.type,parentSchema:Ne.properties.recommendedTones.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ne.properties.recommendedTones.type,parentSchema:Ne.properties.recommendedTones,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/tags/"+o,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.tags.items.type,parentSchema:Ne.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ne.properties.tags.type,parentSchema:Ne.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ne.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.preview.properties.src.type,parentSchema:Ne.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ne.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.preview.properties.thumbnailSrc.type,parentSchema:Ne.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ne.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ne.properties.preview.properties.vectorSrc.type,parentSchema:Ne.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ne.properties.preview.type,parentSchema:Ne.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ne.type,parentSchema:Ne,data:a};e===null?e=[r]:e.push(r),t++}return lc.errors=e,t===0}lc.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,seniority:!0,technicalFluency:!0,decisionPower:!0,attentionBudgetMinutes:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},D.root2=dc;var Ye=j.purpose;function dc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=dc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:Ye.required,parentSchema:Ye,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Ye.required,parentSchema:Ye,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Ye.required,parentSchema:Ye,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.$schema.type,parentSchema:Ye.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-purpose/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-purpose/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-purpose/v1",parentSchema:Ye.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!bt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Ye.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.id.type,parentSchema:Ye.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.name.type,parentSchema:Ye.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.summary.type,parentSchema:Ye.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.description.type,parentSchema:Ye.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.outcome!==void 0){let r=a.outcome;if(typeof r!="string"){const n={instancePath:s+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.outcome.type,parentSchema:Ye.properties.outcome,data:r};e===null?e=[n]:e.push(n),t++}}if(a.successCriteria!==void 0){let r=a.successCriteria;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/successCriteria/"+o,schemaPath:"#/properties/successCriteria/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.successCriteria.items.type,parentSchema:Ye.properties.successCriteria.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/successCriteria",schemaPath:"#/properties/successCriteria/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ye.properties.successCriteria.type,parentSchema:Ye.properties.successCriteria,data:r};e===null?e=[n]:e.push(n),t++}}if(a.recommendedNarratives!==void 0){let r=a.recommendedNarratives;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/recommendedNarratives/"+o,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.recommendedNarratives.items.type,parentSchema:Ye.properties.recommendedNarratives.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ye.properties.recommendedNarratives.type,parentSchema:Ye.properties.recommendedNarratives,data:r};e===null?e=[n]:e.push(n),t++}}if(a.recommendedTones!==void 0){let r=a.recommendedTones;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/recommendedTones/"+o,schemaPath:"#/properties/recommendedTones/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.recommendedTones.items.type,parentSchema:Ye.properties.recommendedTones.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/recommendedTones",schemaPath:"#/properties/recommendedTones/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ye.properties.recommendedTones.type,parentSchema:Ye.properties.recommendedTones,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/tags/"+o,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.tags.items.type,parentSchema:Ye.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ye.properties.tags.type,parentSchema:Ye.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ye.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.preview.properties.src.type,parentSchema:Ye.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ye.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.preview.properties.thumbnailSrc.type,parentSchema:Ye.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ye.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ye.properties.preview.properties.vectorSrc.type,parentSchema:Ye.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ye.properties.preview.type,parentSchema:Ye.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ye.type,parentSchema:Ye,data:a};e===null?e=[r]:e.push(r),t++}return dc.errors=e,t===0}dc.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,outcome:!0,successCriteria:!0,recommendedNarratives:!0,recommendedTones:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},D.root3=uc;var We=j.tone;function uc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=uc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:We.required,parentSchema:We,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:We.required,parentSchema:We,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:We.required,parentSchema:We,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:We.properties.$schema.type,parentSchema:We.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-tone/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-tone/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-tone/v1",parentSchema:We.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!bt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:We.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:We.properties.id.type,parentSchema:We.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:We.properties.name.type,parentSchema:We.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:We.properties.summary.type,parentSchema:We.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:We.properties.description.type,parentSchema:We.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.voiceCues!==void 0){let r=a.voiceCues;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/voiceCues/"+o,schemaPath:"#/properties/voiceCues/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:We.properties.voiceCues.items.type,parentSchema:We.properties.voiceCues.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/voiceCues",schemaPath:"#/properties/voiceCues/type",keyword:"type",params:{type:"array"},message:"must be array",schema:We.properties.voiceCues.type,parentSchema:We.properties.voiceCues,data:r};e===null?e=[n]:e.push(n),t++}}if(a.avoid!==void 0){let r=a.avoid;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/avoid/"+o,schemaPath:"#/properties/avoid/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:We.properties.avoid.items.type,parentSchema:We.properties.avoid.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/avoid",schemaPath:"#/properties/avoid/type",keyword:"type",params:{type:"array"},message:"must be array",schema:We.properties.avoid.type,parentSchema:We.properties.avoid,data:r};e===null?e=[n]:e.push(n),t++}}if(a.samplePhrases!==void 0){let r=a.samplePhrases;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/samplePhrases/"+o,schemaPath:"#/properties/samplePhrases/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:We.properties.samplePhrases.items.type,parentSchema:We.properties.samplePhrases.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/samplePhrases",schemaPath:"#/properties/samplePhrases/type",keyword:"type",params:{type:"array"},message:"must be array",schema:We.properties.samplePhrases.type,parentSchema:We.properties.samplePhrases,data:r};e===null?e=[n]:e.push(n),t++}}if(a.recommendedNarratives!==void 0){let r=a.recommendedNarratives;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/recommendedNarratives/"+o,schemaPath:"#/properties/recommendedNarratives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:We.properties.recommendedNarratives.items.type,parentSchema:We.properties.recommendedNarratives.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/recommendedNarratives",schemaPath:"#/properties/recommendedNarratives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:We.properties.recommendedNarratives.type,parentSchema:We.properties.recommendedNarratives,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/tags/"+o,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:We.properties.tags.items.type,parentSchema:We.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:We.properties.tags.type,parentSchema:We.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:We.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:We.properties.preview.properties.src.type,parentSchema:We.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:We.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:We.properties.preview.properties.thumbnailSrc.type,parentSchema:We.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:We.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:We.properties.preview.properties.vectorSrc.type,parentSchema:We.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:We.properties.preview.type,parentSchema:We.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:We.type,parentSchema:We,data:a};e===null?e=[r]:e.push(r),t++}return uc.errors=e,t===0}uc.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,voiceCues:!0,avoid:!0,samplePhrases:!0,recommendedNarratives:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},D.root4=yc;var he=j.theme,ys=j.theme.$defs.ThemeBackground,Bn=j.theme.$defs.ThemeBackgroundSlot;function gn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=gn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.type===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'",schema:ys.required,parentSchema:ys,data:a};e===null?e=[r]:e.push(r),t++}if(a.slot===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"slot"},message:"must have required property 'slot'",schema:ys.required,parentSchema:ys,data:a};e===null?e=[r]:e.push(r),t++}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ys.properties.type.type,parentSchema:ys.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="theme"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"theme"},message:"must be equal to constant",schema:"theme",parentSchema:ys.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.slot!==void 0){let r=a.slot;if(typeof r!="string"){const n={instancePath:s+"/slot",schemaPath:"#/$defs/ThemeBackgroundSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Bn.type,parentSchema:Bn,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2")){const n={instancePath:s+"/slot",schemaPath:"#/$defs/ThemeBackgroundSlot/enum",keyword:"enum",params:{allowedValues:Bn.enum},message:"must be equal to one of the allowed values",schema:Bn.enum,parentSchema:Bn,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ys.type,parentSchema:ys,data:a};e===null?e=[r]:e.push(r),t++}return gn.errors=e,t===0}gn.evaluated={props:{type:!0,slot:!0},dynamicProps:!1,dynamicItems:!1};var fa=j.theme.$defs.ThemeVariant;function Pn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Pn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.background===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"background"},message:"must have required property 'background'",schema:oe.required,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="background"||r==="accents")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:oe,data:a};e===null?e=[n]:e.push(n),t++}if(a.background!==void 0){let r=a.background;if(typeof r!="string"){const n={instancePath:s+"/background",schemaPath:"#/$defs/ColorVariantSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.type,parentSchema:Ie,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2"||r==="accent1"||r==="accent2"||r==="accent3"||r==="accent4"||r==="accent5"||r==="accent6")){const n={instancePath:s+"/background",schemaPath:"#/$defs/ColorVariantSlot/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values",schema:Ie.enum,parentSchema:Ie,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accents!==void 0){let r=a.accents;if(Array.isArray(r)){if(r.length>6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items",schema:6,parentSchema:oe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}if(r.length<6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/minItems",keyword:"minItems",params:{limit:6},message:"must NOT have fewer than 6 items",schema:6,parentSchema:oe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.accents.items.type,parentSchema:oe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="accent1"||c==="accent2"||c==="accent3"||c==="accent4"||c==="accent5"||c==="accent6")){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/enum",keyword:"enum",params:{allowedValues:oe.properties.accents.items.enum},message:"must be equal to one of the allowed values",schema:oe.properties.accents.items.enum,parentSchema:oe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}}let o=r.length,i;if(o>1){const h={};for(;o--;){let c=r[o];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/accents",schemaPath:"#/properties/accents/uniqueItems",keyword:"uniqueItems",params:{i:o,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+o+" are identical)",schema:!0,parentSchema:oe.properties.accents,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=o}}}}else{const n={instancePath:s+"/accents",schemaPath:"#/properties/accents/type",keyword:"type",params:{type:"array"},message:"must be array",schema:oe.properties.accents.type,parentSchema:oe.properties.accents,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:oe.type,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}return Pn.errors=e,t===0}Pn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function vn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.id===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:fa.required,parentSchema:fa,data:a};e===null?e=[n]:e.push(n),t++}if(a.name===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:fa.required,parentSchema:fa,data:a};e===null?e=[n]:e.push(n),t++}if(a.variant===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"variant"},message:"must have required property 'variant'",schema:fa.required,parentSchema:fa,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="id"||n==="name"||n==="variant")){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:fa,data:a};e===null?e=[o]:e.push(o),t++}if(a.id!==void 0){let n=a.id;if(typeof n=="string"){if(!bt.test(n)){const o={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:fa.properties.id,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fa.properties.id.type,parentSchema:fa.properties.id,data:n};e===null?e=[o]:e.push(o),t++}}if(a.name!==void 0){let n=a.name;if(typeof n!="string"){const o={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:fa.properties.name.type,parentSchema:fa.properties.name,data:n};e===null?e=[o]:e.push(o),t++}}if(a.variant!==void 0){let n=a.variant;const o=t;let i=!1,h=null;const c=t;if(typeof n!="string"){const g={instancePath:s+"/variant",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.type,parentSchema:Ie,data:n};e===null?e=[g]:e.push(g),t++}if(!(n==="light1"||n==="light2"||n==="dark1"||n==="dark2"||n==="accent1"||n==="accent2"||n==="accent3"||n==="accent4"||n==="accent5"||n==="accent6")){const g={instancePath:s+"/variant",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values",schema:Ie.enum,parentSchema:Ie,data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;Pn(n,{instancePath:s+"/variant",parentData:a,parentDataProperty:"variant",rootData:v,dynamicAnchors:b})||(e=e===null?Pn.errors:e.concat(Pn.errors),t=e.length);var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=o,e!==null&&(o?e.length=o:e=null);else{const g={instancePath:s+"/variant",schemaPath:"#/properties/variant/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:fa.properties.variant.oneOf,parentSchema:fa.properties.variant,data:n};e===null?e=[g]:e.push(g),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:fa.type,parentSchema:fa,data:a};e===null?e=[n]:e.push(n),t++}return vn.errors=e,t===0}vn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function yc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=yc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:he.required,parentSchema:he,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:he.required,parentSchema:he,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:he.required,parentSchema:he,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.$schema.type,parentSchema:he.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-theme/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-theme/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-theme/v1",parentSchema:he.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!bt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:he.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.id.type,parentSchema:he.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.name.type,parentSchema:he.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.summary.type,parentSchema:he.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.description.type,parentSchema:he.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.colorScheme!==void 0){let r=a.colorScheme;if(typeof r=="string"){if(!Bt.test(r)){const n={instancePath:s+"/colorScheme",schemaPath:"#/properties/colorScheme/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:he.properties.colorScheme,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/colorScheme",schemaPath:"#/properties/colorScheme/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.colorScheme.type,parentSchema:he.properties.colorScheme,data:r};e===null?e=[n]:e.push(n),t++}}if(a.fontScheme!==void 0){let r=a.fontScheme;if(typeof r=="string"){if(!Bt.test(r)){const n={instancePath:s+"/fontScheme",schemaPath:"#/properties/fontScheme/pattern",keyword:"pattern",params:{pattern:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"},message:'must match pattern "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$"',schema:"^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",parentSchema:he.properties.fontScheme,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/fontScheme",schemaPath:"#/properties/fontScheme/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.fontScheme.type,parentSchema:he.properties.fontScheme,data:r};e===null?e=[n]:e.push(n),t++}}if(a.background!==void 0&&(gn(a.background,{instancePath:s+"/background",parentData:a,parentDataProperty:"background",rootData:v,dynamicAnchors:b})||(e=e===null?gn.errors:e.concat(gn.errors),t=e.length)),a.variants!==void 0){let r=a.variants;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++)vn(r[o],{instancePath:s+"/variants/"+o,parentData:r,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?vn.errors:e.concat(vn.errors),t=e.length)}else{const n={instancePath:s+"/variants",schemaPath:"#/properties/variants/type",keyword:"type",params:{type:"array"},message:"must be array",schema:he.properties.variants.type,parentSchema:he.properties.variants,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dimensions!==void 0){let r=a.dimensions;if(typeof r!="string"){const n={instancePath:s+"/dimensions",schemaPath:"#/properties/dimensions/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.dimensions.type,parentSchema:he.properties.dimensions,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="16:9"||r==="4:3"||r==="16:10"||r==="1:1"||r==="4:5"||r==="9:16"||r==="letter"||r==="a4"||r==="widescreen"||r==="standard")){const n={instancePath:s+"/dimensions",schemaPath:"#/properties/dimensions/enum",keyword:"enum",params:{allowedValues:he.properties.dimensions.enum},message:"must be equal to one of the allowed values",schema:he.properties.dimensions.enum,parentSchema:he.properties.dimensions,data:r};e===null?e=[n]:e.push(n),t++}}if(a.design!==void 0){let r=a.design;if(r&&typeof r=="object"&&!Array.isArray(r)){for(const n in r)if(!(n==="titleAlignment"||n==="contentAlignment"||n==="contentBox"||n==="contentDirection"||n==="imageFit"||n==="listBullet"||n==="listStyle")){const o={instancePath:s+"/design",schemaPath:"#/properties/design/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:he.properties.design,data:r};e===null?e=[o]:e.push(o),t++}if(r.titleAlignment!==void 0){let n=r.titleAlignment;if(typeof n!="string"){const o={instancePath:s+"/design/titleAlignment",schemaPath:"#/properties/design/properties/titleAlignment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.design.properties.titleAlignment.type,parentSchema:he.properties.design.properties.titleAlignment,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="left"||n==="center"||n==="right")){const o={instancePath:s+"/design/titleAlignment",schemaPath:"#/properties/design/properties/titleAlignment/enum",keyword:"enum",params:{allowedValues:he.properties.design.properties.titleAlignment.enum},message:"must be equal to one of the allowed values",schema:he.properties.design.properties.titleAlignment.enum,parentSchema:he.properties.design.properties.titleAlignment,data:n};e===null?e=[o]:e.push(o),t++}}if(r.contentAlignment!==void 0){let n=r.contentAlignment;if(typeof n!="string"){const o={instancePath:s+"/design/contentAlignment",schemaPath:"#/properties/design/properties/contentAlignment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.design.properties.contentAlignment.type,parentSchema:he.properties.design.properties.contentAlignment,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="left"||n==="center"||n==="right")){const o={instancePath:s+"/design/contentAlignment",schemaPath:"#/properties/design/properties/contentAlignment/enum",keyword:"enum",params:{allowedValues:he.properties.design.properties.contentAlignment.enum},message:"must be equal to one of the allowed values",schema:he.properties.design.properties.contentAlignment.enum,parentSchema:he.properties.design.properties.contentAlignment,data:n};e===null?e=[o]:e.push(o),t++}}if(r.contentBox!==void 0){let n=r.contentBox;if(typeof n!="boolean"){const o={instancePath:s+"/design/contentBox",schemaPath:"#/properties/design/properties/contentBox/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:he.properties.design.properties.contentBox.type,parentSchema:he.properties.design.properties.contentBox,data:n};e===null?e=[o]:e.push(o),t++}}if(r.contentDirection!==void 0){let n=r.contentDirection;if(typeof n!="string"){const o={instancePath:s+"/design/contentDirection",schemaPath:"#/properties/design/properties/contentDirection/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.design.properties.contentDirection.type,parentSchema:he.properties.design.properties.contentDirection,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="horizontal"||n==="vertical")){const o={instancePath:s+"/design/contentDirection",schemaPath:"#/properties/design/properties/contentDirection/enum",keyword:"enum",params:{allowedValues:he.properties.design.properties.contentDirection.enum},message:"must be equal to one of the allowed values",schema:he.properties.design.properties.contentDirection.enum,parentSchema:he.properties.design.properties.contentDirection,data:n};e===null?e=[o]:e.push(o),t++}}if(r.imageFit!==void 0){let n=r.imageFit;if(typeof n!="string"){const o={instancePath:s+"/design/imageFit",schemaPath:"#/properties/design/properties/imageFit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.design.properties.imageFit.type,parentSchema:he.properties.design.properties.imageFit,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="cover"||n==="contain"||n==="stretch"||n==="auto")){const o={instancePath:s+"/design/imageFit",schemaPath:"#/properties/design/properties/imageFit/enum",keyword:"enum",params:{allowedValues:he.properties.design.properties.imageFit.enum},message:"must be equal to one of the allowed values",schema:he.properties.design.properties.imageFit.enum,parentSchema:he.properties.design.properties.imageFit,data:n};e===null?e=[o]:e.push(o),t++}}if(r.listBullet!==void 0){let n=r.listBullet;if(typeof n!="string"){const o={instancePath:s+"/design/listBullet",schemaPath:"#/properties/design/properties/listBullet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.design.properties.listBullet.type,parentSchema:he.properties.design.properties.listBullet,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="character"||n==="image"||n==="none")){const o={instancePath:s+"/design/listBullet",schemaPath:"#/properties/design/properties/listBullet/enum",keyword:"enum",params:{allowedValues:he.properties.design.properties.listBullet.enum},message:"must be equal to one of the allowed values",schema:he.properties.design.properties.listBullet.enum,parentSchema:he.properties.design.properties.listBullet,data:n};e===null?e=[o]:e.push(o),t++}}if(r.listStyle!==void 0){let n=r.listStyle;if(typeof n!="string"){const o={instancePath:s+"/design/listStyle",schemaPath:"#/properties/design/properties/listStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.design.properties.listStyle.type,parentSchema:he.properties.design.properties.listStyle,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="stack"||n==="rows")){const o={instancePath:s+"/design/listStyle",schemaPath:"#/properties/design/properties/listStyle/enum",keyword:"enum",params:{allowedValues:he.properties.design.properties.listStyle.enum},message:"must be equal to one of the allowed values",schema:he.properties.design.properties.listStyle.enum,parentSchema:he.properties.design.properties.listStyle,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/design",schemaPath:"#/properties/design/type",keyword:"type",params:{type:"object"},message:"must be object",schema:he.properties.design.type,parentSchema:he.properties.design,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/tags/"+o,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.tags.items.type,parentSchema:he.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:he.properties.tags.type,parentSchema:he.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:he.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.preview.properties.src.type,parentSchema:he.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:he.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.preview.properties.thumbnailSrc.type,parentSchema:he.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:he.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:he.properties.preview.properties.vectorSrc.type,parentSchema:he.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:he.properties.preview.type,parentSchema:he.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:he.type,parentSchema:he,data:a};e===null?e=[r]:e.push(r),t++}return yc.errors=e,t===0}yc.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,colorScheme:!0,fontScheme:!0,background:!0,variants:!0,dimensions:!0,design:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},D.branch205=fc,j.theme.$defs.ThemeVariant.properties.variant.oneOf[0];function fc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=fc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.type,parentSchema:Ie,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="light1"||a==="light2"||a==="dark1"||a==="dark2"||a==="accent1"||a==="accent2"||a==="accent3"||a==="accent4"||a==="accent5"||a==="accent6")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values",schema:Ie.enum,parentSchema:Ie,data:a};e===null?e=[r]:e.push(r),t++}return fc.errors=e,t===0}fc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch206=gc,j.theme.$defs.ThemeVariant.properties.variant.oneOf[1];function bn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=bn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.background===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"background"},message:"must have required property 'background'",schema:oe.required,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="background"||r==="accents")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:oe,data:a};e===null?e=[n]:e.push(n),t++}if(a.background!==void 0){let r=a.background;if(typeof r!="string"){const n={instancePath:s+"/background",schemaPath:"#/$defs/ColorVariantSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.type,parentSchema:Ie,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2"||r==="accent1"||r==="accent2"||r==="accent3"||r==="accent4"||r==="accent5"||r==="accent6")){const n={instancePath:s+"/background",schemaPath:"#/$defs/ColorVariantSlot/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values",schema:Ie.enum,parentSchema:Ie,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accents!==void 0){let r=a.accents;if(Array.isArray(r)){if(r.length>6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items",schema:6,parentSchema:oe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}if(r.length<6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/minItems",keyword:"minItems",params:{limit:6},message:"must NOT have fewer than 6 items",schema:6,parentSchema:oe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.accents.items.type,parentSchema:oe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="accent1"||c==="accent2"||c==="accent3"||c==="accent4"||c==="accent5"||c==="accent6")){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/enum",keyword:"enum",params:{allowedValues:oe.properties.accents.items.enum},message:"must be equal to one of the allowed values",schema:oe.properties.accents.items.enum,parentSchema:oe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}}let o=r.length,i;if(o>1){const h={};for(;o--;){let c=r[o];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/accents",schemaPath:"#/properties/accents/uniqueItems",keyword:"uniqueItems",params:{i:o,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+o+" are identical)",schema:!0,parentSchema:oe.properties.accents,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=o}}}}else{const n={instancePath:s+"/accents",schemaPath:"#/properties/accents/type",keyword:"type",params:{type:"array"},message:"must be array",schema:oe.properties.accents.type,parentSchema:oe.properties.accents,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:oe.type,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}return bn.errors=e,t===0}bn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function gc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=gc.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),bn(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?bn.errors:e.concat(bn.errors),t=e.length),gc.errors=e,t===0}gc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.root5=Pc;var je=j.layout,Kt=j.layout.$defs.Composition,xd=new RegExp("^x-","u"),st=j.layout.$defs.DesignHints,La=j.layout.$defs.LayoutVariantRole;function On(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=On.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.background===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"background"},message:"must have required property 'background'",schema:oe.required,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="background"||r==="accents")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:oe,data:a};e===null?e=[n]:e.push(n),t++}if(a.background!==void 0){let r=a.background;if(typeof r!="string"){const n={instancePath:s+"/background",schemaPath:"#/$defs/ColorVariantSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.type,parentSchema:Ie,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2"||r==="accent1"||r==="accent2"||r==="accent3"||r==="accent4"||r==="accent5"||r==="accent6")){const n={instancePath:s+"/background",schemaPath:"#/$defs/ColorVariantSlot/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values",schema:Ie.enum,parentSchema:Ie,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accents!==void 0){let r=a.accents;if(Array.isArray(r)){if(r.length>6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items",schema:6,parentSchema:oe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}if(r.length<6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/minItems",keyword:"minItems",params:{limit:6},message:"must NOT have fewer than 6 items",schema:6,parentSchema:oe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.accents.items.type,parentSchema:oe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="accent1"||c==="accent2"||c==="accent3"||c==="accent4"||c==="accent5"||c==="accent6")){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/enum",keyword:"enum",params:{allowedValues:oe.properties.accents.items.enum},message:"must be equal to one of the allowed values",schema:oe.properties.accents.items.enum,parentSchema:oe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}}let o=r.length,i;if(o>1){const h={};for(;o--;){let c=r[o];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/accents",schemaPath:"#/properties/accents/uniqueItems",keyword:"uniqueItems",params:{i:o,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+o+" are identical)",schema:!0,parentSchema:oe.properties.accents,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=o}}}}else{const n={instancePath:s+"/accents",schemaPath:"#/properties/accents/type",keyword:"type",params:{type:"array"},message:"must be array",schema:oe.properties.accents.type,parentSchema:oe.properties.accents,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:oe.type,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}return On.errors=e,t===0}On.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function wn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=wn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const n in a)if(!va.call(st.properties,n)){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:st,data:a};e===null?e=[o]:e.push(o),t++}if(a.titleAlignment!==void 0){let n=a.titleAlignment;if(typeof n!="string"){const o={instancePath:s+"/titleAlignment",schemaPath:"#/properties/titleAlignment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.titleAlignment.type,parentSchema:st.properties.titleAlignment,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="left"||n==="center"||n==="right")){const o={instancePath:s+"/titleAlignment",schemaPath:"#/properties/titleAlignment/enum",keyword:"enum",params:{allowedValues:st.properties.titleAlignment.enum},message:"must be equal to one of the allowed values",schema:st.properties.titleAlignment.enum,parentSchema:st.properties.titleAlignment,data:n};e===null?e=[o]:e.push(o),t++}}if(a.contentAlignment!==void 0){let n=a.contentAlignment;if(typeof n!="string"){const o={instancePath:s+"/contentAlignment",schemaPath:"#/properties/contentAlignment/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.contentAlignment.type,parentSchema:st.properties.contentAlignment,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="left"||n==="center"||n==="right")){const o={instancePath:s+"/contentAlignment",schemaPath:"#/properties/contentAlignment/enum",keyword:"enum",params:{allowedValues:st.properties.contentAlignment.enum},message:"must be equal to one of the allowed values",schema:st.properties.contentAlignment.enum,parentSchema:st.properties.contentAlignment,data:n};e===null?e=[o]:e.push(o),t++}}if(a.contentBox!==void 0){let n=a.contentBox;if(typeof n!="boolean"){const o={instancePath:s+"/contentBox",schemaPath:"#/properties/contentBox/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:st.properties.contentBox.type,parentSchema:st.properties.contentBox,data:n};e===null?e=[o]:e.push(o),t++}}if(a.contentDirection!==void 0){let n=a.contentDirection;if(typeof n!="string"){const o={instancePath:s+"/contentDirection",schemaPath:"#/properties/contentDirection/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.contentDirection.type,parentSchema:st.properties.contentDirection,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="horizontal"||n==="vertical")){const o={instancePath:s+"/contentDirection",schemaPath:"#/properties/contentDirection/enum",keyword:"enum",params:{allowedValues:st.properties.contentDirection.enum},message:"must be equal to one of the allowed values",schema:st.properties.contentDirection.enum,parentSchema:st.properties.contentDirection,data:n};e===null?e=[o]:e.push(o),t++}}if(a.chartPrimary!==void 0){let n=a.chartPrimary;if(typeof n!="string"){const o={instancePath:s+"/chartPrimary",schemaPath:"#/properties/chartPrimary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.chartPrimary.type,parentSchema:st.properties.chartPrimary,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="none"||n==="top"||n==="bottom"||n==="left"||n==="right")){const o={instancePath:s+"/chartPrimary",schemaPath:"#/properties/chartPrimary/enum",keyword:"enum",params:{allowedValues:st.properties.chartPrimary.enum},message:"must be equal to one of the allowed values",schema:st.properties.chartPrimary.enum,parentSchema:st.properties.chartPrimary,data:n};e===null?e=[o]:e.push(o),t++}}if(a.imageFit!==void 0){let n=a.imageFit;if(typeof n!="string"){const o={instancePath:s+"/imageFit",schemaPath:"#/properties/imageFit/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.imageFit.type,parentSchema:st.properties.imageFit,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="cover"||n==="contain"||n==="stretch"||n==="auto")){const o={instancePath:s+"/imageFit",schemaPath:"#/properties/imageFit/enum",keyword:"enum",params:{allowedValues:st.properties.imageFit.enum},message:"must be equal to one of the allowed values",schema:st.properties.imageFit.enum,parentSchema:st.properties.imageFit,data:n};e===null?e=[o]:e.push(o),t++}}if(a.listBullet!==void 0){let n=a.listBullet;if(typeof n!="string"){const o={instancePath:s+"/listBullet",schemaPath:"#/properties/listBullet/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.listBullet.type,parentSchema:st.properties.listBullet,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="character"||n==="image"||n==="none")){const o={instancePath:s+"/listBullet",schemaPath:"#/properties/listBullet/enum",keyword:"enum",params:{allowedValues:st.properties.listBullet.enum},message:"must be equal to one of the allowed values",schema:st.properties.listBullet.enum,parentSchema:st.properties.listBullet,data:n};e===null?e=[o]:e.push(o),t++}}if(a.listStyle!==void 0){let n=a.listStyle;if(typeof n!="string"){const o={instancePath:s+"/listStyle",schemaPath:"#/properties/listStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:st.properties.listStyle.type,parentSchema:st.properties.listStyle,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="stack"||n==="rows")){const o={instancePath:s+"/listStyle",schemaPath:"#/properties/listStyle/enum",keyword:"enum",params:{allowedValues:st.properties.listStyle.enum},message:"must be equal to one of the allowed values",schema:st.properties.listStyle.enum,parentSchema:st.properties.listStyle,data:n};e===null?e=[o]:e.push(o),t++}}if(a.mirror!==void 0){let n=a.mirror;if(typeof n!="boolean"){const o={instancePath:s+"/mirror",schemaPath:"#/properties/mirror/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:st.properties.mirror.type,parentSchema:st.properties.mirror,data:n};e===null?e=[o]:e.push(o),t++}}if(a.variant!==void 0){let n=a.variant;const o=t;let i=!1,h=null;const c=t;if(typeof n!="string"){const g={instancePath:s+"/variant",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.type,parentSchema:Ie,data:n};e===null?e=[g]:e.push(g),t++}if(!(n==="light1"||n==="light2"||n==="dark1"||n==="dark2"||n==="accent1"||n==="accent2"||n==="accent3"||n==="accent4"||n==="accent5"||n==="accent6")){const g={instancePath:s+"/variant",schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values",schema:Ie.enum,parentSchema:Ie,data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;On(n,{instancePath:s+"/variant",parentData:a,parentDataProperty:"variant",rootData:v,dynamicAnchors:b})||(e=e===null?On.errors:e.concat(On.errors),t=e.length);var r=y===t;if(r&&i)i=!1,h=[h,1];else{r&&(i=!0,h=1);const g=t;if(typeof n!="string"){const p={instancePath:s+"/variant",schemaPath:"#/$defs/LayoutVariantRole/type",keyword:"type",params:{type:"string"},message:"must be string",schema:La.type,parentSchema:La,data:n};e===null?e=[p]:e.push(p),t++}if(!(n==="surface"||n==="brand")){const p={instancePath:s+"/variant",schemaPath:"#/$defs/LayoutVariantRole/enum",keyword:"enum",params:{allowedValues:La.enum},message:"must be equal to one of the allowed values",schema:La.enum,parentSchema:La,data:n};e===null?e=[p]:e.push(p),t++}var r=g===t;r&&i?(i=!1,h=[h,2]):r&&(i=!0,h=2)}if(i)t=o,e!==null&&(o?e.length=o:e=null);else{const g={instancePath:s+"/variant",schemaPath:"#/properties/variant/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:st.properties.variant.oneOf,parentSchema:st.properties.variant,data:n};e===null?e=[g]:e.push(g),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:st.type,parentSchema:st,data:a};e===null?e=[n]:e.push(n),t++}return wn.errors=e,t===0}wn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Nd=j.layout.$defs.RegionEntry,wt=j.layout.$defs.HeadingRegion,it=j.layout.$defs.RegionSize;function Sn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Sn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:wt.required,parentSchema:wt,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="name"||n==="size"||n==="anchor"||n==="rule")){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:wt,data:a};e===null?e=[o]:e.push(o),t++}if(a.name!==void 0){let n=a.name;if(typeof n!="string"){const o={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:wt.properties.name.type,parentSchema:wt.properties.name,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="title"||n==="subtitle")){const o={instancePath:s+"/name",schemaPath:"#/properties/name/enum",keyword:"enum",params:{allowedValues:wt.properties.name.enum},message:"must be equal to one of the allowed values",schema:wt.properties.name.enum,parentSchema:wt.properties.name,data:n};e===null?e=[o]:e.push(o),t++}}if(a.size!==void 0){let n=a.size;const o=t;let i=!1,h=null;const c=t;if(typeof n=="number"){if(n>100||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:it.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}if(n<=0||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:it.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number",schema:it.oneOf[0].type,parentSchema:it.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(n!=="auto"){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/1/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:it.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=o,e!==null&&(o?e.length=o:e=null);else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:it.oneOf,parentSchema:it,data:n};e===null?e=[g]:e.push(g),t++}}if(a.anchor!==void 0){let n=a.anchor;if(typeof n!="string"){const o={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:wt.properties.anchor.type,parentSchema:wt.properties.anchor,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="top"||n==="middle"||n==="bottom")){const o={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/enum",keyword:"enum",params:{allowedValues:wt.properties.anchor.enum},message:"must be equal to one of the allowed values",schema:wt.properties.anchor.enum,parentSchema:wt.properties.anchor,data:n};e===null?e=[o]:e.push(o),t++}}if(a.rule!==void 0){let n=a.rule;if(typeof n!="boolean"){const o={instancePath:s+"/rule",schemaPath:"#/properties/rule/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:wt.properties.rule.type,parentSchema:wt.properties.rule,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:wt.type,parentSchema:wt,data:a};e===null?e=[n]:e.push(n),t++}return Sn.errors=e,t===0}Sn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var ee=j.layout.$defs.Region;function kn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=kn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ee.required,parentSchema:ee,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!va.call(ee.properties,i)){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:ee,data:a};e===null?e=[h]:e.push(h),t++}if(a.name!==void 0){let i=a.name;const h=t,c=t;if(!(i==="title"||i==="subtitle")){const y={};e===null?e=[y]:e.push(y),t++}var r=c===t;if(r){const y={instancePath:s+"/name",schemaPath:"#/properties/name/not",keyword:"not",params:{},message:"must NOT be valid",schema:ee.properties.name.not,parentSchema:ee.properties.name,data:i};e===null?e=[y]:e.push(y),t++}else t=h,e!==null&&(h?e.length=h:e=null);if(typeof i=="string"){if(!bt.test(i)){const y={instancePath:s+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:ee.properties.name,data:i};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.name.type,parentSchema:ee.properties.name,data:i};e===null?e=[y]:e.push(y),t++}}if(a.size!==void 0){let i=a.size;const h=t;let c=!1,y=null;const g=t;if(typeof i=="number"){if(i>100||isNaN(i)){const p={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:it.oneOf[0],data:i};e===null?e=[p]:e.push(p),t++}if(i<=0||isNaN(i)){const p={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:it.oneOf[0],data:i};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number",schema:it.oneOf[0].type,parentSchema:it.oneOf[0],data:i};e===null?e=[p]:e.push(p),t++}var n=g===t;n&&(c=!0,y=0);const l=t;if(i!=="auto"){const p={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/1/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:it.oneOf[1],data:i};e===null?e=[p]:e.push(p),t++}var n=l===t;if(n&&c?(c=!1,y=[y,1]):n&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const p={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:it.oneOf,parentSchema:it,data:i};e===null?e=[p]:e.push(p),t++}}if(a.accepts!==void 0){let i=a.accepts;if(Array.isArray(i)){if(i.length<1){const g={instancePath:s+"/accepts",schemaPath:"#/properties/accepts/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ee.properties.accepts,data:i};e===null?e=[g]:e.push(g),t++}const h=i.length;for(let g=0;g<h;g++){let l=i[g];if(typeof l!="string"){const p={instancePath:s+"/accepts/"+g,schemaPath:"#/properties/accepts/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.accepts.items.type,parentSchema:ee.properties.accepts.items,data:l};e===null?e=[p]:e.push(p),t++}if(!(l==="text"||l==="list"||l==="image"||l==="video"||l==="chart"||l==="table"||l==="code"||l==="metric"||l==="quote"||l==="timeline"||l==="diagram"||l==="group")){const p={instancePath:s+"/accepts/"+g,schemaPath:"#/properties/accepts/items/enum",keyword:"enum",params:{allowedValues:ee.properties.accepts.items.enum},message:"must be equal to one of the allowed values",schema:ee.properties.accepts.items.enum,parentSchema:ee.properties.accepts.items,data:l};e===null?e=[p]:e.push(p),t++}}let c=i.length,y;if(c>1){const g={};for(;c--;){let l=i[c];if(typeof l=="string"){if(typeof g[l]=="number"){y=g[l];const p={instancePath:s+"/accepts",schemaPath:"#/properties/accepts/uniqueItems",keyword:"uniqueItems",params:{i:c,j:y},message:"must NOT have duplicate items (items ## "+y+" and "+c+" are identical)",schema:!0,parentSchema:ee.properties.accepts,data:i};e===null?e=[p]:e.push(p),t++;break}g[l]=c}}}}else{const h={instancePath:s+"/accepts",schemaPath:"#/properties/accepts/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ee.properties.accepts.type,parentSchema:ee.properties.accepts,data:i};e===null?e=[h]:e.push(h),t++}}if(a.role!==void 0){let i=a.role;if(typeof i!="string"){const h={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.role.type,parentSchema:ee.properties.role,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="primary"||i==="secondary"||i==="media"||i==="supporting")){const h={instancePath:s+"/role",schemaPath:"#/properties/role/enum",keyword:"enum",params:{allowedValues:ee.properties.role.enum},message:"must be equal to one of the allowed values",schema:ee.properties.role.enum,parentSchema:ee.properties.role,data:i};e===null?e=[h]:e.push(h),t++}}if(a.flow!==void 0){let i=a.flow;if(typeof i!="string"){const h={instancePath:s+"/flow",schemaPath:"#/properties/flow/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.flow.type,parentSchema:ee.properties.flow,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="none"||i==="grid"||i==="column"||i==="auto")){const h={instancePath:s+"/flow",schemaPath:"#/properties/flow/enum",keyword:"enum",params:{allowedValues:ee.properties.flow.enum},message:"must be equal to one of the allowed values",schema:ee.properties.flow.enum,parentSchema:ee.properties.flow,data:i};e===null?e=[h]:e.push(h),t++}}if(a.max!==void 0){let i=a.max;if(!(typeof i=="number"&&!(i%1)&&!isNaN(i))){const h={instancePath:s+"/max",schemaPath:"#/properties/max/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:ee.properties.max.type,parentSchema:ee.properties.max,data:i};e===null?e=[h]:e.push(h),t++}if(typeof i=="number"){if(i>12||isNaN(i)){const h={instancePath:s+"/max",schemaPath:"#/properties/max/maximum",keyword:"maximum",params:{comparison:"<=",limit:12},message:"must be <= 12",schema:12,parentSchema:ee.properties.max,data:i};e===null?e=[h]:e.push(h),t++}if(i<1||isNaN(i)){const h={instancePath:s+"/max",schemaPath:"#/properties/max/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:ee.properties.max,data:i};e===null?e=[h]:e.push(h),t++}}}if(a.bleed!==void 0){let i=a.bleed;if(typeof i!="boolean"){const h={instancePath:s+"/bleed",schemaPath:"#/properties/bleed/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ee.properties.bleed.type,parentSchema:ee.properties.bleed,data:i};e===null?e=[h]:e.push(h),t++}}if(a.listColumns!==void 0){let i=a.listColumns;const h=t;let c=!1,y=null;const g=t;if(i!=="auto"){const p={instancePath:s+"/listColumns",schemaPath:"#/properties/listColumns/oneOf/0/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:ee.properties.listColumns.oneOf[0],data:i};e===null?e=[p]:e.push(p),t++}var o=g===t;o&&(c=!0,y=0);const l=t;if(i!==1){const p={instancePath:s+"/listColumns",schemaPath:"#/properties/listColumns/oneOf/1/const",keyword:"const",params:{allowedValue:1},message:"must be equal to constant",schema:1,parentSchema:ee.properties.listColumns.oneOf[1],data:i};e===null?e=[p]:e.push(p),t++}var o=l===t;if(o&&c?(c=!1,y=[y,1]):o&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const p={instancePath:s+"/listColumns",schemaPath:"#/properties/listColumns/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:ee.properties.listColumns.oneOf,parentSchema:ee.properties.listColumns,data:i};e===null?e=[p]:e.push(p),t++}}if(a.metrics!==void 0){let i=a.metrics;if(typeof i!="string"){const h={instancePath:s+"/metrics",schemaPath:"#/properties/metrics/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.metrics.type,parentSchema:ee.properties.metrics,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="stack"||i==="tile")){const h={instancePath:s+"/metrics",schemaPath:"#/properties/metrics/enum",keyword:"enum",params:{allowedValues:ee.properties.metrics.enum},message:"must be equal to one of the allowed values",schema:ee.properties.metrics.enum,parentSchema:ee.properties.metrics,data:i};e===null?e=[h]:e.push(h),t++}}if(a.sequence!==void 0){let i=a.sequence;if(typeof i!="string"){const h={instancePath:s+"/sequence",schemaPath:"#/properties/sequence/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.sequence.type,parentSchema:ee.properties.sequence,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="steps"||i==="numbered")){const h={instancePath:s+"/sequence",schemaPath:"#/properties/sequence/enum",keyword:"enum",params:{allowedValues:ee.properties.sequence.enum},message:"must be equal to one of the allowed values",schema:ee.properties.sequence.enum,parentSchema:ee.properties.sequence,data:i};e===null?e=[h]:e.push(h),t++}}if(a.anchor!==void 0){let i=a.anchor;if(typeof i!="string"){const h={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.anchor.type,parentSchema:ee.properties.anchor,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="top"||i==="middle"||i==="bottom")){const h={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/enum",keyword:"enum",params:{allowedValues:ee.properties.anchor.enum},message:"must be equal to one of the allowed values",schema:ee.properties.anchor.enum,parentSchema:ee.properties.anchor,data:i};e===null?e=[h]:e.push(h),t++}}if(a.empty!==void 0){let i=a.empty;if(typeof i!="string"){const h={instancePath:s+"/empty",schemaPath:"#/properties/empty/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.empty.type,parentSchema:ee.properties.empty,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="collapse"||i==="keep")){const h={instancePath:s+"/empty",schemaPath:"#/properties/empty/enum",keyword:"enum",params:{allowedValues:ee.properties.empty.enum},message:"must be equal to one of the allowed values",schema:ee.properties.empty.enum,parentSchema:ee.properties.empty,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ee.type,parentSchema:ee,data:a};e===null?e=[i]:e.push(i),t++}return kn.errors=e,t===0}kn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var mt=j.layout.$defs.Split,Ph={validate:Ra};function An(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=An.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.direction===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"direction"},message:"must have required property 'direction'",schema:mt.required,parentSchema:mt,data:a};e===null?e=[n]:e.push(n),t++}if(a.regions===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"regions"},message:"must have required property 'regions'",schema:mt.required,parentSchema:mt,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="direction"||n==="regions"||n==="size"||n==="anchor")){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:mt,data:a};e===null?e=[o]:e.push(o),t++}if(a.direction!==void 0){let n=a.direction;if(typeof n!="string"){const o={instancePath:s+"/direction",schemaPath:"#/properties/direction/type",keyword:"type",params:{type:"string"},message:"must be string",schema:mt.properties.direction.type,parentSchema:mt.properties.direction,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="row"||n==="column")){const o={instancePath:s+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues:mt.properties.direction.enum},message:"must be equal to one of the allowed values",schema:mt.properties.direction.enum,parentSchema:mt.properties.direction,data:n};e===null?e=[o]:e.push(o),t++}}if(a.regions!==void 0){let n=a.regions;if(Array.isArray(n)){if(n.length>12){const i={instancePath:s+"/regions",schemaPath:"#/properties/regions/maxItems",keyword:"maxItems",params:{limit:12},message:"must NOT have more than 12 items",schema:12,parentSchema:mt.properties.regions,data:n};e===null?e=[i]:e.push(i),t++}if(n.length<1){const i={instancePath:s+"/regions",schemaPath:"#/properties/regions/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:mt.properties.regions,data:n};e===null?e=[i]:e.push(i),t++}const o=n.length;for(let i=0;i<o;i++)Ph.validate(n[i],{instancePath:s+"/regions/"+i,parentData:n,parentDataProperty:i,rootData:v,dynamicAnchors:b})||(e=e===null?Ph.validate.errors:e.concat(Ph.validate.errors),t=e.length)}else{const o={instancePath:s+"/regions",schemaPath:"#/properties/regions/type",keyword:"type",params:{type:"array"},message:"must be array",schema:mt.properties.regions.type,parentSchema:mt.properties.regions,data:n};e===null?e=[o]:e.push(o),t++}}if(a.size!==void 0){let n=a.size;const o=t;let i=!1,h=null;const c=t;if(typeof n=="number"){if(n>100||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:it.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}if(n<=0||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:it.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number",schema:it.oneOf[0].type,parentSchema:it.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(n!=="auto"){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/1/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:it.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=o,e!==null&&(o?e.length=o:e=null);else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:it.oneOf,parentSchema:it,data:n};e===null?e=[g]:e.push(g),t++}}if(a.anchor!==void 0){let n=a.anchor;if(typeof n!="string"){const o={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:mt.properties.anchor.type,parentSchema:mt.properties.anchor,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="top"||n==="middle"||n==="bottom")){const o={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/enum",keyword:"enum",params:{allowedValues:mt.properties.anchor.enum},message:"must be equal to one of the allowed values",schema:mt.properties.anchor.enum,parentSchema:mt.properties.anchor,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:mt.type,parentSchema:mt,data:a};e===null?e=[n]:e.push(n),t++}return An.errors=e,t===0}An.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Ra(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ra.evaluated;m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0);const r=t;let n=!1,o=null;const i=t;Sn(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Sn.errors:e.concat(Sn.errors),t=e.length);var y=i===t;if(y){n=!0,o=0;var h=!0}const c=t;kn(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?kn.errors:e.concat(kn.errors),t=e.length);var y=c===t;if(y&&n)n=!1,o=[o,1];else{y&&(n=!0,o=1,h!==!0&&(h=!0));const g=t;An(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?An.errors:e.concat(An.errors),t=e.length);var y=g===t;y&&n?(n=!1,o=[o,2]):y&&(n=!0,o=2,h!==!0&&(h=!0))}if(n)t=r,e!==null&&(r?e.length=r:e=null);else{const g={instancePath:s,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:o},message:"must match exactly one schema in oneOf",schema:Nd.oneOf,parentSchema:Nd,data:a};e===null?e=[g]:e.push(g),t++}return Ra.errors=e,m.props=h,t===0}Ra.evaluated={dynamicProps:!0,dynamicItems:!1};function Pc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Pc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:je.required,parentSchema:je,data:a};e===null?e=[n]:e.push(n),t++}if(a.id===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:je.required,parentSchema:je,data:a};e===null?e=[n]:e.push(n),t++}if(a.name===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:je.required,parentSchema:je,data:a};e===null?e=[n]:e.push(n),t++}if(a.regions===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"regions"},message:"must have required property 'regions'",schema:je.required,parentSchema:je,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(va.call(je.properties,n)||xd.test(n))){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:je,data:a};e===null?e=[o]:e.push(o),t++}if(a.$schema!==void 0){let n=a.$schema;if(typeof n!="string"){const o={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.properties.$schema.type,parentSchema:je.properties.$schema,data:n};e===null?e=[o]:e.push(o),t++}if(n!=="https://openpresentation.org/schema/opf-layout/v2"){const o={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-layout/v2"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-layout/v2",parentSchema:je.properties.$schema,data:n};e===null?e=[o]:e.push(o),t++}}if(a.id!==void 0){let n=a.id;const o=t,i=t;if(n!=="auto"){const h={};e===null?e=[h]:e.push(h),t++}var r=i===t;if(r){const h={instancePath:s+"/id",schemaPath:"#/properties/id/not",keyword:"not",params:{},message:"must NOT be valid",schema:je.properties.id.not,parentSchema:je.properties.id,data:n};e===null?e=[h]:e.push(h),t++}else t=o,e!==null&&(o?e.length=o:e=null);if(typeof n=="string"){if(!bt.test(n)){const h={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:je.properties.id,data:n};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.properties.id.type,parentSchema:je.properties.id,data:n};e===null?e=[h]:e.push(h),t++}}if(a.name!==void 0){let n=a.name;if(typeof n!="string"){const o={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.properties.name.type,parentSchema:je.properties.name,data:n};e===null?e=[o]:e.push(o),t++}}if(a.summary!==void 0){let n=a.summary;if(typeof n!="string"){const o={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.properties.summary.type,parentSchema:je.properties.summary,data:n};e===null?e=[o]:e.push(o),t++}}if(a.description!==void 0){let n=a.description;if(typeof n!="string"){const o={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.properties.description.type,parentSchema:je.properties.description,data:n};e===null?e=[o]:e.push(o),t++}}if(a.design!==void 0&&(wn(a.design,{instancePath:s+"/design",parentData:a,parentDataProperty:"design",rootData:v,dynamicAnchors:b})||(e=e===null?wn.errors:e.concat(wn.errors),t=e.length)),a.direction!==void 0){let n=a.direction;if(typeof n!="string"){const o={instancePath:s+"/direction",schemaPath:"#/properties/direction/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.properties.direction.type,parentSchema:je.properties.direction,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="row"||n==="column")){const o={instancePath:s+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues:je.properties.direction.enum},message:"must be equal to one of the allowed values",schema:je.properties.direction.enum,parentSchema:je.properties.direction,data:n};e===null?e=[o]:e.push(o),t++}}if(a.anchor!==void 0){let n=a.anchor;if(typeof n!="string"){const o={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.properties.anchor.type,parentSchema:je.properties.anchor,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="top"||n==="middle"||n==="bottom")){const o={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/enum",keyword:"enum",params:{allowedValues:je.properties.anchor.enum},message:"must be equal to one of the allowed values",schema:je.properties.anchor.enum,parentSchema:je.properties.anchor,data:n};e===null?e=[o]:e.push(o),t++}}if(a.regions!==void 0){let n=a.regions;if(Array.isArray(n)){if(n.length>12){const i={instancePath:s+"/regions",schemaPath:"#/properties/regions/maxItems",keyword:"maxItems",params:{limit:12},message:"must NOT have more than 12 items",schema:12,parentSchema:je.properties.regions,data:n};e===null?e=[i]:e.push(i),t++}if(n.length<1){const i={instancePath:s+"/regions",schemaPath:"#/properties/regions/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:je.properties.regions,data:n};e===null?e=[i]:e.push(i),t++}const o=n.length;for(let i=0;i<o;i++)Ra(n[i],{instancePath:s+"/regions/"+i,parentData:n,parentDataProperty:i,rootData:v,dynamicAnchors:b})||(e=e===null?Ra.errors:e.concat(Ra.errors),t=e.length)}else{const o={instancePath:s+"/regions",schemaPath:"#/properties/regions/type",keyword:"type",params:{type:"array"},message:"must be array",schema:je.properties.regions.type,parentSchema:je.properties.regions,data:n};e===null?e=[o]:e.push(o),t++}}if(a.overflowRegion!==void 0){let n=a.overflowRegion;if(typeof n=="string"){if(!bt.test(n)){const o={instancePath:s+"/overflowRegion",schemaPath:"#/properties/overflowRegion/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:je.properties.overflowRegion,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/overflowRegion",schemaPath:"#/properties/overflowRegion/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.properties.overflowRegion.type,parentSchema:je.properties.overflowRegion,data:n};e===null?e=[o]:e.push(o),t++}}if(a.tags!==void 0){let n=a.tags;if(Array.isArray(n)){const o=n.length;for(let i=0;i<o;i++){let h=n[i];if(typeof h!="string"){const c={instancePath:s+"/tags/"+i,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.properties.tags.items.type,parentSchema:je.properties.tags.items,data:h};e===null?e=[c]:e.push(c),t++}}}else{const o={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:je.properties.tags.type,parentSchema:je.properties.tags,data:n};e===null?e=[o]:e.push(o),t++}}if(a.preview!==void 0){let n=a.preview;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.src!==void 0){let o=n.src;if(typeof o=="string"){if(!Ot(o)){const i={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:je.properties.preview.properties.src,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.properties.preview.properties.src.type,parentSchema:je.properties.preview.properties.src,data:o};e===null?e=[i]:e.push(i),t++}}if(n.thumbnailSrc!==void 0){let o=n.thumbnailSrc;if(typeof o=="string"){if(!Ot(o)){const i={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:je.properties.preview.properties.thumbnailSrc,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.properties.preview.properties.thumbnailSrc.type,parentSchema:je.properties.preview.properties.thumbnailSrc,data:o};e===null?e=[i]:e.push(i),t++}}if(n.vectorSrc!==void 0){let o=n.vectorSrc;if(typeof o=="string"){if(!Ot(o)){const i={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:je.properties.preview.properties.vectorSrc,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:je.properties.preview.properties.vectorSrc.type,parentSchema:je.properties.preview.properties.vectorSrc,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:je.properties.preview.type,parentSchema:je.properties.preview,data:n};e===null?e=[o]:e.push(o),t++}}if(a.composition!==void 0){let n=a.composition;if(!(n&&typeof n=="object"&&!Array.isArray(n))){const o={instancePath:s+"/composition",schemaPath:"#/properties/composition/type",keyword:"type",params:{type:"object"},message:"must be object",schema:je.properties.composition.type,parentSchema:je.properties.composition,data:n};e===null?e=[o]:e.push(o),t++}if(n&&typeof n=="object"&&!Array.isArray(n)){for(const o in n)if(!(o==="gap"||o==="padding"||o==="minFontSize"||o==="overflow")){const i={instancePath:s+"/composition",schemaPath:"#/$defs/Composition/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:Kt,data:n};e===null?e=[i]:e.push(i),t++}if(n.gap!==void 0){let o=n.gap;if(typeof o=="number"){if(o>.1||isNaN(o)){const i={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/maximum",keyword:"maximum",params:{comparison:"<=",limit:.1},message:"must be <= 0.1",schema:.1,parentSchema:Kt.properties.gap,data:o};e===null?e=[i]:e.push(i),t++}if(o<0||isNaN(o)){const i={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Kt.properties.gap,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/composition/gap",schemaPath:"#/$defs/Composition/properties/gap/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Kt.properties.gap.type,parentSchema:Kt.properties.gap,data:o};e===null?e=[i]:e.push(i),t++}}if(n.padding!==void 0){let o=n.padding;if(typeof o=="number"){if(o>.2||isNaN(o)){const i={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/maximum",keyword:"maximum",params:{comparison:"<=",limit:.2},message:"must be <= 0.2",schema:.2,parentSchema:Kt.properties.padding,data:o};e===null?e=[i]:e.push(i),t++}if(o<0||isNaN(o)){const i={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Kt.properties.padding,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/composition/padding",schemaPath:"#/$defs/Composition/properties/padding/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Kt.properties.padding.type,parentSchema:Kt.properties.padding,data:o};e===null?e=[i]:e.push(i),t++}}if(n.minFontSize!==void 0){let o=n.minFontSize;if(typeof o=="number"){if(o>32||isNaN(o)){const i={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/maximum",keyword:"maximum",params:{comparison:"<=",limit:32},message:"must be <= 32",schema:32,parentSchema:Kt.properties.minFontSize,data:o};e===null?e=[i]:e.push(i),t++}if(o<8||isNaN(o)){const i={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/minimum",keyword:"minimum",params:{comparison:">=",limit:8},message:"must be >= 8",schema:8,parentSchema:Kt.properties.minFontSize,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/composition/minFontSize",schemaPath:"#/$defs/Composition/properties/minFontSize/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Kt.properties.minFontSize.type,parentSchema:Kt.properties.minFontSize,data:o};e===null?e=[i]:e.push(i),t++}}if(n.overflow!==void 0){let o=n.overflow;if(typeof o!="string"){const i={instancePath:s+"/composition/overflow",schemaPath:"#/$defs/Composition/properties/overflow/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Kt.properties.overflow.type,parentSchema:Kt.properties.overflow,data:o};e===null?e=[i]:e.push(i),t++}if(!(o==="warn"||o==="error")){const i={instancePath:s+"/composition/overflow",schemaPath:"#/$defs/Composition/properties/overflow/enum",keyword:"enum",params:{allowedValues:Kt.properties.overflow.enum},message:"must be equal to one of the allowed values",schema:Kt.properties.overflow.enum,parentSchema:Kt.properties.overflow,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s+"/composition",schemaPath:"#/$defs/Composition/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Kt.type,parentSchema:Kt,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:je.type,parentSchema:je,data:a};e===null?e=[n]:e.push(n),t++}return Pc.errors=e,t===0}Pc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch207=vc,j.layout.$defs.RegionEntry.oneOf[0];function $n(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$n.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:wt.required,parentSchema:wt,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="name"||n==="size"||n==="anchor"||n==="rule")){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:wt,data:a};e===null?e=[o]:e.push(o),t++}if(a.name!==void 0){let n=a.name;if(typeof n!="string"){const o={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:wt.properties.name.type,parentSchema:wt.properties.name,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="title"||n==="subtitle")){const o={instancePath:s+"/name",schemaPath:"#/properties/name/enum",keyword:"enum",params:{allowedValues:wt.properties.name.enum},message:"must be equal to one of the allowed values",schema:wt.properties.name.enum,parentSchema:wt.properties.name,data:n};e===null?e=[o]:e.push(o),t++}}if(a.size!==void 0){let n=a.size;const o=t;let i=!1,h=null;const c=t;if(typeof n=="number"){if(n>100||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:it.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}if(n<=0||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:it.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number",schema:it.oneOf[0].type,parentSchema:it.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(n!=="auto"){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/1/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:it.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=o,e!==null&&(o?e.length=o:e=null);else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:it.oneOf,parentSchema:it,data:n};e===null?e=[g]:e.push(g),t++}}if(a.anchor!==void 0){let n=a.anchor;if(typeof n!="string"){const o={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:wt.properties.anchor.type,parentSchema:wt.properties.anchor,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="top"||n==="middle"||n==="bottom")){const o={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/enum",keyword:"enum",params:{allowedValues:wt.properties.anchor.enum},message:"must be equal to one of the allowed values",schema:wt.properties.anchor.enum,parentSchema:wt.properties.anchor,data:n};e===null?e=[o]:e.push(o),t++}}if(a.rule!==void 0){let n=a.rule;if(typeof n!="boolean"){const o={instancePath:s+"/rule",schemaPath:"#/properties/rule/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:wt.properties.rule.type,parentSchema:wt.properties.rule,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:wt.type,parentSchema:wt,data:a};e===null?e=[n]:e.push(n),t++}return $n.errors=e,t===0}$n.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function vc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=vc.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),$n(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?$n.errors:e.concat($n.errors),t=e.length),vc.errors=e,t===0}vc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch208=bc,j.layout.$defs.RegionEntry.oneOf[1];function Dn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Dn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.name===void 0){const i={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:ee.required,parentSchema:ee,data:a};e===null?e=[i]:e.push(i),t++}for(const i in a)if(!va.call(ee.properties,i)){const h={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:ee,data:a};e===null?e=[h]:e.push(h),t++}if(a.name!==void 0){let i=a.name;const h=t,c=t;if(!(i==="title"||i==="subtitle")){const y={};e===null?e=[y]:e.push(y),t++}var r=c===t;if(r){const y={instancePath:s+"/name",schemaPath:"#/properties/name/not",keyword:"not",params:{},message:"must NOT be valid",schema:ee.properties.name.not,parentSchema:ee.properties.name,data:i};e===null?e=[y]:e.push(y),t++}else t=h,e!==null&&(h?e.length=h:e=null);if(typeof i=="string"){if(!bt.test(i)){const y={instancePath:s+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:ee.properties.name,data:i};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.name.type,parentSchema:ee.properties.name,data:i};e===null?e=[y]:e.push(y),t++}}if(a.size!==void 0){let i=a.size;const h=t;let c=!1,y=null;const g=t;if(typeof i=="number"){if(i>100||isNaN(i)){const p={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:it.oneOf[0],data:i};e===null?e=[p]:e.push(p),t++}if(i<=0||isNaN(i)){const p={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:it.oneOf[0],data:i};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number",schema:it.oneOf[0].type,parentSchema:it.oneOf[0],data:i};e===null?e=[p]:e.push(p),t++}var n=g===t;n&&(c=!0,y=0);const l=t;if(i!=="auto"){const p={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/1/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:it.oneOf[1],data:i};e===null?e=[p]:e.push(p),t++}var n=l===t;if(n&&c?(c=!1,y=[y,1]):n&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const p={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:it.oneOf,parentSchema:it,data:i};e===null?e=[p]:e.push(p),t++}}if(a.accepts!==void 0){let i=a.accepts;if(Array.isArray(i)){if(i.length<1){const g={instancePath:s+"/accepts",schemaPath:"#/properties/accepts/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:ee.properties.accepts,data:i};e===null?e=[g]:e.push(g),t++}const h=i.length;for(let g=0;g<h;g++){let l=i[g];if(typeof l!="string"){const p={instancePath:s+"/accepts/"+g,schemaPath:"#/properties/accepts/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.accepts.items.type,parentSchema:ee.properties.accepts.items,data:l};e===null?e=[p]:e.push(p),t++}if(!(l==="text"||l==="list"||l==="image"||l==="video"||l==="chart"||l==="table"||l==="code"||l==="metric"||l==="quote"||l==="timeline"||l==="diagram"||l==="group")){const p={instancePath:s+"/accepts/"+g,schemaPath:"#/properties/accepts/items/enum",keyword:"enum",params:{allowedValues:ee.properties.accepts.items.enum},message:"must be equal to one of the allowed values",schema:ee.properties.accepts.items.enum,parentSchema:ee.properties.accepts.items,data:l};e===null?e=[p]:e.push(p),t++}}let c=i.length,y;if(c>1){const g={};for(;c--;){let l=i[c];if(typeof l=="string"){if(typeof g[l]=="number"){y=g[l];const p={instancePath:s+"/accepts",schemaPath:"#/properties/accepts/uniqueItems",keyword:"uniqueItems",params:{i:c,j:y},message:"must NOT have duplicate items (items ## "+y+" and "+c+" are identical)",schema:!0,parentSchema:ee.properties.accepts,data:i};e===null?e=[p]:e.push(p),t++;break}g[l]=c}}}}else{const h={instancePath:s+"/accepts",schemaPath:"#/properties/accepts/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ee.properties.accepts.type,parentSchema:ee.properties.accepts,data:i};e===null?e=[h]:e.push(h),t++}}if(a.role!==void 0){let i=a.role;if(typeof i!="string"){const h={instancePath:s+"/role",schemaPath:"#/properties/role/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.role.type,parentSchema:ee.properties.role,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="primary"||i==="secondary"||i==="media"||i==="supporting")){const h={instancePath:s+"/role",schemaPath:"#/properties/role/enum",keyword:"enum",params:{allowedValues:ee.properties.role.enum},message:"must be equal to one of the allowed values",schema:ee.properties.role.enum,parentSchema:ee.properties.role,data:i};e===null?e=[h]:e.push(h),t++}}if(a.flow!==void 0){let i=a.flow;if(typeof i!="string"){const h={instancePath:s+"/flow",schemaPath:"#/properties/flow/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.flow.type,parentSchema:ee.properties.flow,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="none"||i==="grid"||i==="column"||i==="auto")){const h={instancePath:s+"/flow",schemaPath:"#/properties/flow/enum",keyword:"enum",params:{allowedValues:ee.properties.flow.enum},message:"must be equal to one of the allowed values",schema:ee.properties.flow.enum,parentSchema:ee.properties.flow,data:i};e===null?e=[h]:e.push(h),t++}}if(a.max!==void 0){let i=a.max;if(!(typeof i=="number"&&!(i%1)&&!isNaN(i))){const h={instancePath:s+"/max",schemaPath:"#/properties/max/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:ee.properties.max.type,parentSchema:ee.properties.max,data:i};e===null?e=[h]:e.push(h),t++}if(typeof i=="number"){if(i>12||isNaN(i)){const h={instancePath:s+"/max",schemaPath:"#/properties/max/maximum",keyword:"maximum",params:{comparison:"<=",limit:12},message:"must be <= 12",schema:12,parentSchema:ee.properties.max,data:i};e===null?e=[h]:e.push(h),t++}if(i<1||isNaN(i)){const h={instancePath:s+"/max",schemaPath:"#/properties/max/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:ee.properties.max,data:i};e===null?e=[h]:e.push(h),t++}}}if(a.bleed!==void 0){let i=a.bleed;if(typeof i!="boolean"){const h={instancePath:s+"/bleed",schemaPath:"#/properties/bleed/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ee.properties.bleed.type,parentSchema:ee.properties.bleed,data:i};e===null?e=[h]:e.push(h),t++}}if(a.listColumns!==void 0){let i=a.listColumns;const h=t;let c=!1,y=null;const g=t;if(i!=="auto"){const p={instancePath:s+"/listColumns",schemaPath:"#/properties/listColumns/oneOf/0/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:ee.properties.listColumns.oneOf[0],data:i};e===null?e=[p]:e.push(p),t++}var o=g===t;o&&(c=!0,y=0);const l=t;if(i!==1){const p={instancePath:s+"/listColumns",schemaPath:"#/properties/listColumns/oneOf/1/const",keyword:"const",params:{allowedValue:1},message:"must be equal to constant",schema:1,parentSchema:ee.properties.listColumns.oneOf[1],data:i};e===null?e=[p]:e.push(p),t++}var o=l===t;if(o&&c?(c=!1,y=[y,1]):o&&(c=!0,y=1),c)t=h,e!==null&&(h?e.length=h:e=null);else{const p={instancePath:s+"/listColumns",schemaPath:"#/properties/listColumns/oneOf",keyword:"oneOf",params:{passingSchemas:y},message:"must match exactly one schema in oneOf",schema:ee.properties.listColumns.oneOf,parentSchema:ee.properties.listColumns,data:i};e===null?e=[p]:e.push(p),t++}}if(a.metrics!==void 0){let i=a.metrics;if(typeof i!="string"){const h={instancePath:s+"/metrics",schemaPath:"#/properties/metrics/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.metrics.type,parentSchema:ee.properties.metrics,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="stack"||i==="tile")){const h={instancePath:s+"/metrics",schemaPath:"#/properties/metrics/enum",keyword:"enum",params:{allowedValues:ee.properties.metrics.enum},message:"must be equal to one of the allowed values",schema:ee.properties.metrics.enum,parentSchema:ee.properties.metrics,data:i};e===null?e=[h]:e.push(h),t++}}if(a.sequence!==void 0){let i=a.sequence;if(typeof i!="string"){const h={instancePath:s+"/sequence",schemaPath:"#/properties/sequence/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.sequence.type,parentSchema:ee.properties.sequence,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="steps"||i==="numbered")){const h={instancePath:s+"/sequence",schemaPath:"#/properties/sequence/enum",keyword:"enum",params:{allowedValues:ee.properties.sequence.enum},message:"must be equal to one of the allowed values",schema:ee.properties.sequence.enum,parentSchema:ee.properties.sequence,data:i};e===null?e=[h]:e.push(h),t++}}if(a.anchor!==void 0){let i=a.anchor;if(typeof i!="string"){const h={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.anchor.type,parentSchema:ee.properties.anchor,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="top"||i==="middle"||i==="bottom")){const h={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/enum",keyword:"enum",params:{allowedValues:ee.properties.anchor.enum},message:"must be equal to one of the allowed values",schema:ee.properties.anchor.enum,parentSchema:ee.properties.anchor,data:i};e===null?e=[h]:e.push(h),t++}}if(a.empty!==void 0){let i=a.empty;if(typeof i!="string"){const h={instancePath:s+"/empty",schemaPath:"#/properties/empty/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ee.properties.empty.type,parentSchema:ee.properties.empty,data:i};e===null?e=[h]:e.push(h),t++}if(!(i==="collapse"||i==="keep")){const h={instancePath:s+"/empty",schemaPath:"#/properties/empty/enum",keyword:"enum",params:{allowedValues:ee.properties.empty.enum},message:"must be equal to one of the allowed values",schema:ee.properties.empty.enum,parentSchema:ee.properties.empty,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ee.type,parentSchema:ee,data:a};e===null?e=[i]:e.push(i),t++}return Dn.errors=e,t===0}Dn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function bc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=bc.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),Dn(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?Dn.errors:e.concat(Dn.errors),t=e.length),bc.errors=e,t===0}bc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch209=Oc,j.layout.$defs.RegionEntry.oneOf[2];function qn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=qn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.direction===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"direction"},message:"must have required property 'direction'",schema:mt.required,parentSchema:mt,data:a};e===null?e=[n]:e.push(n),t++}if(a.regions===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"regions"},message:"must have required property 'regions'",schema:mt.required,parentSchema:mt,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!(n==="direction"||n==="regions"||n==="size"||n==="anchor")){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:mt,data:a};e===null?e=[o]:e.push(o),t++}if(a.direction!==void 0){let n=a.direction;if(typeof n!="string"){const o={instancePath:s+"/direction",schemaPath:"#/properties/direction/type",keyword:"type",params:{type:"string"},message:"must be string",schema:mt.properties.direction.type,parentSchema:mt.properties.direction,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="row"||n==="column")){const o={instancePath:s+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues:mt.properties.direction.enum},message:"must be equal to one of the allowed values",schema:mt.properties.direction.enum,parentSchema:mt.properties.direction,data:n};e===null?e=[o]:e.push(o),t++}}if(a.regions!==void 0){let n=a.regions;if(Array.isArray(n)){if(n.length>12){const i={instancePath:s+"/regions",schemaPath:"#/properties/regions/maxItems",keyword:"maxItems",params:{limit:12},message:"must NOT have more than 12 items",schema:12,parentSchema:mt.properties.regions,data:n};e===null?e=[i]:e.push(i),t++}if(n.length<1){const i={instancePath:s+"/regions",schemaPath:"#/properties/regions/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:mt.properties.regions,data:n};e===null?e=[i]:e.push(i),t++}const o=n.length;for(let i=0;i<o;i++)Ra(n[i],{instancePath:s+"/regions/"+i,parentData:n,parentDataProperty:i,rootData:v,dynamicAnchors:b})||(e=e===null?Ra.errors:e.concat(Ra.errors),t=e.length)}else{const o={instancePath:s+"/regions",schemaPath:"#/properties/regions/type",keyword:"type",params:{type:"array"},message:"must be array",schema:mt.properties.regions.type,parentSchema:mt.properties.regions,data:n};e===null?e=[o]:e.push(o),t++}}if(a.size!==void 0){let n=a.size;const o=t;let i=!1,h=null;const c=t;if(typeof n=="number"){if(n>100||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:it.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}if(n<=0||isNaN(n)){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:it.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number",schema:it.oneOf[0].type,parentSchema:it.oneOf[0],data:n};e===null?e=[g]:e.push(g),t++}var r=c===t;r&&(i=!0,h=0);const y=t;if(n!=="auto"){const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf/1/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:it.oneOf[1],data:n};e===null?e=[g]:e.push(g),t++}var r=y===t;if(r&&i?(i=!1,h=[h,1]):r&&(i=!0,h=1),i)t=o,e!==null&&(o?e.length=o:e=null);else{const g={instancePath:s+"/size",schemaPath:"#/$defs/RegionSize/oneOf",keyword:"oneOf",params:{passingSchemas:h},message:"must match exactly one schema in oneOf",schema:it.oneOf,parentSchema:it,data:n};e===null?e=[g]:e.push(g),t++}}if(a.anchor!==void 0){let n=a.anchor;if(typeof n!="string"){const o={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:mt.properties.anchor.type,parentSchema:mt.properties.anchor,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="top"||n==="middle"||n==="bottom")){const o={instancePath:s+"/anchor",schemaPath:"#/properties/anchor/enum",keyword:"enum",params:{allowedValues:mt.properties.anchor.enum},message:"must be equal to one of the allowed values",schema:mt.properties.anchor.enum,parentSchema:mt.properties.anchor,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:mt.type,parentSchema:mt,data:a};e===null?e=[n]:e.push(n),t++}return qn.errors=e,t===0}qn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Oc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Oc.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),qn(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?qn.errors:e.concat(qn.errors),t=e.length),Oc.errors=e,t===0}Oc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch210=Sc;var wc=j.layout.$defs.RegionSize.oneOf[0];function Sc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Sc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="number"){if(a>100||isNaN(a)){const r={instancePath:s,schemaPath:"#/maximum",keyword:"maximum",params:{comparison:"<=",limit:100},message:"must be <= 100",schema:100,parentSchema:wc,data:a};e===null?e=[r]:e.push(r),t++}if(a<=0||isNaN(a)){const r={instancePath:s,schemaPath:"#/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:wc,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"number"},message:"must be number",schema:wc.type,parentSchema:wc,data:a};e===null?e=[r]:e.push(r),t++}return Sc.errors=e,t===0}Sc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch211=kc;var _d=j.layout.$defs.RegionSize.oneOf[1];function kc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=kc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!=="auto"){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:_d,data:a};e===null?e=[r]:e.push(r),t++}return kc.errors=e,t===0}kc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch212=Ac;var Ud=j.layout.$defs.Region.properties.listColumns.oneOf[0];function Ac(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ac.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!=="auto"){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:"auto"},message:"must be equal to constant",schema:"auto",parentSchema:Ud,data:a};e===null?e=[r]:e.push(r),t++}return Ac.errors=e,t===0}Ac.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch213=$c;var Ed=j.layout.$defs.Region.properties.listColumns.oneOf[1];function $c(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=$c.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a!==1){const r={instancePath:s,schemaPath:"#/const",keyword:"const",params:{allowedValue:1},message:"must be equal to constant",schema:1,parentSchema:Ed,data:a};e===null?e=[r]:e.push(r),t++}return $c.errors=e,t===0}$c.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch214=Dc,j.layout.$defs.DesignHints.properties.variant.oneOf[0];function Dc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Dc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.type,parentSchema:Ie,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="light1"||a==="light2"||a==="dark1"||a==="dark2"||a==="accent1"||a==="accent2"||a==="accent3"||a==="accent4"||a==="accent5"||a==="accent6")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf/v1#/$defs/ColorVariantSlot/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values",schema:Ie.enum,parentSchema:Ie,data:a};e===null?e=[r]:e.push(r),t++}return Dc.errors=e,t===0}Dc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch215=qc,j.layout.$defs.DesignHints.properties.variant.oneOf[1];function xn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.background===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"background"},message:"must have required property 'background'",schema:oe.required,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="background"||r==="accents")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:oe,data:a};e===null?e=[n]:e.push(n),t++}if(a.background!==void 0){let r=a.background;if(typeof r!="string"){const n={instancePath:s+"/background",schemaPath:"#/$defs/ColorVariantSlot/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ie.type,parentSchema:Ie,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="light1"||r==="light2"||r==="dark1"||r==="dark2"||r==="accent1"||r==="accent2"||r==="accent3"||r==="accent4"||r==="accent5"||r==="accent6")){const n={instancePath:s+"/background",schemaPath:"#/$defs/ColorVariantSlot/enum",keyword:"enum",params:{allowedValues:Ie.enum},message:"must be equal to one of the allowed values",schema:Ie.enum,parentSchema:Ie,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accents!==void 0){let r=a.accents;if(Array.isArray(r)){if(r.length>6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items",schema:6,parentSchema:oe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}if(r.length<6){const h={instancePath:s+"/accents",schemaPath:"#/properties/accents/minItems",keyword:"minItems",params:{limit:6},message:"must NOT have fewer than 6 items",schema:6,parentSchema:oe.properties.accents,data:r};e===null?e=[h]:e.push(h),t++}const n=r.length;for(let h=0;h<n;h++){let c=r[h];if(typeof c!="string"){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oe.properties.accents.items.type,parentSchema:oe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}if(!(c==="accent1"||c==="accent2"||c==="accent3"||c==="accent4"||c==="accent5"||c==="accent6")){const y={instancePath:s+"/accents/"+h,schemaPath:"#/properties/accents/items/enum",keyword:"enum",params:{allowedValues:oe.properties.accents.items.enum},message:"must be equal to one of the allowed values",schema:oe.properties.accents.items.enum,parentSchema:oe.properties.accents.items,data:c};e===null?e=[y]:e.push(y),t++}}let o=r.length,i;if(o>1){const h={};for(;o--;){let c=r[o];if(typeof c=="string"){if(typeof h[c]=="number"){i=h[c];const y={instancePath:s+"/accents",schemaPath:"#/properties/accents/uniqueItems",keyword:"uniqueItems",params:{i:o,j:i},message:"must NOT have duplicate items (items ## "+i+" and "+o+" are identical)",schema:!0,parentSchema:oe.properties.accents,data:r};e===null?e=[y]:e.push(y),t++;break}h[c]=o}}}}else{const n={instancePath:s+"/accents",schemaPath:"#/properties/accents/type",keyword:"type",params:{type:"array"},message:"must be array",schema:oe.properties.accents.type,parentSchema:oe.properties.accents,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:oe.type,parentSchema:oe,data:a};e===null?e=[r]:e.push(r),t++}return xn.errors=e,t===0}xn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function qc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=qc.evaluated;return m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),xn(a,{instancePath:s,parentData:q,parentDataProperty:x,rootData:v,dynamicAnchors:b})||(e=e===null?xn.errors:e.concat(xn.errors),t=e.length),qc.errors=e,t===0}qc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch216=xc,j.layout.$defs.DesignHints.properties.variant.oneOf[2];function xc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=xc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf-layout/v2#/$defs/LayoutVariantRole/type",keyword:"type",params:{type:"string"},message:"must be string",schema:La.type,parentSchema:La,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="surface"||a==="brand")){const r={instancePath:s,schemaPath:"https://openpresentation.org/schema/opf-layout/v2#/$defs/LayoutVariantRole/enum",keyword:"enum",params:{allowedValues:La.enum},message:"must be equal to one of the allowed values",schema:La.enum,parentSchema:La,data:a};e===null?e=[r]:e.push(r),t++}return xc.errors=e,t===0}xc.evaluated={dynamicProps:!1,dynamicItems:!1},D.root6=Nc;var _e=j.chartType,Wd=new RegExp("^[a-z0-9][a-z0-9-]*$","u"),fs=j.chartType.$defs.ChartTypeMappings,ut=j.chartType.$defs.OpenXmlChartMapping,vh={validate:Is};function Is(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Is.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){for(const r in a)if(!va.call(ut.properties,r)){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ut,data:a};e===null?e=[n]:e.push(n),t++}if(a.element!==void 0){let r=a.element;if(typeof r!="string"){const n={instancePath:s+"/element",schemaPath:"#/properties/element/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.element.type,parentSchema:ut.properties.element,data:r};e===null?e=[n]:e.push(n),t++}}if(a.barDir!==void 0){let r=a.barDir;if(typeof r!="string"){const n={instancePath:s+"/barDir",schemaPath:"#/properties/barDir/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.barDir.type,parentSchema:ut.properties.barDir,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="bar"||r==="col")){const n={instancePath:s+"/barDir",schemaPath:"#/properties/barDir/enum",keyword:"enum",params:{allowedValues:ut.properties.barDir.enum},message:"must be equal to one of the allowed values",schema:ut.properties.barDir.enum,parentSchema:ut.properties.barDir,data:r};e===null?e=[n]:e.push(n),t++}}if(a.grouping!==void 0){let r=a.grouping;if(typeof r!="string"){const n={instancePath:s+"/grouping",schemaPath:"#/properties/grouping/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.grouping.type,parentSchema:ut.properties.grouping,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="standard"||r==="clustered"||r==="stacked"||r==="percentStacked")){const n={instancePath:s+"/grouping",schemaPath:"#/properties/grouping/enum",keyword:"enum",params:{allowedValues:ut.properties.grouping.enum},message:"must be equal to one of the allowed values",schema:ut.properties.grouping.enum,parentSchema:ut.properties.grouping,data:r};e===null?e=[n]:e.push(n),t++}}if(a.marker!==void 0){let r=a.marker;if(typeof r!="boolean"){const n={instancePath:s+"/marker",schemaPath:"#/properties/marker/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ut.properties.marker.type,parentSchema:ut.properties.marker,data:r};e===null?e=[n]:e.push(n),t++}}if(a.radarStyle!==void 0){let r=a.radarStyle;if(typeof r!="string"){const n={instancePath:s+"/radarStyle",schemaPath:"#/properties/radarStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.radarStyle.type,parentSchema:ut.properties.radarStyle,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="standard"||r==="marker"||r==="filled")){const n={instancePath:s+"/radarStyle",schemaPath:"#/properties/radarStyle/enum",keyword:"enum",params:{allowedValues:ut.properties.radarStyle.enum},message:"must be equal to one of the allowed values",schema:ut.properties.radarStyle.enum,parentSchema:ut.properties.radarStyle,data:r};e===null?e=[n]:e.push(n),t++}}if(a.scatterStyle!==void 0){let r=a.scatterStyle;if(typeof r!="string"){const n={instancePath:s+"/scatterStyle",schemaPath:"#/properties/scatterStyle/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.scatterStyle.type,parentSchema:ut.properties.scatterStyle,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="line"||r==="lineMarker"||r==="marker"||r==="smooth"||r==="smoothMarker")){const n={instancePath:s+"/scatterStyle",schemaPath:"#/properties/scatterStyle/enum",keyword:"enum",params:{allowedValues:ut.properties.scatterStyle.enum},message:"must be equal to one of the allowed values",schema:ut.properties.scatterStyle.enum,parentSchema:ut.properties.scatterStyle,data:r};e===null?e=[n]:e.push(n),t++}}if(a.composition!==void 0){let r=a.composition;if(typeof r!="string"){const n={instancePath:s+"/composition",schemaPath:"#/properties/composition/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.composition.type,parentSchema:ut.properties.composition,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="single"||r==="mixed"||r==="extension")){const n={instancePath:s+"/composition",schemaPath:"#/properties/composition/enum",keyword:"enum",params:{allowedValues:ut.properties.composition.enum},message:"must be equal to one of the allowed values",schema:ut.properties.composition.enum,parentSchema:ut.properties.composition,data:r};e===null?e=[n]:e.push(n),t++}}if(a.extension!==void 0){let r=a.extension;if(typeof r!="string"){const n={instancePath:s+"/extension",schemaPath:"#/properties/extension/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.extension.type,parentSchema:ut.properties.extension,data:r};e===null?e=[n]:e.push(n),t++}}if(a.series!==void 0){let r=a.series;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++)vh.validate(r[o],{instancePath:s+"/series/"+o,parentData:r,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?vh.validate.errors:e.concat(vh.validate.errors),t=e.length)}else{const n={instancePath:s+"/series",schemaPath:"#/properties/series/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ut.properties.series.type,parentSchema:ut.properties.series,data:r};e===null?e=[n]:e.push(n),t++}}if(a.notes!==void 0){let r=a.notes;if(typeof r!="string"){const n={instancePath:s+"/notes",schemaPath:"#/properties/notes/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ut.properties.notes.type,parentSchema:ut.properties.notes,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ut.type,parentSchema:ut,data:a};e===null?e=[r]:e.push(r),t++}return Is.errors=e,t===0}Is.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Nn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Nn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.openxml===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"openxml"},message:"must have required property 'openxml'",schema:fs.required,parentSchema:fs,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="openxml"||r==="renderers")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:fs,data:a};e===null?e=[n]:e.push(n),t++}if(a.openxml!==void 0&&(Is(a.openxml,{instancePath:s+"/openxml",parentData:a,parentDataProperty:"openxml",rootData:v,dynamicAnchors:b})||(e=e===null?Is.errors:e.concat(Is.errors),t=e.length)),a.renderers!==void 0){let r=a.renderers;if(r&&typeof r=="object"&&!Array.isArray(r))for(const n in r){let o=r[n];if(!(o&&typeof o=="object"&&!Array.isArray(o))){const i={instancePath:s+"/renderers/"+n.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/renderers/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object",schema:fs.properties.renderers.additionalProperties.type,parentSchema:fs.properties.renderers.additionalProperties,data:o};e===null?e=[i]:e.push(i),t++}}else{const n={instancePath:s+"/renderers",schemaPath:"#/properties/renderers/type",keyword:"type",params:{type:"object"},message:"must be object",schema:fs.properties.renderers.type,parentSchema:fs.properties.renderers,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:fs.type,parentSchema:fs,data:a};e===null?e=[r]:e.push(r),t++}return Nn.errors=e,t===0}Nn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Nc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Nc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:_e.required,parentSchema:_e,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:_e.required,parentSchema:_e,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:_e.required,parentSchema:_e,data:a};e===null?e=[r]:e.push(r),t++}if(a.mappings===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"mappings"},message:"must have required property 'mappings'",schema:_e.required,parentSchema:_e,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(va.call(_e.properties,r)||xd.test(r))){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:_e,data:a};e===null?e=[n]:e.push(n),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.$schema.type,parentSchema:_e.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-chart-type/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-chart-type/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-chart-type/v1",parentSchema:_e.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!Wd.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z0-9][a-z0-9-]*$"},message:'must match pattern "^[a-z0-9][a-z0-9-]*$"',schema:"^[a-z0-9][a-z0-9-]*$",parentSchema:_e.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.id.type,parentSchema:_e.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.name.type,parentSchema:_e.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.summary.type,parentSchema:_e.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.description.type,parentSchema:_e.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.mappings!==void 0&&(Nn(a.mappings,{instancePath:s+"/mappings",parentData:a,parentDataProperty:"mappings",rootData:v,dynamicAnchors:b})||(e=e===null?Nn.errors:e.concat(Nn.errors),t=e.length)),a.group!==void 0){let r=a.group;if(typeof r!="string"){const n={instancePath:s+"/group",schemaPath:"#/properties/group/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.group.type,parentSchema:_e.properties.group,data:r};e===null?e=[n]:e.push(n),t++}}if(a.groupSort!==void 0){let r=a.groupSort;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/groupSort",schemaPath:"#/properties/groupSort/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:_e.properties.groupSort.type,parentSchema:_e.properties.groupSort,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<0||isNaN(r))){const n={instancePath:s+"/groupSort",schemaPath:"#/properties/groupSort/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:_e.properties.groupSort,data:r};e===null?e=[n]:e.push(n),t++}}if(a.complexity!==void 0){let r=a.complexity;if(typeof r!="string"){const n={instancePath:s+"/complexity",schemaPath:"#/properties/complexity/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.complexity.type,parentSchema:_e.properties.complexity,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="simple"||r==="calculated"||r==="hierarchical"||r==="normalized")){const n={instancePath:s+"/complexity",schemaPath:"#/properties/complexity/enum",keyword:"enum",params:{allowedValues:_e.properties.complexity.enum},message:"must be equal to one of the allowed values",schema:_e.properties.complexity.enum,parentSchema:_e.properties.complexity,data:r};e===null?e=[n]:e.push(n),t++}}if(a.series!==void 0){let r=a.series;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r))){const n={instancePath:s+"/series",schemaPath:"#/properties/series/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:_e.properties.series.type,parentSchema:_e.properties.series,data:r};e===null?e=[n]:e.push(n),t++}if(typeof r=="number"&&(r<0||isNaN(r))){const n={instancePath:s+"/series",schemaPath:"#/properties/series/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:_e.properties.series,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/tags/"+o,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.tags.items.type,parentSchema:_e.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:_e.properties.tags.type,parentSchema:_e.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:_e.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.preview.properties.src.type,parentSchema:_e.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:_e.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.preview.properties.thumbnailSrc.type,parentSchema:_e.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:_e.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_e.properties.preview.properties.vectorSrc.type,parentSchema:_e.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:_e.properties.preview.type,parentSchema:_e.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:_e.type,parentSchema:_e,data:a};e===null?e=[r]:e.push(r),t++}return Nc.errors=e,t===0}Nc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.root7=Ic;var Ze=j.narrative,zt=j.narrative.$defs.Beat;function Ic(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Ic.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:Ze.required,parentSchema:Ze,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Ze.required,parentSchema:Ze,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Ze.required,parentSchema:Ze,data:a};e===null?e=[r]:e.push(r),t++}if(a.beats===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"beats"},message:"must have required property 'beats'",schema:Ze.required,parentSchema:Ze,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.$schema.type,parentSchema:Ze.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-narrative/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-narrative/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-narrative/v1",parentSchema:Ze.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!bt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Ze.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.id.type,parentSchema:Ze.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.name.type,parentSchema:Ze.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.summary.type,parentSchema:Ze.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.description.type,parentSchema:Ze.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.audienceFit!==void 0){let r=a.audienceFit;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/audienceFit/"+o,schemaPath:"#/properties/audienceFit/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.audienceFit.items.type,parentSchema:Ze.properties.audienceFit.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/audienceFit",schemaPath:"#/properties/audienceFit/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ze.properties.audienceFit.type,parentSchema:Ze.properties.audienceFit,data:r};e===null?e=[n]:e.push(n),t++}}if(a.duration!==void 0){let r=a.duration;if(r&&typeof r=="object"&&!Array.isArray(r)){for(const n in r)if(!(n==="min"||n==="max")){const o={instancePath:s+"/duration",schemaPath:"#/properties/duration/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Ze.properties.duration,data:r};e===null?e=[o]:e.push(o),t++}if(r.min!==void 0){let n=r.min;if(typeof n=="number"){if(n<=0||isNaN(n)){const o={instancePath:s+"/duration/min",schemaPath:"#/properties/duration/properties/min/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:Ze.properties.duration.properties.min,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/duration/min",schemaPath:"#/properties/duration/properties/min/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ze.properties.duration.properties.min.type,parentSchema:Ze.properties.duration.properties.min,data:n};e===null?e=[o]:e.push(o),t++}}if(r.max!==void 0){let n=r.max;if(typeof n=="number"){if(n<=0||isNaN(n)){const o={instancePath:s+"/duration/max",schemaPath:"#/properties/duration/properties/max/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0",schema:0,parentSchema:Ze.properties.duration.properties.max,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/duration/max",schemaPath:"#/properties/duration/properties/max/type",keyword:"type",params:{type:"number"},message:"must be number",schema:Ze.properties.duration.properties.max.type,parentSchema:Ze.properties.duration.properties.max,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/duration",schemaPath:"#/properties/duration/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ze.properties.duration.type,parentSchema:Ze.properties.duration,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/tags/"+o,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.tags.items.type,parentSchema:Ze.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ze.properties.tags.type,parentSchema:Ze.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ze.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.preview.properties.src.type,parentSchema:Ze.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ze.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.preview.properties.thumbnailSrc.type,parentSchema:Ze.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ze.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ze.properties.preview.properties.vectorSrc.type,parentSchema:Ze.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ze.properties.preview.type,parentSchema:Ze.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}if(a.beats!==void 0){let r=a.beats;if(Array.isArray(r)){if(r.length<1){const o={instancePath:s+"/beats",schemaPath:"#/properties/beats/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items",schema:1,parentSchema:Ze.properties.beats,data:r};e===null?e=[o]:e.push(o),t++}const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(i&&typeof i=="object"&&!Array.isArray(i)){if(i.id===void 0){const h={instancePath:s+"/beats/"+o,schemaPath:"#/$defs/Beat/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:zt.required,parentSchema:zt,data:i};e===null?e=[h]:e.push(h),t++}if(i.name===void 0){const h={instancePath:s+"/beats/"+o,schemaPath:"#/$defs/Beat/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:zt.required,parentSchema:zt,data:i};e===null?e=[h]:e.push(h),t++}if(i.id!==void 0){let h=i.id;if(typeof h=="string"){if(!bt.test(h)){const c={instancePath:s+"/beats/"+o+"/id",schemaPath:"#/$defs/Beat/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:zt.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:s+"/beats/"+o+"/id",schemaPath:"#/$defs/Beat/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:zt.properties.id.type,parentSchema:zt.properties.id,data:h};e===null?e=[c]:e.push(c),t++}}if(i.name!==void 0){let h=i.name;if(typeof h!="string"){const c={instancePath:s+"/beats/"+o+"/name",schemaPath:"#/$defs/Beat/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:zt.properties.name.type,parentSchema:zt.properties.name,data:h};e===null?e=[c]:e.push(c),t++}}if(i.description!==void 0){let h=i.description;if(typeof h!="string"){const c={instancePath:s+"/beats/"+o+"/description",schemaPath:"#/$defs/Beat/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:zt.properties.description.type,parentSchema:zt.properties.description,data:h};e===null?e=[c]:e.push(c),t++}}if(i.instructions!==void 0){let h=i.instructions;if(typeof h!="string"){const c={instancePath:s+"/beats/"+o+"/instructions",schemaPath:"#/$defs/Beat/properties/instructions/type",keyword:"type",params:{type:"string"},message:"must be string",schema:zt.properties.instructions.type,parentSchema:zt.properties.instructions,data:h};e===null?e=[c]:e.push(c),t++}}if(i.type!==void 0){let h=i.type;if(typeof h!="string"){const c={instancePath:s+"/beats/"+o+"/type",schemaPath:"#/$defs/Beat/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:zt.properties.type.type,parentSchema:zt.properties.type,data:h};e===null?e=[c]:e.push(c),t++}if(!(h==="text"||h==="list"||h==="image"||h==="video"||h==="chart"||h==="table"||h==="code"||h==="metric"||h==="quote"||h==="timeline"||h==="diagram")){const c={instancePath:s+"/beats/"+o+"/type",schemaPath:"#/$defs/Beat/properties/type/enum",keyword:"enum",params:{allowedValues:zt.properties.type.enum},message:"must be equal to one of the allowed values",schema:zt.properties.type.enum,parentSchema:zt.properties.type,data:h};e===null?e=[c]:e.push(c),t++}}if(i.layout!==void 0){let h=i.layout;if(typeof h!="string"){const c={instancePath:s+"/beats/"+o+"/layout",schemaPath:"#/$defs/Beat/properties/layout/type",keyword:"type",params:{type:"string"},message:"must be string",schema:zt.properties.layout.type,parentSchema:zt.properties.layout,data:h};e===null?e=[c]:e.push(c),t++}}if(i.thoughtCues!==void 0){let h=i.thoughtCues;if(Array.isArray(h)){const c=h.length;for(let y=0;y<c;y++){let g=h[y];if(typeof g!="string"){const l={instancePath:s+"/beats/"+o+"/thoughtCues/"+y,schemaPath:"#/$defs/Beat/properties/thoughtCues/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:zt.properties.thoughtCues.items.type,parentSchema:zt.properties.thoughtCues.items,data:g};e===null?e=[l]:e.push(l),t++}}}else{const c={instancePath:s+"/beats/"+o+"/thoughtCues",schemaPath:"#/$defs/Beat/properties/thoughtCues/type",keyword:"type",params:{type:"array"},message:"must be array",schema:zt.properties.thoughtCues.type,parentSchema:zt.properties.thoughtCues,data:h};e===null?e=[c]:e.push(c),t++}}}else{const h={instancePath:s+"/beats/"+o,schemaPath:"#/$defs/Beat/type",keyword:"type",params:{type:"object"},message:"must be object",schema:zt.type,parentSchema:zt,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/beats",schemaPath:"#/properties/beats/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ze.properties.beats.type,parentSchema:Ze.properties.beats,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ze.type,parentSchema:Ze,data:a};e===null?e=[r]:e.push(r),t++}return Ic.errors=e,t===0}Ic.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,audienceFit:!0,duration:!0,tags:!0,preview:!0,beats:!0},dynamicProps:!1,dynamicItems:!1},D.root8=zc;var Ge=j.socialPlatform;function zc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=zc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:Ge.required,parentSchema:Ge,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Ge.required,parentSchema:Ge,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Ge.required,parentSchema:Ge,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.$schema.type,parentSchema:Ge.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-social-platform/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-social-platform/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-social-platform/v1",parentSchema:Ge.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!bt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Ge.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.id.type,parentSchema:Ge.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.name.type,parentSchema:Ge.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.summary.type,parentSchema:Ge.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.description.type,parentSchema:Ge.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.baseUrl!==void 0){let r=a.baseUrl;if(typeof r=="string"){if(!Ot(r)){const n={instancePath:s+"/baseUrl",schemaPath:"#/properties/baseUrl/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ge.properties.baseUrl,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/baseUrl",schemaPath:"#/properties/baseUrl/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.baseUrl.type,parentSchema:Ge.properties.baseUrl,data:r};e===null?e=[n]:e.push(n),t++}}if(a.profileUrlPattern!==void 0){let r=a.profileUrlPattern;if(typeof r!="string"){const n={instancePath:s+"/profileUrlPattern",schemaPath:"#/properties/profileUrlPattern/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.profileUrlPattern.type,parentSchema:Ge.properties.profileUrlPattern,data:r};e===null?e=[n]:e.push(n),t++}}if(a.companyUrlPattern!==void 0){let r=a.companyUrlPattern;if(typeof r!="string"){const n={instancePath:s+"/companyUrlPattern",schemaPath:"#/properties/companyUrlPattern/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.companyUrlPattern.type,parentSchema:Ge.properties.companyUrlPattern,data:r};e===null?e=[n]:e.push(n),t++}}if(a.handlePrefix!==void 0){let r=a.handlePrefix;if(typeof r!="string"){const n={instancePath:s+"/handlePrefix",schemaPath:"#/properties/handlePrefix/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.handlePrefix.type,parentSchema:Ge.properties.handlePrefix,data:r};e===null?e=[n]:e.push(n),t++}}if(a.handleExample!==void 0){let r=a.handleExample;if(typeof r!="string"){const n={instancePath:s+"/handleExample",schemaPath:"#/properties/handleExample/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.handleExample.type,parentSchema:Ge.properties.handleExample,data:r};e===null?e=[n]:e.push(n),t++}}if(a.brandColor!==void 0){let r=a.brandColor;if(typeof r!="string"){const n={instancePath:s+"/brandColor",schemaPath:"#/properties/brandColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.brandColor.type,parentSchema:Ge.properties.brandColor,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/tags/"+o,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.tags.items.type,parentSchema:Ge.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Ge.properties.tags.type,parentSchema:Ge.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ge.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.preview.properties.src.type,parentSchema:Ge.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ge.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.preview.properties.thumbnailSrc.type,parentSchema:Ge.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Ge.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ge.properties.preview.properties.vectorSrc.type,parentSchema:Ge.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ge.properties.preview.type,parentSchema:Ge.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ge.type,parentSchema:Ge,data:a};e===null?e=[r]:e.push(r),t++}return zc.errors=e,t===0}zc.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,baseUrl:!0,profileUrlPattern:!0,companyUrlPattern:!0,handlePrefix:!0,handleExample:!0,brandColor:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},D.root9=jc;var Re=j.language;function jc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=jc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:Re.required,parentSchema:Re,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:Re.required,parentSchema:Re,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:Re.required,parentSchema:Re,data:a};e===null?e=[r]:e.push(r),t++}if(a.bcp47===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bcp47"},message:"must have required property 'bcp47'",schema:Re.required,parentSchema:Re,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.$schema.type,parentSchema:Re.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-language/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-language/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-language/v1",parentSchema:Re.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!bt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:Re.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.id.type,parentSchema:Re.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.name.type,parentSchema:Re.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.code!==void 0){let r=a.code;if(typeof r!="string"){const n={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.code.type,parentSchema:Re.properties.code,data:r};e===null?e=[n]:e.push(n),t++}}if(a.bcp47!==void 0){let r=a.bcp47;if(typeof r!="string"){const n={instancePath:s+"/bcp47",schemaPath:"#/properties/bcp47/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.bcp47.type,parentSchema:Re.properties.bcp47,data:r};e===null?e=[n]:e.push(n),t++}}if(a.ooxmlLang!==void 0){let r=a.ooxmlLang;if(typeof r!="string"){const n={instancePath:s+"/ooxmlLang",schemaPath:"#/properties/ooxmlLang/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.ooxmlLang.type,parentSchema:Re.properties.ooxmlLang,data:r};e===null?e=[n]:e.push(n),t++}}if(a.direction!==void 0){let r=a.direction;if(typeof r!="string"){const n={instancePath:s+"/direction",schemaPath:"#/properties/direction/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.direction.type,parentSchema:Re.properties.direction,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="ltr"||r==="rtl")){const n={instancePath:s+"/direction",schemaPath:"#/properties/direction/enum",keyword:"enum",params:{allowedValues:Re.properties.direction.enum},message:"must be equal to one of the allowed values",schema:Re.properties.direction.enum,parentSchema:Re.properties.direction,data:r};e===null?e=[n]:e.push(n),t++}}if(a.script!==void 0){let r=a.script;if(typeof r!="string"){const n={instancePath:s+"/script",schemaPath:"#/properties/script/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.script.type,parentSchema:Re.properties.script,data:r};e===null?e=[n]:e.push(n),t++}}if(a.fontScheme!==void 0){let r=a.fontScheme;if(typeof r!="string"){const n={instancePath:s+"/fontScheme",schemaPath:"#/properties/fontScheme/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.fontScheme.type,parentSchema:Re.properties.fontScheme,data:r};e===null?e=[n]:e.push(n),t++}}if(a.googleFontScheme!==void 0){let r=a.googleFontScheme;if(typeof r!="string"){const n={instancePath:s+"/googleFontScheme",schemaPath:"#/properties/googleFontScheme/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.googleFontScheme.type,parentSchema:Re.properties.googleFontScheme,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.summary.type,parentSchema:Re.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.description.type,parentSchema:Re.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/tags/"+o,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.tags.items.type,parentSchema:Re.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Re.properties.tags.type,parentSchema:Re.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Re.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.preview.properties.src.type,parentSchema:Re.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Re.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.preview.properties.thumbnailSrc.type,parentSchema:Re.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:Re.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Re.properties.preview.properties.vectorSrc.type,parentSchema:Re.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Re.properties.preview.type,parentSchema:Re.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Re.type,parentSchema:Re,data:a};e===null?e=[r]:e.push(r),t++}return jc.errors=e,t===0}jc.evaluated={props:{$schema:!0,id:!0,name:!0,code:!0,bcp47:!0,ooxmlLang:!0,direction:!0,script:!0,fontScheme:!0,googleFontScheme:!0,summary:!0,description:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},D.root10=Fc;var vt=j.colorScheme,gt=j.colorScheme.$defs.HexColor;function Fc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Fc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:vt.required,parentSchema:vt,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:vt.required,parentSchema:vt,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:vt.required,parentSchema:vt,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:vt.properties.$schema.type,parentSchema:vt.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-color-scheme/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-color-scheme/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-color-scheme/v1",parentSchema:vt.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!bt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:vt.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:vt.properties.id.type,parentSchema:vt.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:vt.properties.name.type,parentSchema:vt.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:vt.properties.summary.type,parentSchema:vt.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:vt.properties.description.type,parentSchema:vt.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent1!==void 0){let r=a.accent1;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:gt.type,parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent2!==void 0){let r=a.accent2;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:gt.type,parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent3!==void 0){let r=a.accent3;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent3",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent3",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:gt.type,parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent4!==void 0){let r=a.accent4;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent4",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent4",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:gt.type,parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent5!==void 0){let r=a.accent5;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent5",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent5",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:gt.type,parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.accent6!==void 0){let r=a.accent6;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/accent6",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/accent6",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:gt.type,parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dark1!==void 0){let r=a.dark1;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/dark1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dark1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:gt.type,parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.dark2!==void 0){let r=a.dark2;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/dark2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/dark2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:gt.type,parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.light1!==void 0){let r=a.light1;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/light1",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/light1",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:gt.type,parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.light2!==void 0){let r=a.light2;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/light2",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/light2",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:gt.type,parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.hyperlink!==void 0){let r=a.hyperlink;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/hyperlink",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/hyperlink",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:gt.type,parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.followedHyperlink!==void 0){let r=a.followedHyperlink;if(typeof r=="string"){if(!Ae.test(r)){const n={instancePath:s+"/followedHyperlink",schemaPath:"#/$defs/HexColor/pattern",keyword:"pattern",params:{pattern:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"},message:'must match pattern "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"',schema:"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/followedHyperlink",schemaPath:"#/$defs/HexColor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:gt.type,parentSchema:gt,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/tags/"+o,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:vt.properties.tags.items.type,parentSchema:vt.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:vt.properties.tags.type,parentSchema:vt.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:vt.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:vt.properties.preview.properties.src.type,parentSchema:vt.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:vt.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:vt.properties.preview.properties.thumbnailSrc.type,parentSchema:vt.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:vt.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:vt.properties.preview.properties.vectorSrc.type,parentSchema:vt.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:vt.properties.preview.type,parentSchema:vt.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:vt.type,parentSchema:vt,data:a};e===null?e=[r]:e.push(r),t++}return Fc.errors=e,t===0}Fc.evaluated={props:{$schema:!0,id:!0,name:!0,summary:!0,description:!0,accent1:!0,accent2:!0,accent3:!0,accent4:!0,accent5:!0,accent6:!0,dark1:!0,dark2:!0,light1:!0,light2:!0,hyperlink:!0,followedHyperlink:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},D.root11=Tc;var le=j.fontScheme,Xd=new RegExp("^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$","u");function Tc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Tc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.$schema===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'",schema:le.required,parentSchema:le,data:a};e===null?e=[r]:e.push(r),t++}if(a.id===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'",schema:le.required,parentSchema:le,data:a};e===null?e=[r]:e.push(r),t++}if(a.name===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'",schema:le.required,parentSchema:le,data:a};e===null?e=[r]:e.push(r),t++}if(a.major===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"major"},message:"must have required property 'major'",schema:le.required,parentSchema:le,data:a};e===null?e=[r]:e.push(r),t++}if(a.minor===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"minor"},message:"must have required property 'minor'",schema:le.required,parentSchema:le,data:a};e===null?e=[r]:e.push(r),t++}if(a.$schema!==void 0){let r=a.$schema;if(typeof r!="string"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.$schema.type,parentSchema:le.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="https://openpresentation.org/schema/opf-font-scheme/v1"){const n={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://openpresentation.org/schema/opf-font-scheme/v1"},message:"must be equal to constant",schema:"https://openpresentation.org/schema/opf-font-scheme/v1",parentSchema:le.properties.$schema,data:r};e===null?e=[n]:e.push(n),t++}}if(a.id!==void 0){let r=a.id;if(typeof r=="string"){if(!bt.test(r)){const n={instancePath:s+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9-]*$"},message:'must match pattern "^[a-z][a-z0-9-]*$"',schema:"^[a-z][a-z0-9-]*$",parentSchema:le.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.id.type,parentSchema:le.properties.id,data:r};e===null?e=[n]:e.push(n),t++}}if(a.name!==void 0){let r=a.name;if(typeof r!="string"){const n={instancePath:s+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.name.type,parentSchema:le.properties.name,data:r};e===null?e=[n]:e.push(n),t++}}if(a.major!==void 0){let r=a.major;if(typeof r!="string"){const n={instancePath:s+"/major",schemaPath:"#/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.major.type,parentSchema:le.properties.major,data:r};e===null?e=[n]:e.push(n),t++}}if(a.minor!==void 0){let r=a.minor;if(typeof r!="string"){const n={instancePath:s+"/minor",schemaPath:"#/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.minor.type,parentSchema:le.properties.minor,data:r};e===null?e=[n]:e.push(n),t++}}if(a.code!==void 0){let r=a.code;if(typeof r!="string"){const n={instancePath:s+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.code.type,parentSchema:le.properties.code,data:r};e===null?e=[n]:e.push(n),t++}}if(a.eastAsian!==void 0){let r=a.eastAsian;if(r&&typeof r=="object"&&!Array.isArray(r)){if(Object.keys(r).length<1){const n={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:le.properties.eastAsian,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="major"||n==="minor")){const o={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:le.properties.eastAsian,data:r};e===null?e=[o]:e.push(o),t++}if(r.major!==void 0){let n=r.major;if(typeof n!="string"){const o={instancePath:s+"/eastAsian/major",schemaPath:"#/properties/eastAsian/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.eastAsian.properties.major.type,parentSchema:le.properties.eastAsian.properties.major,data:n};e===null?e=[o]:e.push(o),t++}}if(r.minor!==void 0){let n=r.minor;if(typeof n!="string"){const o={instancePath:s+"/eastAsian/minor",schemaPath:"#/properties/eastAsian/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.eastAsian.properties.minor.type,parentSchema:le.properties.eastAsian.properties.minor,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/eastAsian",schemaPath:"#/properties/eastAsian/type",keyword:"type",params:{type:"object"},message:"must be object",schema:le.properties.eastAsian.type,parentSchema:le.properties.eastAsian,data:r};e===null?e=[n]:e.push(n),t++}}if(a.complexScript!==void 0){let r=a.complexScript;if(r&&typeof r=="object"&&!Array.isArray(r)){if(Object.keys(r).length<1){const n={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties",schema:1,parentSchema:le.properties.complexScript,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="major"||n==="minor")){const o={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:le.properties.complexScript,data:r};e===null?e=[o]:e.push(o),t++}if(r.major!==void 0){let n=r.major;if(typeof n!="string"){const o={instancePath:s+"/complexScript/major",schemaPath:"#/properties/complexScript/properties/major/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.complexScript.properties.major.type,parentSchema:le.properties.complexScript.properties.major,data:n};e===null?e=[o]:e.push(o),t++}}if(r.minor!==void 0){let n=r.minor;if(typeof n!="string"){const o={instancePath:s+"/complexScript/minor",schemaPath:"#/properties/complexScript/properties/minor/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.complexScript.properties.minor.type,parentSchema:le.properties.complexScript.properties.minor,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/complexScript",schemaPath:"#/properties/complexScript/type",keyword:"type",params:{type:"object"},message:"must be object",schema:le.properties.complexScript.type,parentSchema:le.properties.complexScript,data:r};e===null?e=[n]:e.push(n),t++}}if(a.type!==void 0){let r=a.type;if(typeof r!="string"){const n={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.type.type,parentSchema:le.properties.type,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="sans-serif"||r==="serif"||r==="monospace")){const n={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:le.properties.type.enum},message:"must be equal to one of the allowed values",schema:le.properties.type.enum,parentSchema:le.properties.type,data:r};e===null?e=[n]:e.push(n),t++}}if(a.app!==void 0){let r=a.app;if(typeof r!="string"){const n={instancePath:s+"/app",schemaPath:"#/properties/app/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.app.type,parentSchema:le.properties.app,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="powerpoint"||r==="google-slides")){const n={instancePath:s+"/app",schemaPath:"#/properties/app/enum",keyword:"enum",params:{allowedValues:le.properties.app.enum},message:"must be equal to one of the allowed values",schema:le.properties.app.enum,parentSchema:le.properties.app,data:r};e===null?e=[n]:e.push(n),t++}}if(a.languageFamily!==void 0){let r=a.languageFamily;if(typeof r!="string"){const n={instancePath:s+"/languageFamily",schemaPath:"#/properties/languageFamily/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.languageFamily.type,parentSchema:le.properties.languageFamily,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="latin"||r==="ea"||r==="cs"||r==="eastAsian"||r==="complexScript")){const n={instancePath:s+"/languageFamily",schemaPath:"#/properties/languageFamily/enum",keyword:"enum",params:{allowedValues:le.properties.languageFamily.enum},message:"must be equal to one of the allowed values",schema:le.properties.languageFamily.enum,parentSchema:le.properties.languageFamily,data:r};e===null?e=[n]:e.push(n),t++}}if(a.languages!==void 0){let r=a.languages;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i=="string"){if(!Xd.test(i)){const h={instancePath:s+"/languages/"+o,schemaPath:"#/properties/languages/items/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"},message:'must match pattern "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$"',schema:"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*$",parentSchema:le.properties.languages.items,data:i};e===null?e=[h]:e.push(h),t++}}else{const h={instancePath:s+"/languages/"+o,schemaPath:"#/properties/languages/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.languages.items.type,parentSchema:le.properties.languages.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/languages",schemaPath:"#/properties/languages/type",keyword:"type",params:{type:"array"},message:"must be array",schema:le.properties.languages.type,parentSchema:le.properties.languages,data:r};e===null?e=[n]:e.push(n),t++}}if(a.textSample!==void 0){let r=a.textSample;if(typeof r!="string"){const n={instancePath:s+"/textSample",schemaPath:"#/properties/textSample/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.textSample.type,parentSchema:le.properties.textSample,data:r};e===null?e=[n]:e.push(n),t++}}if(a.summary!==void 0){let r=a.summary;if(typeof r!="string"){const n={instancePath:s+"/summary",schemaPath:"#/properties/summary/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.summary.type,parentSchema:le.properties.summary,data:r};e===null?e=[n]:e.push(n),t++}}if(a.description!==void 0){let r=a.description;if(typeof r!="string"){const n={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.description.type,parentSchema:le.properties.description,data:r};e===null?e=[n]:e.push(n),t++}}if(a.tags!==void 0){let r=a.tags;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++){let i=r[o];if(typeof i!="string"){const h={instancePath:s+"/tags/"+o,schemaPath:"#/properties/tags/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.tags.items.type,parentSchema:le.properties.tags.items,data:i};e===null?e=[h]:e.push(h),t++}}}else{const n={instancePath:s+"/tags",schemaPath:"#/properties/tags/type",keyword:"type",params:{type:"array"},message:"must be array",schema:le.properties.tags.type,parentSchema:le.properties.tags,data:r};e===null?e=[n]:e.push(n),t++}}if(a.preview!==void 0){let r=a.preview;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.src!==void 0){let n=r.src;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:le.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/src",schemaPath:"#/properties/preview/properties/src/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.preview.properties.src.type,parentSchema:le.properties.preview.properties.src,data:n};e===null?e=[o]:e.push(o),t++}}if(r.thumbnailSrc!==void 0){let n=r.thumbnailSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:le.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/thumbnailSrc",schemaPath:"#/properties/preview/properties/thumbnailSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.preview.properties.thumbnailSrc.type,parentSchema:le.properties.preview.properties.thumbnailSrc,data:n};e===null?e=[o]:e.push(o),t++}}if(r.vectorSrc!==void 0){let n=r.vectorSrc;if(typeof n=="string"){if(!Ot(n)){const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"',schema:"uri",parentSchema:le.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/preview/vectorSrc",schemaPath:"#/properties/preview/properties/vectorSrc/type",keyword:"type",params:{type:"string"},message:"must be string",schema:le.properties.preview.properties.vectorSrc.type,parentSchema:le.properties.preview.properties.vectorSrc,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/preview",schemaPath:"#/properties/preview/type",keyword:"type",params:{type:"object"},message:"must be object",schema:le.properties.preview.type,parentSchema:le.properties.preview,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:le.type,parentSchema:le,data:a};e===null?e=[r]:e.push(r),t++}return Tc.errors=e,t===0}Tc.evaluated={props:{$schema:!0,id:!0,name:!0,major:!0,minor:!0,code:!0,eastAsian:!0,complexScript:!0,type:!0,app:!0,languageFamily:!0,languages:!0,textSample:!0,summary:!0,description:!0,tags:!0,preview:!0},dynamicProps:!1,dynamicItems:!1},D.root12=Cc;var At=j.finding,Xe=j.finding.$defs.Finding,Hn=j.finding.$defs.FindingSeverity,Za=j.finding.$defs.FindingCategory,Ht=j.finding.$defs.FindingLocation,oa=j.finding.$defs.FindingSuggestion,xt=j.finding.$defs.ValidationIssue,Jd=new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$","u"),ea=j.finding.$defs.FindingFix,et=j.finding.$defs.JsonPatchOperation,ka=j.finding.$defs.FindingFocus;function In(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=In.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.title===void 0){const o={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'",schema:ea.required,parentSchema:ea,data:a};e===null?e=[o]:e.push(o),t++}for(const o in a)if(!(o==="title"||o==="id"||o==="kind"||o==="safe"||o==="patch"||o==="focus")){const i={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:ea,data:a};e===null?e=[i]:e.push(i),t++}if(a.title!==void 0){let o=a.title;if(typeof o=="string"){if(pe(o)<1){const i={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:ea.properties.title,data:o};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ea.properties.title.type,parentSchema:ea.properties.title,data:o};e===null?e=[i]:e.push(i),t++}}if(a.id!==void 0){let o=a.id;if(typeof o!="string"){const i={instancePath:s+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ea.properties.id.type,parentSchema:ea.properties.id,data:o};e===null?e=[i]:e.push(i),t++}}if(a.kind!==void 0){let o=a.kind;if(typeof o!="string"){const i={instancePath:s+"/kind",schemaPath:"#/properties/kind/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ea.properties.kind.type,parentSchema:ea.properties.kind,data:o};e===null?e=[i]:e.push(i),t++}if(!(o==="patch"||o==="focus")){const i={instancePath:s+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:ea.properties.kind.enum},message:"must be equal to one of the allowed values",schema:ea.properties.kind.enum,parentSchema:ea.properties.kind,data:o};e===null?e=[i]:e.push(i),t++}}if(a.safe!==void 0){let o=a.safe;if(typeof o!="boolean"){const i={instancePath:s+"/safe",schemaPath:"#/properties/safe/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:ea.properties.safe.type,parentSchema:ea.properties.safe,data:o};e===null?e=[i]:e.push(i),t++}}if(a.patch!==void 0){let o=a.patch;if(Array.isArray(o)){const i=o.length;for(let h=0;h<i;h++){let c=o[h];const y=t;let g=!1,l=null;const p=t;if(c&&typeof c=="object"&&!Array.isArray(c)){if(c.op===void 0){const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/required",keyword:"required",params:{missingProperty:"op"},message:"must have required property 'op'",schema:et.oneOf[0].required,parentSchema:et.oneOf[0],data:c};e===null?e=[O]:e.push(O),t++}if(c.path===void 0){const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:et.oneOf[0].required,parentSchema:et.oneOf[0],data:c};e===null?e=[O]:e.push(O),t++}if(c.value===void 0){const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:et.oneOf[0].required,parentSchema:et.oneOf[0],data:c};e===null?e=[O]:e.push(O),t++}for(const O in c)if(!(O==="op"||O==="path"||O==="value")){const S={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties",schema:!1,parentSchema:et.oneOf[0],data:c};e===null?e=[S]:e.push(S),t++}if(c.op!==void 0){let O=c.op;if(typeof O!="string"){const S={instancePath:s+"/patch/"+h+"/op",schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/properties/op/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.oneOf[0].properties.op.type,parentSchema:et.oneOf[0].properties.op,data:O};e===null?e=[S]:e.push(S),t++}if(!(O==="add"||O==="replace"||O==="test")){const S={instancePath:s+"/patch/"+h+"/op",schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/properties/op/enum",keyword:"enum",params:{allowedValues:et.oneOf[0].properties.op.enum},message:"must be equal to one of the allowed values",schema:et.oneOf[0].properties.op.enum,parentSchema:et.oneOf[0].properties.op,data:O};e===null?e=[S]:e.push(S),t++}}if(c.path!==void 0){let O=c.path;if(typeof O!="string"){const S={instancePath:s+"/patch/"+h+"/path",schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.oneOf[0].properties.path.type,parentSchema:et.oneOf[0].properties.path,data:O};e===null?e=[S]:e.push(S),t++}}}else{const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object",schema:et.oneOf[0].type,parentSchema:et.oneOf[0],data:c};e===null?e=[O]:e.push(O),t++}var n=p===t;if(n){g=!0,l=0;var r=!0}const d=t;if(c&&typeof c=="object"&&!Array.isArray(c)){if(c.op===void 0){const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/required",keyword:"required",params:{missingProperty:"op"},message:"must have required property 'op'",schema:et.oneOf[1].required,parentSchema:et.oneOf[1],data:c};e===null?e=[O]:e.push(O),t++}if(c.path===void 0){const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:et.oneOf[1].required,parentSchema:et.oneOf[1],data:c};e===null?e=[O]:e.push(O),t++}for(const O in c)if(!(O==="op"||O==="path")){const S={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties",schema:!1,parentSchema:et.oneOf[1],data:c};e===null?e=[S]:e.push(S),t++}if(c.op!==void 0){let O=c.op;if(typeof O!="string"){const S={instancePath:s+"/patch/"+h+"/op",schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/properties/op/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.oneOf[1].properties.op.type,parentSchema:et.oneOf[1].properties.op,data:O};e===null?e=[S]:e.push(S),t++}if(O!=="remove"){const S={instancePath:s+"/patch/"+h+"/op",schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/properties/op/const",keyword:"const",params:{allowedValue:"remove"},message:"must be equal to constant",schema:"remove",parentSchema:et.oneOf[1].properties.op,data:O};e===null?e=[S]:e.push(S),t++}}if(c.path!==void 0){let O=c.path;if(typeof O!="string"){const S={instancePath:s+"/patch/"+h+"/path",schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.oneOf[1].properties.path.type,parentSchema:et.oneOf[1].properties.path,data:O};e===null?e=[S]:e.push(S),t++}}}else{const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object",schema:et.oneOf[1].type,parentSchema:et.oneOf[1],data:c};e===null?e=[O]:e.push(O),t++}var n=d===t;if(n&&g)g=!1,l=[l,1];else{n&&(g=!0,l=1,r!==!0&&(r=!0));const O=t;if(c&&typeof c=="object"&&!Array.isArray(c)){if(c.op===void 0){const I={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/required",keyword:"required",params:{missingProperty:"op"},message:"must have required property 'op'",schema:et.oneOf[2].required,parentSchema:et.oneOf[2],data:c};e===null?e=[I]:e.push(I),t++}if(c.from===void 0){const I={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/required",keyword:"required",params:{missingProperty:"from"},message:"must have required property 'from'",schema:et.oneOf[2].required,parentSchema:et.oneOf[2],data:c};e===null?e=[I]:e.push(I),t++}if(c.path===void 0){const I={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:et.oneOf[2].required,parentSchema:et.oneOf[2],data:c};e===null?e=[I]:e.push(I),t++}for(const I in c)if(!(I==="op"||I==="from"||I==="path")){const A={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties",schema:!1,parentSchema:et.oneOf[2],data:c};e===null?e=[A]:e.push(A),t++}if(c.op!==void 0){let I=c.op;if(typeof I!="string"){const A={instancePath:s+"/patch/"+h+"/op",schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/properties/op/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.oneOf[2].properties.op.type,parentSchema:et.oneOf[2].properties.op,data:I};e===null?e=[A]:e.push(A),t++}if(!(I==="move"||I==="copy")){const A={instancePath:s+"/patch/"+h+"/op",schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/properties/op/enum",keyword:"enum",params:{allowedValues:et.oneOf[2].properties.op.enum},message:"must be equal to one of the allowed values",schema:et.oneOf[2].properties.op.enum,parentSchema:et.oneOf[2].properties.op,data:I};e===null?e=[A]:e.push(A),t++}}if(c.from!==void 0){let I=c.from;if(typeof I!="string"){const A={instancePath:s+"/patch/"+h+"/from",schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/properties/from/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.oneOf[2].properties.from.type,parentSchema:et.oneOf[2].properties.from,data:I};e===null?e=[A]:e.push(A),t++}}if(c.path!==void 0){let I=c.path;if(typeof I!="string"){const A={instancePath:s+"/patch/"+h+"/path",schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:et.oneOf[2].properties.path.type,parentSchema:et.oneOf[2].properties.path,data:I};e===null?e=[A]:e.push(A),t++}}}else{const I={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object",schema:et.oneOf[2].type,parentSchema:et.oneOf[2],data:c};e===null?e=[I]:e.push(I),t++}var n=O===t;n&&g?(g=!1,l=[l,2]):n&&(g=!0,l=2,r!==!0&&(r=!0))}if(g)t=y,e!==null&&(y?e.length=y:e=null);else{const O={instancePath:s+"/patch/"+h,schemaPath:"#/$defs/JsonPatchOperation/oneOf",keyword:"oneOf",params:{passingSchemas:l},message:"must match exactly one schema in oneOf",schema:et.oneOf,parentSchema:et,data:c};e===null?e=[O]:e.push(O),t++}}}else{const i={instancePath:s+"/patch",schemaPath:"#/properties/patch/type",keyword:"type",params:{type:"array"},message:"must be array",schema:ea.properties.patch.type,parentSchema:ea.properties.patch,data:o};e===null?e=[i]:e.push(i),t++}}if(a.focus!==void 0){let o=a.focus;if(o&&typeof o=="object"&&!Array.isArray(o)){if(o.path===void 0){const i={instancePath:s+"/focus",schemaPath:"#/$defs/FindingFocus/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:ka.required,parentSchema:ka,data:o};e===null?e=[i]:e.push(i),t++}if(o.field===void 0){const i={instancePath:s+"/focus",schemaPath:"#/$defs/FindingFocus/required",keyword:"required",params:{missingProperty:"field"},message:"must have required property 'field'",schema:ka.required,parentSchema:ka,data:o};e===null?e=[i]:e.push(i),t++}for(const i in o)if(!(i==="path"||i==="field"||i==="value")){const h={instancePath:s+"/focus",schemaPath:"#/$defs/FindingFocus/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties",schema:!1,parentSchema:ka,data:o};e===null?e=[h]:e.push(h),t++}if(o.path!==void 0){let i=o.path;if(typeof i!="string"){const h={instancePath:s+"/focus/path",schemaPath:"#/$defs/FindingFocus/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ka.properties.path.type,parentSchema:ka.properties.path,data:i};e===null?e=[h]:e.push(h),t++}}if(o.field!==void 0){let i=o.field;if(typeof i!="string"){const h={instancePath:s+"/focus/field",schemaPath:"#/$defs/FindingFocus/properties/field/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ka.properties.field.type,parentSchema:ka.properties.field,data:i};e===null?e=[h]:e.push(h),t++}}if(o.value!==void 0){let i=o.value;if(typeof i!="object"&&typeof i!="string"&&typeof i!="number"&&typeof i!="boolean"){const h={instancePath:s+"/focus/value",schemaPath:"#/$defs/FindingFocus/properties/value/type",keyword:"type",params:{type:ka.properties.value.type},message:"must be string,number,boolean,null,array,object",schema:ka.properties.value.type,parentSchema:ka.properties.value,data:i};e===null?e=[h]:e.push(h),t++}}}else{const i={instancePath:s+"/focus",schemaPath:"#/$defs/FindingFocus/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ka.type,parentSchema:ka,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ea.type,parentSchema:ea,data:a};e===null?e=[o]:e.push(o),t++}return In.errors=e,t===0}In.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function zn(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=zn.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.ruleId===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"ruleId"},message:"must have required property 'ruleId'",schema:Xe.required,parentSchema:Xe,data:a};e===null?e=[n]:e.push(n),t++}if(a.severity===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"severity"},message:"must have required property 'severity'",schema:Xe.required,parentSchema:Xe,data:a};e===null?e=[n]:e.push(n),t++}if(a.category===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"category"},message:"must have required property 'category'",schema:Xe.required,parentSchema:Xe,data:a};e===null?e=[n]:e.push(n),t++}if(a.path===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:Xe.required,parentSchema:Xe,data:a};e===null?e=[n]:e.push(n),t++}if(a.message===void 0){const n={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"message"},message:"must have required property 'message'",schema:Xe.required,parentSchema:Xe,data:a};e===null?e=[n]:e.push(n),t++}for(const n in a)if(!va.call(Xe.properties,n)){const o={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:Xe,data:a};e===null?e=[o]:e.push(o),t++}if(a.ruleId!==void 0){let n=a.ruleId;if(typeof n=="string"){if(!Jd.test(n)){const o={instancePath:s+"/ruleId",schemaPath:"#/properties/ruleId/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$"},message:'must match pattern "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$"',schema:"^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$",parentSchema:Xe.properties.ruleId,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/ruleId",schemaPath:"#/properties/ruleId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.ruleId.type,parentSchema:Xe.properties.ruleId,data:n};e===null?e=[o]:e.push(o),t++}}if(a.source!==void 0){let n=a.source;if(typeof n!="string"){const o={instancePath:s+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.source.type,parentSchema:Xe.properties.source,data:n};e===null?e=[o]:e.push(o),t++}}if(a.severity!==void 0){let n=a.severity;if(typeof n!="string"){const o={instancePath:s+"/severity",schemaPath:"#/$defs/FindingSeverity/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Hn.type,parentSchema:Hn,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="error"||n==="warning"||n==="info")){const o={instancePath:s+"/severity",schemaPath:"#/$defs/FindingSeverity/enum",keyword:"enum",params:{allowedValues:Hn.enum},message:"must be equal to one of the allowed values",schema:Hn.enum,parentSchema:Hn,data:n};e===null?e=[o]:e.push(o),t++}}if(a.category!==void 0){let n=a.category;const o=t;let i=!1;const h=t;if(typeof n!="string"){const y={instancePath:s+"/category",schemaPath:"#/$defs/FindingCategory/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Za.anyOf[0].type,parentSchema:Za.anyOf[0],data:n};e===null?e=[y]:e.push(y),t++}if(!(n==="format"||n==="references"||n==="policy"||n==="accessibility"||n==="layout"||n==="content")){const y={instancePath:s+"/category",schemaPath:"#/$defs/FindingCategory/anyOf/0/enum",keyword:"enum",params:{allowedValues:Za.anyOf[0].enum},message:"must be equal to one of the allowed values",schema:Za.anyOf[0].enum,parentSchema:Za.anyOf[0],data:n};e===null?e=[y]:e.push(y),t++}var r=h===t;i=i||r;const c=t;if(typeof n=="string"){if(pe(n)<1){const y={instancePath:s+"/category",schemaPath:"#/$defs/FindingCategory/anyOf/1/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:Za.anyOf[1],data:n};e===null?e=[y]:e.push(y),t++}}else{const y={instancePath:s+"/category",schemaPath:"#/$defs/FindingCategory/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Za.anyOf[1].type,parentSchema:Za.anyOf[1],data:n};e===null?e=[y]:e.push(y),t++}var r=c===t;if(i=i||r,i)t=o,e!==null&&(o?e.length=o:e=null);else{const y={instancePath:s+"/category",schemaPath:"#/$defs/FindingCategory/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf",schema:Za.anyOf,parentSchema:Za,data:n};e===null?e=[y]:e.push(y),t++}}if(a.path!==void 0){let n=a.path;if(typeof n!="string"){const o={instancePath:s+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.path.type,parentSchema:Xe.properties.path,data:n};e===null?e=[o]:e.push(o),t++}}if(a.scope!==void 0){let n=a.scope;if(typeof n!="string"){const o={instancePath:s+"/scope",schemaPath:"#/properties/scope/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.scope.type,parentSchema:Xe.properties.scope,data:n};e===null?e=[o]:e.push(o),t++}if(!(n==="document"||n==="context")){const o={instancePath:s+"/scope",schemaPath:"#/properties/scope/enum",keyword:"enum",params:{allowedValues:Xe.properties.scope.enum},message:"must be equal to one of the allowed values",schema:Xe.properties.scope.enum,parentSchema:Xe.properties.scope,data:n};e===null?e=[o]:e.push(o),t++}}if(a.message!==void 0){let n=a.message;if(typeof n=="string"){if(pe(n)<1){const o={instancePath:s+"/message",schemaPath:"#/properties/message/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:Xe.properties.message,data:n};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.message.type,parentSchema:Xe.properties.message,data:n};e===null?e=[o]:e.push(o),t++}}if(a.help!==void 0){let n=a.help;if(typeof n!="string"){const o={instancePath:s+"/help",schemaPath:"#/properties/help/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.help.type,parentSchema:Xe.properties.help,data:n};e===null?e=[o]:e.push(o),t++}}if(a.slide!==void 0){let n=a.slide;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){const o={instancePath:s+"/slide",schemaPath:"#/properties/slide/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Xe.properties.slide.type,parentSchema:Xe.properties.slide,data:n};e===null?e=[o]:e.push(o),t++}if(typeof n=="number"&&(n<0||isNaN(n))){const o={instancePath:s+"/slide",schemaPath:"#/properties/slide/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Xe.properties.slide,data:n};e===null?e=[o]:e.push(o),t++}}if(a.slideId!==void 0){let n=a.slideId;if(typeof n!="string"){const o={instancePath:s+"/slideId",schemaPath:"#/properties/slideId/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.slideId.type,parentSchema:Xe.properties.slideId,data:n};e===null?e=[o]:e.push(o),t++}}if(a.location!==void 0){let n=a.location;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.offset===void 0){const o={instancePath:s+"/location",schemaPath:"#/$defs/FindingLocation/required",keyword:"required",params:{missingProperty:"offset"},message:"must have required property 'offset'",schema:Ht.required,parentSchema:Ht,data:n};e===null?e=[o]:e.push(o),t++}if(n.length===void 0){const o={instancePath:s+"/location",schemaPath:"#/$defs/FindingLocation/required",keyword:"required",params:{missingProperty:"length"},message:"must have required property 'length'",schema:Ht.required,parentSchema:Ht,data:n};e===null?e=[o]:e.push(o),t++}if(n.line===void 0){const o={instancePath:s+"/location",schemaPath:"#/$defs/FindingLocation/required",keyword:"required",params:{missingProperty:"line"},message:"must have required property 'line'",schema:Ht.required,parentSchema:Ht,data:n};e===null?e=[o]:e.push(o),t++}if(n.column===void 0){const o={instancePath:s+"/location",schemaPath:"#/$defs/FindingLocation/required",keyword:"required",params:{missingProperty:"column"},message:"must have required property 'column'",schema:Ht.required,parentSchema:Ht,data:n};e===null?e=[o]:e.push(o),t++}for(const o in n)if(!(o==="offset"||o==="length"||o==="line"||o==="column")){const i={instancePath:s+"/location",schemaPath:"#/$defs/FindingLocation/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:Ht,data:n};e===null?e=[i]:e.push(i),t++}if(n.offset!==void 0){let o=n.offset;if(!(typeof o=="number"&&!(o%1)&&!isNaN(o))){const i={instancePath:s+"/location/offset",schemaPath:"#/$defs/FindingLocation/properties/offset/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ht.properties.offset.type,parentSchema:Ht.properties.offset,data:o};e===null?e=[i]:e.push(i),t++}if(typeof o=="number"&&(o<0||isNaN(o))){const i={instancePath:s+"/location/offset",schemaPath:"#/$defs/FindingLocation/properties/offset/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ht.properties.offset,data:o};e===null?e=[i]:e.push(i),t++}}if(n.length!==void 0){let o=n.length;if(!(typeof o=="number"&&!(o%1)&&!isNaN(o))){const i={instancePath:s+"/location/length",schemaPath:"#/$defs/FindingLocation/properties/length/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ht.properties.length.type,parentSchema:Ht.properties.length,data:o};e===null?e=[i]:e.push(i),t++}if(typeof o=="number"&&(o<0||isNaN(o))){const i={instancePath:s+"/location/length",schemaPath:"#/$defs/FindingLocation/properties/length/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:Ht.properties.length,data:o};e===null?e=[i]:e.push(i),t++}}if(n.line!==void 0){let o=n.line;if(!(typeof o=="number"&&!(o%1)&&!isNaN(o))){const i={instancePath:s+"/location/line",schemaPath:"#/$defs/FindingLocation/properties/line/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ht.properties.line.type,parentSchema:Ht.properties.line,data:o};e===null?e=[i]:e.push(i),t++}if(typeof o=="number"&&(o<1||isNaN(o))){const i={instancePath:s+"/location/line",schemaPath:"#/$defs/FindingLocation/properties/line/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Ht.properties.line,data:o};e===null?e=[i]:e.push(i),t++}}if(n.column!==void 0){let o=n.column;if(!(typeof o=="number"&&!(o%1)&&!isNaN(o))){const i={instancePath:s+"/location/column",schemaPath:"#/$defs/FindingLocation/properties/column/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:Ht.properties.column.type,parentSchema:Ht.properties.column,data:o};e===null?e=[i]:e.push(i),t++}if(typeof o=="number"&&(o<1||isNaN(o))){const i={instancePath:s+"/location/column",schemaPath:"#/$defs/FindingLocation/properties/column/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1",schema:1,parentSchema:Ht.properties.column,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s+"/location",schemaPath:"#/$defs/FindingLocation/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ht.type,parentSchema:Ht,data:n};e===null?e=[o]:e.push(o),t++}}if(a.definition!==void 0){let n=a.definition;if(typeof n!="string"){const o={instancePath:s+"/definition",schemaPath:"#/properties/definition/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.definition.type,parentSchema:Xe.properties.definition,data:n};e===null?e=[o]:e.push(o),t++}}if(a.lookup!==void 0){let n=a.lookup;if(Array.isArray(n)){const o=n.length;for(let i=0;i<o;i++){let h=n[i];if(typeof h!="string"){const c={instancePath:s+"/lookup/"+i,schemaPath:"#/properties/lookup/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Xe.properties.lookup.items.type,parentSchema:Xe.properties.lookup.items,data:h};e===null?e=[c]:e.push(c),t++}}}else{const o={instancePath:s+"/lookup",schemaPath:"#/properties/lookup/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Xe.properties.lookup.type,parentSchema:Xe.properties.lookup,data:n};e===null?e=[o]:e.push(o),t++}}if(a.suggestions!==void 0){let n=a.suggestions;if(Array.isArray(n)){const o=n.length;for(let i=0;i<o;i++){let h=n[i];if(h&&typeof h=="object"&&!Array.isArray(h)){if(h.value===void 0){const c={instancePath:s+"/suggestions/"+i,schemaPath:"#/$defs/FindingSuggestion/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:oa.required,parentSchema:oa,data:h};e===null?e=[c]:e.push(c),t++}if(h.label===void 0){const c={instancePath:s+"/suggestions/"+i,schemaPath:"#/$defs/FindingSuggestion/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'",schema:oa.required,parentSchema:oa,data:h};e===null?e=[c]:e.push(c),t++}if(h.origin===void 0){const c={instancePath:s+"/suggestions/"+i,schemaPath:"#/$defs/FindingSuggestion/required",keyword:"required",params:{missingProperty:"origin"},message:"must have required property 'origin'",schema:oa.required,parentSchema:oa,data:h};e===null?e=[c]:e.push(c),t++}for(const c in h)if(!(c==="value"||c==="label"||c==="origin"||c==="definition")){const y={instancePath:s+"/suggestions/"+i,schemaPath:"#/$defs/FindingSuggestion/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties",schema:!1,parentSchema:oa,data:h};e===null?e=[y]:e.push(y),t++}if(h.value!==void 0){let c=h.value;if(typeof c!="string"&&typeof c!="number"&&typeof c!="boolean"&&c!==null){const y={instancePath:s+"/suggestions/"+i+"/value",schemaPath:"#/$defs/FindingSuggestion/properties/value/type",keyword:"type",params:{type:oa.properties.value.type},message:"must be string,number,boolean,null",schema:oa.properties.value.type,parentSchema:oa.properties.value,data:c};e===null?e=[y]:e.push(y),t++}}if(h.label!==void 0){let c=h.label;if(typeof c!="string"){const y={instancePath:s+"/suggestions/"+i+"/label",schemaPath:"#/$defs/FindingSuggestion/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oa.properties.label.type,parentSchema:oa.properties.label,data:c};e===null?e=[y]:e.push(y),t++}}if(h.origin!==void 0){let c=h.origin;if(typeof c!="string"){const y={instancePath:s+"/suggestions/"+i+"/origin",schemaPath:"#/$defs/FindingSuggestion/properties/origin/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oa.properties.origin.type,parentSchema:oa.properties.origin,data:c};e===null?e=[y]:e.push(y),t++}}if(h.definition!==void 0){let c=h.definition;if(typeof c!="string"){const y={instancePath:s+"/suggestions/"+i+"/definition",schemaPath:"#/$defs/FindingSuggestion/properties/definition/type",keyword:"type",params:{type:"string"},message:"must be string",schema:oa.properties.definition.type,parentSchema:oa.properties.definition,data:c};e===null?e=[y]:e.push(y),t++}}}else{const c={instancePath:s+"/suggestions/"+i,schemaPath:"#/$defs/FindingSuggestion/type",keyword:"type",params:{type:"object"},message:"must be object",schema:oa.type,parentSchema:oa,data:h};e===null?e=[c]:e.push(c),t++}}}else{const o={instancePath:s+"/suggestions",schemaPath:"#/properties/suggestions/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Xe.properties.suggestions.type,parentSchema:Xe.properties.suggestions,data:n};e===null?e=[o]:e.push(o),t++}}if(a.measured!==void 0){let n=a.measured;if(n&&typeof n=="object"&&!Array.isArray(n))for(const o in n){let i=n[o];if(typeof i!="number"&&typeof i!="string"&&typeof i!="boolean"&&i!==null){const h={instancePath:s+"/measured/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/measured/additionalProperties/type",keyword:"type",params:{type:Xe.properties.measured.additionalProperties.type},message:"must be number,string,boolean,null",schema:Xe.properties.measured.additionalProperties.type,parentSchema:Xe.properties.measured.additionalProperties,data:i};e===null?e=[h]:e.push(h),t++}}else{const o={instancePath:s+"/measured",schemaPath:"#/properties/measured/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Xe.properties.measured.type,parentSchema:Xe.properties.measured,data:n};e===null?e=[o]:e.push(o),t++}}if(a.fixes!==void 0){let n=a.fixes;if(Array.isArray(n)){const o=n.length;for(let i=0;i<o;i++)In(n[i],{instancePath:s+"/fixes/"+i,parentData:n,parentDataProperty:i,rootData:v,dynamicAnchors:b})||(e=e===null?In.errors:e.concat(In.errors),t=e.length)}else{const o={instancePath:s+"/fixes",schemaPath:"#/properties/fixes/type",keyword:"type",params:{type:"array"},message:"must be array",schema:Xe.properties.fixes.type,parentSchema:Xe.properties.fixes,data:n};e===null?e=[o]:e.push(o),t++}}if(a.validation!==void 0){let n=a.validation;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.path===void 0){const o={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:xt.required,parentSchema:xt,data:n};e===null?e=[o]:e.push(o),t++}if(n.message===void 0){const o={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/required",keyword:"required",params:{missingProperty:"message"},message:"must have required property 'message'",schema:xt.required,parentSchema:xt,data:n};e===null?e=[o]:e.push(o),t++}if(n.keyword===void 0){const o={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/required",keyword:"required",params:{missingProperty:"keyword"},message:"must have required property 'keyword'",schema:xt.required,parentSchema:xt,data:n};e===null?e=[o]:e.push(o),t++}if(n.schemaPath===void 0){const o={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/required",keyword:"required",params:{missingProperty:"schemaPath"},message:"must have required property 'schemaPath'",schema:xt.required,parentSchema:xt,data:n};e===null?e=[o]:e.push(o),t++}if(n.params===void 0){const o={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/required",keyword:"required",params:{missingProperty:"params"},message:"must have required property 'params'",schema:xt.required,parentSchema:xt,data:n};e===null?e=[o]:e.push(o),t++}for(const o in n)if(!(o==="path"||o==="message"||o==="keyword"||o==="schemaPath"||o==="params"||o==="alternatives")){const i={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o},message:"must NOT have additional properties",schema:!1,parentSchema:xt,data:n};e===null?e=[i]:e.push(i),t++}if(n.path!==void 0){let o=n.path;if(typeof o!="string"){const i={instancePath:s+"/validation/path",schemaPath:"#/$defs/ValidationIssue/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xt.properties.path.type,parentSchema:xt.properties.path,data:o};e===null?e=[i]:e.push(i),t++}}if(n.message!==void 0){let o=n.message;if(typeof o!="string"){const i={instancePath:s+"/validation/message",schemaPath:"#/$defs/ValidationIssue/properties/message/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xt.properties.message.type,parentSchema:xt.properties.message,data:o};e===null?e=[i]:e.push(i),t++}}if(n.keyword!==void 0){let o=n.keyword;if(typeof o!="string"){const i={instancePath:s+"/validation/keyword",schemaPath:"#/$defs/ValidationIssue/properties/keyword/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xt.properties.keyword.type,parentSchema:xt.properties.keyword,data:o};e===null?e=[i]:e.push(i),t++}}if(n.schemaPath!==void 0){let o=n.schemaPath;if(typeof o!="string"){const i={instancePath:s+"/validation/schemaPath",schemaPath:"#/$defs/ValidationIssue/properties/schemaPath/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xt.properties.schemaPath.type,parentSchema:xt.properties.schemaPath,data:o};e===null?e=[i]:e.push(i),t++}}if(n.params!==void 0){let o=n.params;if(!(o&&typeof o=="object"&&!Array.isArray(o))){const i={instancePath:s+"/validation/params",schemaPath:"#/$defs/ValidationIssue/properties/params/type",keyword:"type",params:{type:"object"},message:"must be object",schema:xt.properties.params.type,parentSchema:xt.properties.params,data:o};e===null?e=[i]:e.push(i),t++}}if(n.alternatives!==void 0){let o=n.alternatives;if(Array.isArray(o)){const i=o.length;for(let h=0;h<i;h++){let c=o[h];if(typeof c!="string"){const y={instancePath:s+"/validation/alternatives/"+h,schemaPath:"#/$defs/ValidationIssue/properties/alternatives/items/type",keyword:"type",params:{type:"string"},message:"must be string",schema:xt.properties.alternatives.items.type,parentSchema:xt.properties.alternatives.items,data:c};e===null?e=[y]:e.push(y),t++}}}else{const i={instancePath:s+"/validation/alternatives",schemaPath:"#/$defs/ValidationIssue/properties/alternatives/type",keyword:"type",params:{type:"array"},message:"must be array",schema:xt.properties.alternatives.type,parentSchema:xt.properties.alternatives,data:o};e===null?e=[i]:e.push(i),t++}}}else{const o={instancePath:s+"/validation",schemaPath:"#/$defs/ValidationIssue/type",keyword:"type",params:{type:"object"},message:"must be object",schema:xt.type,parentSchema:xt,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Xe.type,parentSchema:Xe,data:a};e===null?e=[n]:e.push(n),t++}return zn.errors=e,t===0}zn.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Cc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Cc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.valid===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"valid"},message:"must have required property 'valid'",schema:At.required,parentSchema:At,data:a};e===null?e=[r]:e.push(r),t++}if(a.findings===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"findings"},message:"must have required property 'findings'",schema:At.required,parentSchema:At,data:a};e===null?e=[r]:e.push(r),t++}if(a.counts===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"counts"},message:"must have required property 'counts'",schema:At.required,parentSchema:At,data:a};e===null?e=[r]:e.push(r),t++}if(a.valid!==void 0){let r=a.valid;if(typeof r!="boolean"){const n={instancePath:s+"/valid",schemaPath:"#/properties/valid/type",keyword:"type",params:{type:"boolean"},message:"must be boolean",schema:At.properties.valid.type,parentSchema:At.properties.valid,data:r};e===null?e=[n]:e.push(n),t++}}if(a.findings!==void 0){let r=a.findings;if(Array.isArray(r)){const n=r.length;for(let o=0;o<n;o++)zn(r[o],{instancePath:s+"/findings/"+o,parentData:r,parentDataProperty:o,rootData:v,dynamicAnchors:b})||(e=e===null?zn.errors:e.concat(zn.errors),t=e.length)}else{const n={instancePath:s+"/findings",schemaPath:"#/properties/findings/type",keyword:"type",params:{type:"array"},message:"must be array",schema:At.properties.findings.type,parentSchema:At.properties.findings,data:r};e===null?e=[n]:e.push(n),t++}}if(a.counts!==void 0){let r=a.counts;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.error===void 0){const n={instancePath:s+"/counts",schemaPath:"#/properties/counts/required",keyword:"required",params:{missingProperty:"error"},message:"must have required property 'error'",schema:At.properties.counts.required,parentSchema:At.properties.counts,data:r};e===null?e=[n]:e.push(n),t++}if(r.warning===void 0){const n={instancePath:s+"/counts",schemaPath:"#/properties/counts/required",keyword:"required",params:{missingProperty:"warning"},message:"must have required property 'warning'",schema:At.properties.counts.required,parentSchema:At.properties.counts,data:r};e===null?e=[n]:e.push(n),t++}if(r.info===void 0){const n={instancePath:s+"/counts",schemaPath:"#/properties/counts/required",keyword:"required",params:{missingProperty:"info"},message:"must have required property 'info'",schema:At.properties.counts.required,parentSchema:At.properties.counts,data:r};e===null?e=[n]:e.push(n),t++}for(const n in r)if(!(n==="error"||n==="warning"||n==="info")){const o={instancePath:s+"/counts",schemaPath:"#/properties/counts/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties",schema:!1,parentSchema:At.properties.counts,data:r};e===null?e=[o]:e.push(o),t++}if(r.error!==void 0){let n=r.error;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){const o={instancePath:s+"/counts/error",schemaPath:"#/properties/counts/properties/error/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:At.properties.counts.properties.error.type,parentSchema:At.properties.counts.properties.error,data:n};e===null?e=[o]:e.push(o),t++}if(typeof n=="number"&&(n<0||isNaN(n))){const o={instancePath:s+"/counts/error",schemaPath:"#/properties/counts/properties/error/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:At.properties.counts.properties.error,data:n};e===null?e=[o]:e.push(o),t++}}if(r.warning!==void 0){let n=r.warning;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){const o={instancePath:s+"/counts/warning",schemaPath:"#/properties/counts/properties/warning/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:At.properties.counts.properties.warning.type,parentSchema:At.properties.counts.properties.warning,data:n};e===null?e=[o]:e.push(o),t++}if(typeof n=="number"&&(n<0||isNaN(n))){const o={instancePath:s+"/counts/warning",schemaPath:"#/properties/counts/properties/warning/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:At.properties.counts.properties.warning,data:n};e===null?e=[o]:e.push(o),t++}}if(r.info!==void 0){let n=r.info;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){const o={instancePath:s+"/counts/info",schemaPath:"#/properties/counts/properties/info/type",keyword:"type",params:{type:"integer"},message:"must be integer",schema:At.properties.counts.properties.info.type,parentSchema:At.properties.counts.properties.info,data:n};e===null?e=[o]:e.push(o),t++}if(typeof n=="number"&&(n<0||isNaN(n))){const o={instancePath:s+"/counts/info",schemaPath:"#/properties/counts/properties/info/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0",schema:0,parentSchema:At.properties.counts.properties.info,data:n};e===null?e=[o]:e.push(o),t++}}}else{const n={instancePath:s+"/counts",schemaPath:"#/properties/counts/type",keyword:"type",params:{type:"object"},message:"must be object",schema:At.properties.counts.type,parentSchema:At.properties.counts,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:At.type,parentSchema:At,data:a};e===null?e=[r]:e.push(r),t++}return Cc.errors=e,t===0}Cc.evaluated={props:{valid:!0,findings:!0,counts:!0},dynamicProps:!1,dynamicItems:!1},D.branch217=Vc;var _n=j.finding.$defs.FindingCategory.anyOf[0];function Vc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Vc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a!="string"){const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:_n.type,parentSchema:_n,data:a};e===null?e=[r]:e.push(r),t++}if(!(a==="format"||a==="references"||a==="policy"||a==="accessibility"||a==="layout"||a==="content")){const r={instancePath:s,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:_n.enum},message:"must be equal to one of the allowed values",schema:_n.enum,parentSchema:_n,data:a};e===null?e=[r]:e.push(r),t++}return Vc.errors=e,t===0}Vc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch218=Lc;var bh=j.finding.$defs.FindingCategory.anyOf[1];function Lc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Lc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),typeof a=="string"){if(pe(a)<1){const r={instancePath:s,schemaPath:"#/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters",schema:1,parentSchema:bh,data:a};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string",schema:bh.type,parentSchema:bh,data:a};e===null?e=[r]:e.push(r),t++}return Lc.errors=e,t===0}Lc.evaluated={dynamicProps:!1,dynamicItems:!1},D.branch219=Rc;var ga=j.finding.$defs.JsonPatchOperation.oneOf[0];function Rc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Rc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.op===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"op"},message:"must have required property 'op'",schema:ga.required,parentSchema:ga,data:a};e===null?e=[r]:e.push(r),t++}if(a.path===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:ga.required,parentSchema:ga,data:a};e===null?e=[r]:e.push(r),t++}if(a.value===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'",schema:ga.required,parentSchema:ga,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="op"||r==="path"||r==="value")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:ga,data:a};e===null?e=[n]:e.push(n),t++}if(a.op!==void 0){let r=a.op;if(typeof r!="string"){const n={instancePath:s+"/op",schemaPath:"#/properties/op/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ga.properties.op.type,parentSchema:ga.properties.op,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="add"||r==="replace"||r==="test")){const n={instancePath:s+"/op",schemaPath:"#/properties/op/enum",keyword:"enum",params:{allowedValues:ga.properties.op.enum},message:"must be equal to one of the allowed values",schema:ga.properties.op.enum,parentSchema:ga.properties.op,data:r};e===null?e=[n]:e.push(n),t++}}if(a.path!==void 0){let r=a.path;if(typeof r!="string"){const n={instancePath:s+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:ga.properties.path.type,parentSchema:ga.properties.path,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:ga.type,parentSchema:ga,data:a};e===null?e=[r]:e.push(r),t++}return Rc.errors=e,t===0}Rc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch220=Zc;var Ta=j.finding.$defs.JsonPatchOperation.oneOf[1];function Zc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Zc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.op===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"op"},message:"must have required property 'op'",schema:Ta.required,parentSchema:Ta,data:a};e===null?e=[r]:e.push(r),t++}if(a.path===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:Ta.required,parentSchema:Ta,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="op"||r==="path")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:Ta,data:a};e===null?e=[n]:e.push(n),t++}if(a.op!==void 0){let r=a.op;if(typeof r!="string"){const n={instancePath:s+"/op",schemaPath:"#/properties/op/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ta.properties.op.type,parentSchema:Ta.properties.op,data:r};e===null?e=[n]:e.push(n),t++}if(r!=="remove"){const n={instancePath:s+"/op",schemaPath:"#/properties/op/const",keyword:"const",params:{allowedValue:"remove"},message:"must be equal to constant",schema:"remove",parentSchema:Ta.properties.op,data:r};e===null?e=[n]:e.push(n),t++}}if(a.path!==void 0){let r=a.path;if(typeof r!="string"){const n={instancePath:s+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:Ta.properties.path.type,parentSchema:Ta.properties.path,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:Ta.type,parentSchema:Ta,data:a};e===null?e=[r]:e.push(r),t++}return Zc.errors=e,t===0}Zc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1},D.branch221=Mc;var pa=j.finding.$defs.JsonPatchOperation.oneOf[2];function Mc(a,{instancePath:s="",parentData:q,parentDataProperty:x,rootData:v=a,dynamicAnchors:b={}}={}){let e=null,t=0;const m=Mc.evaluated;if(m.dynamicProps&&(m.props=void 0),m.dynamicItems&&(m.items=void 0),a&&typeof a=="object"&&!Array.isArray(a)){if(a.op===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"op"},message:"must have required property 'op'",schema:pa.required,parentSchema:pa,data:a};e===null?e=[r]:e.push(r),t++}if(a.from===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"from"},message:"must have required property 'from'",schema:pa.required,parentSchema:pa,data:a};e===null?e=[r]:e.push(r),t++}if(a.path===void 0){const r={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'",schema:pa.required,parentSchema:pa,data:a};e===null?e=[r]:e.push(r),t++}for(const r in a)if(!(r==="op"||r==="from"||r==="path")){const n={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r},message:"must NOT have additional properties",schema:!1,parentSchema:pa,data:a};e===null?e=[n]:e.push(n),t++}if(a.op!==void 0){let r=a.op;if(typeof r!="string"){const n={instancePath:s+"/op",schemaPath:"#/properties/op/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pa.properties.op.type,parentSchema:pa.properties.op,data:r};e===null?e=[n]:e.push(n),t++}if(!(r==="move"||r==="copy")){const n={instancePath:s+"/op",schemaPath:"#/properties/op/enum",keyword:"enum",params:{allowedValues:pa.properties.op.enum},message:"must be equal to one of the allowed values",schema:pa.properties.op.enum,parentSchema:pa.properties.op,data:r};e===null?e=[n]:e.push(n),t++}}if(a.from!==void 0){let r=a.from;if(typeof r!="string"){const n={instancePath:s+"/from",schemaPath:"#/properties/from/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pa.properties.from.type,parentSchema:pa.properties.from,data:r};e===null?e=[n]:e.push(n),t++}}if(a.path!==void 0){let r=a.path;if(typeof r!="string"){const n={instancePath:s+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string",schema:pa.properties.path.type,parentSchema:pa.properties.path,data:r};e===null?e=[n]:e.push(n),t++}}}else{const r={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object",schema:pa.type,parentSchema:pa,data:a};e===null?e=[r]:e.push(r),t++}return Mc.errors=e,t===0}Mc.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Kd={presentation:D.root0,audience:D.root1,purpose:D.root2,tone:D.root3,theme:D.root4,layout:D.root5,chartType:D.root6,narrative:D.root7,socialPlatform:D.root8,language:D.root9,colorScheme:D.root10,fontScheme:D.root11,finding:D.root12},Yd={"presentation#/$defs/Variable":D.definition0,"presentation#/$defs/ColorVariable":D.definition1,"presentation#/$defs/TextVariable":D.definition2,"presentation#/$defs/NumberVariable":D.definition3,"presentation#/$defs/DateVariable":D.definition4,"presentation#/$defs/ImageVariable":D.definition5,"presentation#/$defs/UrlVariable":D.definition6,"presentation#/$defs/ListVariable":D.definition7,"presentation#/$defs/ChartData":D.definition8,"presentation#/$defs/DataColumn":D.definition9,"presentation#/$defs/DatasetRef":D.definition10,"presentation#/$defs/StyledTableCell":D.definition11},Qd=[{schema:"presentation",pointer:["properties","organization","oneOf",0],validate:D.branch0},{schema:"presentation",pointer:["properties","organization","oneOf",1],validate:D.branch1},{schema:"presentation",pointer:["properties","speaker","oneOf",0],validate:D.branch2},{schema:"presentation",pointer:["properties","speaker","oneOf",1],validate:D.branch3},{schema:"presentation",pointer:["properties","author","oneOf",0],validate:D.branch4},{schema:"presentation",pointer:["properties","author","oneOf",1],validate:D.branch5},{schema:"presentation",pointer:["properties","audience","oneOf",0],validate:D.branch6},{schema:"presentation",pointer:["properties","audience","oneOf",1],validate:D.branch7},{schema:"presentation",pointer:["properties","audience","oneOf",2],validate:D.branch8},{schema:"presentation",pointer:["properties","audience","oneOf",2,"items","oneOf",0],validate:D.branch9},{schema:"presentation",pointer:["properties","audience","oneOf",2,"items","oneOf",1],validate:D.branch10},{schema:"presentation",pointer:["properties","purpose","oneOf",0],validate:D.branch11},{schema:"presentation",pointer:["properties","purpose","oneOf",1],validate:D.branch12},{schema:"presentation",pointer:["properties","language","oneOf",0],validate:D.branch13},{schema:"presentation",pointer:["properties","language","oneOf",1],validate:D.branch14},{schema:"presentation",pointer:["properties","tone","oneOf",0],validate:D.branch15},{schema:"presentation",pointer:["properties","tone","oneOf",1],validate:D.branch16},{schema:"presentation",pointer:["properties","takeaway","oneOf",0],validate:D.branch17},{schema:"presentation",pointer:["properties","takeaway","oneOf",1],validate:D.branch18},{schema:"presentation",pointer:["$defs","Asset","oneOf",0],validate:D.branch19},{schema:"presentation",pointer:["$defs","Asset","oneOf",1],validate:D.branch20},{schema:"presentation",pointer:["$defs","Audience","anyOf",0],validate:D.branch21},{schema:"presentation",pointer:["$defs","Audience","anyOf",1],validate:D.branch22},{schema:"presentation",pointer:["$defs","Purpose","anyOf",0],validate:D.branch23},{schema:"presentation",pointer:["$defs","Purpose","anyOf",1],validate:D.branch24},{schema:"presentation",pointer:["$defs","Tone","anyOf",0],validate:D.branch25},{schema:"presentation",pointer:["$defs","Tone","anyOf",1],validate:D.branch26},{schema:"presentation",pointer:["$defs","Organization","properties","logo","oneOf",0],validate:D.branch27},{schema:"presentation",pointer:["$defs","Organization","properties","logo","oneOf",1],validate:D.branch28},{schema:"presentation",pointer:["$defs","Design","properties","colorScheme","oneOf",0],validate:D.branch29},{schema:"presentation",pointer:["$defs","Design","properties","colorScheme","oneOf",1],validate:D.branch30},{schema:"presentation",pointer:["$defs","Design","properties","fontScheme","oneOf",0],validate:D.branch31},{schema:"presentation",pointer:["$defs","Design","properties","fontScheme","oneOf",1],validate:D.branch32},{schema:"presentation",pointer:["$defs","Design","properties","dimensions","oneOf",0],validate:D.branch33},{schema:"presentation",pointer:["$defs","Design","properties","dimensions","oneOf",1],validate:D.branch34},{schema:"presentation",pointer:["$defs","Design","properties","background","oneOf",0],validate:D.branch35},{schema:"presentation",pointer:["$defs","Design","properties","background","oneOf",1],validate:D.branch36},{schema:"presentation",pointer:["$defs","Design","properties","variant","oneOf",0],validate:D.branch37},{schema:"presentation",pointer:["$defs","Design","properties","variant","oneOf",1],validate:D.branch38},{schema:"presentation",pointer:["$defs","Design","properties","logo","oneOf",0],validate:D.branch39},{schema:"presentation",pointer:["$defs","Design","properties","logo","oneOf",1],validate:D.branch40},{schema:"presentation",pointer:["$defs","Design","properties","watermark","oneOf",0],validate:D.branch41},{schema:"presentation",pointer:["$defs","Design","properties","watermark","oneOf",1],validate:D.branch42},{schema:"presentation",pointer:["$defs","Design","properties","watermark","oneOf",2],validate:D.branch43},{schema:"presentation",pointer:["$defs","Design","properties","header","oneOf",0],validate:D.branch44},{schema:"presentation",pointer:["$defs","Design","properties","header","oneOf",1],validate:D.branch45},{schema:"presentation",pointer:["$defs","Design","properties","footer","oneOf",0],validate:D.branch46},{schema:"presentation",pointer:["$defs","Design","properties","footer","oneOf",1],validate:D.branch47},{schema:"presentation",pointer:["$defs","ColorRef","anyOf",0],validate:D.branch48},{schema:"presentation",pointer:["$defs","ColorRef","anyOf",1],validate:D.branch49},{schema:"presentation",pointer:["$defs","ColorRef","anyOf",2],validate:D.branch50},{schema:"presentation",pointer:["$defs","Variable","oneOf",0],validate:D.branch51},{schema:"presentation",pointer:["$defs","Variable","oneOf",1],validate:D.branch52},{schema:"presentation",pointer:["$defs","Variable","oneOf",2],validate:D.branch53},{schema:"presentation",pointer:["$defs","Variable","oneOf",3],validate:D.branch54},{schema:"presentation",pointer:["$defs","Variable","oneOf",4],validate:D.branch55},{schema:"presentation",pointer:["$defs","Variable","oneOf",5],validate:D.branch56},{schema:"presentation",pointer:["$defs","Variable","oneOf",6],validate:D.branch57},{schema:"presentation",pointer:["$defs","Variable","oneOf",7],validate:D.branch58},{schema:"presentation",pointer:["$defs","TextVariable","properties","value","oneOf",0],validate:D.branch59},{schema:"presentation",pointer:["$defs","TextVariable","properties","value","oneOf",1],validate:D.branch60},{schema:"presentation",pointer:["$defs","TextVariable","properties","example","oneOf",0],validate:D.branch61},{schema:"presentation",pointer:["$defs","TextVariable","properties","example","oneOf",1],validate:D.branch62},{schema:"presentation",pointer:["$defs","BackgroundShortcut","oneOf",0],validate:D.branch63},{schema:"presentation",pointer:["$defs","BackgroundShortcut","oneOf",1],validate:D.branch64},{schema:"presentation",pointer:["$defs","BackgroundShortcut","oneOf",2],validate:D.branch65},{schema:"presentation",pointer:["$defs","Background","oneOf",0],validate:D.branch66},{schema:"presentation",pointer:["$defs","Background","oneOf",1],validate:D.branch67},{schema:"presentation",pointer:["$defs","Background","oneOf",2],validate:D.branch68},{schema:"presentation",pointer:["$defs","Background","oneOf",3],validate:D.branch69},{schema:"presentation",pointer:["$defs","Background","oneOf",4],validate:D.branch70},{schema:"presentation",pointer:["$defs","ImageBackground","properties","overlay","oneOf",0],validate:D.branch71},{schema:"presentation",pointer:["$defs","ImageBackground","properties","overlay","oneOf",1],validate:D.branch72},{schema:"presentation",pointer:["$defs","ImageRecolor","oneOf",0],validate:D.branch73},{schema:"presentation",pointer:["$defs","ImageRecolor","oneOf",1],validate:D.branch74},{schema:"presentation",pointer:["$defs","LogoSource","oneOf",0],validate:D.branch75},{schema:"presentation",pointer:["$defs","LogoSource","oneOf",1],validate:D.branch76},{schema:"presentation",pointer:["$defs","Watermark","oneOf",0],validate:D.branch77},{schema:"presentation",pointer:["$defs","Watermark","oneOf",1],validate:D.branch78},{schema:"presentation",pointer:["$defs","HeaderFooterItem","properties","date","oneOf",0],validate:D.branch79},{schema:"presentation",pointer:["$defs","HeaderFooterItem","properties","date","oneOf",1],validate:D.branch80},{schema:"presentation",pointer:["$defs","Slide","properties","beat","oneOf",0],validate:D.branch81},{schema:"presentation",pointer:["$defs","Slide","properties","beat","oneOf",1],validate:D.branch82},{schema:"presentation",pointer:["$defs","Slide","properties","title","oneOf",0],validate:D.branch83},{schema:"presentation",pointer:["$defs","Slide","properties","title","oneOf",1],validate:D.branch84},{schema:"presentation",pointer:["$defs","Slide","properties","subtitle","oneOf",0],validate:D.branch85},{schema:"presentation",pointer:["$defs","Slide","properties","subtitle","oneOf",1],validate:D.branch86},{schema:"presentation",pointer:["$defs","Slide","properties","tag","oneOf",0],validate:D.branch87},{schema:"presentation",pointer:["$defs","Slide","properties","tag","oneOf",1],validate:D.branch88},{schema:"presentation",pointer:["$defs","Slide","properties","text","oneOf",0],validate:D.branch89},{schema:"presentation",pointer:["$defs","Slide","properties","text","oneOf",1],validate:D.branch90},{schema:"presentation",pointer:["$defs","Slide","properties","code","oneOf",0],validate:D.branch91},{schema:"presentation",pointer:["$defs","Slide","properties","code","oneOf",1],validate:D.branch92},{schema:"presentation",pointer:["$defs","Slide","properties","metric","oneOf",0],validate:D.branch93},{schema:"presentation",pointer:["$defs","Slide","properties","metric","oneOf",1],validate:D.branch94},{schema:"presentation",pointer:["$defs","Slide","properties","metric","oneOf",2],validate:D.branch95},{schema:"presentation",pointer:["$defs","Slide","properties","quote","oneOf",0],validate:D.branch96},{schema:"presentation",pointer:["$defs","Slide","properties","quote","oneOf",1],validate:D.branch97},{schema:"presentation",pointer:["$defs","Slide","properties","diagram","oneOf",0],validate:D.branch98},{schema:"presentation",pointer:["$defs","Slide","properties","diagram","oneOf",1],validate:D.branch99},{schema:"presentation",pointer:["$defs","ContentPayload","properties","text","oneOf",0],validate:D.branch100},{schema:"presentation",pointer:["$defs","ContentPayload","properties","text","oneOf",1],validate:D.branch101},{schema:"presentation",pointer:["$defs","ContentPayload","properties","columns","oneOf",0],validate:D.branch102},{schema:"presentation",pointer:["$defs","ContentPayload","properties","columns","oneOf",1],validate:D.branch103},{schema:"presentation",pointer:["$defs","ContentPayload","properties","code","oneOf",0],validate:D.branch104},{schema:"presentation",pointer:["$defs","ContentPayload","properties","code","oneOf",1],validate:D.branch105},{schema:"presentation",pointer:["$defs","ContentPayload","properties","metric","oneOf",0],validate:D.branch106},{schema:"presentation",pointer:["$defs","ContentPayload","properties","metric","oneOf",1],validate:D.branch107},{schema:"presentation",pointer:["$defs","ContentPayload","properties","metric","oneOf",2],validate:D.branch108},{schema:"presentation",pointer:["$defs","ContentPayload","properties","quote","oneOf",0],validate:D.branch109},{schema:"presentation",pointer:["$defs","ContentPayload","properties","quote","oneOf",1],validate:D.branch110},{schema:"presentation",pointer:["$defs","ContentPayload","properties","diagram","oneOf",0],validate:D.branch111},{schema:"presentation",pointer:["$defs","ContentPayload","properties","diagram","oneOf",1],validate:D.branch112},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","not","anyOf",0],validate:D.branch113},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","not","anyOf",1],validate:D.branch114},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","not","anyOf",2],validate:D.branch115},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","not","anyOf",3],validate:D.branch116},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","not","anyOf",4],validate:D.branch117},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","not","anyOf",5],validate:D.branch118},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","not","anyOf",6],validate:D.branch119},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","not","anyOf",7],validate:D.branch120},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","not","anyOf",8],validate:D.branch121},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","not","anyOf",9],validate:D.branch122},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","not","anyOf",10],validate:D.branch123},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",12,"then","not","anyOf",11],validate:D.branch124},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",13,"then","anyOf",0],validate:D.branch125},{schema:"presentation",pointer:["$defs","ContentPayload","allOf",13,"then","anyOf",1],validate:D.branch126},{schema:"presentation",pointer:["$defs","Quote","properties","text","oneOf",0],validate:D.branch127},{schema:"presentation",pointer:["$defs","Quote","properties","text","oneOf",1],validate:D.branch128},{schema:"presentation",pointer:["$defs","Code","properties","highlight","items","oneOf",0],validate:D.branch129},{schema:"presentation",pointer:["$defs","Code","properties","highlight","items","oneOf",1],validate:D.branch130},{schema:"presentation",pointer:["$defs","Metric","properties","value","oneOf",0],validate:D.branch131},{schema:"presentation",pointer:["$defs","Metric","properties","value","oneOf",1],validate:D.branch132},{schema:"presentation",pointer:["$defs","Metric","properties","delta","oneOf",0],validate:D.branch133},{schema:"presentation",pointer:["$defs","Metric","properties","delta","oneOf",1],validate:D.branch134},{schema:"presentation",pointer:["$defs","Timeline","oneOf",0],validate:D.branch135},{schema:"presentation",pointer:["$defs","Timeline","oneOf",1],validate:D.branch136},{schema:"presentation",pointer:["$defs","ListItem","oneOf",0],validate:D.branch137},{schema:"presentation",pointer:["$defs","ListItem","oneOf",1],validate:D.branch138},{schema:"presentation",pointer:["$defs","ListItem","oneOf",2],validate:D.branch139},{schema:"presentation",pointer:["$defs","ListItem","oneOf",2,"properties","text","oneOf",0],validate:D.branch140},{schema:"presentation",pointer:["$defs","ListItem","oneOf",2,"properties","text","oneOf",1],validate:D.branch141},{schema:"presentation",pointer:["$defs","ListItem","oneOf",2,"properties","description","oneOf",0],validate:D.branch142},{schema:"presentation",pointer:["$defs","ListItem","oneOf",2,"properties","description","oneOf",1],validate:D.branch143},{schema:"presentation",pointer:["$defs","BulletItem","oneOf",0],validate:D.branch144},{schema:"presentation",pointer:["$defs","BulletItem","oneOf",1],validate:D.branch145},{schema:"presentation",pointer:["$defs","BulletItem","oneOf",2],validate:D.branch146},{schema:"presentation",pointer:["$defs","BulletItem","oneOf",2,"properties","text","oneOf",0],validate:D.branch147},{schema:"presentation",pointer:["$defs","BulletItem","oneOf",2,"properties","text","oneOf",1],validate:D.branch148},{schema:"presentation",pointer:["$defs","NumberingSpec","oneOf",0],validate:D.branch149},{schema:"presentation",pointer:["$defs","NumberingSpec","oneOf",1],validate:D.branch150},{schema:"presentation",pointer:["$defs","NumberingSpec","oneOf",2],validate:D.branch151},{schema:"presentation",pointer:["$defs","NumberingSpec","oneOf",2,"items","oneOf",0],validate:D.branch152},{schema:"presentation",pointer:["$defs","NumberingSpec","oneOf",2,"items","oneOf",1],validate:D.branch153},{schema:"presentation",pointer:["$defs","TextRun","oneOf",0],validate:D.branch154},{schema:"presentation",pointer:["$defs","TextRun","oneOf",1],validate:D.branch155},{schema:"presentation",pointer:["$defs","TextRun","oneOf",1,"properties","cite","oneOf",0],validate:D.branch156},{schema:"presentation",pointer:["$defs","TextRun","oneOf",1,"properties","cite","oneOf",1],validate:D.branch157},{schema:"presentation",pointer:["$defs","TextRun","oneOf",1,"properties","footnote","oneOf",0],validate:D.branch158},{schema:"presentation",pointer:["$defs","TextRun","oneOf",1,"properties","footnote","oneOf",1],validate:D.branch159},{schema:"presentation",pointer:["$defs","Caption","oneOf",0],validate:D.branch160},{schema:"presentation",pointer:["$defs","Caption","oneOf",1],validate:D.branch161},{schema:"presentation",pointer:["$defs","Caption","oneOf",2],validate:D.branch162},{schema:"presentation",pointer:["$defs","Caption","oneOf",2,"properties","text","oneOf",0],validate:D.branch163},{schema:"presentation",pointer:["$defs","Caption","oneOf",2,"properties","text","oneOf",1],validate:D.branch164},{schema:"presentation",pointer:["$defs","Reference","properties","text","oneOf",0],validate:D.branch165},{schema:"presentation",pointer:["$defs","Reference","properties","text","oneOf",1],validate:D.branch166},{schema:"presentation",pointer:["$defs","Chart","properties","data","oneOf",0],validate:D.branch167},{schema:"presentation",pointer:["$defs","Chart","properties","data","oneOf",1],validate:D.branch168},{schema:"presentation",pointer:["$defs","Chart","properties","dataLabels","oneOf",0],validate:D.branch169},{schema:"presentation",pointer:["$defs","Chart","properties","dataLabels","oneOf",1],validate:D.branch170},{schema:"presentation",pointer:["$defs","Table","properties","columns","items","oneOf",0],validate:D.branch171},{schema:"presentation",pointer:["$defs","Table","properties","columns","items","oneOf",1],validate:D.branch172},{schema:"presentation",pointer:["$defs","Table","properties","columns","items","oneOf",2],validate:D.branch173},{schema:"presentation",pointer:["$defs","Table","properties","columns","items","oneOf",3],validate:D.branch174},{schema:"presentation",pointer:["$defs","Table","properties","columns","items","oneOf",4],validate:D.branch175},{schema:"presentation",pointer:["$defs","ChartData","properties","columns","items","oneOf",0],validate:D.branch176},{schema:"presentation",pointer:["$defs","ChartData","properties","columns","items","oneOf",1],validate:D.branch177},{schema:"presentation",pointer:["$defs","DataSourceRef","properties","retrieved","anyOf",0],validate:D.branch178},{schema:"presentation",pointer:["$defs","DataSourceRef","properties","retrieved","anyOf",1],validate:D.branch179},{schema:"presentation",pointer:["$defs","Dataset","properties","columns","items","oneOf",0],validate:D.branch180},{schema:"presentation",pointer:["$defs","Dataset","properties","columns","items","oneOf",1],validate:D.branch181},{schema:"presentation",pointer:["$defs","ChartDataCell","oneOf",0],validate:D.branch182},{schema:"presentation",pointer:["$defs","ChartDataCell","oneOf",1],validate:D.branch183},{schema:"presentation",pointer:["$defs","ChartDataCell","oneOf",2],validate:D.branch184},{schema:"presentation",pointer:["$defs","ChartDataCell","oneOf",3],validate:D.branch185},{schema:"presentation",pointer:["$defs","TableCell","oneOf",0],validate:D.branch186},{schema:"presentation",pointer:["$defs","TableCell","oneOf",1],validate:D.branch187},{schema:"presentation",pointer:["$defs","TableCellValue","oneOf",0],validate:D.branch188},{schema:"presentation",pointer:["$defs","TableCellValue","oneOf",1],validate:D.branch189},{schema:"presentation",pointer:["$defs","TableCellValue","oneOf",2],validate:D.branch190},{schema:"presentation",pointer:["$defs","TableCellValue","oneOf",3],validate:D.branch191},{schema:"presentation",pointer:["$defs","TableCellValue","oneOf",4],validate:D.branch192},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0],validate:D.branch193},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",1],validate:D.branch194},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",0],validate:D.branch195},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",1],validate:D.branch196},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",2],validate:D.branch197},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",3],validate:D.branch198},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",4],validate:D.branch199},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",5],validate:D.branch200},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",6],validate:D.branch201},{schema:"presentation",pointer:["$defs","Catalogs","properties","default","oneOf",0,"allOf",1,"if","anyOf",7],validate:D.branch202},{schema:"presentation",pointer:["$defs","CatalogRecords","additionalProperties","not","anyOf",0],validate:D.branch203},{schema:"presentation",pointer:["$defs","CatalogRecords","additionalProperties","not","anyOf",1],validate:D.branch204},{schema:"theme",pointer:["$defs","ThemeVariant","properties","variant","oneOf",0],validate:D.branch205},{schema:"theme",pointer:["$defs","ThemeVariant","properties","variant","oneOf",1],validate:D.branch206},{schema:"layout",pointer:["$defs","RegionEntry","oneOf",0],validate:D.branch207},{schema:"layout",pointer:["$defs","RegionEntry","oneOf",1],validate:D.branch208},{schema:"layout",pointer:["$defs","RegionEntry","oneOf",2],validate:D.branch209},{schema:"layout",pointer:["$defs","RegionSize","oneOf",0],validate:D.branch210},{schema:"layout",pointer:["$defs","RegionSize","oneOf",1],validate:D.branch211},{schema:"layout",pointer:["$defs","Region","properties","listColumns","oneOf",0],validate:D.branch212},{schema:"layout",pointer:["$defs","Region","properties","listColumns","oneOf",1],validate:D.branch213},{schema:"layout",pointer:["$defs","DesignHints","properties","variant","oneOf",0],validate:D.branch214},{schema:"layout",pointer:["$defs","DesignHints","properties","variant","oneOf",1],validate:D.branch215},{schema:"layout",pointer:["$defs","DesignHints","properties","variant","oneOf",2],validate:D.branch216},{schema:"finding",pointer:["$defs","FindingCategory","anyOf",0],validate:D.branch217},{schema:"finding",pointer:["$defs","FindingCategory","anyOf",1],validate:D.branch218},{schema:"finding",pointer:["$defs","JsonPatchOperation","oneOf",0],validate:D.branch219},{schema:"finding",pointer:["$defs","JsonPatchOperation","oneOf",1],validate:D.branch220},{schema:"finding",pointer:["$defs","JsonPatchOperation","oneOf",2],validate:D.branch221}],Gd="opf-precompiled-validators",Oh;function eu(){if(Oh)return Oh;const a=new WeakMap;for(const{schema:s,pointer:q,validate:x}of Qd){let v=j[s];for(const b of q)v=v?.[b];v&&typeof v=="object"&&a.set(v,x)}return Oh=a,a}var tu={root:a=>Kd[a],definition:(a,s)=>Yd[`${a}#/$defs/${s}`],branch:a=>eu().get(a)},au=()=>tu;export{Gd as precompiledMarker,au as schemaEngine};