1(globalThis["webpackChunk_canva_web"] = globalThis["webpackChunk_canva_web"] || []).push([[94260],{ 2 3/***/ 582188: 4function(_, __, __webpack_require__) {__webpack_require__.n_x = __webpack_require__.n;const __web_req__ = __webpack_require__;__web_req__(905716);__web_req__(721672);globalThis._5f74ec40302898c5a55451c9fbd04240 = globalThis._5f74ec40302898c5a55451c9fbd04240 || {};(function(__c) {var E5=function(a,b){var c=a.mkb.get(b);if(c!=null)return c;c={value:a.schema.yv(b)};a.mkb.set(b,c);a.fkb.set(c,b);return c},F5=function(a,b){a=a.fkb.get(b);if(a==null)throw new yNc("ref does not exists");return a},zNc=function(){const a=b=>{if(b?.type!=="text2")throw new G5("text2",b);return b.value};return{Wm:b=>({type:"text2",value:b}),zv:b=>{if(b?.type!=="text2")throw new H5("text2",b);return b.value},yv:a,Ez:a}},ANc=__webpack_require__(186901).EW;var BNc=class{static G(a){__c.K(a,{I0a:ANc})}get I0a(){const a=[];for(const b of this.list.value){const c=E5(this,b);if(c===void 0)throw new yNc("undefined value found when deserializing list.");a.push(c)}return a}count(){return this.list.value.count()}toArray(){return this.I0a.map(({value:a})=>a)}first(a){const b=this.list.value.first(a?c=>a(E5(this,c)):void 0);if(b!=null)return E5(this,b)}last(a){const b=this.list.value.last(a?c=>a(E5(this,c)):void 0);if(b!=null)return E5(this,b)}next(a,b){var c= 5b?d=>b(E5(this,d)):void 0;a=F5(this,a);c=this.list.value.next(a,c);if(c!=null)return E5(this,c)}previous(a,b){var c=b?d=>b(E5(this,d)):void 0;a=F5(this,a);c=this.list.value.previous(a,c);if(c!=null)return E5(this,c)}map(a){return this.list.value.map((b,c)=>a(E5(this,b),c))}filter(a){return this.list.value.filter((b,c)=>a(E5(this,b),c)).map(b=>E5(this,b))}forEach(a){return this.list.value.forEach((b,c)=>a(E5(this,b),c))}some(a){return this.list.value.some(b=>a(E5(this,b)))}constructor(a,b){this.schema= 6b;this.mkb=(BNc.G(this),new WeakMap);this.fkb=new WeakMap;__c.x(a.type==="list");this.list=a}},CNc=class extends BNc{replace(a,b){a=F5(this,a);b=this.list.value.replace(a,this.schema.Wm(b));return E5(this,b)}tK(a,b){a=a!=null?F5(this,a):void 0;b=this.list.value.tK(a,this.schema.Wm(b));return E5(this,b)}QG(a,b){a=a!=null?F5(this,a):void 0;return this.list.value.QG(a,b.map(c=>this.schema.Wm(c))).map(c=>E5(this,c))}insertBefore(a,b){a=a!=null?F5(this,a):void 0;b=this.list.value.insertBefore(a,this.schema.Wm(b)); 7return E5(this,b)}append(a){a=this.list.value.append(this.schema.Wm(a));return E5(this,a)}prepend(a){a=this.list.value.prepend(this.schema.Wm(a));return E5(this,a)}delete(a){a=F5(this,a);this.list.value.delete(a)}gG(a){this.list.value.gG(a?b=>a(E5(this,b)):void 0)}moveBefore(a,b){a=a==null?void 0:F5(this,a);b=F5(this,b);this.list.value.moveBefore(a,b)}};var J5=class{static string(a){const b=(c,d)=>
7{if(c==null&&a!=null)return a;if(c?.type!=="string")throw d==="toWidgetData"?new G5("string",c):new H5("string",c);return c.value};return{Wm:c=>({type:"string",value:c}),zv:c=>b(c,"toWidgetState"),yv:c=>b(c,"toWidgetData"),Ez:c=>b(c,"toWidgetData")}}static literal(a,b){if(a.length===0)throw new I5("At least one value must be provided for literal types.");const c=new Set(a),d=(e,f)=>{if(e==null&&b!=null)return b;if(e?.type!=="string"||!c.has(e.value))throw f=== 8"toWidgetData"?new G5("literal",e):new H5("literal",e);return e.value};return{Wm:e=>({type:"string",value:e}),zv:e=>d(e,"toWidgetState"),yv:e=>d(e,"toWidgetData"),Ez:e=>d(e,"toWidgetData")}}static integer(a){const b=(c,d)=>{if(c==null&&a!=null)return a;if(c?.type!=="int32"||!Number.isFinite(c.value)||!Number.isInteger(c.value))throw d==="toWidgetData"?new G5("integer",c):new H5("integer",c);return c.value};return{Wm:c=>{if(!Number.isFinite(c)||!Number.isInteger(c))throw new DNc("integer",c);return{type:"int32", 9value:c}},zv:c=>b(c,"toWidgetState"),yv:c=>b(c,"toWidgetData"),Ez:c=>b(c,"toWidgetData")}}static double(a){const b=(c,d)=>
9{if(c==null&&a!=null)return a;if(c?.type!=="double"||!Number.isFinite(c.value))throw d==="toWidgetData"?new G5("double",c):new H5("double",c);return c.value};return{Wm:c=>{if(!Number.isFinite(c))throw new DNc("double",c);return{type:"double",value:c}},zv:c=>b(c,"toWidgetState"),yv:c=>b(c,"toWidgetData"),Ez:c=>b(c,"toWidgetData")}}static boolean(a){const b=(c,d)=>{if(c==null&&a!= 10null)return a;if(c?.type!=="boolean")throw d==="toWidgetData"?new G5("boolean",c):new H5("boolean",c);return c.value};return{Wm:c=>({type:"boolean",value:c}),zv:c=>b(c,"toWidgetState"),yv:c=>b(c,"toWidgetData"),Ez:c=>b(c,"toWidgetData")}}static fill(){const a=b=>{if(b?.type!=="fill")throw new G5("fill",b);return b.value};return{Wm:b=>({type:"fill",value:b}),zv:b=>{if(b?.type!=="fill")throw new H5("fill",b);return b.value},yv:a,Ez:a}}static stroke(){const a=b=>{if(b?.type!=="stroke")throw new G5("stroke", 11b);return b.value};return{Wm:b=>({type:"stroke",value:b}),zv:b=>{if(b?.type!=="stroke")throw new H5("stroke",b);return b.value},yv:a,Ez:a}}static M(a){const b=new Set;for(const d of Object.keys(a)){const [e]=a[d];if(b.has(e))throw new I5(`Duplicate serialized keys "${e}" found in record schema.`);b.add(e)}const c=(d,e)=>{if(e?.type!=="dict")throw new G5("record",e);const f={};for(const g of Object.keys(a)){const [h,k]=a[g],l=ANc(()=>{const m=e.value.get(h);return k.yv(m)},{keepAlive:!0});Object.defineProperty(f, 12g,{get(){return l.get()},set(m){d!=="readonly"&&(m=k.Wm(m),m==null?e.value.delete(h):e.value.set(h,m))},enumerable:!0})}return f};return{Wm:d=>{const e={};for(const f of Object.keys(a)){const [g,h]=a[f],k=h.Wm(d[f]);k!=null&&(e[g]=k)}return{type:"dict",value:new Map(Object.entries(e))}},zv:d=>{if(d?.type!=="dict")throw new H5("record",d);const e={};for(const f of Object.keys(a)){const [g,h]=a[f],k=h.zv(d.value.get(g));k!=null&&(e[f]=k)}return e},yv:d=>c("editable",d),Ez:d=>c("readonly",d),Fb:d=>J5.M({...a, 13...d})}}static list(a){return{Wm:b=>({type:"list",value:b.map(c=>a.Wm(c))}),zv:b=>{if(b?.type!=="list")throw new H5("list",b);return b.value.filter(__c.rb).map(c=>a.zv(c))},yv:b=>{if(b?.type!=="list")throw new G5("list",b);return new CNc(b,a)},Ez:b=>{if(b?.type!=="list")throw new G5("list",b);return new BNc(b,a)}}}static optional(a){return{Wm:b=>{if(b!=null)return a.Wm(b)},zv:b=>{if(b!=null)return a.zv(b)},yv:b=>{if(b!=null)return a.yv(b)},Ez:b=>{if(b!=null)return a.Ez(b)}}}static union(a,b){const c= 14new Set(Object.keys(a)),d=e=>{if(e?.type!=="dict")throw new G5("union",e);const f=e.value.get("k")?.value,g=e.value.get("v");if(f==null||g==null||typeof f!=="string"||!c.has(f))throw new G5("union",e);return{pka:a[f],qka:g}};return{Wm:e=>{const f=b(e);return{type:"dict",value:new Map([["k",{type:"string",value:f}],["v",a[f].Wm(e)]])}},zv:e=>{if(e?.type!=="dict")throw new H5("union",e);const f=e.value.get("k")?.value,g=e.value.get("v");if(f==null||g==null||typeof f!=="string"||!c.has(f))throw new H5("union", 15e);const {pka:h,qka:k}={pka:a[f],qka:g};return h.zv(k)},yv:e=>{const {pka:f,qka:g}=d(e);return f.yv(g)},Ez:e=>{const {pka:f,qka:g}=d(e);return f.Ez(g)}}}},I5=class extends Error{constructor(a){super(a);this.name="SchemaError"}},yNc=class extends I5{constructor(a){super(`ListError: ${a}`)}},G5=class extends I5{constructor(a,b){super(`Error transforming ${b} into type ${a} of widget data`)}},H5=class extends I5{constructor(a,b){super(`Error transforming ${b} into type ${a} of widget state`)}},DNc=class extends I5{constructor(a, 16b){super(`Error transforming ${b} into type ${a} of document state`)}};var ENc={settings:{status:2},Moc:new Map,Noc:0,gbc:void 0,V2b:void 0,YGa:!1,Jbc:"unchecked",UV:!1,ko:!1};var FNc=J5.M({type:["t",J5.literal(["text2"],"text2"),"readonly"],text:["te",zNc()]}),GNc=J5.union({text2:FNc},a=>a.type),HNc=J5.M({id:["i",J5.string("")],label:["l",GNc]}),INc=J5.list(HNc),JNc=J5.list(J5.string("")),KNc=J5.M({id:["i",J5.string("")],label:["l",GNc],JK:["tl",J5.literal(["c","u"],"c")],TIa:["k",J5.optional(J5.double(1))],required:["rq",J5.boolean(!1)],V:["c",J5.double(0)]}),LNc=J5.M({type:["t",J5.literal(["r"],"r"),"readonly"]}),MNc=J5.M({type:["t",J5.literal(["p"],"p"),"readonly"]}), 17NNc=J5.M({type:["t",J5.literal(["q"],"q"),"readonly"]}),ONc=J5.union({r:LNc,p:MNc,q:NNc},a=>a.type),PNc=KNc.Fb({type:["t",J5.literal(["select"],"select"),"readonly"],variant:["v",J5.optional(ONc)],options:["o",INc],K3:["m",J5.optional(J5.integer(1))],XBa:["co",JNc]}),QNc=J5.M({type:["t",J5.literal(["e"],"e"),"readonly"]}),RNc=J5.M({type:["t",J5.literal(["f"],"f"),"readonly"],VP:["n",J5.integer(1)]}),SNc=J5.union({e:QNc,f:RNc},a=>a.type),TNc=KNc.Fb({type:["t",J5.literal(["text"],"text"),"readonly"], 18placeholder:["p",J5.string("")],variant:["v",SNc]}),UNc=J5.M({type:["t",J5.literal(["a"],"a"),"readonly"]}),VNc=J5.M({type:["t",J5.literal(["b"],"b"),"readonly"]}),WNc=J5.M({type:["t",J5.literal(["c"],"c"),"readonly"]}),XNc=J5.M({type:["t",J5.literal(["d"],"d"),"readonly"]}
18),YNc=J5.union({a:UNc,b:VNc,c:WNc,d:XNc},a=>a.type),ZNc=KNc.Fb({type:["t",J5.literal(["number"],"number"),"readonly"],variant:["v",YNc],min:["a",J5.optional(J5.double())],max:["b",J5.optional(J5.double())]}),$Nc=J5.union({select:PNc, 19text:TNc,number:ZNc},a=>a.type),aOc=J5.list($Nc),bOc=J5.M({Gr:["A",J5.optional(J5.double(1))],Hr:["B",J5.optional(J5.double(1))],Zu:["C",J5.optional(J5.double(1))]}),cOc=J5.M({label:["l",GNc],JK:["B",J5.optional(J5.literal(["c","u"]))],Zu:["C",J5.optional(J5.double(1))],Hr:["E",J5.optional(J5.double(1))],Gr:["D",J5.optional(J5.double(1))],zea:["F",J5.optional(J5.double(1))]}),dOc=J5.M({}),eOc=J5.M({yea:["A",J5.double(1.25)],Zu:["B",J5.double(1)],Hr:["C",J5.double(1.25)],Gr:["D",J5.double(1.25)],background:["E", 20J5.optional(J5.fill())]}),fOc=J5.M({label:["A",zNc()],JK:["tl",J5.literal(["c","u"])]}),gOc=J5.literal(["l","r"],"l"),hOc=J5.M({minHeight:["mh",J5.double(1)],minWidth:["mw",J5.double(1)],type:["t",J5.literal(["poll","quiz"],"poll"),"readonly"],id:["i",J5.string()],Ht:["s",J5.string()],rz:["a",J5.optional(J5.string())],direction:["r",gOc],Cla:["d",J5.string("")],$ea:["pf",J5.fill()],Hfa:["sf",J5.fill()],border:["b",J5.stroke()],V:["c",J5.double(0)],oj:["D",J5.optional(J5.double(16))],lk:["E",J5.optional(J5.double(16))], 21PU:["F",J5.optional(bOc)],z2:["hh",J5.boolean(!1)],iHa:["I",J5.optional(J5.boolean(!1))],yua:["z",J5.boolean(!0)],Q_a:["h",J5.optional(dOc)],title:["j",J5.optional(fOc)],header:["A",J5.optional(eOc)],fields:["f",aOc],footer:["fo",J5.optional(cOc)]}),iOc=J5.union({poll:hOc,quiz:hOc},a=>a.type);__c.NJa={vwb:function(){return{Ibc:ENc,schema:iOc}}}; 22}).call(globalThis, globalThis._5f74ec40302898c5a55451c9fbd04240);} 23 24}]) 25//# sourceMappingURL=sourcemaps/7dc25af938ba977c.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.