PageSourceSearch

https://www.thenational.academy/_next/static/chunks/1610-31c2b3e7cd8e77a4.js

js thenational.academy collected 2026-09-24 09:27:50 UTC 229,487 bytes, 5 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1610],{349:(t,e,n)=>{"use strict";n.d(e,{m:()=>a});var r,i=n(82643),o=n(26023),s=n(20324),l=n(97917),a=o.Ay.span.withConfig({componentId:"sc-9a964475-0"})(r||(r=(0,i.ue)(["\n  position: absolute;\n  top: 0;\n  ","\n"],["\n  position: absolute;\n  top: 0;\n  ","\n"])),(0,l.Il)("scroll-margin-top",function(t){return t.$pt},s.V))},3370:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>tj});var r=n(52865);let i="numeric",o="ascii",s="alpha",l="asciinumeric",a="alphanumeric",c="domain",h="emoji",u="whitespace";function p(t,e,n){for(let r in e[i]&&(e[l]=!0,e[a]=!0),e[o]&&(e[l]=!0,e[s]=!0),e[l]&&(e[a]=!0),e[s]&&(e[a]=!0),e[a]&&(e[c]=!0),e[h]&&(e[c]=!0),e){let e=(r in n||(n[r]=[]),n[r]);0>e.indexOf(t)&&e.push(t)}}function d(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}d.groups={},d.prototype={accepts(){return!!this.t},go(t){let e=this.j[t];if(e)return e;for(let e=0;e<this.jr.length;e++){let n=this.jr[e][0],r=this.jr[e][1];if(r&&n.test(t))return r}return this.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let i=0;i<t.length;i++)this.tt(t[i],e,n,r)},tr(t,e,n,r){let i;return r=r||d.groups,e&&e.j?i=e:(i=new d(e),n&&r&&p(e,n,r)),this.jr.push([t,i]),i},ts(t,e,n,r){let i=this,o=t.length;if(!o)return i;for(let e=0;e<o-1;e++)i=i.tt(t[e]);return i.tt(t[o-1],e,n,r)},tt(t,e,n,r){if(r=r||d.groups,e&&e.j)return this.j[t]=e,e;let i,o=this.go(t);return o?(Object.assign((i=new d).j,o.j),i.jr.push.apply(i.jr,o.jr),i.jd=o.jd,i.t=o.t):i=new d,e&&(r&&(i.t&&"string"==typeof i.t?p(e,Object.assign(function(t,e){let n={};for(let r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}(i.t,r),n),r):n&&p(e,n,r)),i.t=e),this.j[t]=i,i}};let f=(t,e,n,r,i)=>t.ta(e,n,r,i),m=(t,e,n,r,i)=>t.tr(e,n,r,i),g=(t,e,n,r,i)=>t.ts(e,n,r,i),y=(t,e,n,r,i)=>t.tt(e,n,r,i),b="WORD",v="UWORD",k="ASCIINUMERICAL",C="ALPHANUMERICAL",w="LOCALHOST",x="UTLD",S="SCHEME",T="SLASH_SCHEME",E="OPENBRACE",M="CLOSEBRACE",A="OPENBRACKET",O="CLOSEBRACKET",N="OPENPAREN",I="CLOSEPAREN",R="OPENANGLEBRACKET",L="CLOSEANGLEBRACKET",D="FULLWIDTHLEFTPAREN",z="FULLWIDTHRIGHTPAREN",$="LEFTCORNERBRACKET",_="RIGHTCORNERBRACKET",F="LEFTWHITECORNERBRACKET",P="RIGHTWHITECORNERBRACKET",B="FULLWIDTHLESSTHAN",H="FULLWIDTHGREATERTHAN",j="AMPERSAND",J="APOSTROPHE",U="ASTERISK",K="BACKSLASH",Z="BACKTICK",W="CARET",V="COLON",q="COMMA",G="DOLLAR",Y="EQUALS",X="EXCLAMATION",Q="HYPHEN",tt="PERCENT",te="PIPE",tn="PLUS",tr="POUND",ti="QUERY",to="QUOTE",ts="FULLWIDTHMIDDLEDOT",tl="SEMI",ta="SLASH",tc="TILDE",th="UNDERSCORE",tu="EMOJI";var tp=Object.freeze({__proto__:null,ALPHANUMERICAL:C,AMPERSAND:j,APOSTROPHE:J,ASCIINUMERICAL:k,ASTERISK:U,AT:"AT",BACKSLASH:K,BACKTICK:Z,CARET:W,CLOSEANGLEBRACKET:L,CLOSEBRACE:M,CLOSEBRACKET:O,CLOSEPAREN:I,COLON:V,COMMA:q,DOLLAR:G,DOT:"DOT",EMOJI:tu,EQUALS:Y,EXCLAMATION:X,FULLWIDTHGREATERTHAN:H,FULLWIDTHLEFTPAREN:D,FULLWIDTHLESSTHAN:B,FULLWIDTHMIDDLEDOT:ts,FULLWIDTHRIGHTPAREN:z,HYPHEN:Q,LEFTCORNERBRACKET:$,LEFTWHITECORNERBRACKET:F,LOCALHOST:w,NL:"NL",NUM:"NUM",OPENANGLEBRACKET:R,OPENBRACE:E,OPENBRACKET:A,OPENPAREN:N,PERCENT:tt,PIPE:te,PLUS:tn,POUND:tr,QUERY:ti,QUOTE:to,RIGHTCORNERBRACKET:_,RIGHTWHITECORNERBRACKET:P,SCHEME:S,SEMI:tl,SLASH:ta,SLASH_SCHEME:T,SYM:"SYM",TILDE:tc,TLD:"TLD",UNDERSCORE:th,UTLD:x,UWORD:v,WORD:b,WS:"WS"});let td=/[a-z]/,tf=/\p{L}/u,tm=/\p{Emoji}/u,tg=/\d/,ty=/\s/,tb=null,tv=null;function tk(t,e){let n=function(t){let e=[],n=t.length,r=0;for(;r<n;){let i,o=t.charCodeAt(r),s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}(e.replace(/[A-Z]/g,t=>t.toLowerCase())),r=n.length,i=[],o=0,s=0;for(;s<r;){let l=t,a=null,c=0,h=null,u=-1,p=-1;for(;s<r&&(a=l.go(n[s]));)(l=a).accepts()?(u=0,p=0,h=l):u>=0&&(u+=n[s].length,p++),c+=n[s].length,o+=n[s].length,s++;o-=u,s-=p,c-=u,i.push({t:h.t,v:e.slice(o-c,o),s:o-c,e:o})}return i}function tC(t,e,n,r,i){let o,s=e.length;for(let n=0;n<s-1;n++){let s=e[n];t.j[s]?o=t.j[s]:((o=new d(r)).jr=i.slice(),t.j[s]=o),t=o}return(o=new d(n)).jr=i.slice(),t.j[e[s-1]]=o,o}function tw(t){let e=[],n=[],r=0;for(;r<t.length;){let i=0;for(;"0123456789".indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let e=parseInt(t.substring(r,r+i),10);e>0;e--)n.pop();r+=i}else n.push(t[r]),r++}return e}let tx={defaultProtocol:"http",events:null,format:tT,formatHref:tT,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function tS(t,e=null){let n=Object.assign({},tx);t&&(n=Object.assign(n,t instanceof tS?t.o:t));let r=n.ignoreTags,i=[];for(let t=0;t<r.length;t++)i.push(r[t].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=i}function tT(t){return t}function tE(t,e){this.t="token",this.v=t,this.tk=e}
1function tM(t,e){class n extends tE{constructor(e,n){super(e,n),this.t=t}}for(let t in e)n.prototype[t]=e[t];return n.t=t,n}tS.prototype={o:tx,ignoreTags:[],defaultRender:t=>t,check(t){return this.get("validate",t.toString(),t)},get(t,e,n){let r=null!=e,i=this.o[t];return i&&("object"==typeof i?"function"==typeof(i=n.t in i?i[n.t]:tx[t])&&r&&(i=i(e,n)):"function"==typeof i&&r&&(i=i(e,n.t,n))),i},getObj(t,e,n){let r=this.o[t];return"function"==typeof r&&null!=e&&(r=r(e,n.t,n)),r},render(t){let e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}},tE.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){let e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=tx.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){let e=this.toHref(t.get("defaultProtocol")),n=t.get("formatHref",e,this),r=t.get("tagName",e,this),i=this.toFormattedString(t),o={},s=t.get("className",e,this),l=t.get("target",e,this),a=t.get("rel",e,this),c=t.getObj("attributes",e,this),h=t.getObj("events",e,this);return o.href=n,s&&(o.class=s),l&&(o.target=l),a&&(o.rel=a),c&&Object.assign(o,c),{tagName:r,attributes:o,content:i,eventListeners:h}}};let tA=tM("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),tO=tM("text"),tN=tM("nl"),tI=tM("url",{isLink:!0,toHref(t=tx.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){let t=this.tk;return t.length>=2&&t[0].t!==w&&t[1].t===V}}),tR=t=>new d(t);function tL(t,e,n){let r=n[0].s,i=n[n.length-1].e;return new t(e.slice(r,i),n)}let tD="undefined"!=typeof console&&console&&console.warn||(()=>{}),tz={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function t$(t,e=!1){if(tz.initialized&&tD(`linkifyjs: already initialized - will not register custom scheme "${t}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw Error(`linkifyjs: incorrect scheme format.
21. Must only contain digits, lowercase ASCII letters or "-"
32. Cannot start or end with "-"
43. "-" cannot repeat`);tz.customSchemes.push([t,e])}function t_(t){return tz.initialized||function(){tz.scanner=function(t=[]){let e={};d.groups=e;let n=new d;null==tb&&(tb=tw("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
4ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==tv&&(tv=tw("ελ1υ2бг1ел3дети4ею2католик6ом3мÐ
4ºÐ´2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3Õ°Õ¡Õµ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1ì»´2삼성2한국2")),y(n,"'",J),y(n,"{",E),y(n,"}",M),y(n,"[",A),y(n,"]",O),y(n,"(",N),y(n,")",I),y(n,"<",R),y(n,">",L),y(n,"(",D),y(n,")",z),y(n,"「",$),y(n,"」",_),y(n,"『",F),y(n,"』",P),y(n,"<",B),y(n,">",H),y(n,"&",j),y(n,"*",U),y(n,"@","AT"),y(n,"`",Z),y(n,"^",W),y(n,":",V),y(n,",",q),y(n,"$",G),y(n,".","DOT"),y(n,"=",Y),y(n,"!",X),y(n,"-",Q),y(n,"%",tt),y(n,"|",te),y(n,"+",tn),y(n,"#",tr),y(n,"?",ti),y(n,'"',to),y(n,"/",ta),y(n,";",tl),y(n,"~",tc),y(n,"_",th),y(n,"\\",K),y(n,"・",ts);let r=m(n,tg,"NUM",{[i]:!0});m(r,tg,r);let f=m(r,td,k,{[l]:!0}),tk=m(r,tf,C,{[a]:!0}),tx=m(n,td,b,{[o]:!0});m(tx,tg,f),m(tx,td,tx),m(f,tg,f),m(f,td,f);let tS=m(n,tf,v,{[s]:!0});m(tS,td),m(tS,tg,tk),m(tS,tf,tS),m(tk,tg,tk),m(tk,td),m(tk,tf,tk);let tT=y(n,"\n","NL",{[u]:!0}),tE=y(n,"\r","WS",{[u]:!0}),tM=m(n,ty,"WS",{[u]:!0});y(n,"",tM),y(tE,"\n",tT),y(tE,"",tM),m(tE,ty,tM),y(tM,"\r"),y(tM,"\n"),m(tM,ty,tM),y(tM,"",tM);let tA=m(n,tm,tu,{[h]:!0});y(tA,"#"),m(tA,tm,tA),y(tA,"️",tA);let tO=y(tA,"‍");y(tO,"#"),m(tO,tm,tA);let tN=[[td,tx],[tg,f]],tI=[[td,null],[tf,tS],[tg,tk]];for(let t=0;t<tb.length;t++)tC(n,tb[t],"TLD",b,tN);for(let t=0;t<tv.length;t++)tC(n,tv[t],x,v,tI);p("TLD",{tld:!0,ascii:!0},e),p(x,{utld:!0,alpha:!0},e),tC(n,"file",S,b,tN),tC(n,"mailto",S,b,tN),tC(n,"http",T,b,tN),tC(n,"https",T,b,tN),tC(n,"ftp",T,b,tN),tC(n,"ftps",T,b,tN),p(S,{scheme:!0,ascii:!0},e),p(T,{slashscheme:!0,ascii:!0},e),t=t.sort((t,e)=>t[0]>e[0]?1:-1);for(let e=0;e<t.length;e++){let r=t[e][0],s=t[e][1]?{scheme:!0}:{slashscheme:!0};r.indexOf("-")>=0?s[c]=!0:td.test(r)?tg.test(r)?s[l]=!0:s[o]=!0:s[i]=!0,g(n,r,r,s)}return g(n,"localhost",w,{ascii:!0}),n.jd=new d("SYM"),{start:n,tokens:Object.assign({groups:e},tp)}}(tz.customSchemes);for(let t=0;t<tz.tokenQueue.length;t++)tz.tokenQueue[t][1]({scanner:tz.scanner});tz.parser=function({groups:t}){let e=t.domain.concat([j,U,"AT",K,Z,W,G,Y,Q,"NUM",tt,te,tn,tr,ta,"SYM",tc,th]),n=[J,V,q,"DOT",X,tt,ti,to,tl,R,L,E,M,O,A,N,I,D,z,$,_,F,P,B,H],r=[j,J,U,K,Z,W,G,Y,Q,E,M,tt,te,tn,tr,ti,ta,"SYM",tc,th],i=tR(),o=y(i,tc);f(o,r,o),f(o,t.domain,o);let s=tR(),l=tR(),a=tR();f(i,t.domain,s),f(i,t.scheme,l),f(i,t.slashscheme,a),f(s,r,o),f(s,t.domain,s);let c=y(s,"AT");y(o,"AT",c),y(l,"AT",c),y(a,"AT",c);let h=y(o,"DOT");f(h,r,o),f(h,t.domain,o);let u=tR();f(c,t.domain,u),f(u,t.domain,u);let p=y(u,"DOT");f(p,t.domain,u);let d=tR(tA);f(p,t.tld,d),f(p,t.utld,d),y(c,w,d);let m=y(u,Q);y(m,Q,m),f(m,t.domain,u),f(d,t.domain,u),y(d,"DOT",p),y(d,Q,m),f(y(d,V),t.numeric,tA);let g=y(s,Q),b=y(s,"DOT");y(g,Q,g),f(g,t.domain,s),f(b,r,o),f(b,t.domain,s);let v=tR(tI);f(b,t.tld,v),f(b,t.utld,v),f(v,t.domain,s),f(v,r,o),y(v,"DOT",b),y(v,Q,g),y(v,"AT",c);let k=y(v,V),C=tR(tI);f(k,t.numeric,C);let x=tR(tI),S=tR();f(x,e,x),f(x,n,S),f(S,e,x),f(S,n,S),y(v,ta,x),y(C,ta,x);let T=y(l,V),ts=y(a,V),tu=y(ts,ta),td=y(tu,ta);f(l,t.domain,s),y(l,"DOT",b),y(l,Q,g),f(a,t.domain,s),y(a,"DOT",b),y(a,Q,g),f(T,t.domain,x),y(T,ta,x),y(T,ti,x),f(td,t.domain,x),f(td,e,x),y(td,ta,x);let tf=[[E,M],[A,O],[N,I],[R,L],[D,z],[$,_],[F,P],[B,H]];for(let t=0;t<tf.length;t++){let[r,i]=tf[t],o=y(x,r);y(S,r,o),y(o,i,x);let s=tR(tI);f(o,e,s);let l=tR();f(o,n),f(s,e,s),f(s,n,l),f(l,e,s),f(l,n,l),y(s,i,x),y(l,i,x)}
4return y(i,w,v),y(i,"NL",tN),{start:i,tokens:tp}}(tz.scanner.tokens);for(let t=0;t<tz.pluginQueue.length;t++)tz.pluginQueue[t][1]({scanner:tz.scanner,parser:tz.parser});tz.initialized=!0}(),function(t,e,n){let r=n.length,i=0,o=[],s=[];for(;i<r;){let l=t,a=null,c=null,h=0,u=null,p=-1;for(;i<r&&!(a=l.go(n[i].t));)s.push(n[i++]);for(;i<r&&(c=a||l.go(n[i].t));)a=null,(l=c).accepts()?(p=0,u=l):p>=0&&p++,i++,h++;if(p<0)(i-=h)<r&&(s.push(n[i]),i++);else{s.length>0&&(o.push(tL(tO,e,s)),s=[]),i-=p,h-=p;let t=u.t,r=n.slice(i-h,i);o.push(tL(t,e,r))}}return s.length>0&&o.push(tL(tO,e,s)),o}(tz.parser.start,t,tk(tz.scanner.start,t))}function tF(t,e=null,n=null){if(e&&"object"==typeof e){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}let r=new tS(n),i=t_(t),o=[];for(let t=0;t<i.length;t++){let n=i[t];n.isLink&&(!e||n.t===e)&&r.check(n)&&o.push(n.toFormattedObject(r))}return o}t_.scan=tk;var tP=n(49882);let tB=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function tH(t,e){let n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(t=>{let e="string"==typeof t?t:t.scheme;e&&n.push(e)}),!t||t.replace(tB,"").match(RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}let tj=r.CU.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if("string"==typeof t)return void t$(t);t$(t.scheme,t.optionalSlashes)})},onDestroy(){d.groups={},tz.scanner=null,tz.parser=null,tz.tokenQueue=[],tz.pluginQueue=[],tz.customSchemes=[],tz.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!tH(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}),addAttributes(){return{href:{default:null,parseHTML:t=>t.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{let e=t.getAttribute("href");return!!e&&!!this.options.isAllowedUri(e,{defaultValidate:t=>!!tH(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:t=>!!tH(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,r.KV)(this.options.HTMLAttributes,t),0]:["a",(0,r.KV)(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{let{href:n}=t;return!!this.options.isAllowedUri(n,{defaultValidate:t=>!!tH(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&e().setMark(this.name,t).setMeta("preventAutolink",!0).run()},toggleLink:t=>({chain:e})=>{let{href:n}=t;return!!this.options.isAllowedUri(n,{defaultValidate:t=>!!tH(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,r.Zc)({find:t=>{let e=[];
4if(t){let{protocols:n,defaultProtocol:r}=this.options,i=tF(t).filter(t=>t.isLink&&this.options.isAllowedUri(t.value,{defaultValidate:t=>!!tH(t,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(t=>e.push({text:t.value,data:{href:t.href},index:t.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:null==(e=t.data)?void 0:e.href}}})]},addProseMirrorPlugins(){var t,e,n;let i=[],{protocols:o,defaultProtocol:s}=this.options;return this.options.autolink&&i.push((t={type:this.type,defaultProtocol:this.options.defaultProtocol,validate:t=>this.options.isAllowedUri(t,{defaultValidate:t=>!!tH(t,o),protocols:o,defaultProtocol:s}),shouldAutoLink:this.options.shouldAutoLink},new tP.k_({key:new tP.hs("autolink"),appendTransaction:(e,n,i)=>{let o=e.some(t=>t.docChanged)&&!n.doc.eq(i.doc),s=e.some(t=>t.getMeta("preventAutolink"));if(!o||s)return;let{tr:l}=i,a=(0,r.T7)(n.doc,[...e]);if((0,r.FF)(a).forEach(({newRange:e})=>{let n,o,s=(0,r.Nx)(i.doc,e,t=>t.isTextblock);if(s.length>1?(n=s[0],o=i.doc.textBetween(n.pos,n.pos+n.node.nodeSize,void 0," ")):s.length&&i.doc.textBetween(e.from,e.to," "," ").endsWith(" ")&&(n=s[0],o=i.doc.textBetween(n.pos,e.to,void 0," ")),n&&o){let e=o.split(" ").filter(t=>""!==t);if(e.length<=0)return!1;let s=e[e.length-1],a=n.pos+o.lastIndexOf(s);if(!s)return!1;let c=t_(s).map(e=>e.toObject(t.defaultProtocol));if(!(1===c.length?c[0].isLink:3===c.length&&!!c[1].isLink&&["()","[]"].includes(c[0].value+c[2].value)))return!1;c.filter(t=>t.isLink).map(t=>({...t,from:a+t.start+1,to:a+t.end+1})).filter(t=>!i.schema.marks.code||!i.doc.rangeHasMark(t.from,t.to,i.schema.marks.code)).filter(e=>t.validate(e.value)).filter(e=>t.shouldAutoLink(e.value)).forEach(e=>{(0,r.hO)(e.from,e.to,i.doc).some(e=>e.mark.type===t.type)||l.addMark(e.from,e.to,t.type.create({href:e.href}))})}}),l.steps.length)return l}}))),!0===this.options.openOnClick&&i.push((e={type:this.type},new tP.k_({key:new tP.hs("handleClickLink"),props:{handleClick:(t,n,i)=>{var o,s;if(0!==i.button||!t.editable)return!1;let l=i.target,a=[];for(;"DIV"!==l.nodeName;)a.push(l),l=l.parentNode;if(!a.find(t=>"A"===t.nodeName))return!1;let c=(0,r.gu)(t.state,e.type.name),h=i.target,u=null!=(o=null==h?void 0:h.href)?o:c.href,p=null!=(s=null==h?void 0:h.target)?s:c.target;return!!h&&!!u&&(window.open(u,p),!0)}}}))),this.options.linkOnPaste&&i.push((n={editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type},new tP.k_({key:new tP.hs("handlePasteLink"),props:{handlePaste:(t,e,r)=>{let{state:i}=t,{selection:o}=i,{empty:s}=o;if(s)return!1;let l="";r.content.forEach(t=>{l+=t.textContent});let a=tF(l,{defaultProtocol:n.defaultProtocol}).find(t=>t.isLink&&t.value===l);return!!l&&!!a&&n.editor.commands.setMark(n.type,{href:a.href})}}}))),i}})},6084:(t,e,n)=>{"use strict";n.d(e,{$L:()=>O,Ln:()=>m,N0:()=>M,Um:()=>A,Wg:()=>g,X9:()=>s,dL:()=>B,jP:()=>v,n9:()=>T,oM:()=>k,zy:()=>S});var r=n(60793);class i{constructor(t,e,n){this.pos=t,this.delInfo=e,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class o{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&o.empty)return o.empty}recover(t){let e=0,n=65535&t;if(!this.inverted)for(let t=0;t<n;t++)e+=this.ranges[3*t+2]-this.ranges[3*t+1];return this.ranges[3*n]+e+(t-(65535&t))/65536}mapResult(t,e=1){return this._map(t,e,!1)}map(t,e=1){return this._map(t,e,!0)}_map(t,e,n){let r=0,o=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>t)break;let c=this.ranges[l+o],h=this.ranges[l+s],u=a+c;if(t<=u){let o=c?t==a?-1:t==u?1:e:e,s=a+r+(o<0?0:h);if(n)return s;let p=t==(e<0?a:u)?null:l/3+(t-a)*65536,d=t==a?2:t==u?1:4;return(e<0?t!=a:t!=u)&&(d|=8),new i(s,d,p)}r+=h-c}return n?t+r:new i(t+r,0,null)}touches(t,e){let n=0,r=65535&e,i=this.inverted?2:1,o=this.inverted?1:2;for(let e=0;e<this.ranges.length;e+=3){let s=this.ranges[e]-(this.inverted?n:0);if(s>t)break;let l=this.ranges[e+i];if(t<=s+l&&e==3*r)return!0;n+=this.ranges[e+o]-l}return!1}forEach(t){let e=this.inverted?2:1,n=this.inverted?1:2;
4for(let r=0,i=0;r<this.ranges.length;r+=3){let o=this.ranges[r],s=o-(this.inverted?i:0),l=o+(this.inverted?0:i),a=this.ranges[r+e],c=this.ranges[r+n];t(s,s+a,l,l+c),i+=c-a}}invert(){return new o(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return 0==t?o.empty:new o(t<0?[0,-t,0]:[0,0,t])}}o.empty=new o([]);class s{constructor(t,e,n=0,r=t?t.length:0){this.mirror=e,this.from=n,this.to=r,this._maps=t||[],this.ownData=!(t||e)}get maps(){return this._maps}slice(t=0,e=this.maps.length){return new s(this._maps,this.mirror,t,e)}appendMap(t,e){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),null!=e&&this.setMirror(this._maps.length-1,e)}appendMapping(t){for(let e=0,n=this._maps.length;e<t._maps.length;e++){let r=t.getMirror(e);this.appendMap(t._maps[e],null!=r&&r<e?n+r:void 0)}}getMirror(t){if(this.mirror){for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==t)return this.mirror[e+(e%2?-1:1)]}}setMirror(t,e){this.mirror||(this.mirror=[]),this.mirror.push(t,e)}appendMappingInverted(t){for(let e=t.maps.length-1,n=this._maps.length+t._maps.length;e>=0;e--){let r=t.getMirror(e);this.appendMap(t._maps[e].invert(),null!=r&&r>e?n-r-1:void 0)}}invert(){let t=new s;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let n=this.from;n<this.to;n++)t=this._maps[n].map(t,e);return t}mapResult(t,e=1){return this._map(t,e,!1)}_map(t,e,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(t,e);if(null!=i.recover){let e=this.getMirror(n);if(null!=e&&e>n&&e<this.to){n=e,t=this._maps[e].recover(i.recover);continue}}r|=i.delInfo,t=i.pos}return n?t:new i(t,r,null)}}let l=Object.create(null);class a{getMap(){return o.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw RangeError("Invalid input for Step.fromJSON");let n=l[e.stepType];if(!n)throw RangeError(`No step type ${e.stepType} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in l)throw RangeError("Duplicate use of step JSON ID "+t);return l[t]=e,e.prototype.jsonID=t,e}}class c{constructor(t,e){this.doc=t,this.failed=e}static ok(t){return new c(t,null)}static fail(t){return new c(null,t)}static fromReplace(t,e,n,i){try{return c.ok(t.replace(e,n,i))}catch(t){if(t instanceof r.vI)return c.fail(t.message);throw t}}}function h(t,e,n){let i=[];for(let r=0;r<t.childCount;r++){let o=t.child(r);o.content.size&&(o=o.copy(h(o.content,e,o))),o.isInline&&(o=e(o,n,r)),i.push(o)}return r.FK.fromArray(i)}class u extends a{constructor(t,e,n){super(),this.from=t,this.to=e,this.mark=n}apply(t){let e=t.slice(this.from,this.to),n=t.resolve(this.from),i=n.node(n.sharedDepth(this.to)),o=new r.Ji(h(e.content,(t,e)=>t.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t,i),e.openStart,e.openEnd);return c.fromReplace(t,this.from,this.to,o)}invert(){return new p(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new u(e.pos,n.pos,this.mark)}merge(t){return t instanceof u&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new u(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new u(e.from,e.to,t.markFromJSON(e.mark))}}a.jsonID("addMark",u);class p extends a{constructor(t,e,n){super(),this.from=t,this.to=e,this.mark=n}apply(t){let e=t.slice(this.from,this.to),n=new r.Ji(h(e.content,t=>t.mark(this.mark.removeFromSet(t.marks)),t),e.openStart,e.openEnd);return c.fromReplace(t,this.from,this.to,n)}invert(){return new u(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new p(e.pos,n.pos,this.mark)}merge(t){return t instanceof p&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new p(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new p(e.from,e.to,t.markFromJSON(e.mark))}}a.jsonID("removeMark",p);class d extends a{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return c.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return c.fromReplace(t,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,+!e.isLeaf))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let n=0;n<e.marks.length;n++)if(!e.marks[n].isInSet(t))return new d(this.pos,e.marks[n]);return new d(this.pos,this.mark)}}return new f(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new d(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new d(e.pos,t.markFromJSON(e.mark))}}a.jsonID("addNodeMark",d);class f extends a{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return c.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return c.fromReplace(t,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,+!e.isLeaf))}invert(t){let e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new d(this.pos,this.mark):this}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new f(e.pos,this.mark)}
4toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new f(e.pos,t.markFromJSON(e.mark))}}a.jsonID("removeNodeMark",f);class m extends a{constructor(t,e,n,r=!1){super(),this.from=t,this.to=e,this.slice=n,this.structure=r}apply(t){return this.structure&&y(t,this.from,this.to)?c.fail("Structure replace would overwrite content"):c.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new o([this.from,this.to-this.from,this.slice.size])}invert(t){return new m(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deletedAcross&&n.deletedAcross?null:new m(e.pos,Math.max(e.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof m)||t.structure||this.structure)return null;if(this.from+this.slice.size!=t.from||this.slice.openEnd||t.slice.openStart)if(t.to!=this.from||this.slice.openStart||t.slice.openEnd)return null;else{let e=this.slice.size+t.slice.size==0?r.Ji.empty:new r.Ji(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new m(t.from,this.to,e,this.structure)}{let e=this.slice.size+t.slice.size==0?r.Ji.empty:new r.Ji(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new m(this.from,this.to+(t.to-t.from),e,this.structure)}}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new m(e.from,e.to,r.Ji.fromJSON(t,e.slice),!!e.structure)}}a.jsonID("replace",m);class g extends a{constructor(t,e,n,r,i,o,s=!1){super(),this.from=t,this.to=e,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=o,this.structure=s}apply(t){if(this.structure&&(y(t,this.from,this.gapFrom)||y(t,this.gapTo,this.to)))return c.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return c.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,e.content);return n?c.fromReplace(t,this.from,this.to,n):c.fail("Content does not fit in gap")}getMap(){return new o([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let e=this.gapTo-this.gapFrom;return new g(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1),r=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:t.map(this.gapTo,1);return e.deletedAcross&&n.deletedAcross||r<e.pos||i>n.pos?null:new g(e.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new g(e.from,e.to,e.gapFrom,e.gapTo,r.Ji.fromJSON(t,e.slice),e.insert,!!e.structure)}}function y(t,e,n){let r=t.resolve(e),i=n-e,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let t=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,i--}}return!1}function b(t,e,n,i=n.contentMatch,o=!0){let s=t.doc.nodeAt(e),l=[],a=e+1;for(let e=0;e<s.childCount;
4e++){let c=s.child(e),h=a+c.nodeSize,u=i.matchType(c.type);if(u){i=u;for(let e=0;e<c.marks.length;e++)n.allowsMarkType(c.marks[e].type)||t.step(new p(a,h,c.marks[e]));if(o&&c.isText&&"pre"!=n.whitespace){let t,e=/\r?\n|\r/g,i;for(;t=e.exec(c.text);)i||(i=new r.Ji(r.FK.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),l.push(new m(a+t.index,a+t.index+t[0].length,i))}}else l.push(new m(a,h,r.Ji.empty));a=h}if(!i.validEnd){let e=i.fillBefore(r.FK.empty,!0);t.replace(a,a,new r.Ji(e,0,0))}for(let e=l.length-1;e>=0;e--)t.step(l[e])}function v(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth;;--n){let r=t.$from.node(n),i=t.$from.index(n),o=t.$to.indexAfter(n);if(n<t.depth&&r.canReplace(i,o,e))return n;if(0==n||r.type.spec.isolating||!((0==i||r.canReplace(i,r.childCount))&&(o==r.childCount||r.canReplace(0,o))))break}return null}function k(t,e,n=null,r=t){let i=function(t,e){let{parent:n,startIndex:r,endIndex:i}=t,o=n.contentMatchAt(r).findWrapping(e);if(!o)return null;let s=o.length?o[0]:e;return n.canReplaceWith(r,i,s)?o:null}(t,e),o=i&&function(t,e){let{parent:n,startIndex:r,endIndex:i}=t,o=n.child(r),s=e.contentMatch.findWrapping(o.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let t=r;l&&t<i;t++)l=l.matchType(n.child(t).type);return l&&l.validEnd?s:null}(r,e);return o?i.map(C).concat({type:e,attrs:n}).concat(o.map(C)):null}function C(t){return{type:t,attrs:null}}function w(t,e,n,r){e.forEach((i,o)=>{if(i.isText){let s,l=/\r?\n|\r/g;for(;s=l.exec(i.text);){let i=t.mapping.slice(r).map(n+1+o+s.index);t.replaceWith(i,i+1,e.type.schema.linebreakReplacement.create())}}})}function x(t,e,n,r){e.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let i=t.mapping.slice(r).map(n+1+o);t.replaceWith(i,i+1,e.type.schema.text("\n"))}})}function S(t,e,n=1,r){let i=t.resolve(e),o=i.depth-n,s=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let t=i.depth-1,e=n-2;t>o;t--,e--){let n=i.node(t),o=i.index(t);if(n.type.spec.isolating)return!1;let s=n.content.cutByIndex(o,n.childCount),l=r&&r[e+1];l&&(s=s.replaceChild(0,l.type.create(l.attrs)));let a=r&&r[e]||n;if(!n.canReplace(o+1,n.childCount)||!a.type.validContent(s))return!1}let l=i.indexAfter(o),a=r&&r[0];return i.node(o).canReplaceWith(l,l,a?a.type:i.node(o+1).type)}function T(t,e){let n=t.resolve(e),r=n.index();return E(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function E(t,e){return!!(t&&e&&!t.isLeaf&&function(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let i=0;i<e.childCount;i++){let o=e.child(i),s=o.type==r?t.type.schema.nodes.text:o.type;if(!(n=n.matchType(s))||!t.type.allowsMarks(o.marks))return!1}return n.validEnd}(t,e))}function M(t,e,n=-1){let r=t.resolve(e);for(let t=r.depth;;t--){let i,o,s=r.index(t);if(t==r.depth?(i=r.nodeBefore,o=r.nodeAfter):n>0?(i=r.node(t+1),s++,o=r.node(t).maybeChild(s)):(i=r.node(t).maybeChild(s-1),o=r.node(t+1)),i&&!i.isTextblock&&E(i,o)&&r.node(t).canReplace(s,s+1))return e;if(0==t)break;e=n<0?r.before(t):r.after(t)}}function A(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let t=0;t<n.openStart;t++)i=i.firstChild.content;for(let t=1;t<=(0==n.openStart&&n.size?2:1);t++)for(let e=r.depth;e>=0;e--){let n=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,o=r.index(e)+ +(n>0),s=r.node(e),l=!1;if(1==t)l=s.canReplace(o,o,i);else{let t=s.contentMatchAt(o).findWrapping(i.firstChild.type);l=t&&s.canReplaceWith(o,o,t[0])}if(l)return 0==n?r.pos:n<0?r.before(e+1):r.after(e+1)}return null}function O(t,e,n=e,i=r.Ji.empty){if(e==n&&!i.size)return null;let o=t.resolve(e),s=t.resolve(n);return N(o,s,i)?new m(e,n,i):new I(o,s,i).fit()}function N(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}a.jsonID("replaceAround",g);class I{constructor(t,e,n){this.$from=t,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=r.FK.empty;for(let e=0;e<=t.depth;e++){let n=t.node(e);this.frontier.push({type:n.type,match:n.contentMatchAt(t.indexAfter(e))})}for(let e=t.depth;e>0;e--)this.placed=r.FK.from(t.node(e).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(t<0?this.$to:n.doc.resolve(t));if(!i)return null;let o=this.placed,s=n.depth,l=i.depth;for(;s&&l&&1==o.childCount;)o=o.firstChild.content,s--,l--;let a=new r.Ji(o,s,l);return t>-1?new g(n.pos,t,this.$to.pos,this.$to.end(),a,e):a.size||n.pos!=this.$to.pos?new m(n.pos,i.pos,a):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<t;n++){let i=e.firstChild;if(e.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){t=n;break}e=i.content}for(let e=1;e<=2;e++)for(let n=1==e?t:this.unplaced.openStart;n>=0;n--){let t=null,i=(n?(t=D(this.unplaced.content,n-1).firstChild).content:this.unplaced.content).firstChild;for(let o=this.depth;o>=0;o--){let{type:s,match:l}=this.frontier[o],a,c=null;if(1==e&&(i?l.matchType(i.type)||(c=l.fillBefore(r.FK.from(i),!1)):t&&s.compatibleContent(t.type)))return{sliceDepth:n,frontierDepth:o,parent:t,inject:c};
4if(2==e&&i&&(a=l.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:o,parent:t,wrap:a};if(t&&l.matchType(t.type))break}}}openMore(){let{content:t,openStart:e,openEnd:n}=this.unplaced,i=D(t,e);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new r.Ji(t,e+1,Math.max(n,i.size+e>=t.size-n?e+1:0)),!0)}dropNode(){let{content:t,openStart:e,openEnd:n}=this.unplaced,i=D(t,e);if(i.childCount<=1&&e>0){let o=t.size-e<=e+i.size;this.unplaced=new r.Ji(R(t,e-1,1),e-1,o?e-1:n)}else this.unplaced=new r.Ji(R(t,e,1),e,n)}placeNodes({sliceDepth:t,frontierDepth:e,parent:n,inject:i,wrap:o}){for(;this.depth>e;)this.closeFrontierNode();if(o)for(let t=0;t<o.length;t++)this.openFrontierNode(o[t]);let s=this.unplaced,l=n?n.content:s.content,a=s.openStart-t,c=0,h=[],{match:u,type:p}=this.frontier[e];if(i){for(let t=0;t<i.childCount;t++)h.push(i.child(t));u=u.matchFragment(i)}let d=l.size+t-(s.content.size-s.openEnd);for(;c<l.childCount;){let t=l.child(c),e=u.matchType(t.type);if(!e)break;(++c>1||0==a||t.content.size)&&(u=e,h.push(function t(e,n,i){if(n<=0)return e;let o=e.content;return n>1&&(o=o.replaceChild(0,t(o.firstChild,n-1,1==o.childCount?i-1:0))),n>0&&(o=e.type.contentMatch.fillBefore(o).append(o),i<=0&&(o=o.append(e.type.contentMatch.matchFragment(o).fillBefore(r.FK.empty,!0)))),e.copy(o)}(t.mark(p.allowedMarks(t.marks)),1==c?a:0,c==l.childCount?d:-1)))}let f=c==l.childCount;f||(d=-1),this.placed=L(this.placed,e,r.FK.from(h)),this.frontier[e].match=u,f&&d<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=l;t<d;t++){let t=e.lastChild;this.frontier.push({type:t.type,match:t.contentMatchAt(t.childCount)}),e=t.content}this.unplaced=f?0==t?r.Ji.empty:new r.Ji(R(s.content,t-1,1),t-1,d<0?s.openEnd:t-1):new r.Ji(R(s.content,t,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let t=this.frontier[this.depth],e;if(!t.type.isTextblock||!z(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return -1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:n,type:r}=this.frontier[e],i=e<t.depth&&t.end(e+1)==t.pos+(t.depth-(e+1)),o=z(t,e,r,n,i);if(o){for(let n=e-1;n>=0;n--){let{match:e,type:r}=this.frontier[n],i=z(t,n,r,e,!0);if(!i||i.childCount)continue t}return{depth:e,fit:o,move:i?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=L(this.placed,e.depth,e.fit)),t=e.move;for(let n=e.depth+1;n<=t.depth;n++){let e=t.node(n),r=e.type.contentMatch.fillBefore(e.content,!0,t.index(n));this.openFrontierNode(e.type,e.attrs,r)}return t}openFrontierNode(t,e=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=L(this.placed,this.depth,r.FK.from(t.create(e,n))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(r.FK.empty,!0);t.childCount&&(this.placed=L(this.placed,this.frontier.length,t))}}function R(t,e,n){return 0==e?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(R(t.firstChild.content,e-1,n)))}function L(t,e,n){return 0==e?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(L(t.lastChild.content,e-1,n)))}function D(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function z(t,e,n,r,i){let o=t.node(e),s=i?t.indexAfter(e):t.index(e);if(s==o.childCount&&!n.compatibleContent(o.type))return null;let l=r.fillBefore(o.content,!0,s);return l&&!function(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}(n,o.content,s)?l:null}function $(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let r=t.start(i);if(r<t.pos-(t.depth-i)||e.end(i)>e.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(r==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==r-1)&&n.push(i)}return n}class _ extends a{constructor(t,e,n){super(),this.pos=t,this.attr=e,this.value=n}apply(t){let e=t.nodeAt(this.pos);if(!e)return c.fail("No node at attribute step's position");let n=Object.create(null);for(let t in e.attrs)n[t]=e.attrs[t];n[this.attr]=this.value;let i=e.type.create(n,null,e.marks);return c.fromReplace(t,this.pos,this.pos+1,new r.Ji(r.FK.from(i),0,+!e.isLeaf))}getMap(){return o.empty}invert(t){return new _(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new _(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new _(e.pos,e.attr,e.value)}}a.jsonID("attr",_);class F extends a{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let n in t.attrs)e[n]=t.attrs[n];e[this.attr]=this.value;let n=t.type.create(e,t.content,t.marks);return c.ok(n)}getMap(){return o.empty}invert(t){return new F(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new F(e.attr,e.value)}}a.jsonID("docAttr",F);
4let P=class extends Error{};(P=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n}).prototype=Object.create(Error.prototype),P.prototype.constructor=P,P.prototype.name="TransformError";class B{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new s}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new P(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,n=r.Ji.empty){let i=O(this.doc,t,e,n);return i&&this.step(i),this}replaceWith(t,e,n){return this.replace(t,e,new r.Ji(r.FK.from(n),0,0))}delete(t,e){return this.replace(t,e,r.Ji.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,n){return!function(t,e,n,i){if(!i.size)return t.deleteRange(e,n);let o=t.doc.resolve(e),s=t.doc.resolve(n);if(N(o,s,i))return t.step(new m(e,n,i));let l=$(o,t.doc.resolve(n));0==l[l.length-1]&&l.pop();let a=-(o.depth+1);l.unshift(a);for(let t=o.depth,e=o.pos-1;t>0;t--,e--){let n=o.node(t).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;l.indexOf(t)>-1?a=t:o.before(t)==e&&l.splice(1,0,-t)}let c=l.indexOf(a),h=[],u=i.openStart;for(let t=i.content,e=0;;e++){let n=t.firstChild;if(h.push(n),e==i.openStart)break;t=n.content}for(let t=u-1;t>=0;t--){var p;let e=h[t],n=(p=e.type).spec.defining||p.spec.definingForContent;if(n&&!e.sameMarkup(o.node(Math.abs(a)-1)))u=t;else if(n||!e.type.isTextblock)break}for(let e=i.openStart;e>=0;e--){let a=(e+u+1)%(i.openStart+1),p=h[a];if(p)for(let e=0;e<l.length;e++){let h=l[(e+c)%l.length],u=!0;h<0&&(u=!1,h=-h);let d=o.node(h-1),f=o.index(h-1);if(d.canReplaceWith(f,f,p.type,p.marks))return t.replace(o.before(h),u?s.after(h):n,new r.Ji(function t(e,n,i,o,s){if(n<i){let r=e.firstChild;e=e.replaceChild(0,r.copy(t(r.content,n+1,i,o,r)))}if(n>o){let t=s.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(r.FK.empty,!0))}return e}(i.content,0,i.openStart,a),a,i.openEnd))}}let d=t.steps.length;for(let r=l.length-1;r>=0&&(t.replace(e,n,i),!(t.steps.length>d));r--){let t=l[r];t<0||(e=o.before(t),n=s.after(t))}}(this,t,e,n),this}replaceRangeWith(t,e,n){var i=t,o=e;if(!n.isInline&&i==o&&this.doc.resolve(i).parent.content.size){let t=function(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(0==r.parentOffset)for(let t=r.depth-1;t>=0;t--){let e=r.index(t);if(r.node(t).canReplaceWith(e,e,n))return r.before(t+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let t=r.depth-1;t>=0;t--){let e=r.indexAfter(t);if(r.node(t).canReplaceWith(e,e,n))return r.after(t+1);if(e<r.node(t).childCount)break}return null}(this.doc,i,n.type);null!=t&&(i=o=t)}return this.replaceRange(i,o,new r.Ji(r.FK.from(n),0,0)),this}deleteRange(t,e){return!function(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n),o=$(r,i);for(let e=0;e<o.length;e++){let n=o[e],s=e==o.length-1;if(s&&0==n||r.node(n).type.contentMatch.validEnd)return t.delete(r.start(n),i.end(n));if(n>0&&(s||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return t.delete(r.before(n),i.after(n))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(e-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o&&r.start(o-1)==i.start(o-1)&&r.node(o-1).canReplace(r.index(o-1),i.index(o-1)))return t.delete(r.before(o),n);t.delete(e,n)}(this,t,e),this}lift(t,e){return!function(t,e,n){let{$from:i,$to:o,depth:s}=e,l=i.before(s+1),a=o.after(s+1),c=l,h=a,u=r.FK.empty,p=0;for(let t=s,e=!1;t>n;t--)e||i.index(t)>0?(e=!0,u=r.FK.from(i.node(t).copy(u)),p++):c--;let d=r.FK.empty,f=0;for(let t=s,e=!1;t>n;t--)e||o.after(t+1)<o.end(t)?(e=!0,d=r.FK.from(o.node(t).copy(d)),f++):h++;t.step(new g(c,h,l,a,new r.Ji(u.append(d),p,f),u.size-p,!0))}(this,t,e),this}join(t,e=1){return!function(t,e,n){let i=null,{linebreakReplacement:o}=t.doc.type.schema,s=t.doc.resolve(e-n),l=s.node().type;if(o&&l.inlineContent){let t="pre"==l.whitespace,e=!!l.contentMatch.matchType(o);t&&!e?i=!1:!t&&e&&(i=!0)}let a=t.steps.length;if(!1===i){let r=t.doc.resolve(e+n);x(t,r.node(),r.before(),a)}l.inlineContent&&b(t,e+n-1,l,s.node().contentMatchAt(s.index()),null==i);let c=t.mapping.slice(a),h=c.map(e-n);if(t.step(new m(h,c.map(e+n,-1),r.Ji.empty,!0)),!0===i){let e=t.doc.resolve(h);w(t,e.node(),e.before(),t.steps.length)}}(this,t,e),this}wrap(t,e){return!function(t,e,n){let i=r.FK.empty;for(let t=n.length-1;t>=0;t--){if(i.size){let e=n[t].type.contentMatch.matchFragment(i);if(!e||!e.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=r.FK.from(n[t].type.create(n[t].attrs,i))}let o=e.start,s=e.end;t.step(new g(o,s,o,s,new r.Ji(i,0,0),n.length,!0))}(this,t,e),this}setBlockType(t,e=t,n,i=null){var o=this;if(!n.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let s=o.steps.length;return o.doc.nodesBetween(t,e,(t,e)=>{var l,a,c;let h,u,p="function"==typeof i?i(t):i;if(t.isTextblock&&!t.hasMarkup(n,p)&&(l=o.doc,a=o.mapping.slice(s).map(e),c=n,u=(h=l.resolve(a)).index(),h.parent.canReplaceWith(u,u+1,c))){let i=null;if(n.schema.linebreakReplacement){let t="pre"==n.whitespace,e=!!n.contentMatch.matchType(n.schema.linebreakReplacement);t&&!e?i=!1:!t&&e&&(i=!0)}!1===i&&x(o,t,e,s),b(o,o.mapping.slice(s).map(e,1),n,void 0,null===i);let l=o.mapping.slice(s),a=l.map(e,1),c=l.map(e+t.nodeSize,1);return o.step(new g(a,c,a+1,c-1,new r.Ji(r.FK.from(n.create(p,null,t.marks)),0,0),1,!0)),!0===i&&w(o,t,e,s),!1}}),this}setNodeMarkup(t,e,n=null,i){return!function(t,e,n,i,o){let s=t.doc.nodeAt(e);if(!s)throw RangeError("No node at given position");n||(n=s.type);let l=n.create(i,null,o||s.marks);if(s.isLeaf)return t.replaceWith(e,e+s.nodeSize,l);if(!n.validContent(s.content))throw RangeError("Invalid content for node type "+n.name);t.step(new g(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new r.Ji(r.FK.from(l),0,0),1,!0))}(this,t,e,n,i),this}setNodeAttribute(t,e,n){return this.step(new _(t,e,n)),this}setDocAttribute(t,e){return this.step(new F(t,e)),this}addNodeMark(t,e){return this.step(new d(t,e)),this}
4removeNodeMark(t,e){let n=this.doc.nodeAt(t);if(!n)throw RangeError("No node at position "+t);if(e instanceof r.CU)e.isInSet(n.marks)&&this.step(new f(t,e));else{let r=n.marks,i,o=[];for(;i=e.isInSet(r);)o.push(new f(t,i)),r=i.removeFromSet(r);for(let t=o.length-1;t>=0;t--)this.step(o[t])}return this}split(t,e=1,n){return!function(t,e,n=1,i){let o=t.doc.resolve(e),s=r.FK.empty,l=r.FK.empty;for(let t=o.depth,e=o.depth-n,a=n-1;t>e;t--,a--){s=r.FK.from(o.node(t).copy(s));let e=i&&i[a];l=r.FK.from(e?e.type.create(e.attrs,l):o.node(t).copy(l))}t.step(new m(e,e,new r.Ji(s.append(l),n,n),!0))}(this,t,e,n),this}addMark(t,e,n){var r;let i,o,s,l;return r=this,s=[],l=[],r.doc.nodesBetween(t,e,(r,a,c)=>{if(!r.isInline)return;let h=r.marks;if(!n.isInSet(h)&&c.type.allowsMarkType(n.type)){let c=Math.max(a,t),d=Math.min(a+r.nodeSize,e),f=n.addToSet(h);for(let t=0;t<h.length;t++)h[t].isInSet(f)||(i&&i.to==c&&i.mark.eq(h[t])?i.to=d:s.push(i=new p(c,d,h[t])));o&&o.to==c?o.to=d:l.push(o=new u(c,d,n))}}),s.forEach(t=>r.step(t)),l.forEach(t=>r.step(t)),this}removeMark(t,e,n){var i;let o,s;return i=this,o=[],s=0,i.doc.nodesBetween(t,e,(i,l)=>{if(!i.isInline)return;s++;let a=null;if(n instanceof r.sX){let t=i.marks,e;for(;e=n.isInSet(t);)(a||(a=[])).push(e),t=e.removeFromSet(t)}else n?n.isInSet(i.marks)&&(a=[n]):a=i.marks;if(a&&a.length){let n=Math.min(l+i.nodeSize,e);for(let e=0;e<a.length;e++){let r=a[e],i;for(let t=0;t<o.length;t++){let e=o[t];e.step==s-1&&r.eq(o[t].style)&&(i=e)}i?(i.to=n,i.step=s):o.push({style:r,from:Math.max(l,t),to:n,step:s})}}}),o.forEach(t=>i.step(new p(t.from,t.to,t.style))),this}clearIncompatible(t,e,n){return b(this,t,e,n),this}}},11973:(t,e,n)=>{"use strict";n.d(e,{R:()=>u});var r,i=n(82643),o=n(21462),s=n(26023),l=n(98749),a=function(t){return o.createElement(l.d,(0,i.Cl)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 866 8",preserveAspectRatio:"none",height:"100%",width:"100%"},t),o.createElement("g",{clipPath:"url(#clip0_175_6785)"},o.createElement("path",{d:"M865.845 2.15897C865.975 1.74492 865.563 1.33087 864.955 1.33087C788.833 1.21257 638.585 4.00739 558.84 1.30129C560.814 1.22736 562.55 1.36044 563.287 1.18299C546.019 0.946396 526.408 1.10906 509.119 1.44917C530.292 -0.0295749 543.785 1.41959 562.289 0.931608C559.556 0.872458 545.347 0.842884 554.436 0.798521C547.538 0.369686 533.003 0.754159 530.27 0.621072C522.113 0.177449 549.794 0.724584 549.23 0.399261C544.219 0.0295749 524.586 0.295749 522.937 0C522.959 0.369686 522.352 0.295749 522.612 0.399261C423.669 0.724584 317.892 0.340111 218.666 0.828096C218.861 0.828096 219.013 0.828096 219.078 0.857671C218.753 0.902033 217.451 0.857671 218.579 0.828096C154.909 1.71534 98.6582 -0.502773 49.7396 2.18854C59.3281 0.0887246 12.145 1.39002 8.34861 1.52311C2.75172 1.44917 6.69991 1.96673 8.13168 1.67098C8.43539 2.91312 0.799314 1.73013 2.20938 3.12015C-18.7247 12.7024 115.622 4.7024 130.504 6.96488C127.011 6.21072 147.056 7.34935 148.705 6.93531C147.859 6.89094 146.362 6.78743 144.692 6.75786C140.396 6.72828 151.525 6.07763 149.486 6.93531C150.354 7.18669 153.282 6.44732 152.935 6.93531C154.714 7.06839 166.385 5.75231 158.814 6.92052C165.647 6.52126 168.077 7.68946 162.046 6.26987C222.332 7.55638 283.247 5.8854 342.34 6.29945C458.66 5.97412 569.839 6.10721 682.124 6.69871C679.932 6.22551 684.532 6.07763 683.36 6.69871C715.076 6.71349 731.801 6.81701 762.432 6.99446C757.486 6.72828 758.68 6.13678 763.821 6.55083C784.278 7.51202 841.353 7.73383 863.784 6.96488C863.35 6.68392 864.804 6.77264 864.782 6.92052C864.955 5.84104 865.259 5.84104 864.717 5.95934C864.76 5.95934 863.697 6.32902 864.001 5.73752C864.153 5.44177 864.999 5.60444 864.088 5.30869C864.652 5.30869 866.192 4.90943 864.608 5.02773C861.723 4.17006 866.778 4.99815 865.91 4.42144C865.519 4.12569 865.606 2.95749 865.845 2.15897ZM526.43 0.606285C528.448 0.650647 526.539 0.754159 525.476 0.606285C524.825 0.547135 525.042 0.547135 526.43 0.606285ZM17.0694 1.61183C17.0694 1.61183 17.3731 1.58226 17.308 1.62662C17.2646 1.6414 17.0694 1.6414 17.0694 1.61183ZM18.0889 1.15342C18.1974 1.15342 18.2408 1.15342 18.3059 1.16821H17.8286C17.8286 1.16821 17.9805 1.15342 18.0889 1.15342ZM18.371 1.41959C18.371 1.41959 18.3059 1.40481 18.371 1.39002V1.41959ZM36.8971 2.04067C30.6928 1.68577 40.9321 1.62662 42.6242 2.08503C42.4072 2.08503 37.4611 2.04067 36.8971 2.04067ZM63.6451 1.34566C67.5933 1.34566 62.43
402 1.41959 61.736 1.36044C62.018 1.34566 62.8641 1.34566 63.6451 1.34566ZM84.8395 3.88909C84.5141 3.88909 84.6226 3.87431 84.8395 3.87431V3.88909ZM92.1068 1.58226C80.2405 2.24769 61.6926 1.878 59.0461 1.61183C67.2028 1.43438 85.2734 1.52311 95.3608 1.47874C94.3629 1.47874 93.2565 1.52311 92.1068 1.58226ZM97.183 2.41035C96.6841 2.38078 97.5084 2.30684 97.4867 2.41035C97.4867 2.41035 97.3566 2.41035 97.183 2.41035ZM95.9899 1.47874C96.8142 1.44917 97.5518 1.46396 98.1809 1.47874C97.5084 1.49353 96.7709 1.49353 95.9899 1.47874ZM100.589 1.53789C100.589 1.53789 99.7862 1.50832 98.5714 1.47874C100.415 1.50832 101.348 1.46396 102.368 1.52311C102.238 1.53789 101.587 1.53789 100.589 1.53789ZM101.869 1.18299C101.869 1.18299 102.997 1.15342 103.105 1.18299C102.867 1.21257 101.999 1.21257 101.869 1.18299ZM107.704 1.84843C107.704 1.84843 107.509 1.84843 107.422 1.83364C107.769 1.83364 107.856 1.83364 107.704 1.84843ZM139.29 1.21257C138.704 1.18299 139.767 1.13863 139.724 1.18299C139.659 1.19778 139.463 1.21257 139.29 1.21257ZM141.633 5.6488C140.982 5.6488 141.199 5.60444 141.633 5.61922V5.6488ZM177.882 6.50647C162.654 6.71349 183.132 5.97412 183.588 5.73752C183.588 5.78189 181.006 6.50647 177.882 6.50647ZM185.779 0.946396H184.564C183.631 0.916821 186.56 0.931608 185.779 0.946396ZM209.945 1.00555C210.488 0.975971 210.813 0.975971 211.355 1.00555C212.18 1.02033 209.099 1.02033 209.945 1.00555ZM202.244 6.41775C199.077 6.46211 192.873 6.50647 188.989 6.66913C187.818 5.67837 202.873 6.38817 202.244 6.41775ZM213.264 6.41775C212.874 6.46211 208.492 6.46211 208.231 6.43253C207.667 6.50647 214.175 5.45656 213.264 6.41775Z
4M218.905 6.19593C218.601 6.19593 215.434 6.38817 215.087 6.38817C215.412 6.28466 220.336 6.01849 218.905 6.19593ZM226.801 0.857671C226.953 0.842884 227.343 0.842884 227.495 0.857671C227.3 0.872458 226.996 0.872458 226.801 0.857671ZM256.152 0.768946C258.018 0.768946 255.914 0.783734 255.588 0.783734C255.718 0.768946 255.914 0.768946 256.152 0.768946ZM252.855 4.00739C252.291 3.97782 254.742 3.26802 254.634 3.62292C254.46 3.66728 253.115 4.05176 252.855 4.00739ZM257.757 4.99815C257.302 4.92422 255.415 4.33272 254.677 4.43623C255.501 4.24399 258.625 4.87985 257.757 4.99815ZM254.785 3.46026C255.133 3.43068 257.541 3.38632 257.259 3.43068C257.888 3.46026 254.937 3.48983 254.785 3.46026ZM259.363 3.59335C258.669 3.59335 257.757 3.10536 257.757 3.07579C257.974 3.07579 261.836 2.88355 259.363 3.59335ZM258.886 2.01109C256.456 2.04067 254.72 1.65619 254.417 1.62662C253.332 1.44917 266.543 1.70055 258.886 2.01109ZM264.157 4.64325L263.181 4.02218C262.226 3.44547 265.35 4.40665 264.157 4.64325ZM289.712 3.50462C290.71 3.50462 291.686 4.24399 290.948 4.25878C288.432 3.90388 285.655 2.91312 289.712 3.50462ZM271.424 2.20333C273.203 2.45471 281.577 1.00555 275.394 2.54344C275.763 2.42514 267.389 2.15897 271.424 2.20333ZM275.893 3.12015C276.717 2.79482 278.345 3.6525 278.019 4.09612C277.542 4.09612 275.893 3.20887 275.893 3.12015ZM284.223 2.97227C281.447 2.45471 286.935 2.21811 287.022 2.07024C287.022 2.1146 285.351 3.01664 284.223 2.97227ZM290.862 5.36784C288.822 5.36784 287.477 5.33826 287.477 5.33826C286.653 3.91867 298.172 6.0037 290.862 5.36784ZM296.719 5.07209C293.053 4.39187 298.671 4.5841 298.91 4.61368C298.91 4.64325 297.717 5.07209 296.719 5.07209ZM317.219 3.43068C320.126 4.62847 316.178 3.7708 315.744 3.4159C315.917 3.38632 316.612 3.40111 317.219 3.43068ZM304.702 4.39187C302.967 5.13124 304.116 4.03697 304.42 3.93346C305.526 3.69686 306.459 4.12569 304.702 4.39187ZM307.587 3.35675C307.457 3.16451 302.858 2.43993 305.808 2.67653C306.741 2.5878 307.001 2.7061 305.895 2.67653C306.958 2.7061 307.978 3.32717 307.587 3.35675ZM310.928 2.54344C309.561 2.54344 311.253 1.78928 312.533 1.98152C312.403 1.9963 311.362 2.54344 310.928 2.54344ZM319.649 5.56007C320.343 5.58965 309.323 5.66359 314.572 5.54529C317.284 6.31423 322.751 2.98706 319.649 5.56007ZM329.411 5.24954C326.808 5.27911 331.884 4.64325 331.992 4.61368C332.339 4.67283 330.235 5.2939 329.411 5.24954ZM335.355 2.24769C334.704 2.01109 338.023 2.5878 338.413 2.29205C338.023 2.41035 335.897 3.00185 335.355 2.24769ZM346.201 4.12569C343.338 4.12569 344.097 3.97782 346.57 3.82994C349.499 4.52495 348.696 4.42144 346.201 4.12569ZM359.977 3.01664C359.977 3.01664 355.421 3.07579 355.248 3.061C355.226 3.19409 362.211 1.49353 359.977 3.01664ZM413.364 0.902033C414.102 0.857671 414.492 0.872459 414.536 0.902033C415.555 1.70055 411.889 0.842884 413.364 0.902033ZM371.886 1.52311C370.238 2.51386 367.656 1.52311 365.704 1.52311C365.704 1.47874 371.322 1.46396 371.886 1.52311ZM364.966 3.03142C363.816 3.87431 362.905 3.81516 364.25 2.60259C365.205 1.90758 366.919 2.01109 364.966 3.03142ZM370.954 6.01849C369.999 6.01849 366.81 6.01848 366.485 5.91497C367.266 5.8854 375.574 4.92422 370.954 6.01849ZM378.546 6.01849C375.943 5.90019 376.117 5.2939 377.722 5.4122C379.956 5.23475 382.581 5.50093 378.546 6.01849ZM387.267 3.57856C386.312 3.56377 386.963 2.76525 388.178 2.76525C390.413 2.98706 389.87 3.51941 387.267 3.57856ZM393.623 1.80407C389.545 1.58226 393.341 1.12384 394.795 1.34566C397.506 1.00555 397.745 1.37523 393.623 1.80407ZM401.303 5.84104C396.942 5.87061 401.216 5.38263 402.734 5.24954C403.429 5.2939 402.301 5.84104 401.303 5.84104ZM405.207 4.03697C405.164 4.14048 404.904 4.52495 403.472 4.02218C400.934 2.76525 406.162 3.82995 405.207 4.03697ZM408.722 4.11091C407.116 4.11091 404.253 3.68207 407.42 3.68207C407.746 2.60259 410.761 3.93346 408.722 4.11091ZM410.848 1.62662C409.958 1.46396 406.704 1.16821 409.546 0.680222C410.11 0.680222 413.581 1.81885 410.848 1.62662ZM412.93 5.4122C413.147 5.38263 414.232 4.33272 415.902 4.85028L412.93 5.4122ZM429.027 0.857671C430.393 0.857671 434.71 0.813309 435.708 0.887246C436.424 1.25693 425.
4643 2.52865 429.027 0.857671ZM437.878 0.857671C438.181 0.813309 439.309 0.828096 439.591 0.916821C431.587 2.83919 437.14 0.946396 437.878 0.857671ZM451.653 5.35305C451.176 5.35305 448.898 4.83549 448.898 4.80592C448.898 4.79113 450.807 4.5841 451.111 4.5841C453.562 4.65804 452.412 5.44177 451.653 5.35305ZM480.245 3.4159C478.661 3.6525 474.822 3.6525 474.822 3.4159C474.149 3.38632 481.568 3.14972 480.245 3.4159ZM485.69 5.32348C473.325 5.45656 491.829 4.64325 490.983 5.0573C490.983 5.23475 491.46 5.23475 485.69 5.32348ZM495.018 2.51386C494.454 2.51386 493.977 2.43993 493.977 2.36599C494.194 1.98152 497.252 2.45471 495.018 2.51386ZM502.524 2.26248C502.307 2.45471 501.656 2.49908 500.159 2.60259C492.285 2.85397 502.871 1.65619 502.524 2.26248ZM506.429 2.39556C510.377 2.3512 507.275 2.89834 505.105 2.41035C505.214 2.39556 505.648 2.39556 506.429 2.39556ZM506.559 3.13494C507.926 3.13494 509.01 3.22366 509.01 3.31238C508.338 3.4159 501.136 3.12015 506.559 3.13494ZM522.243 5.75231C518.36 6.38817 511.418 5.91497 507.253 5.4122C510.16 5.66359 522.547 5.33826 522.243 5.75231ZM590.057 3.48983C589.319 3.59335 587.128 3.59335 586.391 3.48983C587.367 3.2976 588.972 3.31238 590.057 3.48983ZM582.551 2.20333C586.109 1.98152 588.083 1.98152 588.083 2.20333C588.777 2.41035 577.019 2.61738 582.551 2.20333ZM564.545 1.71534C566.302 1.71534 566.064 2.83919 564.155 2.07024C563.699 1.86322 563.374 1.67098 564.545 1.71534ZM558.84 1.71534C560.619 1.7597 562.007 1.83364 563.049 2.07024C561.899 2.29205 549.273 1.70055 558.84 1.71534ZM553.438 3.72643C543.893 3.4159 556.107 3.20887 556.801 3.72643C556.801 3.87431 555.564 3.87431 553.438 3.72643ZM562.897 3.23845C561.205 3.26802 556.15 2.92791 560.749 2.89834C562.398 2.86876 567.474 3.19409 562.897 3.23845ZM567.17 2.54344C565.261 2.54344 563.96 2.54344 563.504 2.4695C565.977 2.17375 576.846 2.57301 567.17 2.54344ZM573.939 5.51571C571.704 5.51571 569.708 5.42699 569.708 5.35305C570.62 4.89464 582.79 5.45656 573.939 5.51571ZM588.885 5.67837C588.712 5.87061 575.37 6.15157 583.354 5.57486C586.911 5.23475 590.859 5.33826 588.885 5.67837ZM595.979 4.09612C594.678 4.18484 594.743 5.14603 593.137 3.99261C593.051 3.99261 587.28 4.37708 587.193 4.37708C588.517 3.50462 594.981 3.80037 595.979 4.09612ZM602.444 2.49908C606.913 2.54344 602.097 2.61738 600.795 2.52865C600.795 2.52865 601.489 2.49908 602.444 2.49908ZM601.576 4.53974C601.12 4.53974 600.556 4.4658 600.405 4.37708C599.428 3.66728 603.767 4.76155 601.576 4.53974ZM605.112 4.42144C603.724 4.42144 602.769 4.25878 602.422 4.09612C602.986 3.44547 611.468 4.28836 605.112 4.42144ZM622.315 5.24954C616.544 5.14603 619.365 3.68207 624.311 4.74677C626.09 4.99815 625.612 5.24954 622.315 5.24954ZM654.269 2.97227C655.788 2.8244 656.482 2.8244 657.068 2.97227C657.849 3.1793 651.926 3.13494 654.269 2.97227ZM651.124 2.39556C656.243 2.43993 650.712 2.5878 649.714 2.52865C648.651 2.39556 649.28 2.39556 651.124 2.39556ZM633.943 5.51571C634.767 5.11645 637.066 5.13124 637.826 5.51571C636.763 5.7671 635.006 5.7671 633.943 5.51571ZM646.047 3.97782C638.368 3.59335 651.774 3.72643 653.553 3.97782C660.907 4.89464 647.241 4.25878 646.047 3.97782ZM653.271 5.97412C652.859 5.72274 661.211 5.73752 660.777 5.97412C660.322 6.34381 654.031 6.16636 653.271 5.97412ZM667.611 3.09057C661.276 3.2976 665.398 1.89279 669.563 2.92791C670.691 3.09057 670.236 3.09057 667.611 3.09057ZM676.18 6.3586C675.789 6.38817 669.715 6.53605 669.476 6.38817C670.214 5.91497 676.245 6.37338 676.657 6.3586C676.375 6.38817 676.223 6.3586 676.18 6.3586ZM683.121 4.21442C682.774 4.21442 682.514 4.03697 682.514 3.85952C682.579 2.83919 684.814 4.3475 683.121 4.21442ZM696.875 5.5305C694.445 5.75231 693.122 5.75231 693.122 5.5305C692.558 5.32348 700.476 5.11645 696.875 5.5305ZM699.283 4.61368C691.17 4.48059 701.713 3.99261 702.754 4.49538C702.754 4.49538 701.257 4.61368 699.283 4.61368ZM701.474 3.80037C693.231 3.84473 704.598 3.1793 705.205 3.66728C705.205 3.80037 703.643 3.80037 701.474 3.80037ZM706.03 5.81146C705.27 5.11645 709.436 5.70795 709.327 5.81146C709.978 6.16636 706.811 6.16636 706.03 5.81146ZM716.746 6.56562C716.985 6.90573 706.919 6.50647 711.844 6.26987C714.815 6.122 717.679 6.26987 716.746 6.56562ZM718.091 4.22921C
4714.75 4.19963 714.707 3.72643 718.091 3.82994C721.28 3.72643 721.237 4.19963 718.091 4.22921ZM770.459 3.20887C772.455 3.20887 773.995 3.44547 773.995 3.68207C772.889 4.56932 763.083 3.25324 770.459 3.20887ZM730.934 4.08133C730.5 4.08133 730.76 3.96303 731.715 3.84473C736.856 3.28281 732.322 4.36229 730.934 4.08133ZM735.663 6.49168C732.799 6.49168 732.799 5.95934 735.663 5.95934C738.44 5.95934 738.44 6.49168 735.663 6.49168ZM737.854 4.49538C736.986 4.49538 736.27 4.42144 736.27 4.34751C735.771 4.09612 741.108 4.45102 737.854 4.49538ZM738.591 3.97782C737.767 3.97782 736.682 3.94824 736.27 3.84473C736.791 3.68207 744.687 3.91867 738.591 3.97782ZM756.922 5.5305C723.276 5.90019 765.556 4.73198 769.83 5.33826C769.83 5.33826 763.843 5.5305 756.922 5.5305ZM767.726 6.83179C758.745 6.56562 775.687 6.68392 775.34 6.83179C776.056 6.96488 772.997 6.96488 767.726 6.83179ZM785.124 4.96858C784.451 5.73752 778.572 6.75786 782.022 5.78189C782.868 5.54529 788.009 3.60813 785.124 4.96858ZM787.705 6.4769C789.289 6.04806 793.454 6.07763 795.016 6.4769C793.02 6.75786 789.701 6.75786 787.705 6.4769ZM808.206 5.87061C802.066 5.47135 813.868 4.61368 811.633 5.58965C811.633 6.13678 811.112 6.13678 808.206 5.87061ZM839.986 5.57486C838.229 5.57486 836.559 5.57486 836.277 5.4122C836.993 4.53974 847.601 5.58965 839.986 5.57486ZM858.404 5.94455C847.839 5.7671 869.988 0.635859 859.163 5.7671C858.361 6.21072 859.163 6.4769 858.404 5.94455ZM862.461 5.8854C862.461 5.97412 859.424 6.40296 859.185 6.37338C860.009 6.22551 863.61 4.15527 862.461 5.8854ZM864.088 5.07209C864.088 5.07209 864.174 5.04251 864.218 5.04251C864.348 5.14603 863.914 5.19039 864.088 5.07209Z",fill:"inherit"})))},c=n(45945),h=(0,s.Ay)(c.J).withConfig({componentId:"sc-6f7097b7-0"})(r||(r=(0,i.ue)([""],[""]))),u=function(t){var e=t.hrColor,n=(0,i.Tt)(t,["hrColor"]);return o.createElement(h,(0,i.Cl)({focusable:!1},n),o.createElement(a,{$fill:e}))}},25021:(t,e,n)=>{"use strict";n.d(e,{s:()=>b});var r=n(82643),i=n(21462),o=n(37895),s=n(56048),l=n(2439),a=n(45945),c=n(550),h=n(16230),u=n(46608),p=n(31233),d=n(1433),f=n(97946),m=n(93277),g=function(t){var e=t.element,n=t.toggleOn,o=(0,r.Tt)(t,["element","toggleOn"]);return i.createElement(m.k,(0,r.Cl)({element:null!=e?e:"button",defaultBorderColor:n?"bg-btn-primary":"text-primary",defaultBackground:n?"bg-btn-primary":"bg-btn-secondary",defaultTextColor:n?"text-inverted":"text-primary",hoverBackground:n?"bg-btn-primary-hover":"bg-btn-secondary-hover",hoverBorderColor:n?"bg-btn-primary-hover":"text-primary",hoverTextColor:n?"text-inverted":"text-primary",disabledBackground:n?"bg-btn-primary-disabled":"bg-btn-secondary-disabled",disabledBorderColor:"text-disabled",disabledTextColor:n?"text-inverted":"text-disabled",font:"body-3-bold",pv:"spacing-4",ph:"spacing-8",loadingSpinnerSize:"spacing-20",iconGap:"spacing-4","aria-pressed":n},o))},y=function(t){var e=t.editorNode,n=t.remainingCharacters,r=t.isBold,o=t.isBulletList,s=t.onBoldClick,l=t.onBulletListClick;return i.createElement(a.J,{$pa:"spacing-12",$background:"bg-neutral",$flexDirection:"column",$alignItems:"flex-start",$borderRadius:"border-radius-m2",$alignSelf:"stretch",$gap:"spacing-12"},i.createElement(a.J,{$pa:"spacing-12",$background:"bg-primary",$height:"spacing-240",$minHeight:"spacing-72",$borderRadius:"border-radius-s",$borderColor:"border-primary",$ba:"border-solid-m",$alignSelf:"stretch",$overflowY:"scroll"},e),i.createElement(p.y,null,i.createElement(d.F,{$colSpan:[5,6]},i.createElement(f.a,{$font:"body-3"},"You have ",i.createElement("b",null,n)," characters remaining")),i.createElement(d.F,{$colSpan:[7,6]},i.createElement(a.J,{$gap:"spacing-8",$justifyContent:"flex-end"},i.createElement(g,{onClick:s,toggleOn:r},"Bold"),i.createElement(g,{onClick:l,toggleOn:o},"Bullet List")))))},b=function(t){var e=t.isOpen,n=t.onClose,m=t.onShareClicked,g=t.progressSaved,b=t.noteShared,v=t.error;t.termsAndConditionsHref;var k=t.shareLinkDisabled,C=t.footer,w=(0,r.Tt)(t,["isOpen","onClose","onShareClicked","progressSaved","noteShared","error","termsAndConditionsHref","shareLinkDisabled","footer"]),x=void 0;v?x="An error occurred":g?x="Progress saved":b&&(x="Link copied to clipboard");var S=v?"text-error":"text-success",T=x&&i.createElement(a.J,{$gap:"spacing-4",$alignItems:"center"},i.createElement(h.vm,{iconName:v?"error":"tick",$colorFilter:S,$width:"spacing-20",$height:"spacing-20"}),i.createElement(c.Id,{tag:"h2",$font:"body-3-bold",$color:S},x));return i.createElement(l.e,{isOpen:e,onClose:n,modalInnerFlexProps:{$ph:["spacing-16","spacing-32"]},modalFlexProps:{"aria-label":"teacher notes dialog","aria-describedby":"use this dialog enter and to store teacher notes about a lesson"}},i.createElement(a.J,{$flexDirection:"column",$alignItems:"center",$pb:"spacing-24",$gap:"spacing-24"},i.createElement(c.Id,{tag:"h1",$font:"body-3-bold"},"Add a teacher note to the page and share the link with your colleague."),i.createElement(y,(0,r.Cl)({},w)),i.createElement(p.y,null,i.createElement(d.F,{$colSpan:[0,6],$dis
4play:["none","block"]},T),i.createElement(d.F,{$colSpan:12},i.createElement(a.J,{$gap:"spacing-16",$width:"100%",$justifyContent:["center","flex-end"],$alignItems:"center",$flexDirection:["column","row"]},C&&i.createElement(a.J,{$flexGrow:1,$alignSelf:"flex-start"},C),i.createElement(u.D,{onClick:m,iconName:"copy",isTrailingIcon:!0,disabled:k},"Share link")))),i.createElement(a.J,{$alignSelf:"stretch",$justifyContent:"center",$display:["flex","none"]},T),i.createElement(o.Tv,{isOpen:!0,type:"alert",message:i.createElement(i.Fragment,null,i.createElement(f.a,{$font:"heading-light-7"},"Please do not include any personal or sensitive information that could be used to identify, locate, or contact an individual, either directly or indirectly."),i.createElement(f.a,{$font:"body-2",$mt:"spacing-4"},"Names, email addresses, or other personal information will be redacted from your note to help keep everyone safe. For more guidance, see our"," ",i.createElement(s.a,{target:"_blank",href:"https://www.thenational.academy/legal/terms-and-conditions","aria-label":"Oak's terms and conditions(opens in a new tab)"},"Terms & conditions"),"."))})))}},25419:(t,e,n)=>{var r=n(14216);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},27086:(t,e,n)=>{"use strict";n.d(e,{K:()=>d,w:()=>p});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)r[48+l]=r[96+l]=String(l);for(var l=1;l<=24;l++)r[l+111]="F"+l;for(var l=65;l<=90;l++)r[l]=String.fromCharCode(l+32),i[l]=String.fromCharCode(l);for(var a in r)i.hasOwnProperty(a)||(i[a]=r[a]);var c=n(49882);let h="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function u(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function p(t){return new c.k_({props:{handleKeyDown:d(t)}})}function d(t){let e=function(t){let e=Object.create(null);for(let n in t)e[function(t){let e,n,r,i,o=t.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let t=0;t<o.length-1;t++){let s=o[t];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))e=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else if(/^s(hift)?$/i.test(s))r=!0;else if(/^mod$/i.test(s))h?i=!0:n=!0;else throw Error("Unrecognized modifier name: "+s)}return e&&(s="Alt-"+s),n&&(s="Ctrl-"+s),i&&(s="Meta-"+s),r&&(s="Shift-"+s),s}(n)]=t[n];return e}(t);return function(t,n){var l;let a=("Esc"==(l=!(o&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||s&&n.shiftKey&&n.key&&1==n.key.length||"Unidentified"==n.key)&&n.key||(n.shiftKey?i:r)[n.keyCode]||n.key||"Unidentified")&&(l="Escape"),"Del"==l&&(l="Delete"),"Left"==l&&(l="ArrowLeft"),"Up"==l&&(l="ArrowUp"),"Right"==l&&(l="ArrowRight"),"Down"==l&&(l="ArrowDown"),l),c,h=e[u(a,n)];if(h&&h(t.state,t.dispatch,t))return!0;if(1==a.length&&" "!=a){if(n.shiftKey){let r=e[u(a,n,!1)];if(r&&r(t.state,t.dispatch,t))return!0}if((n.shiftKey||n.altKey||n.metaKey||a.charCodeAt(0)>127)&&(c=r[n.keyCode])&&c!=a){let r=e[u(c,n)];if(r&&r(t.state,t.dispatch,t))return!0}}return!1}}},28870:(t,e,n)=>{var r=n(92699),i=n(93740);t.exports=function(t,e){return r(t,e,function(e,n){return i(t,n)})}},32722:t=>{t.exports=function(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}},41685:(t,e,n)=>{var r=n(25419),i=n(67315),o=Object.prototype.hasOwnProperty;t.exports=i(function(t,e,n){o.call(t,n)?t[n].push(e):r(t,n,[e])})},42573:(t,e,n)=>{"use strict";n.d(e,{$f:()=>N,G2:()=>v,I$:()=>S,Im:()=>R,Qv:()=>a,Sd:()=>y,Z1:()=>T,_G:()=>h,_e:()=>d,bh:()=>k,eB:()=>c,eT:()=>g,ec:()=>I,hy:()=>M,ic:()=>s,iz:()=>E,pC:()=>w,yY:()=>C,y_:()=>L});var r=n(6084),i=n(60793),o=n(49882);let s=(t,e)=>!t.selection.empty&&(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function l(t,e){let{$cursor:n}=t.selection;return n&&(e?e.endOfTextblock("backward",t):!(n.parentOffset>0))?n:null}let a=(t,e,n)=>{let s=l(t,n);if(!s)return!1;let a=f(s);if(!a){let n=s.blockRange(),i=n&&(0,r.jP)(n);return null!=i&&(e&&e(t.tr.lift(n,i).scrollIntoView()),!0)}let c=a.nodeBefore;if(A(t,a,e,-1))return!0;
4if(0==s.parent.content.size&&(p(c,"end")||o.nh.isSelectable(c)))for(let n=s.depth;;n--){let l=(0,r.$L)(t.doc,s.before(n),s.after(n),i.Ji.empty);if(l&&l.slice.size<l.to-l.from){if(e){let n=t.tr.step(l);n.setSelection(p(c,"end")?o.LN.findFrom(n.doc.resolve(n.mapping.map(a.pos,-1)),-1):o.nh.create(n.doc,a.pos-c.nodeSize)),e(n.scrollIntoView())}return!0}if(1==n||s.node(n-1).childCount>1)break}return!!c.isAtom&&a.depth==s.depth-1&&(e&&e(t.tr.delete(a.pos-c.nodeSize,a.pos).scrollIntoView()),!0)},c=(t,e,n)=>{let r=l(t,n);if(!r)return!1;let i=f(r);return!!i&&u(t,i,e)},h=(t,e,n)=>{let r=m(t,n);if(!r)return!1;let i=b(r);return!!i&&u(t,i,e)};function u(t,e,n){let s=e.nodeBefore,l=e.pos-1;for(;!s.isTextblock;l--){if(s.type.spec.isolating)return!1;let t=s.lastChild;if(!t)return!1;s=t}let a=e.nodeAfter,c=e.pos+1;for(;!a.isTextblock;c++){if(a.type.spec.isolating)return!1;let t=a.firstChild;if(!t)return!1;a=t}let h=(0,r.$L)(t.doc,l,c,i.Ji.empty);if(!h||h.from!=l||h instanceof r.Ln&&h.slice.size>=c-l)return!1;if(n){let e=t.tr.step(h);e.setSelection(o.U3.create(e.doc,l)),n(e.scrollIntoView())}return!0}function p(t,e,n=!1){for(let r=t;r;r="start"==e?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)break}return!1}let d=(t,e,n)=>{let{$head:r,empty:i}=t.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;s=f(r)}let l=s&&s.nodeBefore;return!!l&&!!o.nh.isSelectable(l)&&(e&&e(t.tr.setSelection(o.nh.create(t.doc,s.pos-l.nodeSize)).scrollIntoView()),!0)};function f(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function m(t,e){let{$cursor:n}=t.selection;return n&&(e?e.endOfTextblock("forward",t):!(n.parentOffset<n.parent.content.size))?n:null}let g=(t,e,n)=>{let s=m(t,n);if(!s)return!1;let l=b(s);if(!l)return!1;let a=l.nodeAfter;if(A(t,l,e,1))return!0;if(0==s.parent.content.size&&(p(a,"start")||o.nh.isSelectable(a))){let n=(0,r.$L)(t.doc,s.before(),s.after(),i.Ji.empty);if(n&&n.slice.size<n.to-n.from){if(e){let r=t.tr.step(n);r.setSelection(p(a,"start")?o.LN.findFrom(r.doc.resolve(r.mapping.map(l.pos)),1):o.nh.create(r.doc,r.mapping.map(l.pos))),e(r.scrollIntoView())}return!0}}return!!a.isAtom&&l.depth==s.depth-1&&(e&&e(t.tr.delete(l.pos,l.pos+a.nodeSize).scrollIntoView()),!0)},y=(t,e,n)=>{let{$head:r,empty:i}=t.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;s=b(r)}let l=s&&s.nodeAfter;return!!l&&!!o.nh.isSelectable(l)&&(e&&e(t.tr.setSelection(o.nh.create(t.doc,s.pos)).scrollIntoView()),!0)};function b(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}let v=(t,e)=>{let n=t.selection,i=n instanceof o.nh,s;if(i){if(n.node.isTextblock||!(0,r.n9)(t.doc,n.from))return!1;s=n.from}else if(null==(s=(0,r.N0)(t.doc,n.from,-1)))return!1;if(e){let n=t.tr.join(s);i&&n.setSelection(o.nh.create(n.doc,s-t.doc.resolve(s).nodeBefore.nodeSize)),e(n.scrollIntoView())}return!0},k=(t,e)=>{let n=t.selection,i;if(n instanceof o.nh){if(n.node.isTextblock||!(0,r.n9)(t.doc,n.to))return!1;i=n.to}else if(null==(i=(0,r.N0)(t.doc,n.to,1)))return!1;return e&&e(t.tr.join(i).scrollIntoView()),!0},C=(t,e)=>{let{$from:n,$to:i}=t.selection,o=n.blockRange(i),s=o&&(0,r.jP)(o);return null!=s&&(e&&e(t.tr.lift(o,s).scrollIntoView()),!0)},w=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!!n.parent.type.spec.code&&!!n.sameParent(r)&&(e&&e(t.tr.insertText("\n").scrollIntoView()),!0)};function x(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}let S=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),s=n.indexAfter(-1),l=x(i.contentMatchAt(s));if(!l||!i.canReplaceWith(s,s,l))return!1;if(e){let r=n.after(),i=t.tr.replaceWith(r,r,l.createAndFill());i.setSelection(o.LN.near(i.doc.resolve(r),1)),e(i.scrollIntoView())}return!0},T=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof o.i5||r.parent.inlineContent||i.parent.inlineContent)return!1;let s=x(i.parent.contentMatchAt(i.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,l=t.tr.insert(n,s.createAndFill());l.setSelection(o.U3.create(l.doc,n+1)),e(l.scrollIntoView())}return!0},E=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if((0,r.zy)(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let i=n.blockRange(),o=i&&(0,r.jP)(i);return null!=o&&(e&&e(t.tr.lift(i,o).scrollIntoView()),!0)},M=(t,e)=>{let{$from:n,to:r}=t.selection,i,s=n.sharedDepth(r);return 0!=s&&(i=n.before(s),e&&e(t.tr.setSelection(o.nh.create(t.doc,i))),!0)};function A(t,e,n,s){let l,a,c,h=e.nodeBefore,u=e.nodeAfter,d,f,m=h.type.spec.isolating||u.type.spec.isolating;if(!m&&(l=e.nodeBefore,a=e.nodeAfter,c=e.index(),l&&a&&l.type.compatibleContent(a.type)&&(!l.content.size&&e.parent.canReplace(c-1,c)?(n&&n(t.tr.delete(e.pos-l.nodeSize,e.pos).scrollIntoView()),!0):!!e.parent.canReplace(c,c+1)&&!!(a.isTextblock||(0,r.n9)(t.doc,e.pos))&&(n&&n(t.tr.join(e.pos).scrollIntoView()),!0))))return!0;let g=!m&&e.parent.canReplace(e.index(),e.index()+1);if(g&&(d=(f=h.contentMatchAt(h.childCount)).findWrapping(u.type))&&f.matchType(d[0]||u.type).validEnd){if(n){let o=e.pos+u.nodeSize,s=i.FK.empty;for(let t=d.length-1;t>=0;t--)s=i.FK.from(d[t].create(null,s));s=i.FK.from(h.copy(s));let l=t.tr.step(new r.Wg(e.pos-1,o,e.pos,o,new i.Ji(s,1,0),d.length,!0)),a=l.doc.resolve(o+2*d.length);a.nodeAfter&&a.nodeAfter.type==h.type&&(0,r.n9)(l.doc,a.pos)&&l.join(a.pos),n(l.scrollIntoView())}return!0}let y=u.type.spec.isolating||s>0&&m?null:o.LN.findFrom(e,1),b=y&&y.$from.blockRange(y.$to),v=b&&(0,r.jP)(b);if(null!=v&&v>=e.depth)return n&&n(t.tr.lift(b,v).scrollIntoView()),!0;if(g&&p(u,"start",!0)&&p(h,"end")){let o=h,s=[];for(;s.push(o),!o.isTextblock;)o=o.lastChild;let l=u,a=1;for(;!l.isTextblock;l=l.firstChild)a++;
4if(o.canReplace(o.childCount,o.childCount,l.content)){if(n){let o=i.FK.empty;for(let t=s.length-1;t>=0;t--)o=i.FK.from(s[t].copy(o));n(t.tr.step(new r.Wg(e.pos-s.length,e.pos+u.nodeSize,e.pos+a,e.pos+u.nodeSize-a,new i.Ji(o,s.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function O(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,s=i.depth;for(;i.node(s).isInline;){if(!s)return!1;s--}return!!i.node(s).isTextblock&&(n&&n(e.tr.setSelection(o.U3.create(e.doc,t<0?i.start(s):i.end(s)))),!0)}}let N=O(-1),I=O(1);function R(t,e=null){return function(n,i){let{$from:o,$to:s}=n.selection,l=o.blockRange(s),a=l&&(0,r.oM)(l,t,e);return!!a&&(i&&i(n.tr.wrap(l,a).scrollIntoView()),!0)}}function L(t,e=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[r];n.doc.nodesBetween(o,s,(r,o)=>{if(i)return!1;if(!(!r.isTextblock||r.hasMarkup(t,e)))if(r.type==t)i=!0;else{let e=n.doc.resolve(o),r=e.index();i=e.parent.canReplaceWith(r,r+1,t)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[r];i.setBlockType(o,s,t,e)}r(i.scrollIntoView())}return!0}}function D(...t){return function(e,n,r){for(let i=0;i<t.length;i++)if(t[i](e,n,r))return!0;return!1}}let z=D(s,a,d),$=D(s,g,y),_={Enter:D(w,T,E,(t,e)=>{let{$from:n,$to:i}=t.selection;if(t.selection instanceof o.nh&&t.selection.node.isBlock)return!!n.parentOffset&&!!(0,r.zy)(t.doc,n.pos)&&(e&&e(t.tr.split(n.pos).scrollIntoView()),!0);if(!n.depth)return!1;let s=[],l,a,c=!1,h=!1;for(let t=n.depth;;t--){if(n.node(t).isBlock){let e;c=n.end(t)==n.pos+(n.depth-t),h=n.start(t)==n.pos-(n.depth-t),a=x(n.node(t-1).contentMatchAt(n.indexAfter(t-1)));s.unshift(e||(c&&a?{type:a}:null)),l=t;break}if(1==t)return!1;s.unshift(null)}let u=t.tr;(t.selection instanceof o.U3||t.selection instanceof o.i5)&&u.deleteSelection();let p=u.mapping.map(n.pos),d=(0,r.zy)(u.doc,p,s.length,s);if(d||(s[0]=a?{type:a}:null,d=(0,r.zy)(u.doc,p,s.length,s)),u.split(p,s.length,s),!c&&h&&n.node(l).type!=a){let t=u.mapping.map(n.before(l)),e=u.doc.resolve(t);a&&n.node(l-1).canReplaceWith(e.index(),e.index()+1,a)&&u.setNodeMarkup(u.mapping.map(n.before(l)),a)}return e&&e(u.scrollIntoView()),!0}),"Mod-Enter":S,Backspace:z,"Mod-Backspace":z,"Shift-Backspace":z,Delete:$,"Mod-Delete":$,"Mod-a":(t,e)=>(e&&e(t.tr.setSelection(new o.i5(t.doc))),!0)},F={"Ctrl-h":_.Backspace,"Alt-Backspace":_["Mod-Backspace"],"Ctrl-d":_.Delete,"Ctrl-Alt-Backspace":_["Mod-Delete"],"Alt-Delete":_["Mod-Delete"],"Alt-d":_["Mod-Delete"],"Ctrl-a":N,"Ctrl-e":I};for(let t in _)F[t]=_[t];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform()},42594:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(52865),i=n(49882);let o=r.YY.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(t=>""!==t).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=t=>{let e=(null==t?void 0:t.node)||this.editor.state.doc;if("textSize"===((null==t?void 0:t.mode)||this.options.mode)){let t=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(t)}return e.nodeSize},this.storage.words=t=>{let e=(null==t?void 0:t.node)||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new i.k_({key:new i.hs("characterCount"),appendTransaction:(e,n,r)=>{if(t)return;let i=this.options.limit;if(null==i||0===i){t=!0;return}let o=this.storage.characters({node:r.doc});if(o>i){console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let e=r.tr.deleteRange(0,o-i);return t=!0,e}t=!0},filterTransaction:(t,e)=>{let n=this.options.limit;if(!t.docChanged||0===n||null==n)return!0;let r=this.storage.characters({node:e.doc}),i=this.storage.characters({node:t.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!t.getMeta("paste"))return!1;let o=t.selection.$head.pos;return t.deleteRange(o-(i-n),o),!(this.storage.characters({node:t.doc})>n)}})]}})},44572:t=>{var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},47575:(t,e,n)=>{var r=n(61693),i=n(54390),o=n(90578);t.exports=function(t){return o(i(t,void 0,r),t+"")}},49167:(t,e,n)=>{var r=n(21899),i=n(98232);t.exports=function t(e,n,o,s,l){var a=-1,c=e.length;for(o||(o=i),l||(l=[]);++a<c;){var h=e[a];n>0&&o(h)?n>1?t(h,n-1,o,s,l):r(l,h):s||(l[l.length]=h)}return l}},49882:(t,e,n)=>{"use strict";n.d(e,{$t:()=>x,LN:()=>s,U3:()=>h,hs:()=>M,i5:()=>f,k_:()=>S,nh:()=>p});var r=n(60793),i=n(6084);let o=Object.create(null);class s{constructor(t,e,n){this.$anchor=t,this.$head=e,this.ranges=n||[new l(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e<t.length;e++)if(t[e].$from.pos!=t[e].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,e=r.Ji.empty){let n=e.content.lastChild,i=null;for(let t=0;t<e.openEnd;t++)i=n,n=n.lastChild;let o=t.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:a,$to:c}=s[l],h=t.mapping.slice(o);t.replaceRange(h.map(a.pos),h.map(c.pos),l?r.Ji.empty:e),0==l&&y(t,o,(n?n.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(t,e){let n=t.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:s}=r[i],l=t.mapping.slice(n),a=l.map(o.pos),c=l.map(s.pos);i?t.deleteRange(a,c):(t.replaceRangeWith(a,c,e),y(t,n,e.isInline?-1:1))}}static findFrom(t,e,n=!1){let r=t.parent.inlineContent?new h(t):g(t.node(0),t.parent,t.pos,t.index(),e,n);if(r)return r;for(let r=t.depth-1;r>=0;r--){let i=e<0?g(t.node(0),t.node(r),t.before(r+1),t.index(r),e,n):g(t.node(0),t.node(r),t.after(r+1),t.index(r)+1,e,n);if(i)return i}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new f(t.
4node(0))}static atStart(t){return g(t,t,0,0,1)||new f(t)}static atEnd(t){return g(t,t,t.content.size,t.childCount,-1)||new f(t)}static fromJSON(t,e){if(!e||!e.type)throw RangeError("Invalid input for Selection.fromJSON");let n=o[e.type];if(!n)throw RangeError(`No selection type ${e.type} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in o)throw RangeError("Duplicate use of selection JSON ID "+t);return o[t]=e,e.prototype.jsonID=t,e}getBookmark(){return h.between(this.$anchor,this.$head).getBookmark()}}s.prototype.visible=!0;class l{constructor(t,e){this.$from=t,this.$to=e}}let a=!1;function c(t){a||t.parent.inlineContent||(a=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class h extends s{constructor(t,e=t){c(t),c(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let n=t.resolve(e.map(this.head));if(!n.parent.inlineContent)return s.near(n);let r=t.resolve(e.map(this.anchor));return new h(r.parent.inlineContent?r:n,n)}replace(t,e=r.Ji.empty){if(super.replace(t,e),e==r.Ji.empty){let e=this.$from.marksAcross(this.$to);e&&t.ensureMarks(e)}}eq(t){return t instanceof h&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new u(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new h(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,n=e){let r=t.resolve(e);return new this(r,n==e?r:t.resolve(n))}static between(t,e,n){let r=t.pos-e.pos;if((!n||r)&&(n=r>=0?1:-1),!e.parent.inlineContent){let t=s.findFrom(e,n,!0)||s.findFrom(e,-n,!0);if(!t)return s.near(e,n);e=t.$head}return t.parent.inlineContent||(0==r?t=e:(t=(s.findFrom(t,-n,!0)||s.findFrom(t,n,!0)).$anchor).pos<e.pos!=r<0&&(t=e)),new h(t,e)}}s.jsonID("text",h);class u{constructor(t,e){this.anchor=t,this.head=e}map(t){return new u(t.map(this.anchor),t.map(this.head))}resolve(t){return h.between(t.resolve(this.anchor),t.resolve(this.head))}}class p extends s{constructor(t){let e=t.nodeAfter;super(t,t.node(0).resolve(t.pos+e.nodeSize)),this.node=e}map(t,e){let{deleted:n,pos:r}=e.mapResult(this.anchor),i=t.resolve(r);return n?s.near(i):new p(i)}content(){return new r.Ji(r.FK.from(this.node),0,0)}eq(t){return t instanceof p&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new d(this.anchor)}static fromJSON(t,e){if("number"!=typeof e.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new p(t.resolve(e.anchor))}static create(t,e){return new p(t.resolve(e))}static isSelectable(t){return!t.isText&&!1!==t.type.spec.selectable}}p.prototype.visible=!1,s.jsonID("node",p);class d{constructor(t){this.anchor=t}map(t){let{deleted:e,pos:n}=t.mapResult(this.anchor);return e?new u(n,n):new d(n)}resolve(t){let e=t.resolve(this.anchor),n=e.nodeAfter;return n&&p.isSelectable(n)?new p(e):s.near(e)}}class f extends s{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,e=r.Ji.empty){if(e==r.Ji.empty){t.delete(0,t.doc.content.size);let e=s.atStart(t.doc);e.eq(t.selection)||t.setSelection(e)}else super.replace(t,e)}toJSON(){return{type:"all"}}static fromJSON(t){return new f(t)}map(t){return new f(t)}eq(t){return t instanceof f}getBookmark(){return m}}s.jsonID("all",f);let m={map(){return this},resolve:t=>new f(t)};function g(t,e,n,r,i,o=!1){if(e.inlineContent)return h.create(t,n);for(let s=r-(i>0?0:1);i>0?s<e.childCount:s>=0;s+=i){let r=e.child(s);if(r.isAtom){if(!o&&p.isSelectable(r))return p.create(t,n-(i<0?r.nodeSize:0))}else{let e=g(t,r,n+i,i<0?r.childCount:0,i,o);if(e)return e}n+=r.nodeSize*i}return null}function y(t,e,n){let r,o=t.steps.length-1;if(o<e)return;let l=t.steps[o];(l instanceof i.Ln||l instanceof i.Wg)&&(t.mapping.maps[o].forEach((t,e,n,i)=>{null==r&&(r=i)}),t.setSelection(s.near(t.doc.resolve(r),n)))}class b extends i.dL{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return r.CU.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let n=this.selection;return e&&(t=t.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.CU.none))),n.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,n){let r=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();{if(null==n&&(n=e),n=null==n?e:n,!t)return this.deleteRange(e,n);let i=this.storedMarks;if(!i){let t=this.doc.resolve(e);i=n==e?t.marks():t.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(e,n,r.text(t,i)),this.selection.empty||this.setSelection(s.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function v(t,e){return e&&t?t.bind(e):t}class k{constructor(t,e,n){this.name=t,this.init=v(e.init,n),this.apply=v(e.apply,n)}}let C=[new k("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:t=>t.doc}),new k("selection",{init:(t,e)=>t.selection||s.atStart(e.doc),apply:t=>t.selection}),new k("storedMarks",{init:t=>t.storedMarks||null,apply:(t,e,n,r)=>r.selection.$cursor?t.storedMarks:null}),new k("scrollToSelection",{init:()=>0,apply:(t,e)=>t.scrolledIntoView?e+1:e})];class w{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=C.slice(),e&&e.forEach(t=>{if(this.pluginsByKey[t.key])throw RangeError("Adding different instances of a keyed plugin ("+t.key+")");this.plugins.push(t),this.pluginsByKey[t.key]=t,t.spec.state&&this.fields.push(new k(t.key,t.spec.state,t))})}}class x{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}
4apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=e){let e=this.config.plugins[n];if(e.spec.filterTransaction&&!e.spec.filterTransaction.call(e,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let e=[t],n=this.applyInner(t),r=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let l=r?r[o].n:0,a=r?r[o].state:this,c=l<e.length&&s.spec.appendTransaction.call(s,l?e.slice(l):e,a,n);if(c&&n.filterTransaction(c,o)){if(c.setMeta("appendedTransaction",t),!r){r=[];for(let t=0;t<this.config.plugins.length;t++)r.push(t<o?{state:n,n:e.length}:{state:this,n:0})}e.push(c),n=n.applyInner(c),i=!0}r&&(r[o]={state:n,n:e.length})}}if(!i)return{state:n,transactions:e}}}applyInner(t){if(!t.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let e=new x(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];e[i.name]=i.apply(t,this[i.name],this,e)}return e}get tr(){return new b(this)}static create(t){let e=new w(t.doc?t.doc.type.schema:t.schema,t.plugins),n=new x(e);for(let r=0;r<e.fields.length;r++)n[e.fields[r].name]=e.fields[r].init(t,n);return n}reconfigure(t){let e=new w(this.schema,t.plugins),n=e.fields,r=new x(e);for(let e=0;e<n.length;e++){let i=n[e].name;r[i]=this.hasOwnProperty(i)?this[i]:n[e].init(t,r)}return r}toJSON(t){let e={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(e.storedMarks=this.storedMarks.map(t=>t.toJSON())),t&&"object"==typeof t)for(let n in t){if("doc"==n||"selection"==n)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[n],i=r.spec.state;i&&i.toJSON&&(e[n]=i.toJSON.call(r,this[r.key]))}return e}static fromJSON(t,e,n){if(!e)throw RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw RangeError("Required config field 'schema' missing");let i=new w(t.schema,t.plugins),o=new x(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=r.bP.fromJSON(t.schema,e.doc);else if("selection"==i.name)o.selection=s.fromJSON(o.doc,e.selection);else if("storedMarks"==i.name)e.storedMarks&&(o.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(n)for(let r in n){let s=n[r],l=s.spec.state;if(s.key==i.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(e,r)){o[i.name]=l.fromJSON.call(s,t,e[r],o);return}}o[i.name]=i.init(t,o)}}),o}}class S{constructor(t){this.spec=t,this.props={},t.props&&function t(e,n,r){for(let i in e){let o=e[i];o instanceof Function?o=o.bind(n):"handleDOMEvents"==i&&(o=t(o,n,{})),r[i]=o}return r}(t.props,this,this.props),this.key=t.key?t.key.key:E("plugin")}getState(t){return t[this.key]}}let T=Object.create(null);function E(t){return t in T?t+"$"+ ++T[t]:(T[t]=0,t+"$")}class M{constructor(t="key"){this.key=E(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}},54390:(t,e,n)=>{var r=n(85522),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,l=i(o.length-e,0),a=Array(l);++s<l;)a[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(a),r(t,this,c)}}},54424:(t,e,n)=>{var r=n(28870);t.exports=n(47575)(function(t,e){return null==t?{}:r(t,e)})},54497:t=>{t.exports=function(t){return function(){return t}}},55418:(t,e,n)=>{var r=n(53622);t.exports=function(t,e,n,i){return r(t,function(t,r,o){e(i,t,n(t),o)}),i}},56724:(t,e,n)=>{"use strict";n.d(e,{Y:()=>d});var r=n(82643),i=n(21462),o=n(44360),s=(0,i.createContext)(null),l=function(t){var e=t.onClose,n=t.children,r=(0,i.useMemo)(function(){return{onClose:e}},[e]);return i.createElement(s.Provider,{value:r},n)},a=n(10480),c=n(45945),h=n(79395),u=function(t){var e,n,o=t.primaryActionText,s=t.primaryActionIcon,a=t.onPrimaryAction,u=t.children,p=t.isLoading,d=t.disabled,f=t.ariaLabel,m=t.ariaDescription,g=t.leadingButtonIcon,y=t["data-testid"],b=t.buttonComponent,v=t.dropdownTopSpacing,k=t.flexWidth,C=t.closeOnChange,w=t.dropdownProps,x=void 0===w?{role:"menu"}:w,S=(0,r.zs)((0,i.useState)(!1),2),T=S[0],E=S[1],M=(0,i.useRef)(null),A=(0,i.useRef)(!1),O=function(){return M.current?Array.from(M.current.querySelectorAll('button:not([disabled]), [href], input
4:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')):[]},N=function(){C&&E(!1)};return(0,i.useEffect)(function(){var t=function(t){if(T){var e,n,r=O(),i=r.indexOf(document.activeElement);switch(t.key){case"Escape":t.preventDefault(),E(!1);break;case"ArrowDown":if(t.preventDefault(),0===r.length)return;var o=i>=r.length-1?0:i+1;null==(e=r[o])||e.focus();break;case"ArrowUp":if(t.preventDefault(),0===r.length)return;var s=i<=0?r.length-1:i-1;null==(n=r[s])||n.focus();break;case"Enter":case"Return":case" ":N()}}},e=function(t){M.current&&(!M.current.contains(t.target)||C)&&E(!1)};if(T&&(document.addEventListener("mousedown",e),document.addEventListener("keydown",t)),A.current&&!T){var n=setTimeout(function(){var t;return null==(t=O()[0])?void 0:t.focus()},0);return A.current=T,function(){return clearTimeout(n)}}return A.current=T,function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[T,y]),i.createElement(h.f,{as:"section","aria-label":f,"aria-describedby":m?"".concat(y,"-description"):void 0,"data-testid":y,ref:M,$position:"relative"},i.createElement(c.J,{$flexDirection:"column",$gap:"spacing-12"},i.createElement(c.J,{$width:k,$gap:"spacing-12"},i.createElement(b,{iconName:void 0===s?"chevron-down":s,isTrailingIcon:!0,onClick:function(){E(!T),null==a||a()},isLoading:void 0!==p&&p,disabled:void 0!==d&&d,width:"max-content","aria-expanded":T,"aria-haspopup":"menu"===x.role?"menu":void 0,"aria-label":o,"data-testid":y?"".concat(y,"-primary-action"):void 0},i.createElement(c.J,{$alignItems:"center"},g,o))),T&&i.createElement(h.f,{$background:"bg-primary",$borderRadius:"border-radius-s",$ba:"border-solid-m",$borderColor:"border-primary",$pa:"spacing-8",$position:"absolute",$top:void 0===v?"spacing-56":v,$zIndex:"modal-close-button",role:null!=(e=null==x?void 0:x.role)?e:"menu","aria-label":null!=(n=x["aria-label"])?n:"Dropdown menu. Use arrow keys to navigate, Tab to cycle through items, Escape to close.","data-testid":y?"".concat(y,"-dropdown"):void 0},i.createElement(c.J,{$flexDirection:"column",$gap:"spacing-8"},i.createElement(l,{onClose:function(){return E(!1)}},u)))))};u.Divider=function(){return i.createElement(h.f,{$height:"spacing-0",$width:"100%",$bt:"border-solid-s",$borderColor:"border-neutral-lighter","aria-hidden":"true"})},u.Item=function(t){var e=t.children;t.element;var n=(0,r.Tt)(t,["children","element"]);return i.createElement(a._,(0,r.Cl)({element:"a",role:"menuitem",isTrailingIcon:!0},n),e)};var p=n(67984),d=function(t){return i.createElement(u,(0,r.Cl)({},t,{buttonComponent:o.H,dropdownTopSpacing:"spacing-40",flexWidth:["100%"]}))};d.Divider=function(){return i.createElement(u.Divider,null)},d.Item=function(t){var e=t.children;t.element;var n=(0,r.Tt)(t,["children","element"]);return i.createElement(p.u,(0,r.Cl)({element:"a",role:"menuitem",isTrailingIcon:!0},n),e)}},57484:(t,e,n)=>{"use strict";n.d(e,{H:()=>S});var r,i,o,s=n(82643),l=n(21462),a=n(26023),c=n(79395),h=n(45945),u=n(81491),p=n(97166),d=n(550),f=n(16230),m=n(7870),g=n(69225),y=n(49835),b=n(68822),v=n(97917),k=n(20324),C=(0,a.Ay)(h.J).withConfig({componentId:"sc-f5dbc995-0"})(r||(r=(0,s.ue)(["\n  transition: ",";\n\n  &:hover {\n    h5 {\n      text-decoration: underline;\n    }\n  }\n\n  &:focus-visible {\n    outline: none;\n    box-shadow:\n      ",",\n      ",";\n  }\n\n  &:hover,\n  &:focus-visible {\n    img {\n      -webkit-filter: brightness(80%);\n      transition: ",";\n    }\n  }\n"],["\n  transition: ",";\n\n  &:hover {\n    h5 {\n      text-decoration: underline;\n    }\n  }\n\n  &:focus-visible {\n    outline: none;\n    box-shadow:\n      ",",\n      ",";\n  }\n\n  &:hover,\n  &:focus-visible {\n    img {\n      -webkit-filter: brightness(80%);\n      transition: ",";\n    }\n  }\n"])),(0,b.y)("standard-ease"),(0,y.N)("drop-shadow-centered-lemon"),(0,y.N)("drop-shadow-centered-grey"),(0,b.y)("standard-ease")),w=(0,a.Ay)(c.f).withConfig({componentId:"sc-f5dbc995-1"})(i||(i=(0,s.ue)(["\n  box-shadow: ",' 8px -6px;\n\n  margin-top: 10px;\n  margin-right: 15px;\n\n  img {\n    -webkit-filter: brightness(100%);\n  }\n\n  &::after {\n    content: "";\n    position: absolute;\n    top: -6px;\n    left: 8px;\n    width: 100%;\n    height: 100%;\n    box-shadow: '," 7px -4px;\n    border-radius: ",";\n  }\n\n  @media "," {\n    box-shadow: "," 4px -3px;\n\n    &::after {\n      top: -3px;\n      left: 4px;\n      box-shadow: "," 4px -3px;\n    }\n  }\n\n  #play-icon {\n    position: absolute;\n    left: 50%;\n    top: 50%;\n    margin-left: -16px;\n    margin-top: -16px;\n  }
4\n"],["\n  box-shadow: ",' 8px -6px;\n\n  margin-top: 10px;\n  margin-right: 15px;\n\n  img {\n    -webkit-filter: brightness(100%);\n  }\n\n  &::after {\n    content: "";\n    position: absolute;\n    top: -6px;\n    left: 8px;\n    width: 100%;\n    height: 100%;\n    box-shadow: '," 7px -4px;\n    border-radius: ",";\n  }\n\n  @media "," {\n    box-shadow: "," 4px -3px;\n\n    &::after {\n      top: -3px;\n      left: 4px;\n      box-shadow: "," 4px -3px;\n    }\n  }\n\n  #play-icon {\n    position: absolute;\n    left: 50%;\n    top: 50%;\n    margin-left: -16px;\n    margin-top: -16px;\n  }\n"])),(0,g.H)("icon-disabled"),(0,g.H)("border-neutral-lighter"),(0,m.M)("border-radius-s"),(0,v.F9)("mobile"),(0,g.H)("border-neutral"),(0,g.H)("border-neutral-lighter")),x=(0,a.Ay)(u.RN).withConfig({componentId:"sc-f5dbc995-2"})(o||(o=(0,s.ue)(["\n  background-color: ",";\n  background-size: ",";\n  background-position: center;\n  background-repeat: no-repeat;\n  height: 100%;\n  width: 100%;\n  img {\n    object-fit: fill;\n    border-radius: ",";\n  }\n"],["\n  background-color: ",";\n  background-size: ",";\n  background-position: center;\n  background-repeat: no-repeat;\n  height: 100%;\n  width: 100%;\n  img {\n    object-fit: fill;\n    border-radius: ",";\n  }\n"])),(0,g.H)("bg-decorative2-very-subdued"),(0,k.V)("spacing-64"),(0,m.M)("border-radius-s")),S=function(t){var e=t.title,n=t.numberOfClips,r=t.imageUrl,i=t.imageAltText,o=t.href,a=t.isAudioClip,h=t.rel,m=(0,s.Tt)(t,["title","numberOfClips","imageUrl","imageAltText","href","isAudioClip","rel"]);return l.createElement(C,(0,s.Cl)({as:"a",rel:h,href:o,$display:"flex",$flexDirection:["row","row","column"],$gap:["spacing-8","spacing-8","spacing-0"],$width:"fit-content",$alignItems:["center","center","flex-start"]},m),l.createElement(c.f,null,l.createElement(w,{$borderRadius:"border-radius-s",$width:["spacing-100","spacing-100","spacing-180"],$height:["spacing-64","spacing-64","spacing-100"],$position:"relative",$mb:["spacing-0","spacing-0","spacing-12"]},a?l.createElement(f.vm,{$width:["spacing-100","spacing-100","spacing-180"],$height:["spacing-64","spacing-64","spacing-100"],iconName:"audio-clip-large",alt:i,$position:"absolute",$borderRadius:"border-radius-s",$overflow:"hidden",$objectFit:"cover"}):l.createElement(x,{src:r||u.n0,alt:i,$borderRadius:"border-radius-s",$overflow:"hidden"}),l.createElement(f.vm,{id:"play-icon",iconName:"play",$width:"spacing-32",$height:"spacing-32"}))),l.createElement(c.f,{$mb:["spacing-0","spacing-0","spacing-16"]},l.createElement(d.Id,{tag:"h3",$font:"heading-7",$color:"text-primary"},e),l.createElement(p.D,{$font:"body-3",$color:"text-subdued"},n," ",1===n?"clip":"clips")))}},60793:(t,e,n)=>{"use strict";function r(t){this.content=t}n.d(e,{S4:()=>B,ZF:()=>q,FK:()=>i,CU:()=>a,sX:()=>_,bP:()=>x,u$:()=>C,vI:()=>c,Sj:()=>F,Ji:()=>h}),r.prototype={constructor:r,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return -1},get:function(t){var e=this.find(t);return -1==e?void 0:this.content[e+1]},update:function(t,e,n){var i=n&&n!=t?this.remove(n):this,o=i.find(t),s=i.content.slice();return -1==o?s.push(n||t,e):(s[o+1]=e,n&&(s[o]=n)),new r(s)},remove:function(t){var e=this.find(t);if(-1==e)return this;var n=this.content.slice();return n.splice(e,2),new r(n)},addToStart:function(t,e){return new r([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new r(n)},addBefore:function(t,e,n){var i=this.remove(e),o=i.content.slice(),s=i.find(t);return o.splice(-1==s?o.length:s,0,e,n),new r(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return(t=r.from(t)).size?new r(t.content.concat(this.subtract(t).content)):this},append:function(t){return(t=r.from(t)).size?new r(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=r.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},r.from=function(t){if(t instanceof r)return t;var e=[];
4if(t)for(var n in t)e.push(n,t[n]);return new r(e)};class i{constructor(t,e){if(this.content=t,this.size=e||0,null==e)for(let e=0;e<t.length;e++)this.size+=t[e].nodeSize}nodesBetween(t,e,n,r=0,i){for(let o=0,s=0;s<e;o++){let l=this.content[o],a=s+l.nodeSize;if(a>t&&!1!==n(l,r+s,i||null,o)&&l.content.size){let i=s+1;l.nodesBetween(Math.max(0,t-i),Math.min(l.content.size,e-i),n,r+i)}s=a}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,n,r){let i="",o=!0;return this.nodesBetween(t,e,(s,l)=>{let a=s.isText?s.text.slice(Math.max(t,l)-l,e-l):s.isLeaf?r?"function"==typeof r?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&a||s.isTextblock)&&n&&(o?o=!1:i+=n),i+=a},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,n=t.firstChild,r=this.content.slice(),o=0;for(e.isText&&e.sameMarkup(n)&&(r[r.length-1]=e.withText(e.text+n.text),o=1);o<t.content.length;o++)r.push(t.content[o]);return new i(r,this.size+t.size)}cut(t,e=this.size){if(0==t&&e==this.size)return this;let n=[],r=0;if(e>t)for(let i=0,o=0;o<e;i++){let s=this.content[i],l=o+s.nodeSize;l>t&&((o<t||l>e)&&(s=s.isText?s.cut(Math.max(0,t-o),Math.min(s.text.length,e-o)):s.cut(Math.max(0,t-o-1),Math.min(s.content.size,e-o-1))),n.push(s),r+=s.nodeSize),o=l}return new i(n,r)}cutByIndex(t,e){return t==e?i.empty:0==t&&e==this.content.length?this:new i(this.content.slice(t,e))}replaceChild(t,e){let n=this.content[t];if(n==e)return this;let r=this.content.slice(),o=this.size+e.nodeSize-n.nodeSize;return r[t]=e,new i(r,o)}addToStart(t){return new i([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new i(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(t.content[e]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let e=this.content[t];if(!e)throw RangeError("Index "+t+" out of range for "+this);return e}maybeChild(t){return this.content[t]||null}forEach(t){for(let e=0,n=0;e<this.content.length;e++){let r=this.content[e];t(r,n,e),n+=r.nodeSize}}findDiffStart(t,e=0){return function t(e,n,r){for(let i=0;;i++){if(i==e.childCount||i==n.childCount)return e.childCount==n.childCount?null:r;let o=e.child(i),s=n.child(i);if(o==s){r+=o.nodeSize;continue}if(!o.sameMarkup(s))return r;if(o.isText&&o.text!=s.text){for(let t=0;o.text[t]==s.text[t];t++)r++;return r}if(o.content.size||s.content.size){let e=t(o.content,s.content,r+1);if(null!=e)return e}r+=o.nodeSize}}(this,t,e)}findDiffEnd(t,e=this.size,n=t.size){return function t(e,n,r,i){for(let o=e.childCount,s=n.childCount;;){if(0==o||0==s)return o==s?null:{a:r,b:i};let l=e.child(--o),a=n.child(--s),c=l.nodeSize;if(l==a){r-=c,i-=c;continue}if(!l.sameMarkup(a))return{a:r,b:i};if(l.isText&&l.text!=a.text){let t=0,e=Math.min(l.text.length,a.text.length);for(;t<e&&l.text[l.text.length-t-1]==a.text[a.text.length-t-1];)t++,r--,i--;return{a:r,b:i}}if(l.content.size||a.content.size){let e=t(l.content,a.content,r-1,i-1);if(e)return e}r-=c,i-=c}}(this,t,e,n)}findIndex(t,e=-1){if(0==t)return s(0,t);if(t==this.size)return s(this.content.length,t);if(t>this.size||t<0)throw RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=r+this.child(n).nodeSize;if(i>=t){if(i==t||e>0)return s(n+1,i);return s(n,r)}r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return i.empty;if(!Array.isArray(e))throw RangeError("Invalid input for Fragment.fromJSON");return new i(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return i.empty;let e,n=0;for(let r=0;r<t.length;r++){let i=t[r];n+=i.nodeSize,r&&i.isText&&t[r-1].sameMarkup(i)?(e||(e=t.slice(0,r)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i)}return new i(e||t,n)}static from(t){if(!t)return i.empty;if(t instanceof i)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new i([t],t.nodeSize);throw RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}i.empty=new i([],0);let o={index:0,offset:0};function s(t,e){return o.index=t,o.offset=e,o}function l(t,e){if(t===e)return!0;
4if(!(t&&"object"==typeof t)||!(e&&"object"==typeof e))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!l(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!l(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}class a{constructor(t,e){this.type=t,this.attrs=e}addToSet(t){let e,n=!1;for(let r=0;r<t.length;r++){let i=t[r];if(this.eq(i))return t;if(this.type.excludes(i.type))e||(e=t.slice(0,r));else{if(i.type.excludes(this.type))return t;!n&&i.type.rank>this.type.rank&&(e||(e=t.slice(0,r)),e.push(this),n=!0),e&&e.push(i)}}return e||(e=t.slice()),n||e.push(this),e}removeFromSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return t.slice(0,e).concat(t.slice(e+1));return t}isInSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return!0;return!1}eq(t){return this==t||this.type==t.type&&l(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,e){if(!e)throw RangeError("Invalid input for Mark.fromJSON");let n=t.marks[e.type];if(!n)throw RangeError(`There is no mark type ${e.type} in this schema`);let r=n.create(e.attrs);return n.checkAttrs(r.attrs),r}static sameSet(t,e){if(t==e)return!0;if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].eq(e[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&0==t.length)return a.none;if(t instanceof a)return[t];let e=t.slice();return e.sort((t,e)=>t.type.rank-e.type.rank),e}}a.none=[];class c extends Error{}class h{constructor(t,e,n){this.content=t,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let n=function t(e,n,r,i){let{index:o,offset:s}=e.findIndex(n),l=e.maybeChild(o);if(s==n||l.isText)return i&&!i.canReplace(o,o,r)?null:e.cut(0,n).append(r).append(e.cut(n));let a=t(l.content,n-s-1,r);return a&&e.replaceChild(o,l.copy(a))}(this.content,t+this.openStart,e);return n&&new h(n,this.openStart,this.openEnd)}removeBetween(t,e){return new h(function t(e,n,r){let{index:i,offset:o}=e.findIndex(n),s=e.maybeChild(i),{index:l,offset:a}=e.findIndex(r);if(o==n||s.isText){if(a!=r&&!e.child(l).isText)throw RangeError("Removing non-flat range");return e.cut(0,n).append(e.cut(r))}if(i!=l)throw RangeError("Removing non-flat range");return e.replaceChild(i,s.copy(t(s.content,n-o-1,r-o-1)))}(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return h.empty;let n=e.openStart||0,r=e.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid input for Slice.fromJSON");return new h(i.fromJSON(t,e.content),n,r)}static maxOpen(t,e=!0){let n=0,r=0;for(let r=t.firstChild;r&&!r.isLeaf&&(e||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=t.lastChild;n&&!n.isLeaf&&(e||!n.type.spec.isolating);n=n.lastChild)r++;return new h(t,n,r)}}function u(t,e){if(!e.type.compatibleContent(t.type))throw new c("Cannot join "+e.type.name+" onto "+t.type.name)}function p(t,e,n){let r=t.node(n);return u(r,e.node(n)),r}function d(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function f(t,e,n,r){let i=(e||t).node(n),o=0,s=e?e.index(n):i.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(d(t.nodeAfter,r),o++));for(let t=o;t<s;t++)d(i.child(t),r);e&&e.depth==n&&e.textOffset&&d(e.nodeBefore,r)}function m(t,e){return t.type.checkContent(e),t.copy(e)}function g(t,e,n){let r=[];return f(null,t,n,r),t.depth>n&&d(m(p(t,e,n+1),g(t,e,n+1)),r),f(e,null,n,r),new i(r)}h.empty=new h(i.empty,0,0);class y{constructor(t,e,n){this.pos=t,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=t.child(e);return n?t.child(e).cut(n):r}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let n=this.path[3*e],r=0==e?0:this.path[3*e-1]+1;for(let e=0;e<t;e++)r+=n.child(e).nodeSize;return r}marks(){let t=this.parent,e=this.index();if(0==t.content.size)return a.none;if(this.textOffset)return t.child(e).marks;let n=t.maybeChild(e-1),r=t.maybeChild(e);if(!n){let t=n;n=r,r=t}let i=n.marks;for(var o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||r&&i[o].isInSet(r.marks)||(i=i[o--].removeFromSet(i));return i}marksAcross(t){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let n=e.marks,r=t.parent.maybeChild(t.index());for(var i=0;i<n.length;i++)!1!==n[i].type.spec.inclusive||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(t){for(let e=this.depth;e>0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos<this.pos)return t.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);n>=0;n--)if(t.pos<=this.end(n)&&(!e||e(this.node(n))))return new C(this,t,n);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let e=1;e<=this.depth;e++)t+=(t?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return t+":"+this.parentOffset}static resolve(t,e){if(!(e>=0&&e<=t.content.size))throw RangeError("Position "+e+" out of range");let n=[],r=0,i=e;for(let e=t;;){let{index:t,offset:o}=e.content.findIndex(i),s=i-o;if(n.push(e,t,r+o),!s||(e=e.child(t)).isText)break;
4i=s-1,r+=o+1}return new y(e,n,i)}static resolveCached(t,e){let n=k.get(t);if(n)for(let t=0;t<n.elts.length;t++){let r=n.elts[t];if(r.pos==e)return r}else k.set(t,n=new b);let r=n.elts[n.i]=y.resolve(t,e);return n.i=(n.i+1)%v,r}}class b{constructor(){this.elts=[],this.i=0}}let v=12,k=new WeakMap;class C{constructor(t,e,n){this.$from=t,this.$to=e,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let w=Object.create(null);class x{constructor(t,e,n,r=a.none){this.type=t,this.attrs=e,this.marks=r,this.content=n||i.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,e,n,r=0){this.content.nodesBetween(t,e,n,r,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,e,n,r){return this.content.textBetween(t,e,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,e,n){return this.type==t&&l(this.attrs,e||t.defaultAttrs||w)&&a.sameSet(this.marks,n||a.none)}copy(t=null){return t==this.content?this:new x(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new x(this.type,this.attrs,this.content,t)}cut(t,e=this.content.size){return 0==t&&e==this.content.size?this:this.copy(this.content.cut(t,e))}slice(t,e=this.content.size,n=!1){if(t==e)return h.empty;let r=this.resolve(t),i=this.resolve(e),o=n?0:r.sharedDepth(e),s=r.start(o);return new h(r.node(o).content.cut(r.pos-s,i.pos-s),r.depth-o,i.depth-o)}replace(t,e,n){var r=this.resolve(t),o=this.resolve(e);if(n.openStart>r.depth)throw new c("Inserted content deeper than insertion position");if(r.depth-n.openStart!=o.depth-n.openEnd)throw new c("Inconsistent open depths");return function t(e,n,r,o){let s=e.index(o),l=e.node(o);if(s==n.index(o)&&o<e.depth-r.openStart){let i=t(e,n,r,o+1);return l.copy(l.content.replaceChild(s,i))}if(!r.content.size)return m(l,g(e,n,o));if(r.openStart||r.openEnd||e.depth!=o||n.depth!=o){let{start:t,end:s}=function(t,e){let n=e.depth-t.openStart,r=e.node(n).copy(t.content);for(let t=n-1;t>=0;t--)r=e.node(t).copy(i.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}(r,e);return m(l,function t(e,n,r,o,s){let l=e.depth>s&&p(e,n,s+1),a=o.depth>s&&p(r,o,s+1),c=[];return f(null,e,s,c),l&&a&&n.index(s)==r.index(s)?(u(l,a),d(m(l,t(e,n,r,o,s+1)),c)):(l&&d(m(l,g(e,n,s+1)),c),f(n,r,s,c),a&&d(m(a,g(r,o,s+1)),c)),f(o,null,s,c),new i(c)}(e,t,s,n,o))}{let t=e.parent,i=t.content;return m(t,i.cut(0,e.parentOffset).append(r.content).append(i.cut(n.parentOffset)))}}(r,o,n,0)}nodeAt(t){for(let e=this;;){let{index:n,offset:r}=e.content.findIndex(t);if(!(e=e.maybeChild(n)))return null;if(r==t||e.isText)return e;t-=r+1}}childAfter(t){let{index:e,offset:n}=this.content.findIndex(t);return{node:this.content.maybeChild(e),index:e,offset:n}}childBefore(t){if(0==t)return{node:null,index:0,offset:0};let{index:e,offset:n}=this.content.findIndex(t);if(n<t)return{node:this.content.child(e),index:e,offset:n};let r=this.content.child(e-1);return{node:r,index:e-1,offset:n-r.nodeSize}}resolve(t){return y.resolveCached(this,t)}resolveNoCache(t){return y.resolve(this,t)}rangeHasMark(t,e,n){let r=!1;return e>t&&this.nodesBetween(t,e,t=>(n.isInSet(t.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}
4toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),T(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,n=i.empty,r=0,o=n.childCount){let s=this.contentMatchAt(t).matchFragment(n,r,o),l=s&&s.matchFragment(this.content,e);if(!l||!l.validEnd)return!1;for(let t=r;t<o;t++)if(!this.type.allowsMarks(n.child(t).marks))return!1;return!0}canReplaceWith(t,e,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(t).matchType(n),o=i&&i.matchFragment(this.content,e);return!!o&&o.validEnd}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=a.none;for(let e=0;e<this.marks.length;e++){let n=this.marks[e];n.type.checkAttrs(n.attrs),t=n.addToSet(t)}if(!a.sameSet(t,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(t=>t.toJSON())),t}static fromJSON(t,e){let n;if(!e)throw RangeError("Invalid input for Node.fromJSON");if(e.marks){if(!Array.isArray(e.marks))throw RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw RangeError("Invalid text node in JSON");return t.text(e.text,n)}let r=i.fromJSON(t,e.content),o=t.nodeType(e.type).create(e.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}x.prototype.text=void 0;class S extends x{constructor(t,e,n,r){if(super(t,e,null,r),!n)throw RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):T(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new S(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new S(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function T(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class E{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){var n;let r,i=new M(t,e);if(null==i.next)return E.empty;let o=function t(e){let n=[];do n.push(function(e){let n=[];do n.push(function(e){let n=function(e){if(e.eat("(")){let n=t(e);return e.eat(")")||e.err("Missing closing paren"),n}if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=(function(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let t in n){let r=n[t];r.isInGroup(e)&&i.push(r)}return 0==i.length&&t.err("No node type or group '"+e+"' found"),i})(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}}(e);for(;;)if(e.eat("+"))n={type:"plus",expr:n};else if(e.eat("*"))n={type:"star",expr:n};else if(e.eat("?"))n={type:"opt",expr:n};else if(e.eat("{"))n=function(t,e){let n=A(t),r=n;return t.eat(",")&&(r="}"!=t.next?A(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}(e,n);else break;return n}(e));while(e.next&&")"!=e.next&&"|"!=e.next);return 1==n.length?n[0]:{type:"seq",exprs:n}}(e));while(e.eat("|"));return 1==n.length?n[0]:{type:"choice",exprs:n}}(i);i.next&&i.err("Unexpected trailing text");let s=(n=function(t){let e=[[]];return i(function t(e,o){if("choice"==e.type)return e.exprs.reduce((e,n)=>e.concat(t(n,o)),[]);if("seq"==e.type)for(let r=0;;r++){let s=t(e.exprs[r],o);if(r==e.exprs.length-1)return s;i(s,o=n())}else if("star"==e.type){let s=n();return r(o,s),i(t(e.expr,s),s),[r(s)]}else if("plus"==e.type){let s=n();return i(t(e.expr,o),s),i(t(e.expr,s),s),[r(s)]}else if("opt"==e.type)return[r(o)].concat(t(e.expr,o));else if("range"==e.type){let s=o;for(let r=0;r<e.min;r++){let r=n();i(t(e.expr,s),r),s=r}if(-1==e.max)i(t(e.expr,s),s);else for(let o=e.min;o<e.max;o++){let o=n();r(s,o),i(t(e.expr,s),o),s=o}return[r(s)]}else if("name"==e.type)return[r(o,void 0,e.value)];else throw Error("Unknown expr type")}(t,0),n()),e;function n(){return e.push([])-1}function r(t,n,r){let i={term:r,to:n};return e[t].push(i),i}function i(t,e){t.forEach(t=>t.to=e)}}(o),r=Object.create(null),function t(e){let i=[];e.forEach(t=>{n[t].forEach(({term:t,to:e})=>{let r;if(t){for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);
4N(n,e).forEach(e=>{r||i.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)})}})});let o=r[e.join(",")]=new E(e.indexOf(n.length-1)>-1);for(let e=0;e<i.length;e++){let n=i[e][1].sort(O);o.next.push({type:i[e][0],next:r[n.join(",")]||t(n)})}return o}(N(n,0)));return function(t,e){for(let n=0,r=[t];n<r.length;n++){let t=r[n],i=!t.validEnd,o=[];for(let e=0;e<t.next.length;e++){let{type:n,next:s}=t.next[e];o.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),-1==r.indexOf(s)&&r.push(s)}i&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(s,i),s}matchType(t){for(let e=0;e<this.next.length;e++)if(this.next[e].type==t)return this.next[e].next;return null}matchFragment(t,e=0,n=t.childCount){let r=this;for(let i=e;r&&i<n;i++)r=r.matchType(t.child(i).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:e}=this.next[t];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(t){for(let e=0;e<this.next.length;e++)for(let n=0;n<t.next.length;n++)if(this.next[e].type==t.next[n].type)return!0;return!1}fillBefore(t,e=!1,n=0){let r=[this];return function o(s,l){let a=s.matchFragment(t,n);if(a&&(!e||a.validEnd))return i.from(l.map(t=>t.createAndFill()));for(let t=0;t<s.next.length;t++){let{type:e,next:n}=s.next[t];if(!(e.isText||e.hasRequiredAttrs())&&-1==r.indexOf(n)){r.push(n);let t=o(n,l.concat(e));if(t)return t}}return null}(this,[])}findWrapping(t){for(let e=0;e<this.wrapCache.length;e+=2)if(this.wrapCache[e]==t)return this.wrapCache[e+1];let e=this.computeWrapping(t);return this.wrapCache.push(t,e),e}computeWrapping(t){let e=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(t)){let t=[];for(let e=r;e.type;e=e.via)t.push(e.type);return t.reverse()}for(let t=0;t<i.next.length;t++){let{type:o,next:s}=i.next[t];o.isLeaf||o.hasRequiredAttrs()||o.name in e||r.type&&!s.validEnd||(n.push({match:o.contentMatch,type:o,via:r}),e[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return!function e(n){t.push(n);for(let r=0;r<n.next.length;r++)-1==t.indexOf(n.next[r].next)&&e(n.next[r].next)}(this),t.map((e,n)=>{let r=n+(e.validEnd?"*":" ")+" ";for(let n=0;n<e.next.length;n++)r+=(n?", ":"")+e.next[n].type.name+"->"+t.indexOf(e.next[n].next);return r}).join("\n")}}E.empty=new E(!0);class M{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw SyntaxError(t+" (in content expression '"+this.string+"')")}}function A(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function O(t,e){return e-t}function N(t,e){let n=[];return function e(r){let i=t[r];if(1==i.length&&!i[0].term)return e(i[0].to);n.push(r);for(let t=0;t<i.length;t++){let{term:r,to:o}=i[t];r||-1!=n.indexOf(o)||e(o)}}(e),n.sort(O)}function I(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function R(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(void 0===i){let e=t[r];if(e.hasDefault)i=e.default;else throw RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function L(t,e,n,r){for(let r in e)if(!(r in t))throw RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in t){let r=t[n];r.validate&&r.validate(e[n])}}function D(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new $(t,r,e[r]);return n}class z{constructor(t,e,n){this.name=t,this.schema=e,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=D(t,n.attrs),this.defaultAttrs=I(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==t),this.isText="text"==t}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==E.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:R(this.attrs,t)}create(t=null,e,n){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new x(this,this.computeAttrs(t),i.from(e),a.setFrom(n))}createChecked(t=null,e,n){return e=i.from(e),this.checkContent(e),new x(this,this.computeAttrs(t),e,a.setFrom(n))}createAndFill(t=null,e,n){if(t=this.computeAttrs(t),(e=i.from(e)).size){let t=this.contentMatch.fillBefore(e);if(!t)return null;e=t.append(e)}let r=this.contentMatch.matchFragment(e),o=r&&r.fillBefore(i.empty,!0);return o?new x(this,t,e.append(o),a.setFrom(n)):null}validContent(t){let e=this.contentMatch.matchFragment(t);if(!e||!e.validEnd)return!1;for(let e=0;e<t.childCount;e++)if(!this.allowsMarks(t.child(e).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){L(this.attrs,t,"node",this.name)}allowsMarkType(t){return null==this.markSet||this.markSet.indexOf(t)>-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;e<t.length;e++)if(!this.allowsMarkType(t[e].type))return!1;return!0}allowedMarks(t){let e;if(null==this.markSet)return t;for(let n=0;n<t.length;n++)this.allowsMarkType(t[n].type)?e&&e.push(t[n]):e||(e=t.slice(0,n));return e?e.length?e:a.none:t}static compile(t,e){let n=Object.create(null);t.forEach((t,r)=>n[t]=new z(t,e,r));let r=e.spec.topNode||"doc";if(!n[r])throw RangeError("Schema is missing its top node type ('"+r+"')");
4if(!n.text)throw RangeError("Every schema needs a 'text' type");for(let t in n.text.attrs)throw RangeError("The text node type should not have attributes");return n}}class ${constructor(t,e,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?function(t,e,n){let r=n.split("|");return n=>{let i=null===n?"null":typeof n;if(0>r.indexOf(i))throw RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${i}`)}}(t,e,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class _{constructor(t,e,n,r){this.name=t,this.rank=e,this.schema=n,this.spec=r,this.attrs=D(t,r.attrs),this.excluded=null;let i=I(this.attrs);this.instance=i?new a(this,i):null}create(t=null){return!t&&this.instance?this.instance:new a(this,R(this.attrs,t))}static compile(t,e){let n=Object.create(null),r=0;return t.forEach((t,i)=>n[t]=new _(t,r++,e,i)),n}removeFromSet(t){for(var e=0;e<t.length;e++)t[e].type==this&&(t=t.slice(0,e).concat(t.slice(e+1)),e--);return t}isInSet(t){for(let e=0;e<t.length;e++)if(t[e].type==this)return t[e]}checkAttrs(t){L(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class F{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let n in t)e[n]=t[n];e.nodes=r.from(t.nodes),e.marks=r.from(t.marks||{}),this.nodes=z.compile(this.spec.nodes,this),this.marks=_.compile(this.spec.marks,this);let n=Object.create(null);for(let t in this.nodes){if(t in this.marks)throw RangeError(t+" can not be both a node and a mark");let e=this.nodes[t],r=e.spec.content||"",i=e.spec.marks;if(e.contentMatch=n[r]||(n[r]=E.parse(r,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!e.isInline||!e.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=e}e.markSet="_"==i?null:i?P(this,i.split(" ")):""!=i&&e.inlineContent?null:[]}for(let t in this.marks){let e=this.marks[t],n=e.spec.excludes;e.excluded=null==n?[e]:""==n?[]:P(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,n,r){if("string"==typeof t)t=this.nodeType(t);else if(t instanceof z){if(t.schema!=this)throw RangeError("Node type from different schema used ("+t.name+")")}else throw RangeError("Invalid node type: "+t);return t.createChecked(e,n,r)}text(t,e){let n=this.nodes.text;return new S(n,n.defaultAttrs,t,a.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeFromJSON(t){return x.fromJSON(this,t)}markFromJSON(t){return a.fromJSON(this,t)}nodeType(t){let e=this.nodes[t];if(!e)throw RangeError("Unknown node type: "+t);return e}}function P(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],o=t.marks[i],s=o;if(o)n.push(o);else for(let e in t.marks){let r=t.marks[e];("_"==i||r.spec.group&&r.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=r)}if(!s)throw SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class B{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[];let n=this.matchedStyles=[];e.forEach(t=>{if(null!=t.tag)this.tags.push(t);else if(null!=t.style){let e=/[^=]*/.exec(t.style)[0];0>n.indexOf(e)&&n.push(e),this.styles.push(t)}}),this.normalizeLists=!this.tags.some(e=>{if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;let n=t.nodes[e.node];return n.contentMatch.matchType(n)})}parse(t,e={}){let n=new Z(this,e,!1);return n.addAll(t,a.none,e.from,e.to),n.finish()}parseSlice(t,e={}){let n=new Z(this,e,!0);return n.addAll(t,a.none,e.from,e.to),h.maxOpen(n.finish())}matchTag(t,e,n){for(let o=n?this.tags.indexOf(n)+1:0;o<this.tags.length;o++){var r,i;let n=this.tags[o];if(r=t,i=n.tag,(r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector).call(r,i)&&(void 0===n.namespace||t.namespaceURI==n.namespace)&&(!n.context||e.matchesContext(n.context))){if(n.getAttrs
4){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}matchStyle(t,e,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],o=r.style;if(0==o.indexOf(t)&&(!r.context||n.matchesContext(r.context))&&(!(o.length>t.length)||61==o.charCodeAt(t.length)&&o.slice(t.length+1)==e)){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}static schemaRules(t){let e=[];function n(t){let n=null==t.priority?50:t.priority,r=0;for(;r<e.length;r++){let t=e[r];if((null==t.priority?50:t.priority)<n)break}e.splice(r,0,t)}for(let e in t.marks){let r=t.marks[e].spec.parseDOM;r&&r.forEach(t=>{n(t=W(t)),t.mark||t.ignore||t.clearMark||(t.mark=e)})}for(let e in t.nodes){let r=t.nodes[e].spec.parseDOM;r&&r.forEach(t=>{n(t=W(t)),t.node||t.ignore||t.mark||(t.node=e)})}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new B(t,B.schemaRules(t)))}}let H={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},j={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},J={ol:!0,ul:!0};function U(t,e,n){return null!=e?!!e|2*("full"===e):t&&"pre"==t.whitespace?3:-5&n}class K{constructor(t,e,n,r,i,o){this.type=t,this.attrs=e,this.marks=n,this.solid=r,this.options=o,this.content=[],this.activeMarks=a.none,this.match=i||(4&o?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(i.from(t));if(e)this.match=this.type.contentMatch.matchFragment(e);else{let e=this.type.contentMatch,n;
4return(n=e.findWrapping(t.type))?(this.match=e,n):null}}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let t=this.content[this.content.length-1],e;t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))&&(t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=t.withText(t.text.slice(0,t.text.length-e[0].length)))}let e=i.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(i.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!H.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class Z{constructor(t,e,n){this.parser=t,this.options=e,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=e.topNode,i,o=U(null,e.preserveWhitespace,0)|4*!!n;i=r?new K(r.type,r.attrs,a.none,!0,e.topMatch||r.type.contentMatch,o):n?new K(null,null,a.none,!0,null,o):new K(t.schema.topNodeType,null,a.none,!0,null,o),this.nodes=[i],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,e){3==t.nodeType?this.addTextNode(t,e):1==t.nodeType&&this.addElement(t,e)}addTextNode(t,e){let n=t.nodeValue,r=this.top,i=2&r.options?"full":this.localPreserveWS||(1&r.options)>0;if("full"===i||r.inlineContext(t)||/[^ \t\r\n\u000c]/.test(n)){if(i)n="full"!==i?n.replace(/\r?\n|\r/g," "):n.replace(/\r\n?/g,"\n");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let e=r.content[r.content.length-1],i=t.previousSibling;
4(!e||i&&"BR"==i.nodeName||e.isText&&/[ \t\r\n\u000c]$/.test(e.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n),e,!/\S/.test(n)),this.findInText(t)}else this.findInside(t)}addElement(t,e,n){let r=this.localPreserveWS,i=this.top;("PRE"==t.tagName||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let o=t.nodeName.toLowerCase(),s;J.hasOwnProperty(o)&&this.parser.normalizeLists&&function(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let t=1==e.nodeType?e.nodeName.toLowerCase():null;t&&J.hasOwnProperty(t)&&n?(n.appendChild(e),e=n):"li"==t?n=e:t&&(n=null)}}(t);let l=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(s=this.parser.matchTag(t,this,n));e:if(l?l.ignore:j.hasOwnProperty(o))this.findInside(t),this.ignoreFallback(t,e);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(t=l.skip);let n,r=this.needsBlock;if(H.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,e);break e}let s=l&&l.skip?e:this.readStyles(t,e);s&&this.addAll(t,s),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(t,e);n&&this.addElementByRule(t,l,n,!1===l.consuming?s:void 0)}this.localPreserveWS=r}leafFallback(t,e){"BR"==t.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode("\n"),e)}ignoreFallback(t,e){"BR"!=t.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),e,!0)}readStyles(t,e){let n=t.style;if(n&&n.length)for(let t=0;t<this.parser.matchedStyles.length;t++){let r=this.parser.matchedStyles[t],i=n.getPropertyValue(r);if(i)for(let t;;){let n=this.parser.matchStyle(r,i,this,t);if(!n)break;if(n.ignore)return null;if(e=n.clearMark?e.filter(t=>!n.clearMark(t)):e.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1===n.consuming)t=n;else break}}return e}addElementByRule(t,e,n,r){let i,o;if(e.node)if((o=this.parser.schema.nodes[e.node]).isLeaf)this.insertNode(o.create(e.attrs),n,"BR"==t.nodeName)||this.leafFallback(t,n);else{let t=this.enter(o,e.attrs||null,n,e.preserveWhitespace);t&&(i=!0,n=t)}else{let t=this.parser.schema.marks[e.mark];n=n.concat(t.create(e.attrs))}let s=this.top;if(o&&o.isLeaf)this.findInside(t);else if(r)this.addElement(t,n,r);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach(t=>this.insertNode(t,n,!1));else{let r=t;"string"==typeof e.contentElement?r=t.querySelector(e.contentElement):"function"==typeof e.contentElement?r=e.contentElement(t):e.contentElement&&(r=e.contentElement),this.findAround(t,r,!0),this.addAll(r,n),this.findAround(t,r,!1)}i&&this.sync(s)&&this.open--}addAll(t,e,n,r){let i=n||0;for(let o=n?t.childNodes[n]:t.firstChild,s=null==r?null:t.childNodes[r];o!=s;o=o.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(o,e);this.findAtPoint(t,i)}findPlace(t,e,n){let r,i;for(let e=this.open,o=0;e>=0;e--){let s=this.nodes[e],l=s.findWrapping(t);if(l&&(!r||r.length>l.length+o)&&(r=l,i=s,!l.length))break;if(s.solid){if(n)break;o+=2}}if(!r)return null;this.sync(i);for(let t=0;t<r.length;t++)e=this.enterInner(r[t],null,e,!1);return e}insertNode(t,e,n){if(t.isInline&&this.needsBlock&&!this.top.type){let t=this.textblockFromContext();t&&(e=this.enterInner(t,null,e))}let r=this.findPlace(t,e,n);if(r){this.closeExtra();let e=this.top;e.match&&(e.match=e.match.matchType(t.type));let n=a.none;for(let i of r.concat(t.marks))(e.type?e.type.allowsMarkType(i.type):V(i.type,t.type))&&(n=i.addToSet(n));return e.content.push(t.mark(n)),!0}return!1}enter(t,e,n,r){let i=this.findPlace(t.create(e),n,!1);return i&&(i=this.enterInner(t,e,n,!0,r)),i}enterInner(t,e,n,r=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(t);let s=U(t,i,o.options);4&o.options&&0==o.content.length&&(s|=4);let l=a.none;return n=n.filter(e=>(o.type?!o.type.allowsMarkType(e.type):!V(e.type,t))||(l=e.addToSet(l),!1)),this.nodes.push(new K(t,e,l,r,null,s)),this.open++,n}closeExtra(t=!1){let e=this.nodes.length-1;if(e>this.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let e=this.open;e>=0;e--)if(this.nodes[e]==t)return this.open=e,!0;else this.localPreserveWS&&(this.nodes[e].options|=1);return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let n=this.nodes[e].content;for(let e=n.length-1;e>=0;e--)t+=n[e].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&this.find[n].offset==e&&(this.find[n].pos=this.currentPos)}findInside(t){if(this.find)for(let e=0;e<this.find.length;e++)null==this.find[e].pos&&1==t.nodeType&&t.contains(this.find[e].node)&&(this.find[e].pos=this.currentPos)}findAround(t,e,n){if(t!=e&&this.find)for(let r=0;r<this.find.length;r++)null==this.find[r].pos&&1==t.nodeType&&t.contains(this.find[r].node)&&e.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(t){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].node==t&&(this.find[e].pos=this.currentPos-(t.nodeValue.length-this.find[e].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,o=(t,s)=>{for(;t>=0;t--){let l=e[t];if(""==l){if(t==e.length-1||0==t)continue;for(;s>=i;s--)if(o(t-1,s))return!0;return!1}{let t=s>0||0==s&&r?this.nodes[s].type:n&&s>=i?n.node(s-i).type:null;if(!t||t.name!=l&&!t.isInGroup(l))return!1;s--}}return!0};return o(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let n=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;
4if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}}function W(t){let e={};for(let n in t)e[n]=t[n];return e}function V(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let o=[],s=t=>{o.push(t);for(let n=0;n<t.edgeCount;n++){let{type:r,next:i}=t.edge(n);if(r==e||0>o.indexOf(i)&&s(i))return!0}};if(s(i.contentMatch))return!0}}class q{constructor(t,e){this.nodes=t,this.marks=e}serializeFragment(t,e={},n){n||(n=Y(e).createDocumentFragment());let r=n,i=[];return t.forEach(t=>{if(i.length||t.marks.length){let n=0,o=0;for(;n<i.length&&o<t.marks.length;){let e=t.marks[o];if(!this.marks[e.type.name]){o++;continue}if(!e.eq(i[n][0])||!1===e.type.spec.spanning)break;n++,o++}for(;n<i.length;)r=i.pop()[1];for(;o<t.marks.length;){let n=t.marks[o++],s=this.serializeMark(n,t.isInline,e);s&&(i.push([n,r]),r.appendChild(s.dom),r=s.contentDOM||s.dom)}}r.appendChild(this.serializeNodeInner(t,e))}),n}serializeNodeInner(t,e){let{dom:n,contentDOM:r}=Q(Y(e),this.nodes[t.type.name](t),null,t.attrs);if(r){if(t.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,e,r)}return n}serializeNode(t,e={}){let n=this.serializeNodeInner(t,e);for(let r=t.marks.length-1;r>=0;r--){let i=this.serializeMark(t.marks[r],t.isInline,e);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(t,e,n={}){let r=this.marks[t.type.name];return r&&Q(Y(n),r(t,e),null,t.attrs)}static renderSpec(t,e,n=null,r){return Q(t,e,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new q(this.nodesFromSchema(t),this.marksFromSchema(t)))}
4static nodesFromSchema(t){let e=G(t.nodes);return e.text||(e.text=t=>t.text),e}static marksFromSchema(t){return G(t.marks)}}function G(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Y(t){return t.document||window.document}let X=new WeakMap;function Q(t,e,n,r){let i,o,s;if("string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;let l=e[0],a;if("string"!=typeof l)throw RangeError("Invalid array passed to renderSpec");if(r&&(void 0===(o=X.get(r))&&X.set(r,(s=null,!function t(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])s||(s=[]),s.push(e);else for(let n=0;n<e.length;n++)t(e[n]);else for(let n in e)t(e[n])}(r),o=s)),a=o)&&a.indexOf(e)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let c=l.indexOf(" ");c>0&&(n=l.slice(0,c),l=l.slice(c+1));let h=n?t.createElementNS(n,l):t.createElement(l),u=e[1],p=1;if(u&&"object"==typeof u&&null==u.nodeType&&!Array.isArray(u)){for(let t in p=2,u)if(null!=u[t]){let e=t.indexOf(" ");e>0?h.setAttributeNS(t.slice(0,e),t.slice(e+1),u[t]):h.setAttribute(t,u[t])}}for(let o=p;o<e.length;o++){let s=e[o];if(0===s){if(o<e.length-1||o>p)throw RangeError("Content hole must be the only child of its parent node");return{dom:h,contentDOM:h}}{let{dom:e,contentDOM:o}=Q(t,s,n,r);if(h.appendChild(e),o){if(i)throw RangeError("Multiple content holes");i=o}}}return{dom:h,contentDOM:i}}},61693:(t,e,n)=>{var r=n(49167);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},67255:(t,e,n)=>{"use strict";let r;n.d(e,{A:()=>l});let i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},o=new Uint8Array(16),s=[];for(let t=0;t<256;++t)s.push((t+256).toString(16).slice(1));let l=function(t,e,n){if(i.randomUUID&&!e&&!t)return i.randomUUID();let l=(t=t||{}).random??t.rng?.()??function(){if(!r){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(o)}();if(l.length<16)throw Error("Random bytes length must be >= 16");if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,e){if((n=n||0)<0||n+16>e.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let t=0;t<16;++t)e[n+t]=l[t];return e}return function(t,e=0){return(s[t[e+0]]+s[t[e+1]]+s[t[e+2]]+s[t[e+3]]+"-"+s[t[e+4]]+s[t[e+5]]+"-"+s[t[e+6]]+s[t[e+7]]+"-"+s[t[e+8]]+s[t[e+9]]+"-"+s[t[e+10]]+s[t[e+11]]+s[t[e+12]]+s[t[e+13]]+s[t[e+14]]+s[t[e+15]]).toLowerCase()}(l)}},67315:(t,e,n)=>{var r=n(32722),i=n(55418),o=n(71662),s=n(9862);t.exports=function(t,e){return function(n,l){var a=s(n)?r:i,c=e?e():{};return a(n,t,o(l,2),c)}}},74497:(t,e,n)=>{"use strict";n.d(e,{A:()=>ty});var r=n(52865);let i=/^\s*>\s$/,o=r.bP.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:t}){return["blockquote",(0,r.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}}
4,addInputRules(){return[(0,r.tG)({find:i,type:this.type})]}}),s=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,l=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,a=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,c=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,h=r.CU.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>"normal"!==t.style.fontWeight&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",(0,r.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[(0,r.OX)({find:s,type:this.type}),(0,r.OX)({find:a,type:this.t
4ype})]},addPasteRules(){return[(0,r.Zc)({find:l,type:this.type}),(0,r.Zc)({find:c,type:this.type})]}}),u="textStyle",p=/^\s*([-+*])\s$/,d=r.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:t}){return["ul",(0,r.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(u)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=(0,r.tG)({find:p,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,r.tG)({find:p,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(u),editor:this.editor})),[t]}}),f=/(^|[^`])`([^`]+)`(?!`)/,m=/(^|[^`])`([^`]+)`(?!`)/g,g=r.CU.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:t}){return["code",(0,r.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,r.OX)({find:f,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:m,type:this.type})]}});var y=n(49882);let b=/^```([a-z]+)?[\s\n]$/,v=/^~~~([a-z]+)?[\s\n]$/,k=r.bP.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;let{languageClassPrefix:n}=this.options,r=[...(null==(e=t.firstElementChild)?void 0:e.classList)||[]].filter(t=>t.startsWith(n)).map(t=>t.replace(n,""))[0];return r||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:t,HTMLAttributes:e}){return["pre",(0,r.KV)(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:t,$anchor:e}=this.editor.state.selection,n=1===e.pos;return!!t&&e.parent.type.name===this.name&&(!!n||!e.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:e}=t,{selection:n}=e,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let o=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith("\n\n");return!!o&&!!s&&t.chain().command(({tr:t})=>(t.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;let{state:e}=t,{selection:n,doc:r}=e,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let s=i.after();return void 0!==s&&(r.nodeAt(s)?t.commands.command(({tr:t})=>(t.setSelection(y.LN.near(r.resolve(s))),!0)):t.commands.exitCode())}}},addInputRules(){return[(0,r.JJ)({find:b,type:this.type,getAttributes:t=>({language:t[1]})}),(0,r.JJ)({find:v,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new y.k_({key:new y.hs("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;let n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=null==i?void 0:i.mode;if(!n||!o)return!1;let{tr:s,schema:l}=t.state,a=l.text(n.replace(/\r\n?/g,"\n"));return s.replaceSelectionWith(this.type.create({language:o},a)),s.selection.$from.parent.type!==this.type&&s.setSelection(y.U3.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),C=r.bP.create({name:"doc",topNode:!0,content:"block+"});var w=n(6084);class x{constructor(t,e){var n;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(n=e.width)?n:1,this.color=!1===e.color?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map(e=>{let n=t=>{this[e](t)};return t.dom.addEventListener(e,n),{name:e,handler:n}})}
4destroy(){this.handlers.forEach(({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e))}update(t,e){null!=this.cursorPos&&e.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t,e,n=this.editorView.state.doc.resolve(this.cursorPos),r=!n.parent.inlineContent,i;if(r){let t=n.nodeBefore,e=n.nodeAfter;if(t||e){let n=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(n){let r=n.getBoundingClientRect(),o=t?r.bottom:r.top;t&&e&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),i={left:r.left,right:r.right,top:o-this.width/2,bottom:o+this.width/2}}}}if(!i){let t=this.editorView.coordsAtPos(this.cursorPos);i={left:t.left-this.width/2,right:t.left+this.width/2,top:t.top,bottom:t.bottom}}let o=this.editorView.dom.offsetParent;if(!this.element&&(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),o&&(o!=document.body||"static"!=getComputedStyle(o).position)){let n=o.getBoundingClientRect();t=n.left-o.scrollLeft,e=n.top-o.scrollTop}else t=-pageXOffset,e=-pageYOffset;this.element.style.left=i.left-t+"px",this.element.style.top=i.top-e+"px",this.element.style.width=i.right-i.left+"px",this.element.style.height=i.bottom-i.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),n=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),r=n&&n.type.spec.disableDropCursor,i="function"==typeof r?r(this.editorView,e,t):r;if(e&&!i){let t=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=(0,w.Um)(this.editorView.state.doc,t,this.editorView.dragging.slice);null!=e&&(t=e)}this.setCursor(t),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){t.target!=this.editorView.dom&&this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}let S=r.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(t={}){return new y.k_({view:e=>new x(e,t)})}(this.options)]}});var T=n(27086),E=n(60793),M=n(13549);class A extends y.LN{constructor(t){super(t,t)}map(t,e){let n=t.resolve(e.map(this.head));return A.valid(n)?new A(n):y.LN.near(n)}content(){return E.Ji.empty}eq(t){return t instanceof A&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,e){if("number"!=typeof e.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new A(t.resolve(e.pos))}getBookmark(){return new O(this.anchor)}static valid(t){let e=t.parent;if(e.isTextblock||!function(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(0==n){if(r.type.spec.isolating)return!0;continue}for(let t=r.child(n-1);;t=t.lastChild){if(0==t.childCount&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}}return!0}(t)||!function(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let t=r.child(n);;t=t.firstChild){if(0==t.childCount&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}}return!0}(t))return!1;let n=e.type.spec.allowGapCursor;if(null!=n)return n;let r=e.contentMatchAt(t.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,e,n=!1){n:for(;;){if(!n&&A.valid(t))return t;let r=t.pos,i=null;for(let n=t.depth;;n--){let o=t.node(n);if(e>0?t.indexAfter(n)<o.childCount:t.index(n)>0){i=o.child(e>0?t.indexAfter(n):t.index(n)-1);break}if(0==n)return null;r+=e;let s=t.doc.resolve(r);if(A.valid(s))return s}for(;;){let o=e>0?i.firstChild:i.lastChild;if(!o){if(i.isAtom&&!i.isText&&!y.nh.isSelectable(i)){t=t.doc.resolve(r+i.nodeSize*e),n=!1;continue n}break}i=o,r+=e;let s=t.doc.resolve(r);if(A.valid(s))return s}return null}}}A.prototype.visible=!1,A.findFrom=A.findGapCursorFrom,y.LN.jsonID("gapcursor",A);class O{constructor(t){this.pos=t}map(t){return new O(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return A.valid(e)?new A(e):y.LN.near(e)}}let N=(0,T.K)({ArrowLeft:I("horiz",-1),ArrowRight:I("horiz",1),ArrowUp:I("vert",-1),ArrowDown:I("vert",1)});function I(t,e){let n="vert"==t?e>0?"down":"up":e>0?"right":"left";return function(t,r,i){let o=t.selection,s=e>0?o.$to:o.$from,l=o.empty;if(o instanceof y.U3){if(!i.endOfTextblock(n)||0==s.depth)return!1;l=!1,s=t.doc.resolve(e>0?s.after():s.before())}let a=A.findGapCursorFrom(s,e,l);return!!a&&(r&&r(t.tr.setSelection(new A(a))),!0)}}function R(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!A.valid(r))return!1;
4let i=t.posAtCoords({left:n.clientX,top:n.clientY});return!(i&&i.inside>-1&&y.nh.isSelectable(t.state.doc.nodeAt(i.inside)))&&(t.dispatch(t.state.tr.setSelection(new A(r))),!0)}function L(t,e){if("insertCompositionText"!=e.inputType||!(t.state.selection instanceof A))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let i=E.FK.empty;for(let t=r.length-1;t>=0;t--)i=E.FK.from(r[t].createAndFill(null,i));let o=t.state.tr.replace(n.pos,n.pos,new E.Ji(i,0,0));return o.setSelection(y.U3.near(o.doc.resolve(n.pos+1))),t.dispatch(o),!1}function D(t){if(!(t.selection instanceof A))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",M.zF.create(t.doc,[M.NZ.widget(t.selection.head,e,{key:"gapcursor"})])}let z=r.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[new y.k_({props:{decorations:D,createSelectionBetween:(t,e,n)=>e.pos==n.pos&&A.valid(n)?new A(n):null,handleClick:R,handleKeyDown:N,handleDOMEvents:{beforeinput
4:L}}})],extendNodeSchema(t){var e;let n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:null!=(e=(0,r.gk)((0,r.iI)(t,"allowGapCursor",n)))?e:null}}}),$=r.bP.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:t}){return["br",(0,r.KV)(this.options.HTMLAttributes,t)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{let{selection:t,storedMarks:i}=n;if(t.$from.parent.type.spec.isolating)return!1;let{keepMarks:o}=this.options,{splittableMarks:s}=r.extensionManager,l=i||t.$to.parentOffset&&t.$from.marks();return e().insertContent({type:this.name}).command(({tr:t,dispatch:e})=>{if(e&&l&&o){let e=l.filter(t=>s.includes(t.type.name));t.ensureMarks(e)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),_=r.bP.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){let n=this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0];return[`h${n}`,(0,r.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.setNode(this.name,t),toggleHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,...{[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}}),{})},addInputRules(){return this.options.levels.map(t=>(0,r.JJ)({find:RegExp(`^(#{${Math.min(...this.options.levels)},${t}}
4)\\s$`),type:this.type,getAttributes:{level:t}}))}});var F=function(){};F.prototype.append=function(t){return t.length?(t=F.from(t),!this.length&&t||t.length<200&&this.leafAppend(t)||this.length<200&&t.leafPrepend(this)||this.appendInner(t)):this},F.prototype.prepend=function(t){return t.length?F.from(t).append(this):this},F.prototype.appendInner=function(t){return new B(this,t)},F.prototype.slice=function(t,e){return(void 0===t&&(t=0),void 0===e&&(e=this.length),t>=e)?F.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},F.prototype.get=function(t){if(!(t<0)&&!(t>=this.length))return this.getInner(t)},F.prototype.forEach=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length),e<=n?this.forEachInner(t,e,n,0):this.forEachInvertedInner(t,e,n,0)},F.prototype.map=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(e,n){return r.push(t(e,n))},e,n),r},F.from=function(t){return t instanceof F?t:t&&t.length?new P(t):F.empty};var P=function(t){function e(e){t.call(this),this.values=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,n){return 0==t&&n==this.length?this:new e(this.values.slice(t,n))},e.prototype.getInner=function(t){return this.values[t]},e.prototype.forEachInner=function(t,e,n,r){for(var i=e;i<n;i++)if(!1===t(this.values[i],r+i))return!1},e.prototype.forEachInvertedInner=function(t,e,n,r){for(var i=e-1;i>=n;i--)if(!1===t(this.values[i],r+i))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=200)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=200)return new e(t.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(F);F.empty=new P([]);var B=function(t){function e(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return t<this.left.length?this.left.get(t):this.right.get(t-this.left.length)},e.prototype.forEachInner=function(t,e,n,r){var i=this.left.length;if(e<i&&!1===this.left.forEachInner(t,e,Math.min(n,i),r)||n>i&&!1===this.right.forEachInner(t,Math.max(e-i,0),Math.min(this.length,n)-i,r+i))return!1},e.prototype.forEachInvertedInner=function(t,e,n,r){var i=this.left.length;if(e>i&&!1===this.right.forEachInvertedInner(t,e-i,Math.max(n,i)-i,r+i)||n<i&&!1===this.left.forEachInvertedInner(t,Math.min(e,i),n,r))return!1},e.prototype.sliceInner=function(t,e){if(0==t&&e==this.length)return this;var n=this.left.length;return e<=n?this.left.slice(t,e):t>=n?this.right.slice(t-n,e-n):this.left.slice(t,n).append(this.right.slice(0,e-n))},e.prototype.leafAppend=function(t){var n=this.right.leafAppend(t);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(t){var n=this.left.leafPrepend(t);if(n)return new e(n,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(F);class H{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){let n,r,i,o;if(0==this.eventCount)return null;let s=this.items.length;for(;;s--)if(this.items.get(s-1).selection){--s;break}e&&(r=(n=this.remapping(s,this.items.length)).maps.length);let l=t.tr,a=[],c=[];return this.items.forEach((t,e)=>{if(!t.step){n||(r=(n=this.remapping(s,e+1)).maps.length),r--,c.push(t);return}if(n){c.push(new j(t.map));let e=t.step.map(n.slice(r)),i;e&&l.maybeStep(e).doc&&(i=l.mapping.maps[l.mapping.maps.length-1],a.push(new j(i,void 0,void 0,a.length+c.length))),r--,i&&n.appendMap(i,r)}else l.maybeStep(t.step);if(t.selection)return i=n?t.selection.map(n.slice(r)):t.selection,o=new H(this.items.slice(0,s).append(c.reverse().concat(a)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:l,selection:i}}addTransform(t,e,n,r){var i,o;let s,l=[],a=this.eventCount,c=this.items,h=!r&&c.length?c.get(c.length-1):null;for(let n=0;n<t.steps.length;n++){let i=t.steps[n].invert(t.docs[n]),o=new j(t.mapping.maps[n],i,e),s;
4(s=h&&h.merge(o))&&(o=s,n?l.pop():c=c.slice(0,c.length-1)),l.push(o),e&&(a++,e=void 0),r||(h=o)}let u=a-n.depth;return u>U&&(i=c,o=u,i.forEach((t,e)=>{if(t.selection&&0==o--)return s=e,!1}),c=i.slice(s),a-=u),new H(c.append(l),a)}remapping(t,e){let n=new w.X9;return this.items.forEach((e,r)=>{let i=null!=e.mirrorOffset&&r-e.mirrorOffset>=t?n.maps.length-e.mirrorOffset:void 0;n.appendMap(e.map,i)},t,e),n}addMaps(t){return 0==this.eventCount?this:new H(this.items.append(t.map(t=>new j(t))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-e),i=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(t=>{t.selection&&s--},r);let l=e;this.items.forEach(e=>{let r=i.getMirror(--l);if(null==r)return;o=Math.min(o,r);let a=i.maps[r];if(e.step){let o=t.steps[r].invert(t.docs[r]),c=e.selection&&e.selection.map(i.slice(l+1,r));c&&s++,n.push(new j(a,o,c))}else n.push(new j(a))},r);let a=[];for(let t=e;t<o;t++)a.push(new j(i.maps[t]));let c=new H(this.items.slice(0,r).append(a).append(n),s);return c.emptyItemCount()>500&&(c=c.compress(this.items.length-n.length)),c}emptyItemCount(){let t=0;return this.items.forEach(e=>{!e.step&&t++}),t}compress(t=this.items.length){let e=this.remapping(0,t),n=e.maps.length,r=[],i=0;return this.items.forEach((o,s)=>{if(s>=t)r.push(o),o.selection&&i++;else if(o.step){let t=o.step.map(e.slice(n)),s=t&&t.getMap();if(n--,s&&e.appendMap(s,n),t){let l=o.selection&&o.selection.map(e.slice(n));l&&i++;let a=new j(s.invert(),t,l),c,h=r.length-1;(c=r.length&&r[h].merge(a))?r[h]=c:r.push(a)}}else o.map&&n--},this.items.length,0),new H(F.from(r.reverse()),i)}}H.empty=new H(F.empty,0);class j{constructor(t,e,n,r){this.map=t,this.step=e,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new j(e.getMap().invert(),e,this.selection)}}}class J{constructor(t,e,n,r,i){this.done=t,this.undone=e,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}let U=20;function K(t){let e=[];for(let n=t.length-1;n>=0&&0==e.length;n--)t[n].forEach((t,n,r,i)=>e.push(r,i));return e}function Z(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let i=e.map(t[r],1),o=e.map(t[r+1],-1);i<=o&&n.push(i,o)}return n}let W=!1,V=null;function q(t){let e=t.plugins;if(V!=e){W=!1,V=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){W=!0;break}}return W}let G=new y.hs("history"),Y=new y.hs("closeHistory");function X(t,e){return(n,r)=>{let i=G.getState(n);if(!i||0==(t?i.undone:i.done).eventCount)return!1;if(r){let o=function(t,e,n){let r=q(e),i=G.get(e).spec.config,o=(n?t.undone:t.done).popEvent(e,r);if(!o)return null;let s=o.selection.resolve(o.transform.doc),l=(n?t.done:t.undone).addTransform(o.transform,e.selection.getBookmark(),i,r),a=new J(n?l:o.remaining,n?o.remaining:l,null,0,-1);return o.transform.setSelection(s).setMeta(G,{redo:n,historyState:a})}(i,n,t);o&&r(e?o.scrollIntoView():o)}return!0}}let Q=X(!1,!0),tt=X(!0,!0);X(!1,!1),X(!0,!1);let te=r.YY.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:t,dispatch:e})=>Q(t,e),redo:()=>({state:t,dispatch:e})=>tt(t,e)}),addProseMirrorPlugins(){return[function(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new y.k_({key:G,state:{init:()=>new J(H.empty,H.empty,null,0,-1),apply:(e,n,r)=>(function(t,e,n,r){let i=n.getMeta(G),o;if(i)return i.historyState;n.getMeta(Y)&&(t=new J(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return t;if(s&&s.getMeta(G))if(s.getMeta(G).redo)return new J(t.done.addTransform(n,void 0,r,q(e)),t.undone,K(n.mapping.maps),t.prevTime,t.prevComposition);else return new J(t.done,t.undone.addTransform(n,void 0,r,q(e)),null,t.prevTime,t.prevComposition);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))if(o=n.getMeta("rebased"))return new J(t.done.rebased(n,o),t.undone.rebased(n,o),Z(t.prevRanges,n.mapping),t.prevTime,t.prevComposition);else return new J(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Z(t.prevRanges,n.mapping),t.prevTime,t.prevComposition);{let i=n.getMeta("composition"),o=0==t.prevTime||!s&&t.prevComposition!=i&&(t.prevTime<(n.time||0)-r.newGroupDelay||!function(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;
4return t.mapping.maps[0].forEach((t,r)=>{for(let i=0;i<e.length;i+=2)t<=e[i+1]&&r>=e[i]&&(n=!0)}),n}(n,t.prevRanges)),l=s?Z(t.prevRanges,n.mapping):K(n.mapping.maps);return new J(t.done.addTransform(n,o?e.selection.getBookmark():void 0,r,q(e)),H.empty,l,n.time,null==i?t.prevComposition:i)}})(n,r,e,t)},config:t,props:{handleDOMEvents:{beforeinput(t,e){let n=e.inputType,r="historyUndo"==n?Q:"historyRedo"==n?tt:null;return!!r&&(e.preventDefault(),r(t.state,t.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),tn=r.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:t}){return["hr",(0,r.KV)(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{let{selection:n}=e,{$from:i,$to:o}=n,s=t();return 0===i.parentOffset?s.insertContentAt({from:Math.max(i.pos-1,0),to:o.pos},{type:this.name}):(0,r.BQ)(n)?s.insertContentAt(o.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({tr:t,dispatch:e})=>{var n;if(e){let{$to:e}=t.selection,r=e.end();if(e.nodeAfter)e.nodeAfter.isTextblock?t.setSelection(y.U3.create(t.doc,e.pos+1)):e.nodeAfter.isBlock?t.setSelection(y.nh.create(t.doc,e.pos)):t.setSelection(y.U3.create(t.doc,e.pos));else{let i=null==(n=e.parent.type.contentMatch.defaultType)?void 0:n.create();i&&(t.insert(r,i),t.setSelection(y.U3.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,r.jT)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.t
4ype})]}}),tr=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,ti=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,to=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,ts=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,tl=r.CU.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>"normal"!==t.style.fontStyle&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",(0,r.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,r.OX)({find:tr,type:this.type}),(0,r.OX)({find:to,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:ti,type:this.type}),(0,r.Zc)({find:ts,type:this.type})]}}),ta=r.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,r.KV)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),tc="textStyle",th=/^(\d+)\.\s$/,tu=r.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:t}){let{start:e,...n}=t;return 1===e?["ol",(0,r.KV)(this.options.HTMLAttributes,n),0]:["ol",(0,r.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(tc)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}}
4,addInputRules(){let t=(0,r.tG)({find:th,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,r.tG)({find:th,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(tc)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[t]}}),tp=r.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",(0,r.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),td=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,tf=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,tm=r.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>!!t.includes("line-through")&&{}}],renderHTML({HTMLAttributes:t}){return["s",(0,r.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}}
4,addInputRules(){return[(0,r.OX)({find:td,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:tf,type:this.type})]}}),tg=r.bP.create({name:"text",group:"inline"}),ty=r.YY.create({name:"starterKit",addExtensions(){let t=[];return!1!==this.options.bold&&t.push(h.configure(this.options.bold)),!1!==this.options.blockquote&&t.push(o.configure(this.options.blockquote)),!1!==this.options.bulletList&&t.push(d.configure(this.options.bulletList)),!1!==this.options.code&&t.push(g.configure(this.options.code)),!1!==this.options.codeBlock&&t.push(k.configure(this.options.codeBlock)),!1!==this.options.document&&t.push(C.configure(this.options.document)),!1!==this.options.dropcursor&&t.push(S.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&t.push(z.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&t.push($.configure(this.options.hardBreak)),!1!==this.options.heading&&t.push(_.configure(this.options.heading)),!1!==this.options.history&&t.push(te.configure(this.options.history)),!1!==this.options.horizontalRule&&t.push(tn.configure(this.options.horizontalRule)),!1!==this.options.italic&&t.push(tl.configure(this.options.italic)),!1!==this.options.listItem&&t.push(ta.configure(this.options.listItem)),!1!==this.options.orderedList&&t.push(tu.configure(this.options.orderedList)),!1!==this.options.paragraph&&t.push(tp.configure(this.options.paragraph)),!1!==this.options.strike&&t.push(tm.configure(this.options.strike)),!1!==this.options.text&&t.push(tg.configure(this.options.text)),t}})},83825:(t,e,n)=>{"use strict";n.d(e,{S:()=>h});var r,i=n(82643),o=n(21462),s=n(26023),l=n(79395),a=n(69225),c=(0,s.Ay)(l.f).withConfig({componentId:"sc-3a441c81-0"})(r||(r=(0,i.ue)(["\n  direction: rtl;\n\n  & > * {\n    direction: ltr;\n  }\n\n  scrollbar-color: "," #fff;\n\n  a{\n    color: ",";  \n    text-decoration: underline;\n  }\n\n  a::active {\n    color: ",";\n  }\n\n  a::hover {\n    color: ",";\n  }\n\n  a::visited {\n    color: ",";\n  }\n\n  a::pressed {\n    color: ",";\n  }\n\n}\n\n"],["\n  direction: rtl;\n\n  & > * {\n    direction: ltr;\n  }\n\n  scrollbar-color: "," #fff;\n\n  a{\n    color: ",";  \n    text-decoration: underline;\n  }\n\n  a::active {\n    color: ",";\n  }\n\n  a::hover {\n    color: ",";\n  }\n\n  a::visited {\n    color: ",";\n  }\n\n  a::pressed {\n    color: ",";\n  }\n\n}\n\n"])),function(){return(0,a.H)("bg-decorative2-main")},function(){return(0,a.H)("icon-link-active")},function(){return(0,a.H)("text-link-active")},function(){return(0,a.H)("text-link-hover")},function(){return(0,a.H)("text-link-visited")},function(){return(0,a.H)("text-link-pressed")}),h=function(t){var e=t.sanitizedHtml;return o.createElement(l.f,{$pv:"spacing-24",$pr:"spacing-24",$ba:"border-solid-m",$borderColor:"bg-decorative2-main",$borderRadius:"border-radius-l","data-testid":"oak-teacher-notes-inline"},o.createElement(c,{$overflow:"scroll",$pl:"spacing-24",$height:"spacing-72",dangerouslySetInnerHTML:{__html:null!=e?e:""}}))}},84425:(t,e,n)=>{var r=n(97764),i=n(79894),o=n(53442),s=n(30278),l=n(51518);t.exports=function(t,e,n,a){if(!s(t))return t;e=i(e,t);for(var c=-1,h=e.length,u=h-1,p=t;null!=p&&++c<h;){var d=l(e[c]),f=n;if("__proto__"===d||"constructor"===d||"prototype"===d)break;if(c!=u){var m=p[d];void 0===(f=a?a(m,d,p):void 0)&&(f=s(m)?m:o(e[c+1])?[]:{})}r(p,d,f),p=p[d]}return t}},84493:(t,e,n)=>{"use strict";n.d(e,{$Z:()=>f,hG:()=>S});var r,i,o=n(21462),s=n(47993),l=n(52865),a={exports:{}},c={};a.exports=function(){if(r)return c;r=1;var t="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},e=o.useState,n=o.useEffect,i=o.useLayoutEffect,s=o.useDebugValue;function l(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(t){return!0}}var a="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,r){var o=r(),a=e({inst:{value:o,getSnapshot:r}}),c=a[0].inst,h=a[1];return i(function(){c.value=o,c.getSnapshot=r,l(c)&&h({inst:c})},[t,o,r]),n(function(){return l(c)&&h({inst:c}),t(function(){l(c)&&h({inst:c})})},[t]),s(o),o};
4return c.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:a,c}();var h=a.exports;let u=({contentComponent:t})=>{let e=h.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return o.createElement(o.Fragment,null,Object.values(e))};class p extends o.Component{constructor(t){var e;super(t),this.editorContentRef=o.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(null==(e=t.editor)?void 0:e.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let t=this.props.editor;if(t&&!t.isDestroyed&&t.options.element){if(t.contentComponent)return;let e=this.editorContentRef.current;e.append(...t.options.element.childNodes),t.setOptions({element:e}),t.contentComponent=function(){let t=new Set,e={};return{subscribe:e=>(t.add(e),()=>{t.delete(e)}),getSnapshot:()=>e,getServerSnapshot:()=>e,setRenderer(n,r){e={...e,[n]:s.createPortal(r.reactElement,r.element,n)},t.forEach(t=>t())},removeRenderer(n){let r={...e};delete r[n],e=r,t.forEach(t=>t())}}}(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=t.contentComponent.subscribe(()=>{this.setState(t=>t.hasContentComponentInitialized?t:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),t.createNodeViews(),this.initialized=!0}}componentWillUnmount(){let t=this.props.editor;if(!t||(this.initialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),t.contentComponent=null,!t.options.element.firstChild))return;let e=document.createElement("div");e.append(...t.options.element.childNodes),t.setOptions({element:e})}render(){let{editor:t,innerRef:e,...n}=this.props;return o.createElement(o.Fragment,null,o.createElement("div",{ref:((...t)=>e=>{t.forEach(t=>{"function"==typeof t?t(e):t&&(t.current=e)})})(e,this.editorContentRef),...n}),(null==t?void 0:t.contentComponent)&&o.createElement(u,{contentComponent:t.contentComponent}))}}let d=(0,o.forwardRef)((t,e)=>{let n=o.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[t.editor]);return o.createElement(p,{key:n,innerRef:e,...t})}),f=o.memo(d);var m=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(i=r;0!=i--;)if(!t(e[i],n[i]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(i of e.entries())if(!n.has(i[0]))return!1;for(i of e.entries())if(!t(i[1],n.get(i[0])))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(i of e.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if((r=e.length)!=n.length)return!1;for(i=r;0!=i--;)if(e[i]!==n[i])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var r,i,o,s=o[i];if(("_owner"!==s||!e.$$typeof)&&!t(e[s],n[s]))return!1}return!0}return e!=e&&n!=n}),g={exports:{}},y={};g.exports=function(){if(i)return y;i=1;var t="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},e=h.useSyncExternalStore,n=o.useRef,r=o.useEffect,s=o.useMemo,l=o.useDebugValue;return y.useSyncExternalStoreWithSelector=function(i,o,a,c,h){var u=n(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;var d=e(i,(u=s(function(){function e(e){if(!i){if(i=!0,n=e,e=c(e),void 0!==h&&p.hasValue){var o=p.value;if(h(o,e))return r=o}return r=e}if(o=r,t(n,e))return o;var s=c(e);return void 0!==h&&h(o,s)?o:(n=e,r=s)}var n,r,i=!1,s=void 0===a?null:a;return[function(){return e(o())},null===s?void 0:function(){return e(s())}]},[o,a,c,h]))[0],u[1]);return r(function(){p.hasValue=!0,p.value=d},[d]),l(d),d},y}();var b=g.exports;let v="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;class k{constructor(t){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0}
4,this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}watch(t){if(this.editor=t,this.editor){let t=()=>{this.transactionNumber+=1,this.subscribers.forEach(t=>t())},e=this.editor;return e.on("transaction",t),()=>{e.off("transaction",t)}}}}let C="undefined"==typeof window,w=C||!!("undefined"!=typeof window&&window.next);class x{constructor(t){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=t,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(t){this.editor=t,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(t=>t())}getInitialEditor(){return void 0===this.options.current.immediatelyRender?C||w?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){let t={...this.options.current,onBeforeCreate:(...t)=>{var e,n;return null==(n=(e=this.options.current).onBeforeCreate)?void 0:n.call(e,...t)},onBlur:(...t)=>{var e,n;return null==(n=(e=this.options.current).onBlur)?void 0:n.call(e,...t)},onCreate:(...t)=>{var e,n;return null==(n=(e=this.options.current).onCreate)?void 0:n.call(e,...t)},onDestroy:(...t)=>{var e,n;return null==(n=(e=this.options.current).onDestroy)?void 0:n.call(e,...t)},onFocus:(...t)=>{var e,n;return null==(n=(e=this.options.current).onFocus)?void 0:n.call(e,...t)},onSelectionUpdate:(...t)=>{var e,n;return null==(n=(e=this.options.current).onSelectionUpdate)?void 0:n.call(e,...t)},onTransaction:(...t)=>{var e,n;return null==(n=(e=this.options.current).onTransaction)?void 0:n.call(e,...t)}
4,onUpdate:(...t)=>{var e,n;return null==(n=(e=this.options.current).onUpdate)?void 0:n.call(e,...t)},onContentError:(...t)=>{var e,n;return null==(n=(e=this.options.current).onContentError)?void 0:n.call(e,...t)},onDrop:(...t)=>{var e,n;return null==(n=(e=this.options.current).onDrop)?void 0:n.call(e,...t)},onPaste:(...t)=>{var e,n;return null==(n=(e=this.options.current).onPaste)?void 0:n.call(e,...t)}};return new l.KE(t)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(t){return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)}}static compareOptions(t,e){return Object.keys(t).every(n=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(n)||("extensions"===n&&t.extensions&&e.extensions?t.extensions.length===e.extensions.length&&t.extensions.every((t,n)=>{var r;return t===(null==(r=e.extensions)?void 0:r[n])}):t[n]===e[n]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?x.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(t){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=t;return}if(this.previousDeps.length===t.length&&this.previousDeps.every((e,n)=>e===t[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=t}scheduleDestroy(){let t=this.instanceId,e=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===t){e&&e.setOptions(this.options.current);return}e&&!e.isDestroyed&&(e.destroy(),this.instanceId===t&&this.setEditor(null))},1)}}function S(t={},e=[]){let n=(0,o.useRef)(t);n.current=t;let[r]=(0,o.useState)(()=>new x(n)),i=h.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,o.useDebugValue)(i),(0,o.useEffect)(r.onRender(e)),!function(t){var e;let[n]=(0,o.useState)(()=>new k(t.editor)),r=b.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,null!=(e=t.equalityFn)?e:m);v(()=>n.watch(t.editor),[t.editor,n]),(0,o.useDebugValue)(r)}({editor:i,selector:({transactionNumber:e})=>!1===t.shouldRerenderOnTransaction?null:t.immediatelyRender&&0===e?0:e+1}),i}(0,o.createContext)({editor:null}).Consumer;let T=(0,o.createContext)({onDragStart:void 0});o.forwardRef((t,e)=>{let{onDragStart:n}=(0,o.useContext)(T),r=t.as||"div";return o.createElement(r,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})})},85522:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},88400:(t,e,n)=>{"use strict";n.d(e,{e:()=>s});var r=n(82643),i=n(21462),o=n(46115),s=function(t){var e=t.element,n=(0,r.Tt)(t,["element"]);return i.createElement(o.z,(0,r.Cl)({element:null!=e?e:"button",defaultTextColor:"text-primary",hoverTextColor:"text-primary",disabledTextColor:"text-disabled",disabledIconColor:"text-disabled"},n))}},90269:(t,e,n)=>{"use strict";n.d(e,{o:()=>c});var r,i=n(82643),o=n(21462),s=n(26023),l=n(29845),a=(0,s.Ay)(l.E).withConfig({componentId:"sc-872b5d76-0"})(r||(r=(0,i.ue)([""],[""]))),c=(0,o.forwardRef)(function(t,e){var n=t.displayDisabled,r=(0,i.Tt)(t,["displayDisabled"]),s=n?"text-disabled":"text-primary";return o.createElement(a,(0,i.Cl)({color:s,hoverColor:s,activeColor:s,disabledColor:"text-disabled",visitedColor:n?"text-disabled":"text-primary",textDecoration:"none"},r,{ref:e}))})},90270:(t,e,n)=>{"use strict";n.d(e,{$B:()=>l,Sd:()=>o,T2:()=>s});var r=n(6084),i=n(60793);function o(t,e=null){return function(n,o){let{$from:s,$to:l}=n.selection,a=s.blockRange(l);if(!a)return!1;let c=o?n.tr:null;return!!function(t,e,n,o=null){let s=!1,l=e,a=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&0==e.startIndex){
4if(0==e.$from.index(e.depth-1))return!1;let t=a.resolve(e.start-2);l=new i.u$(t,t,e.depth),e.endIndex<e.parent.childCount&&(e=new i.u$(e.$from,a.resolve(e.$to.end(e.depth)),e.depth)),s=!0}let c=(0,r.oM)(l,n,o,e);return!!c&&(t&&function(t,e,n,o,s){let l=i.FK.empty;for(let t=n.length-1;t>=0;t--)l=i.FK.from(n[t].type.create(n[t].attrs,l));t.step(new r.Wg(e.start-2*!!o,e.end,e.start,e.end,new i.Ji(l,0,0),n.length,!0));let a=0;for(let t=0;t<n.length;t++)n[t].type==s&&(a=t+1);let c=n.length-a,h=e.start+n.length-2*!!o,u=e.parent;for(let n=e.startIndex,i=e.endIndex,o=!0;n<i;n++,o=!1)!o&&(0,r.zy)(t.doc,h,c)&&(t.split(h,c),h+=2*c),h+=u.child(n).nodeSize}(t,e,c,s,n),!0)}(c,a,t,e)&&(o&&o(c.scrollIntoView()),!0)}}function s(t){return function(e,n){let{$from:o,$to:s}=e.selection,l=o.blockRange(s,e=>e.childCount>0&&e.firstChild.type==t);return!!l&&(!n||(o.node(l.depth-1).type==t?function(t,e,n,o){let s=t.tr,l=o.end,a=o.$to.end(o.depth);l<a&&(s.step(new r.Wg(l-1,a,l,a,new i.Ji(i.FK.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new i.u$(s.doc.resolve(o.$from.pos),s.doc.resolve(a),o.depth));let c=(0,r.jP)(o);if(null==c)return!1;s.lift(o,c);let h=s.mapping.map(l,-1)-1;return(0,r.n9)(s.doc,h)&&s.join(h),e(s.scrollIntoView()),!0}(e,n,t,l):function(t,e,n){let o=t.tr,s=n.parent;for(let t=n.end,e=n.endIndex-1,r=n.startIndex;e>r;e--)t-=s.child(e).nodeSize,o.delete(t-1,t+1);let l=o.doc.resolve(n.start),a=l.nodeAfter;if(o.mapping.map(n.end)!=n.start+l.nodeAfter.nodeSize)return!1;let c=0==n.startIndex,h=n.endIndex==s.childCount,u=l.node(-1),p=l.index(-1);if(!u.canReplace(p+ +!c,p+1,a.content.append(h?i.FK.empty:i.FK.from(s))))return!1;let d=l.pos,f=d+a.nodeSize;return o.step(new r.Wg(d-!!c,f+ +!!h,d+1,f-1,new i.Ji((c?i.FK.empty:i.FK.from(s.copy(i.FK.empty))).append(h?i.FK.empty:i.FK.from(s.copy(i.FK.empty))),+!c,+!h),+!c)),e(o.scrollIntoView()),!0}(e,n,l)))}}function l(t){return function(e,n){let{$from:o,$to:s}=e.selection,l=o.blockRange(s,e=>e.childCount>0&&e.firstChild.type==t);if(!l)return!1;let a=l.startIndex;if(0==a)return!1;let c=l.parent,h=c.child(a-1);if(h.type!=t)return!1;if(n){let o=h.lastChild&&h.lastChild.type==c.type,s=i.FK.from(o?t.create():null),a=new i.Ji(i.FK.from(t.create(null,i.FK.from(c.type.create(null,s)))),o?3:1,0),u=l.start,p=l.end;n(e.tr.step(new r.Wg(u-(o?3:1),p,u,p,a,1,!0)).scrollIntoView())}return!0}}},90291:(t,e,n)=>{"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{A:()=>tm});let i=Object.entries,o=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor,c=Object.freeze,h=Object.seal,u=Object.create,p="undefined"!=typeof Reflect&&Reflect,d=p.apply,f=p.construct;c||(c=function(t){return t}),h||(h=function(t){return t}),d||(d=function(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return t.apply(e,r)}),f||(f=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});let m=z(Array.prototype.forEach),g=z(Array.prototype.lastIndexOf),y=z(Array.prototype.pop),b=z(Array.prototype.push),v=z(Array.prototype.splice),k=Array.isArray,C=z(String.prototype.toLowerCase),w=z(String.prototype.toString),x=z(String.prototype.match),S=z(String.prototype.replace),T=z(String.prototype.indexOf),E=z(String.prototype.trim),M=z(Number.prototype.toString),A=z(Boolean.prototype.toString),O="undefined"==typeof BigInt?null:z(BigInt.prototype.toString),N="undefined"==typeof Symbol?null:z(Symbol.prototype.toString),I=z(Object.prototype.hasOwnProperty),R=z(Object.prototype.toString),L=z(RegExp.prototype.test),D=(tf=TypeError,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return f(tf,e)});function z(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return d(t,e,r)}}function $(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C;if(o&&o(t,null),!k(e))return t;let r=e.length;for(;r--;){let i=e[r];if("string"==typeof i){let t=n(i);t!==i&&(s(e)||(e[r]=t),i=t)}t[i]=!0}return t}function _(t){let e=u(null);for(let o of i(t)){var n=function(t){if(Array.isArray(t))return t}(o)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,s,l=[],a=!0,c=!1;try{o=(n=n.call(t)).next,!1;for(;!(a=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);a=!0);}catch(t){c=!0,i=t}
4finally{try{if(!a&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}(o,2)||function(t,e){if(t){if("string"==typeof t)return r(t,2);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(o,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let i=n[0],s=n[1];I(t,i)&&(k(s)?e[i]=function(t){for(let e=0;e<t.length;e++)I(t,e)||(t[e]=null);return t}(s):s&&"object"==typeof s&&s.constructor===Object?e[i]=_(s):e[i]=s)}return e}function F(t,e){for(;null!==t;){let n=a(t,e);if(n){if(n.get)return z(n.get);if("function"==typeof n.value)return z(n.value)}t=l(t)}return function(){return null}}let P=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),B=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),H=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),j=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),J=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),K=c(["#text"]),Z=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
4spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),W=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V=c(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),q=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=h(/{{[\w\W]*|^[\w\W]*}}/g),Y=h(/<%[\w\W]*|^[\w\W]*%>/g),X=h(/\${[\w\W]*/g),Q=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),tt=h(/^aria-[\-\w]+$/),te=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tn=h(/^(?:\w+script|data):/i),tr=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ti=h(/^html$/i),to=h(/^[a-z][.\w]*(-[.\w]+)+$/i),ts=h(/<[/\w!]/g),tl=h(/<[/\w]/g),ta=h(/<\/no(script|embed|frames)/i),tc=h(/\/>/i),th={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},tu=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null,r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},tp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},td=function(t,e,n,r){return I(t,e)&&k(t[e])?$(r.base?_(r.base):{},t[e],r.transform):n};var tf,tm=function t(){let e,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,o=e=>t(e);
4if(o.version="3.4.11",o.removed=[],!r||!r.document||r.document.nodeType!==th.document||!r.Element)return o.isSupported=!1,o;let s=r.document,l=s,a=l.currentScript;r.DocumentFragment;let p=r.HTMLTemplateElement,d=r.Node,f=r.Element,z=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let tf=r.DOMParser,tm=r.trustedTypes,tg=f.prototype,ty=F(tg,"cloneNode"),tb=F(tg,"remove"),tv=F(tg,"nextSibling"),tk=F(tg,"childNodes"),tC=F(tg,"parentNode"),tw=F(tg,"shadowRoot"),tx=F(tg,"attributes"),tS=d&&d.prototype?F(d.prototype,"nodeType"):null,tT=d&&d.prototype?F(d.prototype,"nodeName"):null;if("function"==typeof p){let t=s.createElement("template");t.content&&t.content.ownerDocument&&(s=t.content.ownerDocument)}let tE="",tM=!1,tA=0,tO=function(){if(tA>0)throw D('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},tN=function(t){tO(),tA++;try{return e.createHTML(t)}finally{tA--}},tI=function(t){tO(),tA++;try{return e.createScriptURL(t)}finally{tA--}},tR=s,tL=tR.implementation,tD=tR.createNodeIterator,tz=tR.createDocumentFragment,t$=tR.getElementsByTagName,t_=l.importNode,tF=tp();o.isSupported="function"==typeof i&&"function"==typeof tC&&tL&&void 0!==tL.createHTMLDocument;let tP=te,tB=null,tH=$({},[...P,...B,...H,...J,...K]),tj=null,tJ=$({},[...Z,...W,...V,...q]),tU=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),tK=null,tZ=null,tW=Object.seal(u(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),tV=!0,tq=!0,tG=!1,tY=!0,tX=!1,tQ=!0,t0=!1,t1=!1,t2=null,t5=null,t3=!1,t4=!1,t6=!1,t8=!1,t7=!0,t9=!1,et="user-content-",ee=!0,en=!1,er={},ei=null,eo=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),es=null,el=$({},["audio","video","img","source","image","track"]),ea=null,ec=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eh="http://www.w3.org/1998/Math/MathML",eu="http://www.w3.org/2000/svg",ep="http://www.w3.org/1999/xhtml",ed=ep,ef=!1,em=null,eg=$({},[eh,eu,ep],w),ey=c(["mi","mo","mn","ms","mtext"]),eb=$({},ey),ev=c(["annotation-xml"]),ek=$({},ev),eC=$({},["title","style","font","a","script"]),ew=null,ex=["application/xhtml+xml","text/html"],eS=null,eT=null,eE=s.createElement("form"),eM=function(t){return t instanceof RegExp||t instanceof Function},eA=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(eT&&eT===t)return;t&&"object"==typeof t||(t={}),t=_(t),eS="application/xhtml+xml"===(ew=-1===ex.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?w:C,tB=td(t,"ALLOWED_TAGS",tH,{transform:eS}),tj=td(t,"ALLOWED_ATTR",tJ,{transform:eS}),em=td(t,"ALLOWED_NAMESPACES",eg,{transform:w}),ea=td(t,"ADD_URI_SAFE_ATTR",ec,{transform:eS,base:ec}),es=td(t,"ADD_DATA_URI_TAGS",el,{transform:eS,base:el}),ei=td(t,"FORBID_CONTENTS",eo,{transform:eS}),tK=td(t,"FORBID_TAGS",_({}),{transform:eS}),tZ=td(t,"FORBID_ATTR",_({}),{transform:eS}),er=!!I(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?_(t.USE_PROFILES):t.USE_PROFILES),tV=!1!==t.ALLOW_ARIA_ATTR,tq=!1!==t.ALLOW_DATA_ATTR,tG=t.ALLOW_UNKNOWN_PROTOCOLS||!1,tY=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,tX=t.SAFE_FOR_TEMPLATES||!1,tQ=!1!==t.SAFE_FOR_XML,t0=t.WHOLE_DOCUMENT||!1,t4=t.RETURN_DOM||!1,t6=t.RETURN_DOM_FRAGMENT||!1,t8=t.RETURN_TRUSTED_TYPE||!1,t3=t.FORCE_BODY||!1,t7=!1!==t.SANITIZE_DOM,t9=t.SANITIZE_NAMED_PROPS||!1,ee=!1!==t.KEEP_CONTENT,en=t.IN_PLACE||!1,tP=!function(t){try{return L(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?te:t.ALLOWED_URI_REGEXP,ed="string"==typeof t.NAMESPACE?t.NAMESPACE:ep,eb=I(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?_(t.MATHML_TEXT_INTEGRATION_POINTS):$({},ey),ek=I(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?_(t.HTML_INTEGRATION_POINTS):$({},ev);let r=I(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?_(t.CUSTOM_ELEMENT_HANDLING):u(null);if(tU=u(null),I(r,"tagNameCheck")&&eM(r.tagNameCheck)&&(tU.tagNameCheck=r.tagNameCheck),I(r,"attributeNameCheck")&&eM(r.attributeNameCheck)&&(tU.attributeNameCheck=r.attributeNameCheck),I(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(tU.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),h(tU),tX&&(tq=!1),t6&&(t4=!0),er&&(tB=$({},K),tj=u(null),!0===er.html&&($(tB,P),$(tj,Z)),!0===er.svg&&($(tB,B),$(tj,W),$(tj,q)),!0===er.svgFilters&&
4($(tB,H),$(tj,W),$(tj,q)),!0===er.mathMl&&($(tB,J),$(tj,V),$(tj,q))),tW.tagCheck=null,tW.attributeCheck=null,I(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?tW.tagCheck=t.ADD_TAGS:k(t.ADD_TAGS)&&(tB===tH&&(tB=_(tB)),$(tB,t.ADD_TAGS,eS))),I(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?tW.attributeCheck=t.ADD_ATTR:k(t.ADD_ATTR)&&(tj===tJ&&(tj=_(tj)),$(tj,t.ADD_ATTR,eS))),I(t,"ADD_URI_SAFE_ATTR")&&k(t.ADD_URI_SAFE_ATTR)&&$(ea,t.ADD_URI_SAFE_ATTR,eS),I(t,"FORBID_CONTENTS")&&k(t.FORBID_CONTENTS)&&(ei===eo&&(ei=_(ei)),$(ei,t.FORBID_CONTENTS,eS)),I(t,"ADD_FORBID_CONTENTS")&&k(t.ADD_FORBID_CONTENTS)&&(ei===eo&&(ei=_(ei)),$(ei,t.ADD_FORBID_CONTENTS,eS)),ee&&(tB["#text"]=!0),t0&&$(tB,["html","head","body"]),tB.table&&($(tB,["tbody"]),delete tK.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=e;e=t.TRUSTED_TYPES_POLICY;try{tE=tN("")}catch(t){throw e=n,t}}else null===t.TRUSTED_TYPES_POLICY?(e=void 0,tE=""):(void 0===e&&(tM||(n=tu(tm,a),tM=!0),e=n),e&&"string"==typeof tE&&(tE=tN("")));c&&c(t),eT=t},eO=$({},[...B,...H,...j]),eN=$({},[...J,...U]),eI=function(t){var e,n,r;let i=tC(t);i&&i.tagName||(i={namespaceURI:ed,tagName:"template"});let o=C(t.tagName),s=C(i.tagName);return!!em[t.namespaceURI]&&(t.namespaceURI===eu?(e=i).namespaceURI===ep?"svg"===o:e.namespaceURI===eh?"svg"===o&&("annotation-xml"===s||eb[s]):!!eO[o]:t.namespaceURI===eh?(n=i).namespaceURI===ep?"math"===o:n.namespaceURI===eu?"math"===o&&ek[s]:!!eN[o]:t.namespaceURI===ep?((r=i).namespaceURI!==eu||!!ek[s])&&(r.namespaceURI!==eh||!!eb[s])&&!eN[o]&&(eC[o]||!eO[o]):"application/xhtml+xml"===ew&&!!em[t.namespaceURI])},eR=function(t){b(o.removed,{element:t});try{tC(t).removeChild(t)}catch(e){if(tb(t),!tC(t))throw D("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},eL=function(t){let e=tk(t);if(e){let t=[];m(e,e=>{b(t,e)}),m(t,t=>{try{tb(t)}catch(t){}})}let n=tx(t);if(n)for(let e=n.length-1;e>=0;--e){let r=n[e],i=r&&r.name;if("string"==typeof i)try{t.removeAttribute(i)}catch(t){}}},eD=function(t,e){try{b(o.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){b(o.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(t4||t6)try{eR(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ez=function(t){let e=tx(t);if(e)for(let n=e.length-1;n>=0;--n){let r=e[n],i=r&&r.name;if("string"==typeof i&&!tj[eS(i)])try{t.removeAttribute(i)}catch(t){}}},e$=function(t){let e=[t];for(;e.length>0;){let t=e.pop();(tS?tS(t):t.nodeType)===th.element&&ez(t);let n=tk(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},e_=function(t){let n=null,r=null;if(t3)t="<remove></remove>"+t;else{let e=x(t,/^[\r\n\t ]+/);r=e&&e[0]}"application/xhtml+xml"===ew&&ed===ep&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let i=e?tN(t):t;if(ed===ep)try{n=new tf().parseFromString(i,ew)}catch(t){}if(!n||!n.documentElement){n=tL.createDocument(ed,"template",null);try{n.documentElement.innerHTML=ef?tE:i}catch(t){}}let o=n.body||n.documentElement;return(t&&r&&o.insertBefore(s.createTextNode(r),o.childNodes[0]||null),ed===ep)?t$.call(n,t0?"html":"body")[0]:t0?n.documentElement:o},eF=function(t){return tD.call(t.ownerDocument||t,t,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},eP=function(t){return t=S(t,G," "),t=S(t,Y," "),t=S(t,X," ")},eB=function(t){var e;t.normalize();let n=tD.call(t.ownerDocument||t,t,z.SHOW_TEXT|z.SHOW_COMMENT|z.SHOW_CDATA_SECTION|z.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=eP(r.data),r=n.nextNode();let i=null==(e=t.querySelectorAll)?void 0:e.call(t,"template");i&&m(i,t=>{ej(t.content)&&eB(t.content)})},eH=function(t){let e=tT?tT(t):null;return"string"==typeof e&&"form"===eS(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==tx(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==tS(t)||t.childNodes!==tk(t))},ej=function(t){if(!tS||"object"!=typeof t||null===t)return!1;try{return tS(t)===th.documentFragment}catch(t){return!1}},eJ=function(t){if(!tS||"object"!=typeof t||null===t)return!1;try{return"number"==typeof tS(t)}catch(t){return!1}};function eU(t,e,n){0!==t.length&&m(t,t=>{t.call(o,e,n,eT)})}let eK=function(t,e){if(!tK[e]&&eq(e)&&(tU.tagNameCheck instanceof RegExp&&L(tU.tagNameCheck,e)||tU.tagNameCheck instanceof Function&&tU.tagNameCheck(e)))return!1;if(ee&&!ei[e]){let e=tC(t),n=tk(t);if(n&&e){let r=n.length;for(let i=r-1;i>=0;--i){let r=en?n[i]:ty(n[i],!0);e.insertBefore(r,tv(t))}}}return eR(t),!0},eZ=function(t){if(eU(tF.beforeSanitizeElements,t,null),eH(t))return eR(t),!0;let e=eS(tT?tT(t):t.nodeName);if(eU(tF.uponSanitizeElement,t,{tagName:e,allowedTags:tB}),tQ&&t.hasChildNodes()&&!eJ(t.firstElementChild)&&L(ts,t.textContent)&&L(ts,t.innerHTML)||tQ&&t.namespaceURI===ep&&"style"===e&&eJ(t.firstElementChild)||t.nodeType===th.processingInstruction||tQ&&t.nodeType===th.comment&&L(tl,t.data)||0)return eR(t),!0;if(tK[e]||!(tW.tagCheck instanceof Function&&tW.tagCheck(e))&&!tB[e])return eK(t,e);if((tS?tS(t):t.nodeType)===th.element&&!eI(t)||("noscript"===e||"noembed"===e||"noframes"===e)&&L(ta,t.innerHTML))return eR(t),!0;if(tX&&t.nodeType===th.text){let e=eP(t.textContent);t.textContent!==e&&(b(o.removed,{element:t.cloneNode()}),t.textContent=e)}return eU(tF.afterSanitizeElements,t,null),!1},eW=function(t,e,n){if(tZ[e]||t7&&("id"===e||"name"===e)&&(n in s||n in eE))return!1;let r=tj[e]||tW.attributeCheck instanceof Function&&tW.attributeCheck(e,t);if(tq&&L(Q,e));else if(tV&&L(tt,e));else if(r){if(ea[e]);else if(L(tP,S(n,tr,"")));else if(("src"===e||"xlink:href"===e||"href"===e)&&"script"!==t&&0===T(n,"data:")&&es[t]);else if(tG&&!L(tn,S(n,tr,"")));else if(n)return!1}else if(!(eq(t)&&(tU.tagNameCheck instanceof RegExp&&L(tU.tagNameCheck,t)||tU.tagNameCheck instanceof Function&&tU.tagNameCheck(t))&&(tU.attributeNameCheck instanceof RegExp&&L(tU.attributeNameCheck,e)||tU.attributeNameCheck instanceof Function&&tU.attributeNameCheck(e,t))||"is"===e&&tU.allowCustomizedBuiltInElements&&(tU.tagNameCheck instanceof RegExp&&L(tU.tagNameCheck,n)||tU.tagNameCheck instanceof Function&&tU.tagNameCheck(n))))return!1;return!0},eV=$({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),eq=function(t){return!eV[C(t)]&&L(to,t)},eG=function(t,n,r,i){if(e&&"object"==typeof tm&&"function"==typeof tm.getAttributeType&&!r)switch(tm.getAttributeType(t,n)){case"TrustedHTML":return tN(i);case"TrustedScriptURL":return tI(i)}return i},eY=function(t,e,n,r){try{n?t.setAttributeNS(n,e,r):t.setAttribute(e,r),eH(t)?eR(t):y(o.removed)}catch(n){eD(e,t)}},eX=function(t){eU(tF.beforeSanitizeAttributes,t,null);let e=t.attributes;if(!e||eH(t))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tj,forceKeepAttr:void 0},r=e.length,i=eS(t.nodeName);for(;r--;){let o=e[r],s=o.name,l=o.namespaceURI,a=o.value,c=eS(s),h="value"===s?a:E(a);if(n.attrName=c,n.attrValue=h,n.keepAttr=!0,n.forceKeepAttr=void 0,eU(tF.uponSanitizeAttribute,t,n),h=n.attrValue,t9&&("id"===c||"name"===c)&&0!==T(h,et)&&(eD(s,t),h=et+h),tQ&&L(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)||"attributename"===c&&x(h,"href")){eD(s,t);continue}if(!n.forceKeepAttr){if(!n.keepAttr||!tY&&L(tc,h)||(tX&&(h=eP(h)),!eW(i,c,h))){eD(s,t);continue}(h=eG(i,c,l,h))!==a&&eY(t,s,l,h)}}eU(tF.afterSanitizeAttributes,t,null)},eQ=function(t){let e=null,n=eF(t);for(eU(tF.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(eU(tF.uponSanitizeShadowNode,e,null),eZ(e),eX(e),ej(e.content)&&eQ(e.content),(tS?tS(e):e.nodeType)===th.element){let t=tw(e);ej(t)&&(e0(t),eQ(t))}eU(tF.afterSanitizeShadowDOM,t,null)},e0=function(t){let e=[{node:t,shadow:null}];for(;e.length>0;){let t=e.pop();if(t.shadow){eQ(t.shadow);continue}let n=t.node,r=(tS?tS(n):n.nodeType)===th.element,i=tk(n);if(i)for(let t=i.length-1;t>=0;--t)e.push({node:i[t],shadow:null});if(r){let t=tT?tT(n):null;if("string"==typeof t&&"template"===eS(t)){let t=n.content;ej(t)&&e.push({node:t,shadow:null})}}if(r){let t=tw(n);ej(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return o.sanitize=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
4,r=null,i=null,s=null,a=null;if((ef=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!eJ(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return M(t);case"boolean":return A(t);case"bigint":return O?O(t):"0";case"symbol":return N?N(t):"Symbol()";case"undefined":default:return R(t);case"function":case"object":{if(null===t)return R(t);let e=F(t,"toString");if("function"==typeof e){let n=e(t);return"string"==typeof n?n:R(n)}return R(t)}}}(t)))throw D("dirty is not a string, aborting");if(!o.isSupported)return t;t1?(tB=t2,tj=t5):eA(n),(tF.uponSanitizeElement.length>0||tF.uponSanitizeAttribute.length>0)&&(tB=_(tB)),tF.uponSanitizeAttribute.length>0&&(tj=_(tj)),o.removed=[];let c=en&&"string"!=typeof t&&eJ(t);if(c){let e=tT?tT(t):t.nodeName;if("string"==typeof e){let t=eS(e);if(!tB[t]||tK[t])throw D("root node is forbidden and cannot be sanitized in-place")}if(eH(t))throw D("root node is clobbered and cannot be sanitized in-place");try{e0(t)}catch(e){throw eL(t),e}}else if(eJ(t))(i=(r=e_("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===th.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),e0(i);else{if(!t4&&!tX&&!t0&&-1===t.indexOf("<"))return e&&t8?tN(t):t;if(!(r=e_(t)))return t4?null:t8?tE:""}r&&t3&&eR(r.firstChild);let h=eF(c?t:r);try{for(;s=h.nextNode();)eZ(s),eX(s),ej(s.content)&&eQ(s.content)}catch(e){throw c&&eL(t),e}if(c)return m(o.removed,t=>{t.element&&e$(t.element)}),tX&&eB(t),t;if(t4){if(tX&&eB(r),t6)for(a=tz.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(tj.shadowroot||tj.shadowrootmode)&&(a=t_.call(l,a,!0)),a}let u=t0?r.outerHTML:r.innerHTML;return t0&&tB["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&L(ti,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">
4\n"+u),tX&&(u=eP(u)),e&&t8?tN(u):u},o.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eA(t),t1=!0,t2=tB,t5=tj},o.clearConfig=function(){eT=null,t1=!1,t2=null,t5=null,e=n,tE=""},o.isValidAttribute=function(t,e,n){return eT||eA({}),eW(eS(t),eS(e),n)},o.addHook=function(t,e){"function"==typeof e&&I(tF,t)&&b(tF[t],e)},o.removeHook=function(t,e){if(I(tF,t)){if(void 0!==e){let n=g(tF[t],e);return -1===n?void 0:v(tF[t],n,1)[0]}return y(tF[t])}},o.removeHooks=function(t){I(tF,t)&&(tF[t]=[])},o.removeAllHooks=function(){tF=tp()},o}()},90578:(t,e,n)=>{var r=n(95589);t.exports=n(44572)(r)},92699:(t,e,n)=>{var r=n(333),i=n(84425),o=n(79894);t.exports=function(t,e,n){for(var s=-1,l=e.length,a={};++s<l;){var c=e[s],h=r(t,c);n(h,c)&&i(a,o(c,t),h)}return a}},95589:(t,e,n)=>{var r=n(54497),i=n(14216),o=n(54983);t.exports=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o},97764:(t,e,n)=>{var r=n(25419),i=n(80035),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},98232:(t,e,n)=>{var r=n(36018),i=n(76239),o=n(9862),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}}}]);
5//# sourceMappingURL=1610-31c2b3e7cd8e77a4.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.