diff --git a/main.js b/main.js index df86bdf2f..697946388 100644 --- a/main.js +++ b/main.js @@ -1 +1 @@ -(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["main"],{96170:(rt,it,b)=>{rt=b.nmd(rt),function(d){const p=d.en=d.en||{};p.dictionary=Object.assign(p.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Accept","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot access default workspace.":"Cannot access default workspace.","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Drag to move":"Drag to move","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height",HEX:"HEX","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent",Insert:"Insert","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Inset:"Inset",Italic:"Italic","Justify cell text":"Justify cell text","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","List properties":"List properties","Lower-latin":"Lower-latin","Lower\u2013roman":"Lower\u2013roman","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Rich Text Editor":"Rich Text Editor",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough",Style:"Style",Subscript:"Subscript",Superscript:"Superscript","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower\u2013latin list style":"Toggle the lower\u2013latin list style","Toggle the lower\u2013roman list style":"Toggle the lower\u2013roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper\u2013latin list style":"Toggle the upper\u2013latin list style","Toggle the upper\u2013roman list style":"Toggle the upper\u2013roman list style",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload in progress":"Upload in progress","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Vertical text alignment toolbar":"Vertical text alignment toolbar",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),self,rt.exports=(()=>(()=>{var d={4959:(t,A,x)=>{const w=x(1103),k={};for(const P of Object.keys(w))k[w[P]]=P;const D={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=D;for(const P of Object.keys(D)){if(!("channels"in D[P]))throw new Error("missing channels property: "+P);if(!("labels"in D[P]))throw new Error("missing channel labels property: "+P);if(D[P].labels.length!==D[P].channels)throw new Error("channel and label counts mismatch: "+P);const{channels:I,labels:z}=D[P];delete D[P].channels,delete D[P].labels,Object.defineProperty(D[P],"channels",{value:I}),Object.defineProperty(D[P],"labels",{value:z})}D.rgb.hsl=function(P){const I=P[0]/255,z=P[1]/255,G=P[2]/255,W=Math.min(I,z,G),ot=Math.max(I,z,G),ct=ot-W;let gt,Pt;ot===W?gt=0:I===ot?gt=(z-G)/ct:z===ot?gt=2+(G-I)/ct:G===ot&&(gt=4+(I-z)/ct),gt=Math.min(60*gt,360),gt<0&&(gt+=360);const St=(W+ot)/2;return Pt=ot===W?0:St<=.5?ct/(ot+W):ct/(2-ot-W),[gt,100*Pt,100*St]},D.rgb.hsv=function(P){let I,z,G,W,ot;const ct=P[0]/255,gt=P[1]/255,Pt=P[2]/255,St=Math.max(ct,gt,Pt),Ht=St-Math.min(ct,gt,Pt),Jt=function(at){return(St-at)/6/Ht+.5};return 0===Ht?(W=0,ot=0):(ot=Ht/St,I=Jt(ct),z=Jt(gt),G=Jt(Pt),ct===St?W=G-z:gt===St?W=.3333333333333333+I-G:Pt===St&&(W=.6666666666666666+z-I),W<0?W+=1:W>1&&(W-=1)),[360*W,100*ot,100*St]},D.rgb.hwb=function(P){const I=P[0],z=P[1];let G=P[2];const W=D.rgb.hsl(P)[0],ot=1/255*Math.min(I,Math.min(z,G));return G=1-.00392156862745098*Math.max(I,Math.max(z,G)),[W,100*ot,100*G]},D.rgb.cmyk=function(P){const I=P[0]/255,z=P[1]/255,G=P[2]/255,W=Math.min(1-I,1-z,1-G);return[100*((1-I-W)/(1-W)||0),100*((1-z-W)/(1-W)||0),100*((1-G-W)/(1-W)||0),100*W]},D.rgb.keyword=function(P){const I=k[P];if(I)return I;let z,G=1/0;for(const ct of Object.keys(w)){const Pt=((W=P)[0]-(ot=w[ct])[0])**2+(W[1]-ot[1])**2+(W[2]-ot[2])**2;Pt.04045?((I+.055)/1.055)**2.4:I/12.92,z=z>.04045?((z+.055)/1.055)**2.4:z/12.92,G=G>.04045?((G+.055)/1.055)**2.4:G/12.92,[100*(.4124*I+.3576*z+.1805*G),100*(.2126*I+.7152*z+.0722*G),100*(.0193*I+.1192*z+.9505*G)]},D.rgb.lab=function(P){const I=D.rgb.xyz(P);let z=I[0],G=I[1],W=I[2];return z/=95.047,G/=100,W/=108.883,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862,G=G>.008856?G**.3333333333333333:7.787*G+.13793103448275862,W=W>.008856?W**.3333333333333333:7.787*W+.13793103448275862,[116*G-16,500*(z-G),200*(G-W)]},D.hsl.rgb=function(P){const I=P[0]/360,z=P[1]/100,G=P[2]/100;let W,ot,ct;if(0===z)return ct=255*G,[ct,ct,ct];W=G<.5?G*(1+z):G+z-G*z;const gt=2*G-W,Pt=[0,0,0];for(let St=0;St<3;St++)ot=I+.3333333333333333*-(St-1),ot<0&&ot++,ot>1&&ot--,ct=6*ot<1?gt+6*(W-gt)*ot:2*ot<1?W:3*ot<2?gt+(W-gt)*(.6666666666666666-ot)*6:gt,Pt[St]=255*ct;return Pt},D.hsl.hsv=function(P){const I=P[0];let z=P[1]/100,G=P[2]/100,W=z;const ot=Math.max(G,.01);return G*=2,z*=G<=1?G:2-G,W*=ot<=1?ot:2-ot,[I,100*(0===G?2*W/(ot+W):2*z/(G+z)),(G+z)/2*100]},D.hsv.rgb=function(P){const I=P[0]/60,z=P[1]/100;let G=P[2]/100;const W=Math.floor(I)%6,ot=I-Math.floor(I),ct=255*G*(1-z),gt=255*G*(1-z*ot),Pt=255*G*(1-z*(1-ot));switch(G*=255,W){case 0:return[G,Pt,ct];case 1:return[gt,G,ct];case 2:return[ct,G,Pt];case 3:return[ct,gt,G];case 4:return[Pt,ct,G];case 5:return[G,ct,gt]}},D.hsv.hsl=function(P){const I=P[0],z=P[1]/100,G=P[2]/100,W=Math.max(G,.01);let ot,ct;ct=(2-z)*G;const gt=(2-z)*W;return ot=z*W,ot/=gt<=1?gt:2-gt,ot=ot||0,ct/=2,[I,100*ot,100*ct]},D.hwb.rgb=function(P){const I=P[0]/360;let z=P[1]/100,G=P[2]/100;const W=z+G;let ot;W>1&&(z/=W,G/=W);const ct=Math.floor(6*I),gt=1-G;ot=6*I-ct,0!=(1&ct)&&(ot=1-ot);const Pt=z+ot*(gt-z);let St,Ht,Jt;switch(ct){default:case 6:case 0:St=gt,Ht=Pt,Jt=z;break;case 1:St=Pt,Ht=gt,Jt=z;break;case 2:St=z,Ht=gt,Jt=Pt;break;case 3:St=z,Ht=Pt,Jt=gt;break;case 4:St=Pt,Ht=z,Jt=gt;break;case 5:St=gt,Ht=z,Jt=Pt}return[255*St,255*Ht,255*Jt]},D.cmyk.rgb=function(P){const z=P[1]/100,G=P[2]/100,W=P[3]/100;return[255*(1-Math.min(1,P[0]/100*(1-W)+W)),255*(1-Math.min(1,z*(1-W)+W)),255*(1-Math.min(1,G*(1-W)+W))]},D.xyz.rgb=function(P){const I=P[0]/100,z=P[1]/100,G=P[2]/100;let W,ot,ct;return W=3.2406*I+-1.5372*z+-.4986*G,ot=-.9689*I+1.8758*z+.0415*G,ct=.0557*I+-.204*z+1.057*G,W=W>.0031308?1.055*W**.4166666666666667-.055:12.92*W,ot=ot>.0031308?1.055*ot**.4166666666666667-.055:12.92*ot,ct=ct>.0031308?1.055*ct**.4166666666666667-.055:12.92*ct,W=Math.min(Math.max(0,W),1),ot=Math.min(Math.max(0,ot),1),ct=Math.min(Math.max(0,ct),1),[255*W,255*ot,255*ct]},D.xyz.lab=function(P){let I=P[0],z=P[1],G=P[2];return I/=95.047,z/=100,G/=108.883,I=I>.008856?I**.3333333333333333:7.787*I+.13793103448275862,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862,G=G>.008856?G**.3333333333333333:7.787*G+.13793103448275862,[116*z-16,500*(I-z),200*(z-G)]},D.lab.xyz=function(P){let I,z,G;z=(P[0]+16)/116,I=P[1]/500+z,G=z-P[2]/200;const W=z**3,ot=I**3,ct=G**3;return z=W>.008856?W:(z-.13793103448275862)/7.787,I=ot>.008856?ot:(I-.13793103448275862)/7.787,G=ct>.008856?ct:(G-.13793103448275862)/7.787,I*=95.047,z*=100,G*=108.883,[I,z,G]},D.lab.lch=function(P){const I=P[0],z=P[1],G=P[2];let W;return W=360*Math.atan2(G,z)/2/Math.PI,W<0&&(W+=360),[I,Math.sqrt(z*z+G*G),W]},D.lch.lab=function(P){const z=P[1],G=P[2]/360*2*Math.PI;return[P[0],z*Math.cos(G),z*Math.sin(G)]},D.rgb.ansi16=function(P,I=null){const[z,G,W]=P;let ot=null===I?D.rgb.hsv(P)[2]:I;if(ot=Math.round(ot/50),0===ot)return 30;let ct=30+(Math.round(W/255)<<2|Math.round(G/255)<<1|Math.round(z/255));return 2===ot&&(ct+=60),ct},D.hsv.ansi16=function(P){return D.rgb.ansi16(D.hsv.rgb(P),P[2])},D.rgb.ansi256=function(P){const I=P[0],z=P[1],G=P[2];return I===z&&z===G?I<8?16:I>248?231:Math.round((I-8)/247*24)+232:16+36*Math.round(I/255*5)+6*Math.round(z/255*5)+Math.round(G/255*5)},D.ansi16.rgb=function(P){let I=P%10;if(0===I||7===I)return P>50&&(I+=3.5),I=I/10.5*255,[I,I,I];const z=.5*(1+~~(P>50));return[(1&I)*z*255,(I>>1&1)*z*255,(I>>2&1)*z*255]},D.ansi256.rgb=function(P){if(P>=232){const z=10*(P-232)+8;return[z,z,z]}let I;return P-=16,[Math.floor(P/36)/5*255,Math.floor((I=P%36)/6)/5*255,I%6/5*255]},D.rgb.hex=function(P){const I=(((255&Math.round(P[0]))<<16)+((255&Math.round(P[1]))<<8)+(255&Math.round(P[2]))).toString(16).toUpperCase();return"000000".substring(I.length)+I},D.hex.rgb=function(P){const I=P.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!I)return[0,0,0];let z=I[0];3===I[0].length&&(z=z.split("").map(W=>W+W).join(""));const G=parseInt(z,16);return[G>>16&255,G>>8&255,255&G]},D.rgb.hcg=function(P){const I=P[0]/255,z=P[1]/255,G=P[2]/255,W=Math.max(Math.max(I,z),G),ot=Math.min(Math.min(I,z),G),ct=W-ot;let gt,Pt;return gt=ct<1?ot/(1-ct):0,Pt=ct<=0?0:W===I?(z-G)/ct%6:W===z?2+(G-I)/ct:4+(I-z)/ct,Pt/=6,Pt%=1,[360*Pt,100*ct,100*gt]},D.hsl.hcg=function(P){const I=P[1]/100,z=P[2]/100,G=z<.5?2*I*z:2*I*(1-z);let W=0;return G<1&&(W=(z-.5*G)/(1-G)),[P[0],100*G,100*W]},D.hsv.hcg=function(P){const z=P[2]/100,G=P[1]/100*z;let W=0;return G<1&&(W=(z-G)/(1-G)),[P[0],100*G,100*W]},D.hcg.rgb=function(P){const z=P[1]/100,G=P[2]/100;if(0===z)return[255*G,255*G,255*G];const W=[0,0,0],ot=P[0]/360%1*6,ct=ot%1,gt=1-ct;let Pt=0;switch(Math.floor(ot)){case 0:W[0]=1,W[1]=ct,W[2]=0;break;case 1:W[0]=gt,W[1]=1,W[2]=0;break;case 2:W[0]=0,W[1]=1,W[2]=ct;break;case 3:W[0]=0,W[1]=gt,W[2]=1;break;case 4:W[0]=ct,W[1]=0,W[2]=1;break;default:W[0]=1,W[1]=0,W[2]=gt}return Pt=(1-z)*G,[255*(z*W[0]+Pt),255*(z*W[1]+Pt),255*(z*W[2]+Pt)]},D.hcg.hsv=function(P){const I=P[1]/100,z=I+P[2]/100*(1-I);let G=0;return z>0&&(G=I/z),[P[0],100*G,100*z]},D.hcg.hsl=function(P){const I=P[1]/100,z=P[2]/100*(1-I)+.5*I;let G=0;return z>0&&z<.5?G=I/(2*z):z>=.5&&z<1&&(G=I/(2*(1-z))),[P[0],100*G,100*z]},D.hcg.hwb=function(P){const I=P[1]/100,z=I+P[2]/100*(1-I);return[P[0],100*(z-I),100*(1-z)]},D.hwb.hcg=function(P){const z=1-P[2]/100,G=z-P[1]/100;let W=0;return G<1&&(W=(z-G)/(1-G)),[P[0],100*G,100*W]},D.apple.rgb=function(P){return[P[0]/65535*255,P[1]/65535*255,P[2]/65535*255]},D.rgb.apple=function(P){return[P[0]/255*65535,P[1]/255*65535,P[2]/255*65535]},D.gray.rgb=function(P){return[P[0]/100*255,P[0]/100*255,P[0]/100*255]},D.gray.hsl=function(P){return[0,0,P[0]]},D.gray.hsv=D.gray.hsl,D.gray.hwb=function(P){return[0,100,P[0]]},D.gray.cmyk=function(P){return[0,0,0,P[0]]},D.gray.lab=function(P){return[P[0],0,0]},D.gray.hex=function(P){const I=255&Math.round(P[0]/100*255),z=((I<<16)+(I<<8)+I).toString(16).toUpperCase();return"000000".substring(z.length)+z},D.rgb.gray=function(P){return[(P[0]+P[1]+P[2])/3/255*100]}},841:(t,A,x)=>{const w=x(4959),k=x(9325),D={};Object.keys(w).forEach(P=>{D[P]={},Object.defineProperty(D[P],"channels",{value:w[P].channels}),Object.defineProperty(D[P],"labels",{value:w[P].labels});const I=k(P);Object.keys(I).forEach(z=>{const G=I[z];D[P][z]=function(W){const ot=function(...ct){const gt=ct[0];if(null==gt)return gt;gt.length>1&&(ct=gt);const Pt=W(ct);if("object"==typeof Pt)for(let St=Pt.length,Ht=0;Ht1&&(ct=gt),W(ct))};return"conversion"in W&&(ot.conversion=W.conversion),ot}(G)})}),t.exports=D},9325:(t,A,x)=>{const w=x(4959);function D(I,z){return function(G){return z(I(G))}}function P(I,z){const G=[z[I].parent,I];let W=w[z[I].parent][I],ot=z[I].parent;for(;z[ot].parent;)G.unshift(z[ot].parent),W=D(w[z[ot].parent][ot],W),ot=z[ot].parent;return W.conversion=G,W}t.exports=function(I){const z=function k(I){const z=function(){const W={},ot=Object.keys(w);for(let ct=ot.length,gt=0;gt{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8603:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n"],sourceRoot:""}]);const I=P},3062:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const I=P},903:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\tposition: absolute;\n\tpointer-events: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"@ckeditor/ckeditor5-ui/theme/mixins/_dir.css\";\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\theight: 0;\n\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\tbackground: var(--ck-clipboard-drop-target-color);\n\tmargin-top: -1px;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder-style: solid;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tleft: -1px;\n\n\t\t\tborder-width: calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);\n\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tright: -1px;\n\n\t\t\tborder-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;\n\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},3143:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the , etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},4717:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);const I=P},9315:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const I=P},8733:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const I=P},3508:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%;\n\n\t\t\t/* Keep proportions of the block image if the height is set and the image is wider than the editor width.\n\t\t\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t\t\theight: auto;\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the
in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of
.\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\t\t}\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image-inline {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected inline image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\n\t\t\t/*\n\t\t\t * Make sure the native browser selection style is not displayed.\n\t\t\t * Inline image widgets have their own styles for the selected state and\n\t\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t\t */\n\t\t\t& ::selection {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.\n\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t& .image-inline img {\n\t\theight: auto;\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},2640:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const I=P},3535:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-image-insert__panel{padding:var(--ck-spacing-large)}.ck.ck-image-insert__ck-finder-button{border:1px solid #ccc;border-radius:var(--ck-border-radius);display:block;margin:var(--ck-spacing-standard) auto;width:100%}.ck.ck-splitbutton>.ck-file-dialog-button.ck-button{border:none;margin:0;padding:0}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css"],names:[],mappings:"AAKA,2BACC,+BACD,CAEA,sCAIC,qBAAiC,CACjC,qCAAsC,CAJtC,aAAc,CAEd,sCAAuC,CADvC,UAID,CAGA,oDAGC,WAAY,CADZ,QAAS,CADT,SAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert__panel {\n\tpadding: var(--ck-spacing-large);\n}\n\n.ck.ck-image-insert__ck-finder-button {\n\tdisplay: block;\n\twidth: 100%;\n\tmargin: var(--ck-spacing-standard) auto;\n\tborder: 1px solid hsl(0, 0%, 80%);\n\tborder-radius: var(--ck-border-radius);\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/7986 */\n.ck.ck-splitbutton > .ck-file-dialog-button.ck-button {\n\tpadding: 0;\n\tmargin: 0;\n\tborder: none;\n}\n"],sourceRoot:""}]);const I=P},1568:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-image-insert-form:focus{outline:none}.ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-insert-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsertformrowview.css"],names:[],mappings:"AAMC,+BAEC,YACD,CAGD,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAmBD,CAhBC,iCACC,WACD,CAEA,kDACC,qCAUD,CARC,sIAEC,sBACD,CAEA,+EACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-form {\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n}\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-image-insert-form__action-row {\n\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},6270:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Preserve aspect ratio of the resized image after introducing image height attribute. */\n.ck-content img.image_resized {\n\theight: auto;\n}\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `
` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `
` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `
` element uses `display:block`, so `
` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/* The resized inline image nested in the table should respect its parent size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline.image_resized img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]);const I=P},5083:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},4036:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const I=P},3773:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const I=P},3689:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);const I=P},1905:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},9773:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const I=P},2347:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},7754:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},111:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkimage.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\n\t--ck-link-image-indicator-icon-size: 20;\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tcontent: "";\n\n\t\t\t/*\n\t\t\t * Smaller images should have the icon closer to the border.\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\n\t\t\t */\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\n\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n\t\t\tbackground-size: 14px;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tborder-radius: 100%;\n\n\t\t\t/*\n\t\t\t* Use CSS math to simulate container queries.\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t\t\t*/\n\t\t\toverflow: hidden;\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const I=P},4721:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:0 var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/collapsible.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,wDAAyD,CAFzD,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,yDACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n\t& > .ck.ck-button {\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\t\tborder-radius: 0;\n\t\tcolor: inherit;\n\n\t\t&:focus {\n\t\t\tbackground: transparent;\n\t\t}\n\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t& > .ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\twidth: var(--ck-collapsible-arrow-size);\n\t\t}\n\t}\n\n\t& > .ck-collapsible__children {\n\t\tpadding: 0 var(--ck-spacing-large) var(--ck-spacing-large);\n\t}\n\n\t&.ck-collapsible_collapsed {\n\t\t& > .ck.ck-button .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},5730:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-editor__editable .ck-list-bogus-paragraph {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);const I=P},4564:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content ol {\n\tlist-style-type: decimal;\n\n\t& ol {\n\t\tlist-style-type: lower-latin;\n\n\t\t& ol {\n\t\t\tlist-style-type: lower-roman;\n\n\t\t\t& ol {\n\t\t\t\tlist-style-type: upper-latin;\n\n\t\t\t\t& ol {\n\t\t\t\t\tlist-style-type: upper-roman;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-content ul {\n\tlist-style-type: disc;\n\n\t& ul {\n\t\tlist-style-type: circle;\n\n\t\t& ul {\n\t\t\tlist-style-type: square;\n\n\t\t\t& ul {\n\t\t\t\tlist-style-type: square;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},6082:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-properties {\n\t/* When there are no list styles and there is no collapsible. */\n\t&.ck-list-properties_without-styles {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * {\n\t\t\tmin-width: 14em;\n\n\t\t\t& + * {\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * When the numbered list property fields (start at, reversed) should be displayed,\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\n\t */\n\t&.ck-list-properties_with-numbered-properties {\n\t\t& > .ck-list-styles-list {\n\t\t\tgrid-template-columns: repeat( 4, auto );\n\t\t}\n\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\n\t\t& > .ck-collapsible {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t& > .ck-collapsible__children {\n\t\t\t\t& > * {\n\t\t\t\t\twidth: 100%;\n\n\t\t\t\t\t& + * {\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\n\t\tmin-width: auto;\n\t\twidth: 100%;\n\t}\n\n\t& .ck.ck-numbered-list-properties__reversed-order {\n\t\tbackground: transparent;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n\t\t&:active, &:hover {\n\t\t\tbox-shadow: none;\n\t\t\tborder-color: transparent;\n\t\t\tbackground: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},2417:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/liststyles.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n\tgrid-template-columns: repeat( 3, auto );\n\trow-gap: var(--ck-spacing-medium);\n\tcolumn-gap: var(--ck-spacing-medium);\n\tpadding: var(--ck-spacing-large);\n\n\t& .ck-button {\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\n\t\twidth: var(--ck-list-style-button-size);\n\t\theight: var(--ck-list-style-button-size);\n\t\tpadding: 0;\n\n\t\t/*\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\n\t\t * gaps in the grid.\n\t\t */\n\t\tmargin: 0;\n\n\t\t/*\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\n\t\t * (which becomes blurry as it scales down).\n\t\t */\n\t\tbox-sizing: content-box;\n\n\t\t& .ck-icon {\n\t\t\twidth: var(--ck-list-style-button-size);\n\t\t\theight: var(--ck-list-style-button-size);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},1199:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CAwEA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAlFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAiFC,CAFA,wDAhEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAgEA,CA5DD,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FApHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAmHA,CAFA,wGAlGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAkGD,CA9FA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-todo-list-checkmark-size: 16px;\n}\n\n@define-mixin todo-list-checkbox {\n\t-webkit-appearance: none;\n\tdisplay: inline-block;\n\tposition: relative;\n\twidth: var(--ck-todo-list-checkmark-size);\n\theight: var(--ck-todo-list-checkmark-size);\n\tvertical-align: middle;\n\n\t/* Needed on iOS */\n\tborder: 0;\n\n\t/* LTR styles */\n\tleft: -25px;\n\tmargin-right: -15px;\n\tright: 0;\n\tmargin-left: 0;\n\n\t/* RTL styles */\n\t@nest [dir=rtl]& {\n\t\tleft: 0;\n\t\tmargin-right: 0;\n\t\tright: -25px;\n\t\tmargin-left: -15px;\n\t}\n\n\t&::before {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: border-box;\n\t\tcontent: '';\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder: 1px solid hsl(0, 0%, 20%);\n\t\tborder-radius: 2px;\n\t\ttransition: 250ms ease-in-out box-shadow;\n\t}\n\n\t&::after {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: content-box;\n\t\tpointer-events: none;\n\t\tcontent: '';\n\n\t\t/* Calculate tick position, size and border-width proportional to the checkmark size. */\n\t\tleft: calc( var(--ck-todo-list-checkmark-size) / 3 );\n\t\ttop: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\twidth: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\theight: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\n\t\tborder-style: solid;\n\t\tborder-color: transparent;\n\t\tborder-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\n\t\ttransform: rotate(45deg);\n\t}\n\n\t&[checked] {\n\t\t&::before {\n\t\t\tbackground: hsl(126, 64%, 41%);\n\t\t\tborder-color: hsl(126, 64%, 41%);\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: hsl(0, 0%, 100%);\n\t\t}\n\t}\n}\n\n/*\n * To-do list content styles.\n */\n.ck-content .todo-list {\n\tlist-style: none;\n\n\t& li {\n\t\tposition: relative;\n\t\tmargin-bottom: 5px;\n\n\t\t& .todo-list {\n\t\t\tmargin-top: 5px;\n\t\t}\n\t}\n\n\t& .todo-list__label {\n\t\t& > input {\n\t\t\t@mixin todo-list-checkbox;\n\t\t}\n\n\t\t& .todo-list__label__description {\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&.todo-list__label_without-description input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n/*\n * To-do list editing view styles.\n */\n.ck-editor__editable.ck-content .todo-list .todo-list__label {\n\t/*\n\t * To-do list should be interactive only during the editing\n\t * (https://github.com/ckeditor/ckeditor5/issues/2090).\n\t */\n\t& > input,\n\t& > span[contenteditable=false] > input {\n\t\tcursor: pointer;\n\n\t\t&:hover::before {\n\t\t\tbox-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\n\t\t}\n\t}\n\n\t/*\n\t * Document Lists - editing view has an additional span around checkbox.\n\t */\n\t& > span[contenteditable=false] > input {\n\t\t@mixin todo-list-checkbox;\n\t}\n\n\t&.todo-list__label_without-description {\n\t\t& input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},4652:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const I=P},7442:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read\u2013only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},9292:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7368:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.ck.ck-input-color {\n\t& > .ck.ck-input-text {\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* Make sure the focused input is always on top of the dropdown button so its\n\t\t outline and border are never cropped (also when the input is read-only). */\n\t\t&:focus {\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t& > .ck.ck-dropdown {\n\t\t& > .ck.ck-button.ck-input-color__button {\n\t\t\tpadding: 0;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-left: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-right: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.ck-disabled {\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t& > .ck.ck-input-color__button__preview {\n\t\t\t\t@mixin ck-rounded-corners;\n\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\n\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\t\ttop: -30%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\theight: 150%;\n\t\t\t\t\twidth: 8%;\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\n\t\t\t\t\tborder-radius: 2px;\n\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\ttransform-origin: 50%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__remove-color {\n\t\twidth: 100%;\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-input-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t}\n\n\t\t& .ck.ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},4070:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\n\tpadding: 0 0 var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t& .ck.ck-input-text {\n\t\tmin-width: 100%;\n\t\twidth: 0;\n\t}\n\n\t& .ck.ck-dropdown {\n\t\tmin-width: 100%;\n\n\t\t& .ck-dropdown__button {\n\t\t\t&:not(:focus) {\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},9247:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-form__row {\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\t& + * {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-label {\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},1613:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const I=P},6306:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent
. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const I=P},2128:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-selector-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: break-word;\n\ttext-align: center;\n\tcolor: var(--ck-color-selector-caption-text);\n\tbackground-color: var(--ck-color-selector-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n\t&.table__caption_highlighted {\n\t\tanimation: ck-table-caption-highlight .6s ease-out;\n\t}\n\n\t&.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the table caption placeholder doesn't overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n@keyframes ck-table-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-selector-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-selector-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const I=P},5087:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecellproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__padding-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\t\t\twidth: 25%;\n\t\t}\n\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},4101:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);\n\t--ck-table-column-resizer-width: 7px;\n\n\t/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\n\t The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\n\t--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table table {\n\toverflow: hidden;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n\tposition: relative;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer {\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tright: var(--ck-table-column-resizer-position-offset);\n\twidth: var(--ck-table-column-resizer-width);\n\tcursor: col-resize;\n\tuser-select: none;\n\tz-index: var(--ck-z-default);\n}\n\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,\n all resizers must be hidden while the table is dragged. */\n.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer:hover,\n.ck.ck-editor__editable .table .ck-table-column-resizer__active {\n\tbackground-color: var(--ck-color-selector-column-resizer-hover);\n\topacity: 0.25;\n\t/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,\n\t it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as\n\t it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally\n\t unrealistic height for a single table. */\n\ttop: -999999px;\n\tbottom: -999999px;\n}\n\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\n\tleft: var(--ck-table-column-resizer-position-offset);\n\tright: unset;\n}\n"],sourceRoot:""}]);const I=P},3881:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-selector-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},6237:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-table-properties-error-arrow-size: 6px;\n\t--ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__border-style,\n\t\t\t& .ck-table-form__border-width {\n\t\t\t\twidth: 80px;\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80px;\n\t\t\t}\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tpadding: 0;\n\n\t\t\t& .ck-table-form__dimensions-row__width,\n\t\t\t& .ck-table-form__dimensions-row__height {\n\t\t\t\tmargin: 0\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\talign-self: flex-end;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\theight: var(--ck-ui-component-min-height);\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t@mixin ck-rounded-corners;\n\n\t\t\tbackground: var(--ck-color-base-error);\n\t\t\tcolor: var(--ck-color-base-background);\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\ttext-align: center;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\n\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\t\t}\n\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n\t0% {\n\t\topacity: 0;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7341:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\t\t& .ck-toolbar__items > * {\n\t\t\t\t\twidth: 40px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},6945:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},8157:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-modal)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-autocomplete {\n\tposition: relative;\n\n\t& > .ck-search__results {\n\t\tposition: absolute;\n\t\tz-index: var(--ck-z-modal);\n\n\t\t&.ck-search__results_n {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck.ck-autocomplete {\n\t& > .ck-search__results {\n\t\t@mixin ck-rounded-corners;\n\t\t@mixin ck-drop-shadow;\n\n\t\tmax-height: 200px;\n\t\toverflow-y: auto;\n\t\tbackground: var(--ck-color-base-background);\n\t\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\t\tmin-width: auto;\n\n\t\t&.ck-search__results_n {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-bottom: -1px;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-top-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-top: -1px;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},4906:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAOA,6BAMC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBAAkB,CCFlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDkBD,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEjBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const I=P},5332:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating\u2013point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const I=P},6781:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,+DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-selector__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);const I=P},3398:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.color-picker-hex-input {\n\twidth: max-content;\n\n\t& .ck.ck-input {\n\t\tmin-width: unset;\n\t}\n}\n\n.ck.ck-color-picker__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\tmargin: var(--ck-spacing-large) 0 0;\n\twidth: unset;\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: unset;\n\t}\n\n\t& .ck.ck-input-text {\n\t\twidth: unset;\n\t}\n\n\t& .ck-color-picker__hash-view {\n\t\tpadding-top: var(--ck-spacing-tiny);\n\t\tpadding-right: var(--ck-spacing-medium);\n\t}\n}\n"],sourceRoot:""}]);const I=P},4157:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tjustify-content: flex-start;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\tjustify-content: space-around;\n\n\t\t\t& .ck-button-save,\n\t\t\t& .ck-button-cancel {\n\t\t\t\tflex: 1\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck.ck-icon {\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& label.ck.ck-color-grid__label {\n\t\t\tfont-weight: unset;\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-picker {\n\t\t\tpadding: 8px;\n\n\t\t\t& .hex-color-picker {\n\t\t\t\theight: 100px;\n\t\t\t\tmin-width: 180px;\n\n\t\t\t\t&::part(saturation) {\n\t\t\t\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\t\t\t\t}\n\n\t\t\t\t&::part(hue) {\n\t\t\t\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\t\t\t}\n\n\t\t\t\t&::part(saturation-pointer),\n\t\t\t\t&::part(hue-pointer) {\n\t\t\t\t\twidth: 15px;\n\t\t\t\t\theight: 15px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tpadding: 0 8px 8px;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},5485:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},3949:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7686:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7339:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const I=P},9688:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-panel-background);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-panel-background);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},8847:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header .ck-icon{margin-right:var(--ck-spacing-medium)}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BASD,CAPC,6BACC,qCACD,CAEA,8CACC,WACD,CCbD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAQD,CAHC,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\n\t& .ck-icon {\n\t\tmargin-right: var(--ck-spacing-medium);\n\t}\n\n\t& h2.ck-form__header__label {\n\t\tflex-grow: 1;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);const I=P},8960:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-highlighted-text mark {\n\tbackground: var(--ck-color-highlight-background);\n\tvertical-align: initial;\n\tfont-weight: inherit;\n\tline-height: inherit;\n\tfont-size: inherit;\n}\n"],sourceRoot:""}]);const I=P},6574:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},4879:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},3662:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const I=P},2577:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD8GD,CAzGA,2FCDE,qCD0GF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAiBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAP9C,mBAAoB,CAYpB,sBAAuB,CARvB,6DAA+D,CAH/D,oBAAqB,CAgBrB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,oUAGE,+HAYF,CAfA,oUAOE,wIAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\t\t\ttransform-origin: 0 0;\n\n\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},1046:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium);:not(.ck-hidden)~&{border-top:1px solid var(--ck-color-base-border)}}.ck-list .ck-list__group>span{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium)}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAIC,eAAgB,CAHhB,gBAAiB,CAQjB,iIAEiE,CARjE,eAAgB,CADhB,UAwCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAAqC,CAGrC,mBACC,gDACD,CAOD,CALC,8BACC,cAAe,CACf,eAAiB,CACjB,gCACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-list .ck-list__group {\n\tpadding-top: var(--ck-spacing-medium);\n\n\t/* The group should have a border when it\'s not the first item. */\n\t*:not(.ck-hidden) ~ & {\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& > span {\n\t\tfont-size: 11px;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium);\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},8793:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},4650:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7676:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},5868:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},6764:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},6770:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/search/search.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\n\t\t& .ck-search__reset {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\t& > .ck-search__info {\n\t\t\t& > span:first-child {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t/* Hide the filtered view when nothing was found */\n\t\t\t&:not(.ck-hidden) ~ * {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));\n}\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& .ck-input {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t&.ck-search__query_with-icon {\n\t\t\t--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\t\topacity: .5;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-search__query_with-reset {\n\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t&.ck-labeled-field-view_empty {\n\t\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t& .ck-search__reset {\n\t\t\t\tmin-width: auto;\n\t\t\t\tmin-height: auto;\n\n\t\t\t\tbackground: none;\n\t\t\t\topacity: .5;\n\t\t\t\tpadding: 0;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t&:hover {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\tmin-width: 100%;\n\n\t\t& > .ck-search__info {\n\t\t\twidth: 100%;\n\t\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\n\t\t\t& * {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\n\t\t\t& > span:first-child {\n\t\t\t\tfont-weight: bold;\n\t\t\t}\n\n\t\t\t& > span:last-child {\n\t\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const I=P},498:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:rotate 1.5s linear infinite}.ck.ck-spinner,.ck.ck-spinner-container{height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent}@keyframes rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,qCACD,CAEA,wCAJC,qCAAsC,CADtC,oCAWD,CANA,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCACD,CAEA,kBACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\tdisplay: block;\n\tposition: relative;\n}\n\n.ck.ck-spinner {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 0;\n\tright: 0;\n\tmargin: 0 auto;\n\ttransform: translateY(-50%);\n\tz-index: 1;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tanimation: 1.5s infinite rotate linear;\n}\n\n.ck.ck-spinner {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tborder-radius: 50%;\n\tborder: 2px solid var(--ck-color-text);\n\tborder-top-color: transparent;\n}\n\n@keyframes rotate {\n\tto {\n\t\ttransform: rotate(360deg)\n\t}\n}\n\n"],sourceRoot:""}]);const I=P},8182:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/*\n * This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.\n * This bug is especially visible when rows=1.\n */\n.ck-textarea {\n\toverflow-x: hidden\n}\n"],sourceRoot:""}]);const I=P},9695:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const I=P},5542:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},3332:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDRnC,mBAAoB,CAEpB,qCACD,CCOC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CACrB,wCAAyC,CAFzC,wBAGD,CApBD,gCAuBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-tooltip-text-padding: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t&.ck-tooltip_multi-line .ck-tooltip__text {\n\t\twhite-space: break-spaces;\n\t\tdisplay: inline-block;\n\t\tpadding: var(--ck-tooltip-text-padding) 0;\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const I=P},4793:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_reset.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-ui/theme/globals/_poweredby.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAwD,CCvGxD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJuGD,CIjGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-powered-by-line-height: 10px;\n\t--ck-powered-by-padding-vertical: 2px;\n\t--ck-powered-by-padding-horizontal: 4px;\n\t--ck-powered-by-text-color: hsl(0, 0%, 31%);\n\t--ck-powered-by-border-radius: var(--ck-border-radius);\n\t--ck-powered-by-background: hsl(0, 0%, 100%);\n\t--ck-powered-by-border-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-balloon-panel.ck-powered-by-balloon {\n\t--ck-border-radius: var(--ck-powered-by-border-radius);\n\n\tbox-shadow: none;\n\tbackground: var(--ck-powered-by-background);\n\tmin-height: unset;\n\tz-index: calc( var(--ck-z-modal) - 1 );\n\n\t& .ck.ck-powered-by {\n\t\tline-height: var(--ck-powered-by-line-height);\n\n\t\t& a {\n\t\t\tcursor: pointer;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\topacity: .66;\n\t\t\tfilter: grayscale(80%);\n\t\t\tline-height: var(--ck-powered-by-line-height);\n\t\t\tpadding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);\n\t\t}\n\n\t\t& .ck-powered-by__label {\n\t\t\tfont-size: 7.5px;\n\t\t\tletter-spacing: -.2px;\n\t\t\tpadding-left: 2px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-weight: bold;\n\t\t\tmargin-right: 4px;\n\t\t\tcursor: pointer;\n\t\t\tline-height: normal;\n\t\t\tcolor: var(--ck-powered-by-text-color);\n\n\t\t}\n\n\t\t& .ck-icon {\n\t\t\tdisplay: block;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&:hover {\n\t\t\t& a {\n\t\t\t\tfilter: grayscale(0%);\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[class*="position_inside"] {\n\t\tborder-color: transparent;\n\t}\n\n\t&[class*="position_border"] {\n\t\tborder: var(--ck-focus-ring);\n\t\tborder-color: var(--ck-powered-by-border-color);\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const I=P},3488:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},8506:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const I=P},4921:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const I=P},2609:t=>{"use strict";t.exports=function(A){var x=[];return x.toString=function(){return this.map(function(w){var k=A(w);return w[2]?"@media ".concat(w[2]," {").concat(k,"}"):k}).join("")},x.i=function(w,k,D){"string"==typeof w&&(w=[[null,w,""]]);var P={};if(D)for(var I=0;I{"use strict";function x(w,k){(null==k||k>w.length)&&(k=w.length);for(var D=0,P=new Array(k);D{"use strict";var w,Jt,D=(Jt={},function(at){if(void 0===Jt[at]){var Zt=document.querySelector(at);if(window.HTMLIFrameElement&&Zt instanceof window.HTMLIFrameElement)try{Zt=Zt.contentDocument.head}catch{Zt=null}Jt[at]=Zt}return Jt[at]}),P=[];function I(Jt){for(var at=-1,Zt=0;Zt{var A=t&&t.__esModule?()=>t.default:()=>t;return v.d(A,{a:A}),A},v.d=(t,A)=>{for(var x in A)v.o(A,x)&&!v.o(t,x)&&Object.defineProperty(t,x,{enumerable:!0,get:A[x]})},v.o=(t,A)=>Object.prototype.hasOwnProperty.call(t,A),v.nc=void 0;var T={};return(()=>{"use strict";function t({emitter:m,activator:r,callback:c,contextElements:u}){m.listenTo(document,"mousedown",(_,C)=>{if(!r())return;const M="function"==typeof C.composedPath?C.composedPath():[],E="function"==typeof u?u():u;for(const N of E)if(N.contains(C.target)||M.includes(N))return;c()})}function A(m){return class extends m{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...r){super(...r),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function x({view:m}){m.listenTo(m.element,"submit",(r,c)=>{c.preventDefault(),m.fire("submit")},{useCapture:!0})}v.d(T,{default:()=>_7});const w=function(){try{return navigator.userAgent.toLowerCase()}catch{return""}}(),D_isMac=P(w),D_isGecko=(w.indexOf("windows"),!!w.match(/gecko\/\d+/)),D_isSafari=(m=w).indexOf(" applewebkit/")>-1&&-1===m.indexOf("chrome"),D_isiOS=function(m){return!!m.match(/iphone|ipad/i)||P(m)&&navigator.maxTouchPoints>0}(w),D_isAndroid=function(m){return m.indexOf("android")>-1}(w),D_isBlink=function(m){return m.indexOf("chrome/")>-1&&m.indexOf("edge/")<0}(w);var m;function P(m){return m.indexOf("macintosh")>-1}function I(m,r,c,u){c=c||function(N,j){return N===j};const _=Array.isArray(m)?m:Array.prototype.slice.call(m),C=Array.isArray(r)?r:Array.prototype.slice.call(r),M=function(N,j,K){const dt=z(N,j,K);if(-1===dt)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const Ue=z(G(N,dt),G(j,dt),K);return{firstIndex:dt,lastIndexOld:N.length-Ue,lastIndexNew:j.length-Ue}}(_,C,c);return u?function(N,j){const{firstIndex:K,lastIndexOld:dt,lastIndexNew:Dt}=N;if(-1===K)return Array(j).fill("equal");let me=[];return K>0&&(me=me.concat(Array(K).fill("equal"))),Dt-K>0&&(me=me.concat(Array(Dt-K).fill("insert"))),dt-K>0&&(me=me.concat(Array(dt-K).fill("delete"))),Dt0&&K.push({index:dt,type:"insert",values:N.slice(dt,me)}),Dt-dt>0&&K.push({index:dt+(me-dt),type:"delete",howMany:Dt-dt}),K}(C,M)}function z(m,r,c){for(let u=0;u200||_>200||u+_>300)return W.fastDiff(m,r,c,!0);let C,M;if(_Ln?-1:1;K[qe+pi]&&(K[qe]=K[qe+pi].slice(0)),K[qe]||(K[qe]=[]),K[qe].push(pn>Ln?C:M);let Ri=Math.max(pn,Ln),Go=Ri-qe;for(;Goj;me--)dt[me]=Dt(me);dt[j]=Dt(j),Ue++}while(dt[j]!==N);return K[j].slice(1)}!function(){let m=!1;try{m=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}}(),W.fastDiff=I;class ct{constructor(r,c){this.source=r,this.name=c,this.path=[],this.stop=function m(){m.called=!0},this.off=function m(){m.called=!0}}}const gt=new Array(256).fill("").map((m,r)=>("0"+r.toString(16)).slice(-2));function Pt(){const m=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,c=4294967296*Math.random()>>>0,u=4294967296*Math.random()>>>0;return"e"+gt[m>>0&255]+gt[m>>8&255]+gt[m>>16&255]+gt[m>>24&255]+gt[r>>0&255]+gt[r>>8&255]+gt[r>>16&255]+gt[r>>24&255]+gt[c>>0&255]+gt[c>>8&255]+gt[c>>16&255]+gt[c>>24&255]+gt[u>>0&255]+gt[u>>8&255]+gt[u>>16&255]+gt[u>>24&255]}const St={get(m="normal"){return"number"!=typeof m?this[m]||this.normal:m},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function Ht(m,r){const c=St.get(r.priority);for(let u=0;u{if("object"==typeof dt&&null!==dt){if(M.has(dt))return`[object ${dt.constructor.name}]`;M.add(dt)}return dt})}`:"")+_t(_)}(r,u)),this.name="CKEditorError",this.context=c,this.data=u}is(r){return"CKEditorError"===r}static rethrowUnexpectedError(r,c){if(r.is&&r.is("CKEditorError"))throw r;const u=new at(r.message,c);throw u.stack=r.stack,u}}function Zt(m,r){console.warn(...Nt(m,r))}function wt(m,r){console.error(...Nt(m,r))}function _t(m){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${m}`}function Nt(m,r){const c=_t(m);return r?[m,r,c]:[m,c]}const qt=new Date(2023,9,4);if(globalThis.CKEDITOR_VERSION)throw new at("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION="40.0.0";const le=Symbol("listeningTo"),Wt=Symbol("emitterId"),Ce=Symbol("delegations"),Ae=Ne(Object);function Ne(m){return m?class extends m{on(r,c,u){this.listenTo(this,r,c,u)}once(r,c,u){let _=!1;this.listenTo(this,r,(C,...M)=>{_||(_=!0,C.off(),c.call(this,C,...M))},u)}off(r,c){this.stopListening(this,r,c)}listenTo(r,c,u,_={}){let C,M;this[le]||(this[le]={});const E=this[le];Xe(r)||ze(r);const N=Xe(r);var K,dt,Dt,me;(C=E[N])||(C=E[N]={emitter:r,callbacks:{}}),(M=C.callbacks[c])||(M=C.callbacks[c]=[]),M.push(u),dt=c,Dt=u,me=_,(K=r)._addEventListener?K._addEventListener(dt,Dt,me):this._addEventListener.call(K,dt,Dt,me)}stopListening(r,c,u){const _=this[le];let C=r&&Xe(r);const M=_&&C?_[C]:void 0,E=M&&c?M.callbacks[c]:void 0;if(!(!_||r&&!M||c&&!E))if(u)ue(this,r,c,u),-1!==E.indexOf(u)&&(1===E.length?delete M.callbacks[c]:ue(this,r,c,u));else if(E){for(;u=E.pop();)ue(this,r,c,u);delete M.callbacks[c]}else if(M){for(c in M.callbacks)this.stopListening(r,c);delete _[C]}else{for(C in _)this.stopListening(_[C].emitter);delete this[le]}}fire(r,...c){try{const u=r instanceof ct?r:new ct(this,r),_=u.name;let C=re(this,_);if(u.path.push(this),C){const E=[u,...c];C=Array.from(C);for(let N=0;N{this[Ce]||(this[Ce]=new Map),r.forEach(_=>{const C=this[Ce].get(_);C?C.set(c,u):this[Ce].set(_,new Map([[c,u]]))})}}}stopDelegating(r,c){if(this[Ce])if(r)if(c){const u=this[Ce].get(r);u&&u.delete(c)}else this[Ce].delete(r);else this[Ce].clear()}_addEventListener(r,c,u){!function(M,E){const N=ie(M);if(N[E])return;let j=E,K=null;const dt=[];for(;""!==j&&!N[j];)N[j]={callbacks:[],childEvents:[]},dt.push(N[j]),K&&N[j].childEvents.push(K),K=j,j=j.substr(0,j.lastIndexOf(":"));if(""!==j){for(const Dt of dt)Dt.callbacks=N[j].callbacks.slice();N[j].childEvents.push(K)}}(this,r);const _=Te(this,r),C={callback:c,priority:St.get(u.priority)};for(const M of _)Ht(M,C)}_removeEventListener(r,c){const u=Te(this,r);for(const _ of u)for(let C=0;C<_.length;C++)_[C].callback==c&&(_.splice(C,1),C--)}}:Ae}function ze(m,r){m[Wt]||(m[Wt]=r||Pt())}function Xe(m){return m[Wt]}function ie(m){return m._events||Object.defineProperty(m,"_events",{value:{}}),m._events}function Te(m,r){const c=ie(m)[r];if(!c)return[];let u=[c.callbacks];for(let _=0;_-1?re(m,r.substr(0,r.lastIndexOf(":"))):null}function ee(m,r,c){for(let[u,_]of m){_?"function"==typeof _&&(_=_(r.name)):_=r.name;const C=new ct(r.source,_);C.path=[...r.path],u.fire(C,...c)}}function ue(m,r,c,u){r._removeEventListener?r._removeEventListener(c,u):m._removeEventListener.call(r,c,u)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{Ne[m]=Ae.prototype[m]});const Kt=function(m){var r=typeof m;return null!=m&&("object"==r||"function"==r)},ce=Symbol("observableProperties"),Le=Symbol("boundObservables"),on=Symbol("boundProperties"),hn=Symbol("decoratedMethods"),we=Symbol("decoratedOriginal"),bn=Ze(Ne());function Ze(m){return m?class extends m{set(r,c){if(Kt(r))return void Object.keys(r).forEach(_=>{this.set(_,r[_])},this);dn(this);const u=this[ce];if(r in this&&!u.has(r))throw new at("observable-set-cannot-override",this);Object.defineProperty(this,r,{enumerable:!0,configurable:!0,get:()=>u.get(r),set(_){const C=u.get(r);let M=this.fire(`set:${r}`,r,_,C);void 0===M&&(M=_),C===M&&u.has(r)||(u.set(r,M),this.fire(`change:${r}`,r,M,C))}}),this[r]=c}bind(...r){if(!r.length||!Ee(r))throw new at("observable-bind-wrong-properties",this);if(new Set(r).size!==r.length)throw new at("observable-bind-duplicate-properties",this);dn(this);const c=this[on];r.forEach(_=>{if(c.has(_))throw new at("observable-bind-rebind",this)});const u=new Map;return r.forEach(_=>{const C={property:_,to:[]};c.set(_,C),u.set(_,C)}),{to:kn,toMany:ri,_observable:this,_bindProperties:r,_to:[],_bindings:u}}unbind(...r){if(!this[ce])return;const c=this[on],u=this[Le];if(r.length){if(!Ee(r))throw new at("observable-unbind-wrong-properties",this);r.forEach(_=>{const C=c.get(_);C&&(C.to.forEach(([M,E])=>{const N=u.get(M),j=N[E];j.delete(C),j.size||delete N[E],Object.keys(N).length||(u.delete(M),this.stopListening(M,"change"))}),c.delete(_))})}else u.forEach((_,C)=>{this.stopListening(C,"change")}),u.clear(),c.clear()}decorate(r){dn(this);const c=this[r];if(!c)throw new at("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:r});this.on(r,(u,_)=>{u.return=c.apply(this,_)}),this[r]=function(...u){return this.fire(r,u)},this[r][we]=c,this[hn]||(this[hn]=[]),this[hn].push(r)}stopListening(r,c,u){if(!r&&this[hn]){for(const _ of this[hn])this[_]=this[_][we];delete this[hn]}super.stopListening(r,c,u)}}:bn}function dn(m){m[ce]||(Object.defineProperty(m,ce,{value:new Map}),Object.defineProperty(m,Le,{value:new Map}),Object.defineProperty(m,on,{value:new Map}))}function kn(...m){const r=function(...C){if(!C.length)throw new at("observable-bind-to-parse-error",null);const M={to:[]};let E;return"function"==typeof C[C.length-1]&&(M.callback=C.pop()),C.forEach(N=>{if("string"==typeof N)E.properties.push(N);else{if("object"!=typeof N)throw new at("observable-bind-to-parse-error",null);E={observable:N,properties:[]},M.to.push(E)}}),M}(...m),c=Array.from(this._bindings.keys()),u=c.length;if(!r.callback&&r.to.length>1)throw new at("observable-bind-to-no-callback",this);if(u>1&&r.callback)throw new at("observable-bind-to-extra-callback",this);var _;r.to.forEach(C=>{if(C.properties.length&&C.properties.length!==u)throw new at("observable-bind-to-properties-length",this);C.properties.length||(C.properties=this._bindProperties)}),this._to=r.to,r.callback&&(this._bindings.get(c[0]).callback=r.callback),_=this._observable,this._to.forEach(C=>{const M=_[Le];let E;M.get(C.observable)||_.listenTo(C.observable,"change",(N,j)=>{E=M.get(C.observable)[j],E&&E.forEach(K=>{Ft(_,K.property)})})}),function(C){let M;C._bindings.forEach((E,N)=>{C._to.forEach(j=>{M=j.properties[E.callback?0:C._bindProperties.indexOf(N)],E.to.push([j.observable,M]),function(K,dt,Dt,me){const Ue=K[Le],qe=Ue.get(Dt),pn=qe||{};pn[me]||(pn[me]=new Set),pn[me].add(dt),qe||Ue.set(Dt,pn)}(C._observable,E,j.observable,M)})})}(this),this._bindProperties.forEach(C=>{Ft(this._observable,C)})}function ri(m,r,c){if(this._bindings.size>1)throw new at("observable-bind-to-many-not-one-binding",this);this.to(...function(u,_){const C=u.map(M=>[M,_]);return Array.prototype.concat.apply([],C)}(m,r),c)}function Ee(m){return m.every(r=>"string"==typeof r)}function Ft(m,r){const c=m[on].get(r);let u;c.callback?u=c.callback.apply(m,c.to.map(_=>_[0][_[1]])):(u=c.to[0],u=u[0][u[1]]),Object.prototype.hasOwnProperty.call(m,r)?m[r]=u:m.set(r,u)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{Ze[m]=bn.prototype[m]});class vt{constructor(){this._replacedElements=[]}replace(r,c){this._replacedElements.push({element:r,newElement:c}),r.style.display="none",c&&r.parentNode.insertBefore(c,r.nextSibling)}restore(){this._replacedElements.forEach(({element:r,newElement:c})=>{r.style.display="",c&&c.remove()}),this._replacedElements=[]}}function xt(m){let r=0;for(const c of m)r++;return r}function tt(m,r){const c=Math.min(m.length,r.length);for(let u=0;u-1},fn.prototype.set=function(m,r){var c=this.__data__,u=ve(c,m);return u<0?(++this.size,c.push([m,r])):c[u][1]=r,this};const wn=fn,No=function(m){if(!Kt(m))return!1;var r=Gn(m);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},la=ne["__core-js_shared__"];var Ea=function(){var m=/[^.]+$/.exec(la&&la.keys&&la.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),$e=Function.prototype.toString;const Nn=function(m){if(null!=m){try{return $e.call(m)}catch{}try{return m+""}catch{}}return""};var Ye=/^\[object .+?Constructor\]$/,Q=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const zn=function(m,r){var c=function(m,r){return m?.[r]}(m,r);return function(m){return!(!Kt(m)||function(m){return!!Ea&&Ea in m}(m))&&(No(m)?Q:Ye).test(Nn(m))}(c)?c:void 0},Gi=zn(ne,"Map"),Co=zn(Object,"create");var cs=Object.prototype.hasOwnProperty,Er=Object.prototype.hasOwnProperty;function Yr(m){var r=-1,c=null==m?0:m.length;for(this.clear();++r-1&&m%1==0&&m-1&&m%1==0&&m<=9007199254740991};var qo={};qo["[object Float32Array]"]=qo["[object Float64Array]"]=qo["[object Int8Array]"]=qo["[object Int16Array]"]=qo["[object Int32Array]"]=qo["[object Uint8Array]"]=qo["[object Uint8ClampedArray]"]=qo["[object Uint16Array]"]=qo["[object Uint32Array]"]=!0,qo["[object Arguments]"]=qo["[object Array]"]=qo["[object ArrayBuffer]"]=qo["[object Boolean]"]=qo["[object DataView]"]=qo["[object Date]"]=qo["[object Error]"]=qo["[object Function]"]=qo["[object Map]"]=qo["[object Number]"]=qo["[object Object]"]=qo["[object RegExp]"]=qo["[object Set]"]=qo["[object String]"]=qo["[object WeakMap]"]=!1;const cc=function(m){return function(r){return m(r)}};var qu=it&&!it.nodeType&&it,Yl=qu&&rt&&!rt.nodeType&&rt,xc=Yl&&Yl.exports===qu&&Ct.process;const wl=function(){try{return Yl&&Yl.require&&Yl.require("util").types||xc&&xc.binding&&xc.binding("util")}catch{}}();var Ds=wl&&wl.isTypedArray;const Jc=Ds?cc(Ds):function(m){return gn(m)&&Bl(m.length)&&!!qo[Gn(m)]};var bu=Object.prototype.hasOwnProperty;const Dr=function(m,r){var c=je(m),u=!c&&Hl(m),_=!c&&!u&&ks(m),C=!c&&!u&&!_&&Jc(m),M=c||u||_||C,E=M?function(m,r){for(var c=-1,u=Array(m);++c{this._setToTarget(r,_,c[_],u)})}}function vn(m){return So(m,Ge)}function Ge(m){return ua(m)?m:void 0}function xe(m){if(m){if(m.defaultView)return m instanceof m.defaultView.Document;if(m.ownerDocument&&m.ownerDocument.defaultView)return m instanceof m.ownerDocument.defaultView.Node}return!1}function Au(m){const r=Object.prototype.toString.apply(m);return"[object Window]"==r||"[object global]"==r}const Ks=Xi(Ne());function Xi(m){return m?class extends m{listenTo(r,c,u,_={}){if(xe(r)||Au(r)){const C={capture:!!_.useCapture,passive:!!_.usePassive},M=this._getProxyEmitter(r,C)||new fd(r,C);this.listenTo(M,c,u,_)}else super.listenTo(r,c,u,_)}stopListening(r,c,u){if(xe(r)||Au(r)){const _=this._getAllProxyEmitters(r);for(const C of _)this.stopListening(C,c,u)}else super.stopListening(r,c,u)}_getProxyEmitter(r,c){return function(u,_){const C=u[le];return C&&C[_]?C[_].emitter:null}(this,Xr(r,c))}_getAllProxyEmitters(r){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(c=>this._getProxyEmitter(r,c)).filter(c=>!!c)}}:Ks}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{Xi[m]=Ks.prototype[m]});class fd extends(Ne()){constructor(r,c){super(),ze(this,Xr(r,c)),this._domNode=r,this._options=c}attach(r){if(this._domListeners&&this._domListeners[r])return;const c=this._createDomListener(r);this._domNode.addEventListener(r,c,this._options),this._domListeners||(this._domListeners={}),this._domListeners[r]=c}detach(r){let c;!this._domListeners[r]||(c=this._events[r])&&c.callbacks.length||this._domListeners[r].removeListener()}_addEventListener(r,c,u){this.attach(r),Ne().prototype._addEventListener.call(this,r,c,u)}_removeEventListener(r,c){Ne().prototype._removeEventListener.call(this,r,c),this.detach(r)}_createDomListener(r){const c=u=>{this.fire(r,u)};return c.removeListener=()=>{this._domNode.removeEventListener(r,c,this._options),delete this._domListeners[r]},c}}function Xr(m,r){let c=(u=m)["data-ck-expando"]||(u["data-ck-expando"]=Pt());var u;for(const u of Object.keys(r).sort())r[u]&&(c+="-"+u);return c}let zu;try{zu={window,document}}catch{zu={window:{},document:{}}}const Lt=zu;function fe(m){return"[object Text]"==Object.prototype.toString.call(m)}function $t(m){return"[object Range]"==Object.prototype.toString.apply(m)}function Ke(m){const r=m.ownerDocument.defaultView.getComputedStyle(m);return{top:parseInt(r.borderTopWidth,10),right:parseInt(r.borderRightWidth,10),bottom:parseInt(r.borderBottomWidth,10),left:parseInt(r.borderLeftWidth,10)}}function In(m){return m&&m.parentNode?m.offsetParent===Lt.document.body?null:m.offsetParent:null}const Rt=["top","right","bottom","left","width","height"];class de{constructor(r){const c=$t(r);if(Object.defineProperty(this,"_source",{value:r._source||r,writable:!0,enumerable:!1}),Cn(r)||c)if(c){const u=de.getDomRangeRects(r);De(this,de.getBoundingRect(u))}else De(this,r.getBoundingClientRect());else if(Au(r)){const{innerWidth:u,innerHeight:_}=r;De(this,{top:0,right:u,bottom:_,left:0,width:u,height:_})}else De(this,r)}clone(){return new de(this)}moveTo(r,c){return this.top=c,this.right=r+this.width,this.bottom=c+this.height,this.left=r,this}moveBy(r,c){return this.top+=c,this.right+=r,this.left+=r,this.bottom+=c,this}getIntersection(r){const c={top:Math.max(this.top,r.top),right:Math.min(this.right,r.right),bottom:Math.min(this.bottom,r.bottom),left:Math.max(this.left,r.left),width:0,height:0};if(c.width=c.right-c.left,c.height=c.bottom-c.top,c.width<0||c.height<0)return null;{const u=new de(c);return u._source=this._source,u}}getIntersectionArea(r){const c=this.getIntersection(r);return c?c.getArea():0}getArea(){return this.width*this.height}getVisible(){const r=this._source;let c=this.clone();if(nn(r))return c;let u,_=r,C=r.parentNode||r.commonAncestorContainer;for(;C&&!nn(C);){const E="visible"===((M=C)instanceof HTMLElement?M.ownerDocument.defaultView.getComputedStyle(M).overflow:"visible");_ instanceof HTMLElement&&"absolute"===Wn(_)&&(u=_);const N=Wn(C);if(E||u&&("relative"===N&&E||"relative"!==N)){_=C,C=C.parentNode;continue}const j=new de(C),K=c.getIntersection(j);if(!K)return null;K.getArea(){for(const r of m){const c=$n._getElementCallbacks(r.target);if(c)for(const u of c)u(r)}})}};let yi=$n;function bo(m){return r=>r+m}function xo(m){let r=0;for(;m.previousSibling;)m=m.previousSibling,r++;return r}function yo(m,r,c){m.insertBefore(c,m.childNodes[r]||null)}function ga(m){return m&&m.nodeType===Node.COMMENT_NODE}function ra(m){return!!(m&&m.getClientRects&&m.getClientRects().length)}yi._observerInstance=null,yi._elementCallbacks=null;var fa=Math.pow;function ts({element:m,target:r,positions:c,limiter:u,fitInViewport:_,viewportOffsetConfig:C}){No(r)&&(r=r()),No(u)&&(u=u());const M=In(m),E=function(Dt){Dt=Object.assign({top:0,bottom:0,left:0,right:0},Dt);const me=new de(Lt.window);return me.top+=Dt.top,me.height-=Dt.top,me.bottom-=Dt.bottom,me.height-=Dt.bottom,me}(C),N=new de(m),j=Hs(r,E);let K;if(!j||!E.getIntersection(j))return null;const dt={targetRect:j,elementRect:N,positionedElementAncestor:M,viewportRect:E};if(u||_){if(u){const Dt=Hs(u,E);Dt&&(dt.limiterRect=Dt)}K=function(Dt,me){const{elementRect:Ue}=me,qe=Ue.getArea(),pn=Dt.map(Ri=>new es(Ri,me)).filter(Ri=>!!Ri.name);let Ln=0,pi=null;for(const Ri of pn){const{limiterIntersectionArea:Go,viewportIntersectionArea:ka}=Ri;if(Go===qe)return Ri;const Ts=fa(ka,2)+fa(Go,2);Ts>Ln&&(Ln=Ts,pi=Ri)}return pi}(c,dt)}else K=new es(c[0],dt);return K}function Hs(m,r){const c=new de(m).getVisible();return c?c.getIntersection(r):null}class es{constructor(r,c){const u=r(c.targetRect,c.elementRect,c.viewportRect,c.limiterRect);if(!u)return;const{left:_,top:C,name:M,config:E}=u;this.name=M,this.config=E,this._positioningFunctionCoordinates={left:_,top:C},this._options=c}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const r=this._options.limiterRect;return r?r.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=this._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function ns(m){const r=m.parentNode;r&&r.removeChild(m)}function us({window:m,rect:r,alignToTop:c,forceScroll:u,viewportOffset:_}){const C=r.clone().moveBy(0,_.bottom),M=r.clone().moveBy(0,-_.top),E=new de(m).excludeScrollbarsAndBorders(),N=c&&u,j=[M,C].every(Ue=>E.contains(Ue));let{scrollX:K,scrollY:dt}=m;const Dt=K,me=dt;N?dt-=E.top-r.top+_.top:j||(Fc(M,E)?dt-=E.top-r.top+_.top:Xs(C,E)&&(dt+=c?r.top-E.top-_.top:r.bottom-E.bottom+_.bottom)),j||(is(r,E)?K-=E.left-r.left+_.left:Rd(r,E)&&(K+=r.right-E.right+_.right)),K==Dt&&dt===me||m.scrollTo(K,dt)}function Hr({parent:m,getRect:r,alignToTop:c,forceScroll:u,ancestorOffset:_=0,limiterElement:C}){const M=sr(m),E=c&&u;let N,j,K;const dt=C||M.document.body;for(;m!=dt;)j=r(),N=new de(m).excludeScrollbarsAndBorders(),K=N.contains(j),E?m.scrollTop-=N.top-j.top+_:K||(Fc(j,N)?m.scrollTop-=N.top-j.top+_:Xs(j,N)&&(m.scrollTop+=c?j.top-N.top-_:j.bottom-N.bottom+_)),K||(is(j,N)?m.scrollLeft-=N.left-j.left+_:Rd(j,N)&&(m.scrollLeft+=j.right-N.right+_)),m=m.parentNode}function Xs(m,r){return m.bottom>r.bottom}function Fc(m,r){return m.topr.right}function sr(m){return $t(m)?m.startContainer.ownerDocument.defaultView:m.ownerDocument.defaultView}function cr(m){if($t(m)){let r=m.commonAncestorContainer;return fe(r)&&(r=r.parentNode),r}return m.parentNode}function Cs(m,r){const c=sr(m),u=new de(m);if(c===r)return u;{let _=c;for(;_!=r;){const M=new de(_.frameElement).excludeScrollbarsAndBorders();u.moveBy(M.left,M.top),_=_.parent}}return u}const b_={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21e7"},jp={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Ka=function(){const m={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let r=65;r<=90;r++)m[String.fromCharCode(r).toLowerCase()]=r;for(let r=48;r<=57;r++)m[r-48]=r;for(let r=112;r<=123;r++)m["f"+(r-111)]=r;for(const r of"`-=[];',./\\")m[r]=r.charCodeAt(0);return m}(),cu=Object.fromEntries(Object.entries(Ka).map(([m,r])=>[r,m.charAt(0).toUpperCase()+m.slice(1)]));function Tc(m){let r;if("string"==typeof m){if(r=Ka[m.toLowerCase()],!r)throw new at("keyboard-unknown-key",null,{key:m})}else r=m.keyCode+(m.altKey?Ka.alt:0)+(m.ctrlKey?Ka.ctrl:0)+(m.shiftKey?Ka.shift:0)+(m.metaKey?Ka.cmd:0);return r}function tc(m){return"string"==typeof m&&(m=m.split("+").map(c=>c.trim())),m.map(r=>"string"==typeof r?function(c){if(c.endsWith("!"))return Tc(c.slice(0,-1));const u=Tc(c);return(D_isMac||D_isiOS)&&u==Ka.ctrl?Ka.cmd:u}(r):r).reduce((r,c)=>c+r,0)}function yu(m){let r=tc(m);return Object.entries(D_isMac||D_isiOS?b_:jp).reduce((c,[u,_])=>(0!=(r&Ka[u])&&(r&=~Ka[u],c+=_),c),"")+(r?cu[r]:"")}function b1(m,r){const c="ltr"===r;switch(m){case Ka.arrowleft:return c?"left":"right";case Ka.arrowright:return c?"right":"left";case Ka.arrowup:return"up";case Ka.arrowdown:return"down"}}function Ss(m){return Array.isArray(m)?m:[m]}Lt.window.CKEDITOR_TRANSLATIONS||(Lt.window.CKEDITOR_TRANSLATIONS={});const Jl=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function Bu(m){return Jl.includes(m)?"rtl":"ltr"}class Tu{constructor({uiLanguage:r="en",contentLanguage:c}={}){this.uiLanguage=r,this.contentLanguage=c||this.uiLanguage,this.uiLanguageDirection=Bu(this.uiLanguage),this.contentLanguageDirection=Bu(this.contentLanguage),this.t=(u,_)=>this._t(u,_)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(r,c=[]){return c=Ss(c),"string"==typeof r&&(r={string:r}),_=function Hd(m,r,c=1){if("number"!=typeof c)throw new at("translation-service-quantity-not-a-number",null,{quantity:c});const u=Object.keys(Lt.window.CKEDITOR_TRANSLATIONS).length;1===u&&(m=Object.keys(Lt.window.CKEDITOR_TRANSLATIONS)[0]);const _=r.id||r.string;if(0===u||(!Lt.window.CKEDITOR_TRANSLATIONS[N=m]||!Lt.window.CKEDITOR_TRANSLATIONS[N].dictionary[_]))return 1!==c?r.plural:r.string;var N;const M=Lt.window.CKEDITOR_TRANSLATIONS[m].getPluralForm||(N=>1===N?0:1),E=Lt.window.CKEDITOR_TRANSLATIONS[m].dictionary[_];return"string"==typeof E?E:E[Number(M(c))]}(this.uiLanguage,r,r.plural?c[0]:1),C=c,_.replace(/%(\d+)/g,(M,E)=>Ethis._items.length||c<0)throw new at("collection-add-item-invalid-index",this);let u=0;for(const _ of r){const C=this._getItemIdBeforeAdding(_),M=c+u;this._items.splice(M,0,_),this._itemMap.set(C,_),this.fire("add",_,M),u++}return this.fire("change",{added:r,removed:[],index:c}),this}get(r){let c;if("string"==typeof r)c=this._itemMap.get(r);else{if("number"!=typeof r)throw new at("collection-get-invalid-arg",this);c=this._items[r]}return c||null}has(r){if("string"==typeof r)return this._itemMap.has(r);{const c=r[this._idProperty];return c&&this._itemMap.has(c)}}getIndex(r){let c;return c="string"==typeof r?this._itemMap.get(r):r,c?this._items.indexOf(c):-1}remove(r){const[c,u]=this._remove(r);return this.fire("change",{added:[],removed:[c],index:u}),c}map(r,c){return this._items.map(r,c)}find(r,c){return this._items.find(r,c)}filter(r,c){return this._items.filter(r,c)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const r=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:r,index:0})}bindTo(r){if(this._bindToCollection)throw new at("collection-bind-to-rebind",this);return this._bindToCollection=r,{as:c=>{this._setUpBindToBinding(u=>new c(u))},using:c=>{this._setUpBindToBinding("function"==typeof c?c:u=>u[c])}}}_setUpBindToBinding(r){const c=this._bindToCollection,u=(_,C,M)=>{const E=c._bindToCollection==this,N=c._bindToInternalToExternalMap.get(C);if(E&&N)this._bindToExternalToInternalMap.set(C,N),this._bindToInternalToExternalMap.set(N,C);else{const j=r(C);if(!j)return void this._skippedIndexesFromExternal.push(M);let K=M;for(const dt of this._skippedIndexesFromExternal)M>dt&&K--;for(const dt of c._skippedIndexesFromExternal)K>=dt&&K++;this._bindToExternalToInternalMap.set(C,j),this._bindToInternalToExternalMap.set(j,C),this.add(j,K);for(let dt=0;dt{const E=this._bindToExternalToInternalMap.get(C);E&&this.remove(E),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((N,j)=>(Mj&&N.push(j),N),[])})}_getItemIdBeforeAdding(r){const c=this._idProperty;let u;if(c in r){if(u=r[c],"string"!=typeof u)throw new at("collection-add-invalid-id",this);if(this.get(u))throw new at("collection-add-item-already-exists",this)}else r[c]=u=Pt();return u}_remove(r){let c,u,_,C=!1;const M=this._idProperty;if("string"==typeof r?(u=r,_=this._itemMap.get(u),C=!_,_&&(c=this._items.indexOf(_))):"number"==typeof r?(c=r,_=this._items[c],C=!_,_&&(u=_[M])):(_=r,u=_[M],c=this._items.indexOf(_),C=-1==c||!this._itemMap.get(u)),C)throw new at("collection-remove-404",this);this._items.splice(c,1),this._itemMap.delete(u);const E=this._bindToInternalToExternalMap.get(_);return this._bindToInternalToExternalMap.delete(_),this._bindToExternalToInternalMap.delete(E),this.fire("remove",_,c),[_,c]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function os(m){const r=m.next();return r.done?null:r.value}class as extends(Xi(Ze())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(r){if(this._elements.has(r))throw new at("focustracker-add-element-already-exist",this);this.listenTo(r,"focus",()=>this._focus(r),{useCapture:!0}),this.listenTo(r,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(r)}remove(r){r===this.focusedElement&&this._blur(),this._elements.has(r)&&(this.stopListening(r),this._elements.delete(r))}destroy(){this.stopListening()}_focus(r){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=r,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class $c{constructor(){this._listener=new(Xi())}listenTo(r){this._listener.listenTo(r,"keydown",(c,u)=>{this._listener.fire("_keydown:"+Tc(u),u)})}set(r,c,u={}){const _=tc(r);this._listener.listenTo(this._listener,"_keydown:"+_,(M,E)=>{c(E,()=>{E.preventDefault(),E.stopPropagation(),M.stop()}),M.return=!0},{priority:u.priority})}press(r){return!!this._listener.fire("_keydown:"+Tc(r),r)}stopListening(r){this._listener.stopListening(r)}destroy(){this.stopListening()}}function Kc(m){return et(m)?new Map(m):function(r){const c=new Map;for(const u in r)c.set(u,r[u]);return c}(m)}function wr(m,r){let c;function u(..._){u.cancel(),c=setTimeout(()=>m(..._),r)}return u.cancel=()=>{clearTimeout(c)},u}function un(m,r){return!!(c=m.charAt(r-1))&&1==c.length&&/[\ud800-\udbff]/.test(c)&&!!(u=m.charAt(r))&&1==u.length&&/[\udc00-\udfff]/.test(u);var u,c}function hd(m,r){return!!(c=m.charAt(r))&&1==c.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(c);var c}const v1=function(){const m=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],r=new RegExp("\\p{Regional_Indicator}{2}","u").source,c="(?:"+m.map(u=>u.source).join("|")+")";return new RegExp(`${r}|${c}(?:\u200d${c})*`,"ug")}();function kl(m,r){const c=String(m).matchAll(v1);return Array.from(c).some(u=>u.index{this._renderViewIntoCollectionParent(u,_)}),this.on("remove",(c,u)=>{u.element&&this._parentElement&&u.element.remove()}),this._parentElement=null}destroy(){this.map(r=>r.destroy())}setParent(r){this._parentElement=r;for(const c of this)this._renderViewIntoCollectionParent(c)}delegate(...r){if(!r.length||!r.every(c=>"string"==typeof c))throw new at("ui-viewcollection-delegate-wrong-events",this);return{to:c=>{for(const u of this)for(const _ of r)u.delegate(_).to(c);this.on("add",(u,_)=>{for(const C of r)_.delegate(C).to(c)}),this.on("remove",(u,_)=>{for(const C of r)_.stopDelegating(C,c)})}}}_renderViewIntoCollectionParent(r,c){r.isRendered||r.render(),r.element&&this._parentElement&&this._parentElement.insertBefore(r.element,this._parentElement.children[c])}remove(r){return super.remove(r)}}var E1=v(6062),Fo=v.n(E1),gd=v(4793);Fo()(gd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class oa extends(Xi(Ze())){constructor(r){super(),this.element=null,this.isRendered=!1,this.locale=r,this.t=r&&r.t,this._viewCollections=new ec,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(c,u)=>{u.locale=r,u.t=r&&r.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Ur.bind(this,this)}createCollection(r){const c=new Ia(r);return this._viewCollections.add(c),c}registerChild(r){et(r)||(r=[r]);for(const c of r)this._unboundChildren.add(c)}deregisterChild(r){et(r)||(r=[r]);for(const c of r)this._unboundChildren.remove(c)}setTemplate(r){this.template=new Ur(r)}extendTemplate(r){Ur.extend(this.template,r)}render(){if(this.isRendered)throw new at("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(r=>r.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}class Ur extends(Ne()){constructor(r){super(),Object.assign(this,La(zd(r))),this._isRendered=!1,this._revertData=null}render(){const r=this._renderNode({intoFragment:!0});return this._isRendered=!0,r}apply(r){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:r,intoFragment:!1,isApplying:!0,revertData:this._revertData}),r}revert(r){if(!this._revertData)throw new at("ui-template-revert-not-applied",[this,r]);this._revertTemplateFromNode(r,this._revertData)}*getViews(){yield*function*r(c){if(c.children)for(const u of c.children)se(u)?yield u:Se(u)&&(yield*r(u))}(this)}static bind(r,c){return{to:(u,_)=>new To({eventNameOrFunction:u,attribute:u,observable:r,emitter:c,callback:_}),if:(u,_,C)=>new v_({observable:r,emitter:c,attribute:u,valueIfTrue:_,callback:C})}}static extend(r,c){if(r._isRendered)throw new at("template-extend-render",[this,r]);pt(r,La(zd(c)))}_renderNode(r){let c;if(c=r.node?this.tag&&this.text:this.tag?this.text:!this.text,c)throw new at("ui-template-wrong-syntax",this);return this.text?this._renderText(r):this._renderElement(r)}_renderElement(r){let c=r.node;return c||(c=r.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(r),this._renderElementChildren(r),this._setUpListeners(r),c}_renderText(r){let c=r.node;return c?r.revertData.text=c.textContent:c=r.node=document.createTextNode(""),Y(this.text)?this._bindToObservable({schema:this.text,updater:bd(c),data:r}):c.textContent=this.text.join(""),c}_renderAttributes(r){if(!this.attributes)return;const c=r.node,u=r.revertData;for(const _ in this.attributes){const C=c.getAttribute(_),M=this.attributes[_];u&&(u.attributes[_]=C);const E=qn(M)?M[0].ns:null;if(Y(M)){const N=qn(M)?M[0].value:M;u&&Ii(_)&&N.unshift(C),this._bindToObservable({schema:N,updater:x_(c,_,E),data:r})}else if("style"==_&&"string"!=typeof M[0])this._renderStyleAttribute(M[0],r);else{u&&C&&Ii(_)&&M.unshift(C);const N=M.map(j=>j&&j.value||j).reduce((j,K)=>j.concat(K),[]).reduce(At,"");Gt(N)||c.setAttributeNS(E,_,N)}}}_renderStyleAttribute(r,c){const u=c.node;for(const _ in r){const C=r[_];Y(C)?this._bindToObservable({schema:[C],updater:mp(u,_),data:c}):u.style[_]=C}}_renderElementChildren(r){const c=r.node,u=r.intoFragment?document.createDocumentFragment():c,_=r.isApplying;let C=0;for(const M of this.children)if(Dn(M)){if(!_){M.setParent(c);for(const E of M)u.appendChild(E.element)}}else if(se(M))_||(M.isRendered||M.render(),u.appendChild(M.element));else if(xe(M))u.appendChild(M);else if(_){const E={children:[],bindings:[],attributes:{}};r.revertData.children.push(E),M._renderNode({intoFragment:!1,node:u.childNodes[C++],isApplying:!0,revertData:E})}else u.appendChild(M.render());r.intoFragment&&c.appendChild(u)}_setUpListeners(r){if(this.eventListeners)for(const c in this.eventListeners){const u=this.eventListeners[c].map(_=>{const[C,M]=c.split("@");return _.activateDomEventListener(C,M,r)});r.revertData&&r.revertData.bindings.push(u)}}_bindToObservable({schema:r,updater:c,data:u}){const _=u.revertData;Jo(r,c,u);const C=r.filter(M=>!Gt(M)).filter(M=>M.observable).map(M=>M.activateAttributeListener(r,c,u));_&&_.bindings.push(C)}_revertTemplateFromNode(r,c){for(const _ of c.bindings)for(const C of _)C();if(c.text)return void(r.textContent=c.text);const u=r;for(const _ in c.attributes){const C=c.attributes[_];null===C?u.removeAttribute(_):u.setAttribute(_,C)}for(let _=0;_Jo(r,c,u);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,_),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,_)}}}class To extends Yu{constructor(r){super(r),this.eventNameOrFunction=r.eventNameOrFunction}activateDomEventListener(r,c,u){const _=(C,M)=>{c&&!M.target.matches(c)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(M):this.observable.fire(this.eventNameOrFunction,M))};return this.emitter.listenTo(u.node,r,_),()=>{this.emitter.stopListening(u.node,r,_)}}}class v_ extends Yu{constructor(r){super(r),this.valueIfTrue=r.valueIfTrue}getValue(r){return!Gt(super.getValue(r))&&(this.valueIfTrue||!0)}}function Y(m){return!!m&&(m.value&&(m=m.value),Array.isArray(m)?m.some(Y):m instanceof Yu)}function Jo(m,r,{node:c}){const u=(M=c,m.map(E=>E instanceof Yu?E.getValue(M):E));var M;let _;_=1==m.length&&m[0]instanceof v_?u[0]:u.reduce(At,""),Gt(_)?r.remove():r.set(_)}function bd(m){return{set(r){m.textContent=r},remove(){m.textContent=""}}}function x_(m,r,c){return{set(u){m.setAttributeNS(c,r,u)},remove(){m.removeAttributeNS(c,r)}}}function mp(m,r){return{set(c){m.style[r]=c},remove(){m.style[r]=null}}}function zd(m){return So(m,r=>{if(r&&(r instanceof Yu||Se(r)||se(r)||Dn(r)))return r})}function La(m){if("string"==typeof m?m={text:[m]}:m.text&&((r=m).text=Ss(r.text)),m.on&&(m.eventListeners=function(r){for(const c in r)Jp(r,c);return r}(m.on),delete m.on),!m.text){m.attributes&&function(c){for(const u in c)c[u].value&&(c[u].value=Ss(c[u].value)),Jp(c,u)}(m.attributes);const r=[];if(m.children)if(Dn(m.children))r.push(m.children);else for(const c of m.children)Se(c)||se(c)||xe(c)?r.push(c):r.push(new Ur(c));m.children=r}var r;return m}function Jp(m,r){m[r]=Ss(m[r])}function At(m,r){return Gt(r)?m:Gt(m)?r:`${m} ${r}`}function Ut(m,r){for(const c in r)m[c]?m[c].push(...r[c]):m[c]=r[c]}function pt(m,r){if(r.attributes&&(m.attributes||(m.attributes={}),Ut(m.attributes,r.attributes)),r.eventListeners&&(m.eventListeners||(m.eventListeners={}),Ut(m.eventListeners,r.eventListeners)),r.text&&m.text.push(...r.text),r.children&&r.children.length){if(m.children.length!=r.children.length)throw new at("ui-template-extend-children-mismatch",m);let c=0;for(const u of r.children)pt(m.children[c++],u)}}function Gt(m){return!m&&0!==m}function se(m){return m instanceof oa}function Se(m){return m instanceof Ur}function Dn(m){return m instanceof Ia}function qn(m){return Kt(m[0])&&m[0].ns}function Ii(m){return"class"==m||"style"==m}class Qi extends Ia{constructor(r,c=[]){super(c),this.locale=r}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new Ur({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let r=document.querySelector(".ck-body-wrapper");r||(r=tn(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(r)),r.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const r=document.querySelector(".ck-body-wrapper");r&&0==r.childElementCount&&r.remove()}}var Fa=v(6574);Fo()(Fa.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const xr=class extends oa{constructor(){super();const m=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.set("isVisible",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon",m.if("isVisible","ck-hidden",r=>!r),"ck-reset_all-excluded",m.if("isColorInherited","ck-icon_inherit-color")],viewBox:m.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const m=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),r=m.getAttribute("viewBox");r&&(this.viewBox=r);for(const{name:c,value:u}of Array.from(m.attributes))xr.presentationalAttributeNames.includes(c)&&this.element.setAttribute(c,u);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;m.childNodes.length>0;)this.element.appendChild(m.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(m=>{m.style.fill=this.fillColor})}};let zs=xr;zs.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];class Vu extends oa{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const r=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:r.to("style"),id:r.to("id")},children:[{text:r.to("text")}]})}}var va=v(4906);Fo()(va.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class $o extends oa{constructor(r,c=new Vu){super(r),this._focusDelayed=null;const u=this.bindTemplate,_=Pt();this.set("ariaChecked",void 0),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${_}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(c),this.iconView=new zs,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const C={tag:"button",attributes:{class:["ck","ck-button",u.to("class"),u.if("isEnabled","ck-disabled",M=>!M),u.if("isVisible","ck-hidden",M=>!M),u.to("isOn",M=>M?"ck-on":"ck-off"),u.if("withText","ck-button_with-text"),u.if("withKeystroke","ck-button_with-keystroke")],role:u.to("role"),type:u.to("type",M=>M||"button"),tabindex:u.to("tabindex"),"aria-label":u.to("ariaLabel"),"aria-labelledby":u.to("ariaLabelledBy"),"aria-disabled":u.if("isEnabled",!0,M=>!M),"aria-checked":u.to("isOn"),"aria-pressed":u.to("isOn",M=>!!this.isToggleable&&String(!!M)),"data-cke-tooltip-text":u.to("_tooltipString"),"data-cke-tooltip-position":u.to("tooltipPosition")},children:this.children,on:{click:u.to(M=>{this.isEnabled?this.fire("execute"):M.preventDefault()})}};D_isSafari&&(this._focusDelayed||(this._focusDelayed=wr(()=>this.focus(),0)),C.on.mousedown=u.to(()=>{this._focusDelayed()}),C.on.mouseup=u.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(C)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(r){return r.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),r}_createKeystrokeView(){const r=new oa;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",c=>yu(c))}]}),r}_getTooltipString(r,c,u){return r?"string"==typeof r?r:(u&&(u=yu(u)),r instanceof Function?r(c,u):`${c}${u?` (${u})`:""}`):""}}var Pn=v(5332);Fo()(Pn.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class As extends $o{constructor(r){super(r),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const r=new oa;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),r}}var ha=v(6781);Fo()(ha.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),v(1103),v(841);var vd=v(3662);Fo()(vd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class wu extends oa{constructor(r){super(r),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${Pt()}`;const c=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:c.to("for")},children:[{text:c.to("text")}]})}}var wc=v(2577);Fo()(wc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Sr extends oa{constructor(r,c){super(r);const u=`ck-labeled-field-view-${Pt()}`,_=`ck-labeled-field-view-status-${Pt()}`;this.fieldView=c(this,u,_),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(u),this.statusView=this._createStatusView(_),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(M,E)=>M||E);const C=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",C.to("class"),C.if("isEnabled","ck-disabled",M=>!M),C.if("isEmpty","ck-labeled-field-view_empty"),C.if("isFocused","ck-labeled-field-view_focused"),C.if("placeholder","ck-labeled-field-view_placeholder"),C.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(r){const c=new wu(this.locale);return c.for=r,c.bind("text").to(this,"label"),c}_createStatusView(r){const c=new oa(this.locale),u=this.bindTemplate;return c.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",u.if("errorText","ck-labeled-field-view__status_error"),u.if("_statusText","ck-hidden",_=>!_)],id:r,role:u.if("errorText","alert")},children:[{text:u.to("_statusText")}]}),c}focus(r){this.fieldView.focus(r)}}class A_ extends oa{constructor(r){super(r),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new as,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const c=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",c.if("isFocused","ck-input_focused"),c.if("isEmpty","ck-input-text_empty"),c.if("hasError","ck-error")],id:c.to("id"),placeholder:c.to("placeholder"),readonly:c.to("isReadOnly"),"aria-invalid":c.if("hasError",!0),"aria-describedby":c.to("ariaDescribedById")},on:{input:c.to((...u)=>{this.fire("input",...u),this._updateIsEmpty()}),change:c.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(r,c,u)=>{this._setDomElementValue(u),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(r){this.element.value=r||0===r?r:""}}var _p=v(4879);Fo()(_p.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Gp extends A_{constructor(r){super(r),this.set("inputMode","text"),this.extendTemplate({attributes:{inputmode:this.bindTemplate.to("inputMode")}})}}class xg extends Gp{constructor(r){super(r),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var I1=v(8182);Fo()(I1.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class y_ extends oa{constructor(r){super(r);const c=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",c.to("position",u=>`ck-dropdown__panel_${u}`),c.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:c.to(u=>{"input"!==u.target.tagName.toLocaleLowerCase()&&u.preventDefault()})}})}focus(){if(this.children.length){const r=this.children.first;"function"==typeof r.focus?r.focus():Zt("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const r=this.children.last;"function"==typeof r.focusLast?r.focusLast():r.focus()}}}var nc=v(5485);Fo()(nc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const F1=class extends oa{constructor(m,r,c){super(m);const u=this.bindTemplate;this.buttonView=r,this.panelView=c,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.keystrokes=new $c,this.focusTracker=new as,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",u.to("class"),u.if("isEnabled","ck-disabled",_=>!_)],id:u.to("id"),"aria-describedby":u.to("ariaDescribedById")},children:[r,c]}),r.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":u.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(r,c,u)=>{if(u)if("auto"===this.panelPosition){const _=F1._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=_?_.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition}),this.keystrokes.listenTo(this.element);const m=(r,c)=>{this.isOpen&&(this.isOpen=!1,c())};this.keystrokes.set("arrowdown",(r,c)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,c())}),this.keystrokes.set("arrowright",(r,c)=>{this.isOpen&&c()}),this.keystrokes.set("arrowleft",m),this.keystrokes.set("esc",m)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:m,north:r,southEast:c,southWest:u,northEast:_,northWest:C,southMiddleEast:M,southMiddleWest:E,northMiddleEast:N,northMiddleWest:j}=F1.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[c,u,M,E,m,_,C,N,j,r]:[u,c,E,M,m,C,_,j,N,r]}};let Uu=F1;Uu.defaultPanelPositions={south:(m,r)=>({top:m.bottom,left:m.left-(r.width-m.width)/2,name:"s"}),southEast:m=>({top:m.bottom,left:m.left,name:"se"}),southWest:(m,r)=>({top:m.bottom,left:m.left-r.width+m.width,name:"sw"}),southMiddleEast:(m,r)=>({top:m.bottom,left:m.left-(r.width-m.width)/4,name:"sme"}),southMiddleWest:(m,r)=>({top:m.bottom,left:m.left-3*(r.width-m.width)/4,name:"smw"}),north:(m,r)=>({top:m.top-r.height,left:m.left-(r.width-m.width)/2,name:"n"}),northEast:(m,r)=>({top:m.top-r.height,left:m.left,name:"ne"}),northWest:(m,r)=>({top:m.top-r.height,left:m.left-r.width+m.width,name:"nw"}),northMiddleEast:(m,r)=>({top:m.top-r.height,left:m.left-(r.width-m.width)/4,name:"nme"}),northMiddleWest:(m,r)=>({top:m.top-r.height,left:m.left-3*(r.width-m.width)/4,name:"nmw"})},Uu._getOptimalPosition=ts;const xd='';class x1 extends $o{constructor(r){super(r),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",c=>String(c))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const r=new zs;return r.content=xd,r.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),r}}class dl extends(Ne()){constructor(r){if(super(),this.focusables=r.focusables,this.focusTracker=r.focusTracker,this.keystrokeHandler=r.keystrokeHandler,this.actions=r.actions,r.actions&&r.keystrokeHandler)for(const c in r.actions){let u=r.actions[c];"string"==typeof u&&(u=[u]);for(const _ of u)r.keystrokeHandler.set(_,(C,M)=>{this[c](),M()})}this.on("forwardCycle",()=>this.focusFirst(),{priority:"low"}),this.on("backwardCycle",()=>this.focusLast(),{priority:"low"})}get first(){return this.focusables.find(Im)||null}get last(){return this.focusables.filter(Im).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let r=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((c,u)=>{const _=c.element===this.focusTracker.focusedElement;return _&&(r=u),_}),r)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const r=this.next;r&&this.focusables.getIndex(r)===this.current||(r===this.first?this.fire("forwardCycle"):this._focus(r,1))}focusPrevious(){const r=this.previous;r&&this.focusables.getIndex(r)===this.current||(r===this.last?this.fire("backwardCycle"):this._focus(r,-1))}_focus(r,c){r&&r.focus(c)}_getFocusableItem(r){const c=this.current,u=this.focusables.length;if(!u)return null;if(null===c)return this[1===r?"first":"last"];let _=(c+u+r)%u;do{const C=this.focusables.get(_);if(Im(C))return C;_=(_+u+r)%u}while(_!==c);return null}}function Im(m){return!(!("focus"in m)||!ra(m.element))}class pl extends oa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class M2 extends oa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function fp(m){return Array.isArray(m)?{items:m,removeItems:[]}:m?Object.assign({items:[],removeItems:[]},m):{items:[],removeItems:[]}}class lo extends(Ze()){constructor(r){super(),this._disableStack=new Set,this.editor=r,this.set("isEnabled",!0)}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",hp,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",hp),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function hp(m){m.return=!1,m.stop()}class Ua extends(Ze()){constructor(r){super(),this.editor=r,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.listenTo(r,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",c=>{if(!this.affectsData)return;const u=r.model.document.selection,_="$graveyard"!=u.getFirstPosition().root.rootName&&r.model.canEditAt(u);(r.isReadOnly||this._isEnabledBasedOnSelection&&!_)&&(c.return=!1,c.stop())},{priority:"highest"}),this.on("execute",c=>{this.isEnabled||c.stop()},{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(r){this._affectsData=r}refresh(){this.isEnabled=!0}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",N1,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",N1),this.refresh())}execute(...r){}destroy(){this.stopListening()}}function N1(m){m.return=!1,m.stop()}class Qp extends Ua{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...r){const c=this._getFirstEnabledCommand();return!!c&&c.execute(r)}registerChildCommand(r,c={}){Ht(this._childCommandsDefinitions,{command:r,priority:c.priority||"normal"}),r.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const r=this._childCommandsDefinitions.find(({command:c})=>c.isEnabled);return r&&r.command}}class If extends(Ne()){constructor(r,c=[],u=[]){super(),this._plugins=new Map,this._context=r,this._availablePlugins=new Map;for(const _ of c)_.pluginName&&this._availablePlugins.set(_.pluginName,_);this._contextPlugins=new Map;for(const[_,C]of u)this._contextPlugins.set(_,C),this._contextPlugins.set(C,_),_.pluginName&&this._availablePlugins.set(_.pluginName,_)}*[Symbol.iterator](){for(const r of this._plugins)"function"==typeof r[0]&&(yield r)}get(r){const c=this._plugins.get(r);if(!c){let u=r;throw"function"==typeof r&&(u=r.pluginName||r.name),new at("plugincollection-plugin-not-loaded",this._context,{plugin:u})}return c}has(r){return this._plugins.has(r)}init(r,c=[],u=[]){const _=this,C=this._context;(function Ue(qe,pn=new Set){qe.forEach(Ln=>{N(Ln)&&(pn.has(Ln)||(pn.add(Ln),Ln.pluginName&&!_._availablePlugins.has(Ln.pluginName)&&_._availablePlugins.set(Ln.pluginName,Ln),Ln.requires&&Ue(Ln.requires,pn)))})})(r),Dt(r);const M=[...function Ue(qe,pn=new Set){return qe.map(Ln=>N(Ln)?Ln:_._availablePlugins.get(Ln)).reduce((Ln,pi)=>pn.has(pi)?Ln:(pn.add(pi),pi.requires&&(Dt(pi.requires,pi),Ue(pi.requires,pn).forEach(Ri=>Ln.add(Ri))),Ln.add(pi)),new Set)}(r.filter(Ue=>!K(Ue,c)))];!function(Ue,qe){for(const pn of qe){if("function"!=typeof pn)throw new at("plugincollection-replace-plugin-invalid-type",null,{pluginItem:pn});const Ln=pn.pluginName;if(!Ln)throw new at("plugincollection-replace-plugin-missing-name",null,{pluginItem:pn});if(pn.requires&&pn.requires.length)throw new at("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:Ln});const pi=_._availablePlugins.get(Ln);if(!pi)throw new at("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:Ln});const Ri=Ue.indexOf(pi);if(-1===Ri){if(_._contextPlugins.has(pi))return;throw new at("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:Ln})}if(pi.requires&&pi.requires.length)throw new at("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:Ln});Ue.splice(Ri,1,pn),_._availablePlugins.set(Ln,pn)}}(M,u);const E=M.map(Ue=>{let qe=_._contextPlugins.get(Ue);return qe=qe||new Ue(C),_._add(Ue,qe),qe});return me(E,"init").then(()=>me(E,"afterInit")).then(()=>E);function N(Ue){return"function"==typeof Ue}function j(Ue){return N(Ue)&&!!Ue.isContextPlugin}function K(Ue,qe){return qe.some(pn=>pn===Ue||dt(Ue)===pn||dt(pn)===Ue)}function dt(Ue){return N(Ue)?Ue.pluginName||Ue.name:Ue}function Dt(Ue,qe=null){Ue.map(pn=>N(pn)?pn:_._availablePlugins.get(pn)||pn).forEach(pn=>{(function(Ln,pi){if(!N(Ln))throw pi?new at("plugincollection-soft-required",C,{missingPlugin:Ln,requiredBy:dt(pi)}):new at("plugincollection-plugin-not-found",C,{plugin:Ln})})(pn,qe),function(Ln,pi){if(j(pi)&&!j(Ln))throw new at("plugincollection-context-required",C,{plugin:dt(Ln),requiredBy:dt(pi)})}(pn,qe),function(Ln,pi){if(pi&&K(Ln,c))throw new at("plugincollection-required",C,{plugin:dt(Ln),requiredBy:dt(pi)})}(pn,qe)})}function me(Ue,qe){return Ue.reduce((pn,Ln)=>Ln[qe]?_._contextPlugins.has(Ln)?pn:pn.then(Ln[qe].bind(Ln)):pn,Promise.resolve())}}destroy(){const r=[];for(const[,c]of this)"function"!=typeof c.destroy||this._contextPlugins.has(c)||r.push(c.destroy());return Promise.all(r)}_add(r,c){this._plugins.set(r,c);const u=r.pluginName;if(u){if(this._plugins.has(u))throw new at("plugincollection-plugin-name-conflict",null,{pluginName:u,plugin1:this._plugins.get(u).constructor,plugin2:r});this._plugins.set(u,c)}}}class k2{constructor(r){this._contextOwner=null,this.config=new nr(r,this.constructor.defaultConfig);const c=this.constructor.builtinPlugins;this.config.define("plugins",c),this.plugins=new If(this,c);const u=this.config.get("language")||{};this.locale=new Tu({uiLanguage:"string"==typeof u?u:u.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new ec}initPlugins(){const r=this.config.get("plugins")||[],c=this.config.get("substitutePlugins")||[];for(const u of r.concat(c)){if("function"!=typeof u)throw new at("context-initplugins-constructor-only",null,{Plugin:u});if(!0!==u.isContextPlugin)throw new at("context-initplugins-invalid-plugin",null,{Plugin:u})}return this.plugins.init(r,[],c)}destroy(){return Promise.all(Array.from(this.editors,r=>r.destroy())).then(()=>this.plugins.destroy())}_addEditor(r,c){if(this._contextOwner)throw new at("context-addeditor-private-context");this.editors.add(r),c&&(this._contextOwner=r)}_removeEditor(r){return this.editors.has(r)&&this.editors.remove(r),this._contextOwner===r?this.destroy():Promise.resolve()}_getEditorConfig(){const r={};for(const c of this.config.names())["plugins","removePlugins","extraPlugins"].includes(c)||(r[c]=this.config.get(c));return r}static create(r){return new Promise(c=>{const u=new this(r);c(u.initPlugins().then(()=>u))})}}class w_ extends(Ze()){constructor(r){super(),this.context=r}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class Wp extends $c{constructor(r){super(),this.editor=r}set(r,c,u={}){if("string"==typeof c){const _=c;c=(C,M)=>{this.editor.execute(_),M()}}super.set(r,c,u)}}var gp=v(4717);Fo()(gp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Z=new WeakMap;let Tt=!1;function B({view:m,element:r,text:c,isDirectHost:u=!0,keepOnFocus:_=!1}){const C=m.document;function M(E){Z.get(C).set(r,{text:E,isDirectHost:u,keepOnFocus:_,hostElement:u?r:null}),m.change(N=>te(C,N))}Z.has(C)||(Z.set(C,new Map),C.registerPostFixer(E=>te(C,E)),C.on("change:isComposing",()=>{m.change(E=>te(C,E))},{priority:"high"})),r.is("editableElement")&&r.on("change:placeholder",(E,N,j)=>{M(j)}),r.placeholder?M(r.placeholder):c&&M(c),c&&(Tt||Zt("enableplaceholder-deprecated-text-option"),Tt=!0)}function te(m,r){const c=Z.get(m),u=[];let _=!1;for(const[C,M]of c)M.isDirectHost&&(u.push(C),be(r,C,M)&&(_=!0));for(const[C,M]of c){if(M.isDirectHost)continue;const E=rn(C);E&&(u.includes(E)||(M.hostElement=E,be(r,C,M)&&(_=!0)))}return _}function be(m,r,c){const{text:u,isDirectHost:_,hostElement:C}=c;let M=!1;return C.getAttribute("data-placeholder")!==u&&(m.setAttribute("data-placeholder",u,C),M=!0),(_||1==r.childCount)&&function(E,N){if(!E.isAttached()||Array.from(E.getChildren()).some(dt=>!dt.is("uiElement")))return!1;const j=E.document,K=j.selection.anchor;return!(j.isComposing&&K&&K.parent===E||!N&&j.isFocused&&(!K||K.parent===E))}(C,c.keepOnFocus)?(E=m,!(N=C).hasClass("ck-placeholder")&&(E.addClass("ck-placeholder",N),!0)&&(M=!0)):function ht(m,r){return!!r.hasClass("ck-placeholder")&&(m.removeClass("ck-placeholder",r),!0)}(m,C)&&(M=!0),M;var E,N}function rn(m){if(m.childCount){const r=m.getChild(0);if(r.is("element")&&!r.is("uiElement")&&!r.is("attributeElement"))return r}return null}class oi{is(){throw new Error("is() method is abstract")}}const Mi=function(m){return Pi(m,4)};class Ro extends(Ne(oi)){constructor(r){super(),this.document=r,this.parent=null}get index(){let r;if(!this.parent)return null;if(-1==(r=this.parent.getChildIndex(this)))throw new at("view-node-not-found-in-parent",this);return r}get nextSibling(){const r=this.index;return null!==r&&this.parent.getChild(r+1)||null}get previousSibling(){const r=this.index;return null!==r&&this.parent.getChild(r-1)||null}get root(){let r=this;for(;r.parent;)r=r.parent;return r}isAttached(){return this.root.is("rootElement")}getPath(){const r=[];let c=this;for(;c.parent;)r.unshift(c.index),c=c.parent;return r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}getCommonAncestor(r,c={}){const u=this.getAncestors(c),_=r.getAncestors(c);let C=0;for(;u[C]==_[C]&&u[C];)C++;return 0===C?null:u[C-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=tt(c,u);switch(_){case"prefix":return!0;case"extension":return!1;default:return c[_]r.data.length)throw new at("view-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.data.length)throw new at("view-textproxy-wrong-length",this);this.data=r.data.substring(c,c+u),this.offsetInText=c}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(r={}){const c=[];let u=r.includeSelf?this.textNode:this.parent;for(;null!==u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}}Ha.prototype.is=function(m){return"$textProxy"===m||"view:$textProxy"===m||"textProxy"===m||"view:textProxy"===m};class ds{constructor(...r){this._patterns=[],this.add(...r)}add(...r){for(let c of r)("string"==typeof c||c instanceof RegExp)&&(c={name:c}),this._patterns.push(c)}match(...r){for(const c of r)for(const u of this._patterns){const _=Yd(c,u);if(_)return{element:c,pattern:u,match:_}}return null}matchAll(...r){const c=[];for(const u of r)for(const _ of this._patterns){const C=Yd(u,_);C&&c.push({element:u,pattern:_,match:C})}return c.length>0?c:null}getElementName(){if(1!==this._patterns.length)return null;const r=this._patterns[0],c=r.name;return"function"==typeof r||!c||c instanceof RegExp?null:c}}function Yd(m,r){if("function"==typeof r)return r(m);const c={};return r.name&&(c.name=(_=m.name,(u=r.name)instanceof RegExp?!!_.match(u):u===_),!c.name)||r.attributes&&(c.attributes=function(u,_){const C=new Set(_.getAttributeKeys());return en(u)?(void 0!==u.style&&Zt("matcher-pattern-deprecated-attributes-style-key",u),void 0!==u.class&&Zt("matcher-pattern-deprecated-attributes-class-key",u)):(C.delete("style"),C.delete("class")),Vd(u,C,M=>_.getAttribute(M))}(r.attributes,m),!c.attributes)||r.classes&&(c.classes=function(u,_){return Vd(u,_.getClassNames(),()=>{})}(r.classes,m),!c.classes)||r.styles&&(c.styles=function(u,_){return Vd(u,_.getStyleNames(!0),C=>_.getStyle(C))}(r.styles,m),!c.styles)?null:c;var u,_}function Vd(m,r,c){const u=(M=m,Array.isArray(M)?M.map(E=>en(E)?(void 0!==E.key&&void 0!==E.value||Zt("matcher-pattern-missing-key-or-value",E),[E.key,E.value]):[E,!0]):en(M)?Object.entries(M):[[M,!0]]),_=Array.from(r),C=[];var M;if(u.forEach(([M,E])=>{_.forEach(N=>{var j,K;K=N,(!0===(j=M)||j===K||j instanceof RegExp&&K.match(j))&&function(j,K,dt){if(!0===j)return!0;const Dt=dt(K);return j===Dt||j instanceof RegExp&&!!String(Dt).match(j)}(E,N,c)&&C.push(N)})}),u.length&&!(C.length_?0:_+r),(c=c>_?_:c)<0&&(c+=_),_=r>c?0:c-r>>>0,r>>>=0;for(var C=Array(_);++u<_;)C[u]=m[u+r];return C},q1=function(m,r,c){var u=null==m?void 0:ml(m,r);return void 0===u?c:u},S2=function(m,r,c){(void 0!==c&&!Zn(m[r],c)||void 0===c&&!(r in m))&&Cl(m,r,c)},M_=function(m,r){if(("constructor"!==r||"function"!=typeof m[r])&&"__proto__"!=r)return m[r]},Mg=function m(r,c,u,_,C){r!==c&&function(r,c,u){for(var _=-1,C=Object(r),M=u(r),E=M.length;E--;){var N=M[++_];if(!1===c(C[N],N,C))break}}(c,function(M,E){if(C||(C=new iu),Kt(M))!function(m,r,c,u,_,C,M){var E=M_(m,c),N=M_(r,c),j=M.get(N);if(j)S2(m,c,j);else{var K=C?C(E,N,c+"",m,r,M):void 0,dt=void 0===K;if(dt){var Dt=je(N),me=!Dt&&ks(N),Ue=!Dt&&!me&&Jc(N);K=N,Dt||me||Ue?je(E)?K=E:function(m){return gn(m)&&Ac(m)}(E)?K=uc(E):me?(dt=!1,K=aa(N,!0)):Ue?(dt=!1,K=ft(N,!0)):K=[]:en(N)||Hl(N)?(K=E,Hl(E)?K=function(m){return Vs(m,ls(m))}(E):Kt(E)&&!No(E)||(K=ul(N))):dt=!1}dt&&(M.set(N,K),_(K,N,u,C,M),M.delete(N)),S2(m,c,K)}}(r,c,E,u,m,_,C);else{var N=_?_(M_(r,E),M,E+"",r,c,C):void 0;void 0===N&&(N=M),S2(r,E,N)}},ls)},ku=function(m){return m},I3=function(m,r,c){switch(c.length){case 0:return m.call(r);case 1:return m.call(r,c[0]);case 2:return m.call(r,c[0],c[1]);case 3:return m.call(r,c[0],c[1],c[2])}return m.apply(r,c)};var vp=Math.max;const qf=function(m){return function(){return m}},kg=vc?function(m,r){return vc(m,"toString",{configurable:!0,enumerable:!1,value:qf(r),writable:!0})}:ku;var Dg=Date.now;const k_=function(m){var r=0,c=0;return function(){var u=Dg(),_=16-(u-c);if(c=u,_>0){if(++r>=800)return arguments[0]}else r=0;return m.apply(void 0,arguments)}}(kg),Rf=function(m){return function(m,r){return k_(function(m,r,c){return r=vp(void 0===r?m.length-1:r,0),function(){for(var u=arguments,_=-1,C=vp(u.length-r,0),M=Array(C);++_1?c[_-1]:void 0,M=_>2?c[2]:void 0;for(C=m.length>3&&"function"==typeof C?(_--,C):void 0,M&&function(m,r,c){if(!Kt(c))return!1;var u=typeof r;return!!("number"==u?Ac(c)&&ou(r,c.length):"string"==u&&r in c)&&Zn(c[r],m)}(c[0],c[1],M)&&(C=_<3?void 0:C,_=1),r=Object(r);++u<_;){var E=c[u];E&&m(r,E,u,C)}return r})},O2=Rf(function(m,r,c){Mg(m,r,c)});class Du{constructor(r){this._styles={},this._styleProcessor=r}get isEmpty(){const r=Object.entries(this._styles);return!Array.from(r).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(r){this.clear();const c=Array.from(function(u){let _=null,C=0,M=0,E=null;const N=new Map;if(""===u)return N;";"!=u.charAt(u.length-1)&&(u+=";");for(let j=0;ju===r);return Array.isArray(c)}set(r,c){if(Kt(r))for(const[u,_]of Object.entries(r))this._styleProcessor.toNormalizedForm(u,_,this._styles);else this._styleProcessor.toNormalizedForm(r,c,this._styles)}remove(r){const c=Hf(r);(function(m,r){null==m||function(m,r){null==(m=function(m,r){return r.length<2?m:ml(m,P2(r,0,-1))}(m,r=Zu(r,m)))||delete m[U_(function(m){var r=null==m?0:m.length;return r?m[r-1]:void 0}(r))]}(m,r)})(this._styles,c),delete this._styles[r],this._cleanEmptyObjectsOnPath(c)}getNormalized(r){return this._styleProcessor.getNormalized(r,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(r=>r.join(":")).sort().join(";")+";"}getAsString(r){if(this.isEmpty)return;if(this._styles[r]&&!Kt(this._styles[r]))return this._styles[r];const c=this._styleProcessor.getReducedForm(r,this._styles).find(([u])=>u===r);return Array.isArray(c)?c[1]:void 0}getStyleNames(r=!1){return this.isEmpty?[]:r?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([c])=>c)}clear(){this._styles={}}_getStylesEntries(){const r=[],c=Object.keys(this._styles);for(const u of c)r.push(...this._styleProcessor.getReducedForm(u,this._styles));return r}_cleanEmptyObjectsOnPath(r){const c=r.split(".");if(!(c.length>1))return;const u=c.splice(0,c.length-1).join("."),_=q1(this._styles,u);!_||!Array.from(Object.keys(_)).length&&this.remove(u)}}class Og{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(r,c,u){if(Kt(c))D_(u,Hf(r),c);else if(this._normalizers.has(r)){const _=this._normalizers.get(r),{path:C,value:M}=_(c);D_(u,C,M)}else D_(u,r,c)}getNormalized(r,c){if(!r)return O2({},c);if(void 0!==c[r])return c[r];if(this._extractors.has(r)){const u=this._extractors.get(r);if("string"==typeof u)return q1(c,u);const _=u(r,c);if(_)return _}return q1(c,Hf(r))}getReducedForm(r,c){const u=this.getNormalized(r,c);return void 0===u?[]:this._reducers.has(r)?this._reducers.get(r)(u):[[r,u]]}getStyleNames(r){const c=Array.from(this._consumables.keys()).filter(_=>{const C=this.getNormalized(_,r);return C&&"object"==typeof C?Object.keys(C).length:C}),u=new Set([...c,...Object.keys(r)]);return Array.from(u.values())}getRelatedStyles(r){return this._consumables.get(r)||[]}setNormalizer(r,c){this._normalizers.set(r,c)}setExtractor(r,c){this._extractors.set(r,c)}setReducer(r,c){this._reducers.set(r,c)}setStyleRelation(r,c){this._mapStyleNames(r,c);for(const u of c)this._mapStyleNames(u,[r])}_mapStyleNames(r,c){this._consumables.has(r)||this._consumables.set(r,[]),this._consumables.get(r).push(...c)}}function Hf(m){return m.replace("-",".")}function D_(m,r,c){let u=c;Kt(c)&&(u=O2({},q1(m,r),c)),function(m,r,c){null==m||function(m,r,c,u){if(!Kt(m))return m;for(var _=-1,C=(r=Zu(r,m)).length,M=C-1,E=m;null!=E&&++_0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(r){if("class"==r)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==r){const c=this._styles.toString();return""==c?void 0:c}return this._attrs.get(r)}hasAttribute(r){return"class"==r?this._classes.size>0:"style"==r?!this._styles.isEmpty:this._attrs.has(r)}isSimilar(r){if(!(r instanceof Xc))return!1;if(this===r)return!0;if(this.name!=r.name||this._attrs.size!==r._attrs.size||this._classes.size!==r._classes.size||this._styles.size!==r._styles.size)return!1;for(const[c,u]of this._attrs)if(!r._attrs.has(c)||r._attrs.get(c)!==u)return!1;for(const c of this._classes)if(!r._classes.has(c))return!1;for(const c of this._styles.getStyleNames())if(!r._styles.has(c)||r._styles.getAsString(c)!==this._styles.getAsString(c))return!1;return!0}hasClass(...r){for(const c of r)if(!this._classes.has(c))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(r){return this._styles.getAsString(r)}getNormalizedStyle(r){return this._styles.getNormalized(r)}getStyleNames(r){return this._styles.getStyleNames(r)}hasStyle(...r){for(const c of r)if(!this._styles.has(c))return!1;return!0}findAncestor(...r){const c=new ds(...r);let u=this.parent;for(;u&&!u.is("documentFragment");){if(c.match(u))return u;u=u.parent}return null}getCustomProperty(r){return this._customProperties.get(r)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const r=Array.from(this._classes).sort().join(","),c=this._styles.toString(),u=Array.from(this._attrs).map(_=>`${_[0]}="${_[1]}"`).sort().join(" ");return this.name+(""==r?"":` class="${r}"`)+(c?` style="${c}"`:"")+(""==u?"":` ${u}`)}shouldRenderUnsafeAttribute(r){return this._unsafeAttributesToRender.includes(r)}_clone(r=!1){const c=[];if(r)for(const _ of this.getChildren())c.push(_._clone(r));const u=new this.constructor(this.document,this.name,this._attrs,c);return u._classes=new Set(this._classes),u._styles.set(this._styles.getNormalized()),u._customProperties=new Map(this._customProperties),u.getFillerOffset=this.getFillerOffset,u._unsafeAttributesToRender=this._unsafeAttributesToRender,u}_appendChild(r){return this._insertChild(this.childCount,r)}_insertChild(r,c){this._fireChange("children",this);let u=0;const _=(C=this.document,"string"==typeof(M=c)?[new Eo(C,M)]:(et(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(C,E):E instanceof Ha?new Eo(C,E.data):E)));var C,M;for(const C of _)null!==C.parent&&C._remove(),C.parent=this,C.document=this.document,this._children.splice(r,0,C),r++,u++;return u}_removeChildren(r,c=1){this._fireChange("children",this);for(let u=r;u0&&(this._classes.clear(),!0):"style"==r?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(r)}_addClass(r){this._fireChange("attributes",this);for(const c of Ss(r))this._classes.add(c)}_removeClass(r){this._fireChange("attributes",this);for(const c of Ss(r))this._classes.delete(c)}_setStyle(r,c){this._fireChange("attributes",this),"string"!=typeof r?this._styles.set(r):this._styles.set(r,c)}_removeStyle(r){this._fireChange("attributes",this);for(const c of Ss(r))this._styles.remove(c)}_setCustomProperty(r,c){this._customProperties.set(r,c)}_removeCustomProperty(r){return this._customProperties.delete(r)}}function zf(m,r){const c=r.split(/\s+/);m.clear(),c.forEach(u=>m.add(u))}Xc.prototype.is=function(m,r){return r?r===this.name&&("element"===m||"view:element"===m):"element"===m||"view:element"===m||"node"===m||"view:node"===m};class xp extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=Bf}}function Bf(){const m=[...this.getChildren()],r=m[this.childCount-1];if(r&&r.is("element","br"))return this.childCount;for(const c of m)if(!c.is("uiElement"))return null;return this.childCount}xp.prototype.is=function(m,r){return r?r===this.name&&("containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class Fm extends(Ze(xp)){constructor(r,c,u,_){super(r,c,u,_),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(r),this.bind("isFocused").to(r,"isFocused",C=>C&&r.selection.editableElement==this),this.listenTo(r.selection,"change",()=>{this.isFocused=r.isFocused&&r.selection.editableElement==this})}destroy(){this.stopListening()}}Fm.prototype.is=function(m,r){return r?r===this.name&&("editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};const Nm=Symbol("rootName");class qm extends Fm{constructor(r,c){super(r,c),this.rootName="main"}get rootName(){return this.getCustomProperty(Nm)}set rootName(r){this._setCustomProperty(Nm,r)}set _name(r){this.name=r}}qm.prototype.is=function(m,r){return r?r===this.name&&("rootElement"===m||"view:rootElement"===m||"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"rootElement"===m||"view:rootElement"===m||"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class Kp{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new at("view-tree-walker-no-start-position",null);if(r.direction&&"forward"!=r.direction&&"backward"!=r.direction)throw new at("view-tree-walker-unknown-direction",r.startPosition,{direction:r.direction});this.boundaries=r.boundaries||null,this._position=Uo._createAt(r.startPosition?r.startPosition:r.boundaries["backward"==r.direction?"end":"start"]),this.direction=r.direction||"forward",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(r){let c,u;do{u=this.position,c=this.next()}while(!c.done&&r(c.value));c.done||(this._position=u)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let r=this.position.clone();const c=this.position,u=r.parent;if(null===u.parent&&r.offset===u.childCount)return{done:!0,value:void 0};if(u===this._boundaryEndParent&&r.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let _;if(u instanceof Eo){if(r.isAtEnd)return this._position=Uo._createAfter(u),this._next();_=u.data[r.offset]}else _=u.getChild(r.offset);if(_ instanceof Xc){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(r))return{done:!0,value:void 0};r.offset++}else r=new Uo(_,0);return this._position=r,this._formatReturnValue("elementStart",_,c,r,1)}if(_ instanceof Eo){if(this.singleCharacters)return r=new Uo(_,0),this._position=r,this._next();let C,M=_.data.length;return _==this._boundaryEndParent?(M=this.boundaries.end.offset,C=new Ha(_,0,M),r=Uo._createAfter(C)):(C=new Ha(_,0,_.data.length),r.offset++),this._position=r,this._formatReturnValue("text",C,c,r,M)}if("string"==typeof _){let C;C=this.singleCharacters?1:(u===this._boundaryEndParent?this.boundaries.end.offset:u.data.length)-r.offset;const M=new Ha(u,r.offset,C);return r.offset+=C,this._position=r,this._formatReturnValue("text",M,c,r,C)}return r=Uo._createAfter(u),this._position=r,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",u,c,r)}_previous(){let r=this.position.clone();const c=this.position,u=r.parent;if(null===u.parent&&0===r.offset)return{done:!0,value:void 0};if(u==this._boundaryStartParent&&r.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let _;if(u instanceof Eo){if(r.isAtStart)return this._position=Uo._createBefore(u),this._previous();_=u.data[r.offset-1]}else _=u.getChild(r.offset-1);if(_ instanceof Xc)return this.shallow?(r.offset--,this._position=r,this._formatReturnValue("elementStart",_,c,r,1)):(r=new Uo(_,_.childCount),this._position=r,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",_,c,r));if(_ instanceof Eo){if(this.singleCharacters)return r=new Uo(_,_.data.length),this._position=r,this._previous();let C,M=_.data.length;if(_==this._boundaryStartParent){const E=this.boundaries.start.offset;C=new Ha(_,E,_.data.length-E),M=C.data.length,r=Uo._createBefore(C)}else C=new Ha(_,0,_.data.length),r.offset--;return this._position=r,this._formatReturnValue("text",C,c,r,M)}if("string"==typeof _){let C;C=this.singleCharacters?1:r.offset-(u===this._boundaryStartParent?this.boundaries.start.offset:0),r.offset-=C;const M=new Ha(u,r.offset,C);return this._position=r,this._formatReturnValue("text",M,c,r,C)}return r=Uo._createBefore(u),this._position=r,this._formatReturnValue("elementStart",u,c,r,1)}_formatReturnValue(r,c,u,_,C){return c instanceof Ha&&(c.offsetInText+c.data.length==c.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?u=Uo._createAfter(c.textNode):(_=Uo._createAfter(c.textNode),this._position=_)),0===c.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?u=Uo._createBefore(c.textNode):(_=Uo._createBefore(c.textNode),this._position=_))),{done:!1,value:{type:r,item:c,previousPosition:u,nextPosition:_,length:C}}}}class Uo extends oi{constructor(r,c){super(),this.parent=r,this.offset=c}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const r=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===r}get root(){return this.parent.root}get editableElement(){let r=this.parent;for(;!(r instanceof Fm);){if(!r.parent)return null;r=r.parent}return r}getShiftedBy(r){const c=Uo._createAt(this),u=c.offset+r;return c.offset=u<0?0:u,c}getLastMatchingPosition(r,c={}){c.startPosition=this;const u=new Kp(c);return u.skip(r),u.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(r){const c=this.getAncestors(),u=r.getAncestors();let _=0;for(;c[_]==u[_]&&c[_];)_++;return 0===_?null:c[_-1]}isEqual(r){return this.parent==r.parent&&this.offset==r.offset}isBefore(r){return"before"==this.compareWith(r)}isAfter(r){return"after"==this.compareWith(r)}compareWith(r){if(this.root!==r.root)return"different";if(this.isEqual(r))return"same";const c=this.parent.is("node")?this.parent.getPath():[],u=r.parent.is("node")?r.parent.getPath():[];c.push(this.offset),u.push(r.offset);const _=tt(c,u);switch(_){case"prefix":return"before";case"extension":return"after";default:return c[_]0?new this(u,_):new this(_,u)}static _createIn(r){return this._createFromParentsAndOffsets(r,0,r,r.childCount)}static _createOn(r){const c=r.is("$textProxy")?r.offsetSize:1;return this._createFromPositionAndShift(Uo._createBefore(r),c)}}function Us(m){return!(!m.item.is("attributeElement")&&!m.item.is("uiElement"))}Za.prototype.is=function(m){return"range"===m||"view:range"===m};class ju extends(Ne(oi)){constructor(...r){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",r.length&&this.setTo(...r)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.end:r.start).clone()}get focus(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.start:r.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const r of this._ranges)yield r.clone()}getFirstRange(){let r=null;for(const c of this._ranges)r&&!c.start.isBefore(r.start)||(r=c);return r?r.clone():null}getLastRange(){let r=null;for(const c of this._ranges)r&&!c.end.isAfter(r.end)||(r=c);return r?r.clone():null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}isEqual(r){if(this.isFake!=r.isFake||this.isFake&&this.fakeSelectionLabel!=r.fakeSelectionLabel||this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const c of this._ranges){let u=!1;for(const _ of r._ranges)if(c.isEqual(_)){u=!0;break}if(!u)return!1}return!0}isSimilar(r){if(this.isBackward!=r.isBackward)return!1;const c=xt(this.getRanges());if(c!=xt(r.getRanges()))return!1;if(0==c)return!0;for(let u of this.getRanges()){u=u.getTrimmed();let _=!1;for(let C of r.getRanges())if(C=C.getTrimmed(),u.start.isEqual(C.start)&&u.end.isEqual(C.end)){_=!0;break}if(!_)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...r){let[c,u,_]=r;if("object"==typeof u&&(_=u,u=void 0),null===c)this._setRanges([]),this._setFakeOptions(_);else if(c instanceof ju||c instanceof P_)this._setRanges(c.getRanges(),c.isBackward),this._setFakeOptions({fake:c.isFake,label:c.fakeSelectionLabel});else if(c instanceof Za)this._setRanges([c],_&&_.backward),this._setFakeOptions(_);else if(c instanceof Uo)this._setRanges([new Za(c)]),this._setFakeOptions(_);else if(c instanceof Ro){const C=!!_&&!!_.backward;let M;if(void 0===u)throw new at("view-selection-setto-required-second-parameter",this);M="in"==u?Za._createIn(c):"on"==u?Za._createOn(c):new Za(Uo._createAt(c,u)),this._setRanges([M],C),this._setFakeOptions(_)}else{if(!et(c))throw new at("view-selection-setto-not-selectable",this);this._setRanges(c,_&&_.backward),this._setFakeOptions(_)}this.fire("change")}setFocus(r,c){if(null===this.anchor)throw new at("view-selection-setfocus-no-ranges",this);const u=Uo._createAt(r,c);if("same"==u.compareWith(this.focus))return;const _=this.anchor;this._ranges.pop(),"before"==u.compareWith(_)?this._addRange(new Za(u,_),!0):this._addRange(new Za(_,u)),this.fire("change")}_setRanges(r,c=!1){r=Array.from(r),this._ranges=[];for(const u of r)this._addRange(u);this._lastRangeBackward=!!c}_setFakeOptions(r={}){this._isFake=!!r.fake,this._fakeSelectionLabel=r.fake&&r.label||""}_addRange(r,c=!1){if(!(r instanceof Za))throw new at("view-selection-add-range-not-range",this);this._pushRange(r),this._lastRangeBackward=!!c}_pushRange(r){for(const c of this._ranges)if(r.isIntersecting(c))throw new at("view-selection-range-intersects",this,{addedRange:r,intersectingRange:c});this._ranges.push(new Za(r.start,r.end))}}ju.prototype.is=function(m){return"selection"===m||"view:selection"===m};class P_ extends(Ne(oi)){constructor(...r){super(),this._selection=new ju,this._selection.delegate("change").to(this),r.length&&this._selection.setTo(...r)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(r){return this._selection.isEqual(r)}isSimilar(r){return this._selection.isSimilar(r)}_setTo(...r){this._selection.setTo(...r)}_setFocus(r,c){this._selection.setFocus(r,c)}}P_.prototype.is=function(m){return"selection"===m||"documentSelection"==m||"view:selection"==m||"view:documentSelection"==m};class Cp extends ct{constructor(r,c,u){super(r,c),this.startRange=u,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const Rm=Symbol("bubbling contexts");function Ad(m){return class extends m{fire(r,...c){try{const u=r instanceof ct?r:new ct(this,r),_=Yf(this);if(!_.size)return;if(ps(u,"capturing",this),oe(_,"$capture",u,...c))return u.return;const C=u.startRange||this.selection.getFirstRange(),M=C?C.getContainedElement():null,E=!!M&&Boolean(Eg(_,M));let N=M||function(j){if(!j)return null;const K=j.start.parent,dt=j.end.parent,Dt=K.getPath(),me=dt.getPath();return Dt.length>me.length?K:dt}(C);if(ps(u,"atTarget",N),!E){if(oe(_,"$text",u,...c))return u.return;ps(u,"bubbling",N)}for(;N;){if(N.is("rootElement")){if(oe(_,"$root",u,...c))return u.return}else if(N.is("element")&&oe(_,N.name,u,...c))return u.return;if(oe(_,N,u,...c))return u.return;N=N.parent,ps(u,"bubbling",N)}return ps(u,"bubbling",this),oe(_,"$document",u,...c),u.return}catch(u){at.rethrowUnexpectedError(u,this)}}_addEventListener(r,c,u){const _=Ss(u.context||"$document"),C=Yf(this);for(const M of _){let E=C.get(M);E||(E=new(Ne()),C.set(M,E)),this.listenTo(E,r,c,u)}}_removeEventListener(r,c){const u=Yf(this);for(const _ of u.values())this.stopListening(_,r,c)}}}{const m=Ad(Object);["fire","_addEventListener","_removeEventListener"].forEach(r=>{Ad[r]=m.prototype[r]})}function ps(m,r,c){m instanceof Cp&&(m._eventPhase=r,m._currentTarget=c)}function oe(m,r,c,...u){const _="string"==typeof r?m.get(r):Eg(m,r);return!!_&&(_.fire(c,...u),c.stop.called)}function Eg(m,r){for(const[c,u]of m)if("function"==typeof c&&c(r))return u;return null}function Yf(m){return m[Rm]||(m[Rm]=new Map),m[Rm]}class Xp extends(Ad(Ze())){constructor(r){super(),this._postFixers=new Set,this.selection=new P_,this.roots=new ec({idProperty:"rootName"}),this.stylesProcessor=r,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(r="main"){return this.roots.get(r)}registerPostFixer(r){this._postFixers.add(r)}destroy(){this.roots.map(r=>r.destroy()),this.stopListening()}_callPostFixers(r){let c=!1;do{for(const u of this._postFixers)if(c=u(r),c)break}while(c)}}class tm extends Xc{constructor(r,c,u,_){super(r,c,u,_),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=A1}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new at("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(r){return null!==this.id||null!==r.id?this.id===r.id:super.isSimilar(r)&&this.priority==r.priority}_clone(r=!1){const c=super._clone(r);return c._priority=this._priority,c._id=this._id,c}}function A1(){if(E2(this))return null;let m=this.parent;for(;m&&m.is("attributeElement");){if(E2(m)>1)return null;m=m.parent}return!m||E2(m)>1?null:this.childCount}function E2(m){return Array.from(m.getChildren()).filter(r=>!r.is("uiElement")).length}tm.DEFAULT_PRIORITY=10,tm.prototype.is=function(m,r){return r?r===this.name&&("attributeElement"===m||"view:attributeElement"===m||"element"===m||"view:element"===m):"attributeElement"===m||"view:attributeElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class I2 extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=Ig}_insertChild(r,c){if(c&&(c instanceof Ro||Array.from(c).length>0))throw new at("view-emptyelement-cannot-add",[this,c]);return 0}}function Ig(){return null}I2.prototype.is=function(m,r){return r?r===this.name&&("emptyElement"===m||"view:emptyElement"===m||"element"===m||"view:element"===m):"emptyElement"===m||"view:emptyElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class S_ extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=jr}_insertChild(r,c){if(c&&(c instanceof Ro||Array.from(c).length>0))throw new at("view-uielement-cannot-add",[this,c]);return 0}render(r,c){return this.toDomElement(r)}toDomElement(r){const c=r.createElement(this.name);for(const u of this.getAttributeKeys())c.setAttribute(u,this.getAttribute(u));return c}}function jr(){return null}S_.prototype.is=function(m,r){return r?r===this.name&&("uiElement"===m||"view:uiElement"===m||"element"===m||"view:element"===m):"uiElement"===m||"view:uiElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class yd extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=L_}_insertChild(r,c){if(c&&(c instanceof Ro||Array.from(c).length>0))throw new at("view-rawelement-cannot-add",[this,c]);return 0}render(r,c){}}function L_(){return null}yd.prototype.is=function(m,r){return r?r===this.name&&("rawElement"===m||"view:rawElement"===m||"element"===m||"view:element"===m):"rawElement"===m||"view:rawElement"===m||m===this.name||m==="view:"+this.name||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class Td extends(Ne(oi)){constructor(r,c){super(),this._children=[],this._customProperties=new Map,this.document=r,c&&this._insertChild(0,c)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}get name(){}getCustomProperty(r){return this._customProperties.get(r)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(r){return this._insertChild(this.childCount,r)}getChild(r){return this._children[r]}getChildIndex(r){return this._children.indexOf(r)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(r,c){this._fireChange("children",this);let u=0;const _=(C=this.document,"string"==typeof(M=c)?[new Eo(C,M)]:(et(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(C,E):E instanceof Ha?new Eo(C,E.data):E)));var C,M;for(const C of _)null!==C.parent&&C._remove(),C.parent=this,this._children.splice(r,0,C),r++,u++;return u}_removeChildren(r,c=1){this._fireChange("children",this);for(let u=r;u{const N=M[M.length-1],j=!E.is("uiElement");return N&&N.breakAttributes==j?N.nodes.push(E):M.push({breakAttributes:j,nodes:[E]}),M},[]);let _=null,C=r;for(const{nodes:M,breakAttributes:E}of u){const N=this._insertNodes(C,M,E);_||(_=N.start),C=N.end}return _?new Za(_,C):new Za(r)}remove(r){const c=r instanceof Za?r:Za._createOn(r);if(Ap(c,this.document),c.isCollapsed)return new Td(this.document);const{start:u,end:_}=this._breakAttributesRange(c,!0),E=u.parent._removeChildren(u.offset,_.offset-u.offset);for(const j of E)this._removeFromClonedElementsGroup(j);const N=this.mergeAttributes(u);return c.start=N,c.end=N.clone(),new Td(this.document,E)}clear(r,c){Ap(r,this.document);const u=r.getWalker({direction:"backward",ignoreElementEnd:!0});for(const _ of u){const C=_.item;let M;if(C.is("element")&&c.isSimilar(C))M=Za._createOn(C);else if(!_.nextPosition.isAfter(r.start)&&C.is("$textProxy")){const E=C.getAncestors().find(N=>N.is("element")&&c.isSimilar(N));E&&(M=Za._createIn(E))}M&&(M.end.isAfter(r.end)&&(M.end=r.end),M.start.isBefore(r.start)&&(M.start=r.start),this.remove(M))}}move(r,c){let u;if(c.isAfter(r.end)){const _=(c=this._breakAttributes(c,!0)).parent,C=_.childCount;r=this._breakAttributesRange(r,!0),u=this.remove(r),c.offset+=_.childCount-C}else u=this.remove(r);return this.insert(c,u)}wrap(r,c){if(!(c instanceof tm))throw new at("view-writer-wrap-invalid-attribute",this.document);if(Ap(r,this.document),r.isCollapsed){let _=r.start;_.parent.is("element")&&!Array.from(_.parent.getChildren()).some(M=>!M.is("uiElement"))&&(_=_.getLastMatchingPosition(M=>M.item.is("uiElement"))),_=this._wrapPosition(_,c);const C=this.document.selection;return C.isCollapsed&&C.getFirstPosition().isEqual(r.start)&&this.setSelection(_),new Za(_)}return this._wrapRange(r,c)}unwrap(r,c){if(!(c instanceof tm))throw new at("view-writer-unwrap-invalid-attribute",this.document);if(Ap(r,this.document),r.isCollapsed)return r;const{start:u,end:_}=this._breakAttributesRange(r,!0),M=this._unwrapChildren(u.parent,u.offset,_.offset,c),E=this.mergeAttributes(M.start);E.isEqual(M.start)||M.end.offset--;const N=this.mergeAttributes(M.end);return new Za(E,N)}rename(r,c){const u=new xp(this.document,r,c.getAttributes());return this.insert(Uo._createAfter(c),u),this.move(Za._createIn(c),Uo._createAt(u,0)),this.remove(Za._createOn(c)),u}clearClonedElementsGroup(r){this._cloneGroups.delete(r)}createPositionAt(r,c){return Uo._createAt(r,c)}createPositionAfter(r){return Uo._createAfter(r)}createPositionBefore(r){return Uo._createBefore(r)}createRange(r,c){return new Za(r,c)}createRangeOn(r){return Za._createOn(r)}createRangeIn(r){return Za._createIn(r)}createSelection(...r){return new ju(...r)}createSlot(r="children"){if(!this._slotFactory)throw new at("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,r)}_registerSlotFactory(r){this._slotFactory=r}_clearSlotFactory(){this._slotFactory=null}_insertNodes(r,c,u){let _,C;if(_=u?ms(r):r.parent.is("$text")?r.parent.parent:r.parent,!_)throw new at("view-writer-invalid-position-container",this.document);C=u?this._breakAttributes(r,!0):r.parent.is("$text")?Zc(r):r;const M=_._insertChild(C.offset,c);for(const K of c)this._addToClonedElementsGroup(K);const E=C.getShiftedBy(M),N=this.mergeAttributes(C);N.isEqual(C)||E.offset--;const j=this.mergeAttributes(E);return new Za(N,j)}_wrapChildren(r,c,u,_){let C=c;const M=[];for(;C!1,r.parent._insertChild(r.offset,u);const _=new Za(r,r.getShiftedBy(1));this.wrap(_,c);const C=new Uo(u.parent,u.index);u._remove();const M=C.nodeBefore,E=C.nodeAfter;return M instanceof Eo&&E instanceof Eo?Cr(M,E):Xo(C)}_wrapAttributeElement(r,c){if(!dc(r,c)||r.name!==c.name||r.priority!==c.priority)return!1;for(const u of r.getAttributeKeys())if("class"!==u&&"style"!==u&&c.hasAttribute(u)&&c.getAttribute(u)!==r.getAttribute(u))return!1;for(const u of r.getStyleNames())if(c.hasStyle(u)&&c.getStyle(u)!==r.getStyle(u))return!1;for(const u of r.getAttributeKeys())"class"!==u&&"style"!==u&&(c.hasAttribute(u)||this.setAttribute(u,r.getAttribute(u),c));for(const u of r.getStyleNames())c.hasStyle(u)||this.setStyle(u,r.getStyle(u),c);for(const u of r.getClassNames())c.hasClass(u)||this.addClass(u,c);return!0}_unwrapAttributeElement(r,c){if(!dc(r,c)||r.name!==c.name||r.priority!==c.priority)return!1;for(const u of r.getAttributeKeys())if("class"!==u&&"style"!==u&&(!c.hasAttribute(u)||c.getAttribute(u)!==r.getAttribute(u)))return!1;if(!c.hasClass(...r.getClassNames()))return!1;for(const u of r.getStyleNames())if(!c.hasStyle(u)||c.getStyle(u)!==r.getStyle(u))return!1;for(const u of r.getAttributeKeys())"class"!==u&&"style"!==u&&this.removeAttribute(u,c);return this.removeClass(Array.from(r.getClassNames()),c),this.removeStyle(Array.from(r.getStyleNames()),c),!0}_breakAttributesRange(r,c=!1){const u=r.start,_=r.end;if(Ap(r,this.document),r.isCollapsed){const N=this._breakAttributes(r.start,c);return new Za(N,N)}const C=this._breakAttributes(_,c),M=C.parent.childCount,E=this._breakAttributes(u,c);return C.offset+=C.parent.childCount-M,new Za(E,C)}_breakAttributes(r,c=!1){const u=r.offset,_=r.parent;if(r.parent.is("emptyElement"))throw new at("view-writer-cannot-break-empty-element",this.document);if(r.parent.is("uiElement"))throw new at("view-writer-cannot-break-ui-element",this.document);if(r.parent.is("rawElement"))throw new at("view-writer-cannot-break-raw-element",this.document);if(!c&&_.is("$text")&&jd(_.parent)||jd(_))return r.clone();if(_.is("$text"))return this._breakAttributes(Zc(r),c);if(u==_.childCount){const C=new Uo(_.parent,_.index+1);return this._breakAttributes(C,c)}if(0===u){const C=new Uo(_.parent,_.index);return this._breakAttributes(C,c)}{const C=_.index+1,M=_._clone();_.parent._insertChild(C,M),this._addToClonedElementsGroup(M);const N=_._removeChildren(u,_.childCount-u);M._appendChild(N);const j=new Uo(_.parent,C);return this._breakAttributes(j,c)}}_addToClonedElementsGroup(r){if(!r.root.is("rootElement"))return;if(r.is("element"))for(const _ of r.getChildren())this._addToClonedElementsGroup(_);const c=r.id;if(!c)return;let u=this._cloneGroups.get(c);u||(u=new Set,this._cloneGroups.set(c,u)),u.add(r),r._clonesGroup=u}_removeFromClonedElementsGroup(r){if(r.is("element"))for(const _ of r.getChildren())this._removeFromClonedElementsGroup(_);const c=r.id;if(!c)return;const u=this._cloneGroups.get(c);u&&u.delete(r)}}function ms(m){let r=m.parent;for(;!jd(r);){if(!r)return;r=r.parent}return r}function Bs(m,r){return m.priorityr.priority)&&m.getIdentity()c instanceof u))throw new at("view-writer-insert-invalid-node-type",r);c.is("$text")||tl(c.getChildren(),r)}}function jd(m){return m&&(m.is("containerElement")||m.is("documentFragment"))}function Ap(m,r){const c=ms(m.start),u=ms(m.end);if(!c||!u||c!==u)throw new at("view-writer-invalid-range-container",r)}function dc(m,r){return null===m.id&&null===r.id}const R1=m=>m.createTextNode("\xa0"),Fg=m=>{const r=m.createElement("span");return r.dataset.ckeFiller="true",r.innerText="\xa0",r},O_=m=>{const r=m.createElement("br");return r.dataset.ckeFiller="true",r},H1="\u2060".repeat(7);function Pu(m){return"string"==typeof m?m.substr(0,7)===H1:fe(m)&&m.data.substr(0,7)===H1}function zm(m){return 7==m.data.length&&Pu(m)}function F2(m){const r="string"==typeof m?m:m.data;return Pu(m)?r.slice(7):r}function Pl(m,r){if(r.keyCode==Ka.arrowleft){const c=r.domTarget.ownerDocument.defaultView.getSelection();if(1==c.rangeCount&&c.getRangeAt(0).collapsed){const u=c.getRangeAt(0).startContainer,_=c.getRangeAt(0).startOffset;Pu(u)&&_<=7&&c.collapse(u,0)}}}var Gl=v(9315);Fo()(Gl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class q2 extends(Ze()){constructor(r,c){super(),this.domDocuments=new Set,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this._inlineFiller=null,this._fakeSelectionContainer=null,this.domConverter=r,this.selection=c,this.set("isFocused",!1),this.set("isSelecting",!1),D_isBlink&&!D_isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()})}markToSync(r,c){if("text"===r)this.domConverter.mapViewToDom(c.parent)&&this.markedTexts.add(c);else{if(!this.domConverter.mapViewToDom(c))return;if("attributes"===r)this.markedAttributes.add(c);else{if("children"!==r)throw new at("view-renderer-unknown-type",this);this.markedChildren.add(c)}}}render(){if(this.isComposing&&!D_isAndroid)return;let r=null;const c=!(D_isBlink&&!D_isAndroid&&this.isSelecting);for(const u of this.markedChildren)this._updateChildrenMappings(u);c?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?r=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(r=this.selection.getFirstPosition(),this.markedChildren.add(r.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(r=this.domConverter.domPositionToView(this._inlineFiller),r&&r.parent.is("$text")&&(r=Uo._createBefore(r.parent)));for(const u of this.markedAttributes)this._updateAttrs(u);for(const u of this.markedChildren)this._updateChildren(u,{inlineFillerPosition:r});for(const u of this.markedTexts)!this.markedChildren.has(u.parent)&&this.domConverter.mapViewToDom(u.parent)&&this._updateText(u,{inlineFillerPosition:r});if(c)if(r){const u=this.domConverter.viewPositionToDom(r),_=u.parent.ownerDocument;this._inlineFiller=Pu(u.parent)?u.parent:Gu(_,u.parent,u.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const u=Array.from(c.childNodes),_=Array.from(this.domConverter.viewChildrenToDom(r,{withChildren:!1})),C=this._diffNodeLists(u,_),M=this._findUpdateActions(C,u,_,F3);if(-1!==M.indexOf("update")){const E={equal:0,insert:0,delete:0};for(const N of M)if("update"===N){const j=E.equal+E.insert,K=E.equal+E.delete,dt=r.getChild(j);!dt||dt.is("uiElement")||dt.is("rawElement")||this._updateElementMappings(dt,u[K]),ns(_[j]),E.equal++}else E[N]++}}_updateElementMappings(r,c){this.domConverter.unbindDomElement(c),this.domConverter.bindElements(c,r),this.markedChildren.add(r),this.markedAttributes.add(r)}_getInlineFillerPosition(){const r=this.selection.getFirstPosition();return r.parent.is("$text")?Uo._createBefore(r.parent):r}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),c=this.domConverter.viewPositionToDom(r);return!!(c&&fe(c.parent)&&Pu(c.parent))}_removeInlineFiller(){const r=this._inlineFiller;if(!Pu(r))throw new at("view-renderer-filler-was-lost",this);zm(r)?r.remove():r.data=r.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),c=r.parent,u=r.offset;if(!this.domConverter.mapViewToDom(c.root)||!c.is("element")||!function(M){if("false"==M.getAttribute("contenteditable"))return!1;const E=M.findAncestor(N=>N.hasAttribute("contenteditable"));return!E||"true"==E.getAttribute("contenteditable")}(c)||u===c.getFillerOffset())return!1;const _=r.nodeBefore,C=r.nodeAfter;return!(_ instanceof Eo||C instanceof Eo||D_isAndroid&&(_||C))}_updateText(r,c){const u=this.domConverter.findCorrespondingDomText(r);let _=this.domConverter.viewToDom(r).data;const C=c.inlineFillerPosition;C&&C.parent==r.parent&&C.offset==r.index&&(_=H1+_),yp(u,_)}_updateAttrs(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const u=Array.from(c.attributes).map(C=>C.name),_=r.getAttributeKeys();for(const C of _)this.domConverter.setDomElementAttribute(c,C,r.getAttribute(C),r);for(const C of u)r.hasAttribute(C)||this.domConverter.removeDomElementAttribute(c,C)}_updateChildren(r,c){const u=this.domConverter.mapViewToDom(r);if(!u)return;if(D_isAndroid){let dt=null;for(const Dt of Array.from(u.childNodes)){if(dt&&fe(dt)&&fe(Dt)){u.normalize();break}dt=Dt}}const _=c.inlineFillerPosition,C=u.childNodes,M=Array.from(this.domConverter.viewChildrenToDom(r,{bind:!0}));_&&_.parent===r&&Gu(u.ownerDocument,M,_.offset);const E=this._diffNodeLists(C,M),N=this._findUpdateActions(E,C,M,E_);let j=0;const K=new Set;for(const dt of N)"delete"===dt?(K.add(C[j]),ns(C[j])):"equal"!==dt&&"update"!==dt||j++;j=0;for(const dt of N)"insert"===dt?(yo(u,j,M[j]),j++):"update"===dt?(yp(C[j],M[j].data),j++):"equal"===dt&&(this._markDescendantTextToSync(this.domConverter.domToView(M[j])),j++);for(const dt of K)dt.parentNode||this.domConverter.unbindDomElement(dt)}_diffNodeLists(r,c){return W(r=function(u,_){const C=Array.from(u);return 0==C.length||!_||C[C.length-1]==_&&C.pop(),C}(r,this._fakeSelectionContainer),c,I_.bind(null,this.domConverter))}_findUpdateActions(r,c,u,_){if(-1===r.indexOf("insert")||-1===r.indexOf("delete"))return r;let C=[],M=[],E=[];const N={equal:0,insert:0,delete:0};for(const j of r)"insert"===j?E.push(u[N.equal+N.insert]):"delete"===j?M.push(c[N.equal+N.delete]):(C=C.concat(W(M,E,_).map(K=>"equal"===K?"update":K)),C.push("equal"),M=[],E=[]),N[j]++;return C.concat(W(M,E,_).map(j=>"equal"===j?"update":j))}_markDescendantTextToSync(r){if(r)if(r.is("$text"))this.markedTexts.add(r);else if(r.is("element"))for(const c of r.getChildren())this._markDescendantTextToSync(c)}_updateSelection(){if(D_isBlink&&!D_isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const r=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&r&&(this.selection.isFake?this._updateFakeSelection(r):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(r)):this.isComposing&&D_isAndroid||this._updateDomSelection(r))}_updateFakeSelection(r){const c=r.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(M){const E=M.createElement("div");return E.className="ck-fake-selection-container",Object.assign(E.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),E.textContent="\xa0",E}(c));const u=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(u,this.selection),!this._fakeSelectionNeedsUpdate(r))return;u.parentElement&&u.parentElement==r||r.appendChild(u),u.textContent=this.selection.fakeSelectionLabel||"\xa0";const _=c.getSelection(),C=c.createRange();_.removeAllRanges(),C.selectNodeContents(u),_.addRange(C)}_updateDomSelection(r){const c=r.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(c))return;const u=this.domConverter.viewPositionToDom(this.selection.anchor),_=this.domConverter.viewPositionToDom(this.selection.focus);c.setBaseAndExtent(u.parent,u.offset,_.parent,_.offset),D_isGecko&&function(C,M){const E=C.parent;if(E.nodeType!=Node.ELEMENT_NODE||C.offset!=E.childNodes.length-1)return;const N=E.childNodes[C.offset];N&&"BR"==N.tagName&&M.addRange(M.getRangeAt(0))}(_,c)}_domSelectionNeedsUpdate(r){if(!this.domConverter.isDomSelectionCorrect(r))return!0;const c=r&&this.domConverter.domSelectionToView(r);return!(c&&this.selection.isEqual(c)||!this.selection.isCollapsed&&this.selection.isSimilar(c))}_fakeSelectionNeedsUpdate(r){const c=this._fakeSelectionContainer,u=r.ownerDocument.getSelection();return!c||c.parentElement!==r||u.anchorNode!==c&&!c.contains(u.anchorNode)||c.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const r of this.domDocuments){const c=r.getSelection();if(c.rangeCount){const u=r.activeElement,_=this.domConverter.mapDomToView(u);u&&_&&c.removeAllRanges()}}}_removeFakeSelection(){const r=this._fakeSelectionContainer;r&&r.remove()}_updateFocus(){if(this.isFocused){const r=this.selection.editableElement;r&&this.domConverter.focus(r)}}}function Gu(m,r,c){const u=r instanceof Array?r:r.childNodes,_=u[c];if(fe(_))return _.data=H1+_.data,_;{const C=m.createTextNode(H1);return Array.isArray(r)?u.splice(c,0,C):yo(r,c,C),C}}function F3(m,r){return xe(m)&&xe(r)&&!fe(m)&&!fe(r)&&!ga(m)&&!ga(r)&&m.tagName.toLowerCase()===r.tagName.toLowerCase()}function E_(m,r){return xe(m)&&xe(r)&&fe(m)&&fe(r)}function I_(m,r,c){return r===c||(fe(r)&&fe(c)?r.data===c.data:!(!m.isBlockFiller(r)||!m.isBlockFiller(c)))}function yp(m,r){const c=m.data;if(c==r)return;const u=I(c,r);for(const _ of u)"insert"===_.type?m.insertData(_.index,_.values.join("")):m.deleteData(_.index,_.howMany)}const N3=O_(Lt.document),y1=R1(Lt.document),Jd=Fg(Lt.document),F_="data-ck-unsafe-attribute-",Vf="data-ck-unsafe-element";class N_{constructor(r,{blockFillerMode:c,renderingMode:u="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new ds,this._inlineObjectElementMatcher=new ds,this.document=r,this.renderingMode=u,this.blockFillerMode=c||("editing"===u?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?Lt.document:Lt.document.implementation.createHTMLDocument("")}bindFakeSelection(r,c){this._fakeSelectionMapping.set(r,new ju(c))}fakeSelectionToView(r){return this._fakeSelectionMapping.get(r)}bindElements(r,c){this._domToViewMapping.set(r,c),this._viewToDomMapping.set(c,r)}unbindDomElement(r){const c=this._domToViewMapping.get(r);if(c){this._domToViewMapping.delete(r),this._viewToDomMapping.delete(c);for(const u of Array.from(r.children))this.unbindDomElement(u)}}bindDocumentFragments(r,c){this._domToViewMapping.set(r,c),this._viewToDomMapping.set(c,r)}shouldRenderAttribute(r,c,u){return"data"===this.renderingMode||!(r=r.toLowerCase()).startsWith("on")&&("srcdoc"!==r||!c.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===u&&("src"===r||"srcset"===r)||"source"===u&&"srcset"===r||!c.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(r,c){if("data"===this.renderingMode)return void(r.innerHTML=c);const u=(new DOMParser).parseFromString(c,"text/html"),_=u.createDocumentFragment(),C=u.body.childNodes;for(;C.length>0;)_.appendChild(C[0]);const M=u.createTreeWalker(_,NodeFilter.SHOW_ELEMENT),E=[];let N;for(;N=M.nextNode();)E.push(N);for(const j of E){for(const dt of j.getAttributeNames())this.setDomElementAttribute(j,dt,j.getAttribute(dt));const K=j.tagName.toLowerCase();this._shouldRenameElement(K)&&(Tp(K),j.replaceWith(this._createReplacementDomElement(K,j)))}for(;r.firstChild;)r.firstChild.remove();r.append(_)}viewToDom(r,c={}){if(r.is("$text")){const u=this._processDataFromViewText(r);return this._domDocument.createTextNode(u)}{if(this.mapViewToDom(r))return this.mapViewToDom(r);let u;if(r.is("documentFragment"))u=this._domDocument.createDocumentFragment(),c.bind&&this.bindDocumentFragments(u,r);else{if(r.is("uiElement"))return u="$comment"===r.name?this._domDocument.createComment(r.getCustomProperty("$rawContent")):r.render(this._domDocument,this),c.bind&&this.bindElements(u,r),u;this._shouldRenameElement(r.name)?(Tp(r.name),u=this._createReplacementDomElement(r.name)):u=r.hasAttribute("xmlns")?this._domDocument.createElementNS(r.getAttribute("xmlns"),r.name):this._domDocument.createElement(r.name),r.is("rawElement")&&r.render(u,this),c.bind&&this.bindElements(u,r);for(const _ of r.getAttributeKeys())this.setDomElementAttribute(u,_,r.getAttribute(_),r)}if(!1!==c.withChildren)for(const _ of this.viewChildrenToDom(r,c))u.appendChild(_);return u}}setDomElementAttribute(r,c,u,_){const C=this.shouldRenderAttribute(c,u,r.tagName.toLowerCase())||_&&_.shouldRenderUnsafeAttribute(c);C||Zt("domconverter-unsafe-attribute-detected",{domElement:r,key:c,value:u}),function(M){try{Lt.document.createAttribute(M)}catch{return!1}return!0}(c)?(r.hasAttribute(c)&&!C?r.removeAttribute(c):r.hasAttribute(F_+c)&&C&&r.removeAttribute(F_+c),r.setAttribute(C?c:F_+c,u)):Zt("domconverter-invalid-attribute-detected",{domElement:r,key:c,value:u})}removeDomElementAttribute(r,c){c!=Vf&&(r.removeAttribute(c),r.removeAttribute(F_+c))}*viewChildrenToDom(r,c={}){const u=r.getFillerOffset&&r.getFillerOffset();let _=0;for(const C of r.getChildren()){u===_&&(yield this._getBlockFiller());const M=C.is("element")&&!!C.getCustomProperty("dataPipeline:transparentRendering")&&!os(C.getAttributes());M&&"data"==this.renderingMode?yield*this.viewChildrenToDom(C,c):(M&&Zt("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:C}),yield this.viewToDom(C,c)),_++}u===_&&(yield this._getBlockFiller())}viewRangeToDom(r){const c=this.viewPositionToDom(r.start),u=this.viewPositionToDom(r.end),_=this._domDocument.createRange();return _.setStart(c.parent,c.offset),_.setEnd(u.parent,u.offset),_}viewPositionToDom(r){const c=r.parent;if(c.is("$text")){const u=this.findCorrespondingDomText(c);if(!u)return null;let _=r.offset;return Pu(u)&&(_+=7),{parent:u,offset:_}}{let u,_,C;if(0===r.offset){if(u=this.mapViewToDom(c),!u)return null;C=u.childNodes[0]}else{const M=r.nodeBefore;if(_=M.is("$text")?this.findCorrespondingDomText(M):this.mapViewToDom(M),!_)return null;u=_.parentNode,C=_.nextSibling}return fe(C)&&Pu(C)?{parent:C,offset:7}:{parent:u,offset:_?xo(_)+1:0}}}domToView(r,c={}){const u=[],_=this._domToView(r,c,u),C=_.next().value;return C?(_.next(),this._processDomInlineNodes(null,u,c),C.is("$text")&&0==C.data.length?null:C):null}*domChildrenToView(r,c={},u=[]){for(let _=0;_{const{scrollLeft:E,scrollTop:N}=M;C.push([E,N])}),c.focus(),q3(c,M=>{const[E,N]=C.shift();M.scrollLeft=E,M.scrollTop=N}),Lt.window.scrollTo(u,_)}}_clearDomSelection(){const r=this.mapViewToDom(this.document.selection.editableElement);if(!r)return;const c=r.ownerDocument.defaultView.getSelection(),u=this.domSelectionToView(c);u&&u.rangeCount>0&&c.removeAllRanges()}isElement(r){return r&&r.nodeType==Node.ELEMENT_NODE}isDocumentFragment(r){return r&&r.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(r){return"br"==this.blockFillerMode?r.isEqualNode(N3):!("BR"!==r.tagName||!z1(r,this.blockElements)||1!==r.parentNode.childNodes.length)||r.isEqualNode(Jd)||(u=this.blockElements,(c=r).isEqualNode(y1)&&z1(c,u)&&1===c.parentNode.childNodes.length);var c,u}isDomSelectionBackward(r){if(r.isCollapsed)return!1;const c=this._domDocument.createRange();try{c.setStart(r.anchorNode,r.anchorOffset),c.setEnd(r.focusNode,r.focusOffset)}catch{return!1}const u=c.collapsed;return c.detach(),u}getHostViewElement(r){const c=function(u){const _=[];let C=u;for(;C&&C.nodeType!=Node.DOCUMENT_NODE;)_.unshift(C),C=C.parentNode;return _}(r);for(c.pop();c.length;){const u=c.pop(),_=this._domToViewMapping.get(u);if(_&&(_.is("uiElement")||_.is("rawElement")))return _}return null}isDomSelectionCorrect(r){return this._isDomSelectionPositionCorrect(r.anchorNode,r.anchorOffset)&&this._isDomSelectionPositionCorrect(r.focusNode,r.focusOffset)}registerRawContentMatcher(r){this._rawContentElementMatcher.add(r)}registerInlineObjectMatcher(r){this._inlineObjectElementMatcher.add(r)}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return R1(this._domDocument);case"markedNbsp":return Fg(this._domDocument);case"br":return O_(this._domDocument)}}_isDomSelectionPositionCorrect(r,c){if(fe(r)&&Pu(r)&&c<7||this.isElement(r)&&Pu(r.childNodes[c]))return!1;const u=this.mapDomToView(r);return!u||!u.is("uiElement")&&!u.is("rawElement")}*_domToView(r,c,u){if(this.isBlockFiller(r))return null;const _=this.getHostViewElement(r);if(_)return _;if(ga(r)&&c.skipComments)return null;if(fe(r)){if(zm(r))return null;{const C=r.data;if(""===C)return null;const M=new Eo(this.document,C);return u.push(M),M}}{let C=this.mapDomToView(r);if(C)return this._isInlineObjectElement(C)&&u.push(C),C;if(this.isDocumentFragment(r))C=new Td(this.document),c.bind&&this.bindDocumentFragments(r,C);else{C=this._createViewElement(r,c),c.bind&&this.bindElements(r,C);const E=r.attributes;if(E)for(let N=E.length,j=0;j0?c[C-1]:null,K=C+1this.preElements.includes(u.name)))return c;if(" "==c.charAt(0)){const u=this._getTouchingInlineViewNode(r,!1);!(u&&u.is("$textProxy")&&this._nodeEndsWithSpace(u))&&u||(c="\xa0"+c.substr(1))}if(" "==c.charAt(c.length-1)){const u=this._getTouchingInlineViewNode(r,!0),_=u&&u.is("$textProxy")&&" "==u.data.charAt(0);" "!=c.charAt(c.length-2)&&u&&!_||(c=c.substr(0,c.length-1)+"\xa0")}return c.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(r){if(r.getAncestors().some(u=>this.preElements.includes(u.name)))return!1;const c=this._processDataFromViewText(r);return" "==c.charAt(c.length-1)}_getTouchingInlineViewNode(r,c){const u=new Kp({startPosition:c?Uo._createAfter(r):Uo._createBefore(r),direction:c?"forward":"backward"});for(const _ of u){if(_.item.is("element","br"))return null;if(this._isInlineObjectElement(_.item))return _.item;if(_.item.is("containerElement"))return null;if(_.item.is("$textProxy"))return _.item}return null}_isBlockDomElement(r){return this.isElement(r)&&this.blockElements.includes(r.tagName.toLowerCase())}_isBlockViewElement(r){return r.is("element")&&this.blockElements.includes(r.name)}_isInlineObjectElement(r){return!!r.is("element")&&("br"==r.name||this.inlineObjectElements.includes(r.name)||!!this._inlineObjectElementMatcher.match(r))}_createViewElement(r,c){if(ga(r))return new S_(this.document,"$comment");const u=c.keepOriginalCase?r.tagName:r.tagName.toLowerCase();return new Xc(this.document,u)}_isViewElementWithRawContent(r,c){return!1!==c.withChildren&&r.is("element")&&!!this._rawContentElementMatcher.match(r)}_shouldRenameElement(r){const c=r.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(c)}_createReplacementDomElement(r,c){const u=this._domDocument.createElement("span");if(u.setAttribute(Vf,r),c){for(;c.firstChild;)u.appendChild(c.firstChild);for(const _ of c.getAttributeNames())u.setAttribute(_,c.getAttribute(_))}return u}}function jf(m,r){return m.getAncestors().some(c=>c.is("element")&&r.includes(c.name))}function q3(m,r){let c=m;for(;c;)r(c),c=c.parentElement}function z1(m,r){const c=m.parentNode;return!!c&&!!c.tagName&&r.includes(c.tagName.toLowerCase())}function Tp(m){"script"===m&&Zt("domconverter-unsafe-script-element-detected"),"style"===m&&Zt("domconverter-unsafe-style-element-detected")}class Qu extends(Xi()){constructor(r){super(),this._isEnabled=!1,this.view=r,this.document=r.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(r){return r&&3===r.nodeType&&(r=r.parentNode),!(!r||1!==r.nodeType)&&r.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const R2=Rf(function(m,r){Vs(r,ls(r),m)});class pc{constructor(r,c,u){this.view=r,this.document=r.document,this.domEvent=c,this.domTarget=c.target,R2(this,u)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class Wu extends Qu{constructor(){super(...arguments),this.useCapture=!1}observe(r){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(c=>{this.listenTo(r,c,(u,_)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(_.target)&&this.onDomEvent(_)},{useCapture:this.useCapture})})}stopObserving(r){this.stopListening(r)}fire(r,c,u){this.isEnabled&&this.document.fire(r,new pc(this.view,c,u))}}class T1 extends Wu{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(r){this.fire(r.type,r,{keyCode:r.keyCode,altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey,get keystroke(){return Tc(this)}})}}const wd=function(){return ne.Date.now()};var uu=/\s/,nm=/^\s+/;var R3=/^[-+]0x[0-9a-f]+$/i,H6=/^0b[01]+$/i,Cv=/^0o[0-7]+$/i,Jf=parseInt;const Lu=function(m){if("number"==typeof m)return m;if(Kn(m))return NaN;if(Kt(m)){var r="function"==typeof m.valueOf?m.valueOf():m;m=Kt(r)?r+"":r}if("string"!=typeof m)return 0===m?m:+m;m=function(m){return m&&m.slice(0,function(m){for(var r=m.length;r--&&uu.test(m.charAt(r)););return r}(m)+1).replace(nm,"")}(m);var c=H6.test(m);return c||Cv.test(m)?Jf(m.slice(2),c?2:8):R3.test(m)?NaN:+m};var H3=Math.max,z6=Math.min;const R_=function(m,r,c){var u,_,C,M,E,N,j=0,K=!1,dt=!1,Dt=!0;if("function"!=typeof m)throw new TypeError("Expected a function");function me(pi){var Ri=u,Go=_;return u=_=void 0,j=pi,M=m.apply(Go,Ri)}function Ue(pi){var Ri=pi-N;return void 0===N||Ri>=r||Ri<0||dt&&pi-j>=C}function qe(){var Ri,Go,pi=wd();if(Ue(pi))return pn(pi);E=setTimeout(qe,(Go=r-((Ri=pi)-N),dt?z6(Go,C-(Ri-j)):Go))}function pn(pi){return E=void 0,Dt&&u?me(pi):(u=_=void 0,M)}function Ln(){var Go,pi=wd(),Ri=Ue(pi);if(u=arguments,_=this,N=pi,Ri){if(void 0===E)return j=Go=N,E=setTimeout(qe,r),K?me(Go):M;if(dt)return clearTimeout(E),E=setTimeout(qe,r),me(N)}return void 0===E&&(E=setTimeout(qe,r)),M}return r=Lu(r)||0,Kt(c)&&(K=!!c.leading,C=(dt="maxWait"in c)?H3(Lu(c.maxWait)||0,r):C,Dt="trailing"in c?!!c.trailing:Dt),Ln.cancel=function(){void 0!==E&&clearTimeout(E),j=0,u=N=_=E=void 0},Ln.flush=function(){return void 0===E?M:pn(wd())},Ln};class B6 extends Qu{constructor(r){super(r),this._fireSelectionChangeDoneDebounced=R_(c=>{this.document.fire("selectionChangeDone",c)},200)}observe(){const r=this.document;r.on("arrowKey",(c,u)=>{r.selection.isFake&&this.isEnabled&&u.preventDefault()},{context:"$capture"}),r.on("arrowKey",(c,u)=>{r.selection.isFake&&this.isEnabled&&this._handleSelectionMove(u.keyCode)},{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(r){const c=this.document.selection,u=new ju(c.getRanges(),{backward:c.isBackward,fake:!1});r!=Ka.arrowleft&&r!=Ka.arrowup||u.setTo(u.getFirstPosition()),r!=Ka.arrowright&&r!=Ka.arrowdown||u.setTo(u.getLastPosition());const _={oldSelection:c,newSelection:u,domSelection:null};this.document.fire("selectionChange",_),this._fireSelectionChangeDoneDebounced(_)}}function wp(m){var r=-1,c=null==m?0:m.length;for(this.__data__=new Ns;++rE))return!1;var j=C.get(m),K=C.get(r);if(j&&K)return j==r&&K==m;var dt=-1,Dt=!0,me=2&c?new qg:void 0;for(C.set(m,r),C.set(r,m);++dt{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),r.change(()=>{})},50)}),c.on("blur",(u,_)=>{const C=c.selection.editableElement;null!==C&&C!==_.target||(c.isFocused=!1,this._isFocusChanging=!1,r.change(()=>{}))})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(r){this.fire(r.type,r)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class w1 extends Qu{constructor(r){super(r),this.mutationObserver=r.getObserver(ia),this.focusObserver=r.getObserver(z_),this.selection=this.document.selection,this.domConverter=r.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=R_(c=>{this.document.fire("selectionChangeDone",c)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=R_(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(r){const c=r.ownerDocument,u=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,c),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(r,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(r,"keydown",u,{priority:"highest",useCapture:!0}),this.listenTo(r,"keyup",u,{priority:"highest",useCapture:!0}),this._documents.has(c)||(this.listenTo(c,"mouseup",u,{priority:"highest",useCapture:!0}),this.listenTo(c,"selectionchange",(_,C)=>{this.document.isComposing&&!D_isAndroid||(this._handleSelectionChange(C,c),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(c))}stopObserving(r){this.stopListening(r)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(r,c){if(!this.isEnabled)return;const u=c.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(u.anchorNode))return;this.mutationObserver.flush();const _=this.domConverter.domSelectionToView(u);if(0!=_.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(_)||!this.domConverter.isDomSelectionCorrect(u))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(_))this.view.forceRender();else{const C={oldSelection:this.selection,newSelection:_,domSelection:u};this.document.fire("selectionChange",C),this._fireSelectionChangeDoneDebounced(C)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Up extends Wu{constructor(r){super(r),this.domEventType=["compositionstart","compositionupdate","compositionend"];const c=this.document;c.on("compositionstart",()=>{c.isComposing=!0},{priority:"low"}),c.on("compositionend",()=>{c.isComposing=!1},{priority:"low"})}onDomEvent(r){this.fire(r.type,r,{data:r.data})}}class mc{constructor(r,c={}){this._files=c.cacheFiles?Yg(r):null,this._native=r}get files(){return this._files||(this._files=Yg(this._native)),this._files}get types(){return this._native.types}getData(r){return this._native.getData(r)}setData(r,c){this._native.setData(r,c)}set effectAllowed(r){this._native.effectAllowed=r}get effectAllowed(){return this._native.effectAllowed}set dropEffect(r){this._native.dropEffect=r}get dropEffect(){return this._native.dropEffect}setDragImage(r,c,u){this._native.setDragImage(r,c,u)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function Yg(m){const r=Array.from(m.files||[]),c=Array.from(m.items||[]);return r.length?r:c.filter(u=>"file"===u.kind).map(u=>u.getAsFile())}class Vg extends Wu{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(r){const c=r.getTargetRanges(),u=this.view,_=u.document;let C=null,M=null,E=[];if(r.dataTransfer&&(C=new mc(r.dataTransfer)),null!==r.data?M=r.data:C&&(M=C.getData("text/plain")),_.selection.isFake)E=Array.from(_.selection.getRanges());else if(c.length)E=c.map(N=>{const j=u.domConverter.domPositionToView(N.startContainer,N.startOffset),K=u.domConverter.domPositionToView(N.endContainer,N.endOffset);return j?u.createRange(j,K):K?u.createRange(K):void 0}).filter(N=>!!N);else if(D_isAndroid){const N=r.target.ownerDocument.defaultView.getSelection();E=Array.from(u.domConverter.domSelectionToView(N).getRanges())}if(D_isAndroid&&"insertCompositionText"==r.inputType&&M&&M.endsWith("\n"))this.fire(r.type,r,{inputType:"insertParagraph",targetRanges:[u.createRange(E[0].end)]});else if("insertText"==r.inputType&&M&&M.includes("\n")){const N=M.split(/\n{1,2}/g);let j=E;for(let K=0;K{if(this.isEnabled&&((_=u.keyCode)==Ka.arrowright||_==Ka.arrowleft||_==Ka.arrowup||_==Ka.arrowdown)){const C=new Cp(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(C,u),C.stop.called&&c.stop()}var _})}observe(){}stopObserving(){}}class Wf extends Qu{constructor(r){super(r);const c=this.document;c.on("keydown",(u,_)=>{if(!this.isEnabled||_.keyCode!=Ka.tab||_.ctrlKey)return;const C=new Cp(c,"tab",c.selection.getFirstRange());c.fire(C,_),C.stop.called&&u.stop()})}observe(){}stopObserving(){}}const U1=function(m){return Pi(m,5)};class jg extends(Ze()){constructor(r){super(),this.domRoots=new Map,this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this.document=new Xp(r),this.domConverter=new N_(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new q2(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new Hm(this.document),this.addObserver(ia),this.addObserver(z_),this.addObserver(w1),this.addObserver(T1),this.addObserver(B6),this.addObserver(Up),this.addObserver(yv),this.addObserver(Vg),this.addObserver(Wf),this.document.on("arrowKey",Pl,{priority:"low"}),function Uc(m){m.document.on("arrowKey",(r,c)=>function(u,_,C){if(_.keyCode==Ka.arrowright){const M=_.domTarget.ownerDocument.defaultView.getSelection(),E=1==M.rangeCount&&M.getRangeAt(0).collapsed;if(E||_.shiftKey){const K=C.domPositionToView(M.focusNode,M.focusOffset);if(null===K)return;let dt=!1;const Dt=K.getLastMatchingPosition(me=>(me.item.is("uiElement")&&(dt=!0),!(!me.item.is("uiElement")&&!me.item.is("attributeElement"))));if(dt){const me=C.viewPositionToDom(Dt);E?M.collapse(me.parent,me.offset):M.extend(me.parent,me.offset)}}}}(0,c,m.domConverter),{priority:"low"})}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0}),D_isiOS&&this.listenTo(this.document,"blur",(c,u)=>{this.domConverter.mapDomToView(u.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})}attachDomRoot(r,c="main"){const u=this.document.getRoot(c);u._name=r.tagName.toLowerCase();const _={};for(const{name:M,value:E}of Array.from(r.attributes))_[M]=E,"class"===M?this._writer.addClass(E.split(" "),u):this._writer.setAttribute(M,E,u);this._initialDomRootAttributes.set(r,_);const C=()=>{this._writer.setAttribute("contenteditable",(!u.isReadOnly).toString(),u),u.isReadOnly?this._writer.addClass("ck-read-only",u):this._writer.removeClass("ck-read-only",u)};C(),this.domRoots.set(c,r),this.domConverter.bindElements(r,u),this._renderer.markToSync("children",u),this._renderer.markToSync("attributes",u),this._renderer.domDocuments.add(r.ownerDocument),u.on("change:children",(M,E)=>this._renderer.markToSync("children",E)),u.on("change:attributes",(M,E)=>this._renderer.markToSync("attributes",E)),u.on("change:text",(M,E)=>this._renderer.markToSync("text",E)),u.on("change:isReadOnly",()=>this.change(C)),u.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const M of this._observers.values())M.observe(r,c)}detachDomRoot(r){const c=this.domRoots.get(r);Array.from(c.attributes).forEach(({name:_})=>c.removeAttribute(_));const u=this._initialDomRootAttributes.get(c);for(const _ in u)c.setAttribute(_,u[_]);this.domRoots.delete(r),this.domConverter.unbindDomElement(c);for(const _ of this._observers.values())_.stopObserving(c)}getDomRoot(r="main"){return this.domRoots.get(r)}addObserver(r){let c=this._observers.get(r);if(c)return c;c=new r(this),this._observers.set(r,c);for(const[u,_]of this.domRoots)c.observe(_,u);return c.enable(),c}getObserver(r){return this._observers.get(r)}disableObservers(){for(const r of this._observers.values())r.disable()}enableObservers(){for(const r of this._observers.values())r.enable()}scrollToTheSelection({alignToTop:r,forceScroll:c,viewportOffset:u=20,ancestorOffset:_=20}={}){const C=this.document.selection.getFirstRange();if(!C)return;const M=U1({alignToTop:r,forceScroll:c,viewportOffset:u,ancestorOffset:_});"number"==typeof u&&(u={top:u,bottom:u,left:u,right:u});const E={target:this.domConverter.viewRangeToDom(C),viewportOffset:u,ancestorOffset:_,alignToTop:r,forceScroll:c};this.fire("scrollToTheSelection",E,M),function({target:N,viewportOffset:j=0,ancestorOffset:K=0,alignToTop:dt,forceScroll:Dt}){const me=sr(N);let Ue=me,qe=null;for(j="number"==typeof(pn=j)?{top:pn,bottom:pn,left:pn,right:pn}:pn;Ue;){let pn;pn=cr(Ue==me?N:qe),Hr({parent:pn,getRect:()=>Cs(N,Ue),alignToTop:dt,ancestorOffset:K,forceScroll:Dt});const Ln=Cs(N,Ue);if(us({window:Ue,rect:Ln,viewportOffset:j,alignToTop:dt,forceScroll:Dt}),Ue.parent!=Ue){if(qe=Ue.frameElement,Ue=Ue.parent,!qe)return}else Ue=null}var pn}(E)}focus(){if(!this.document.isFocused){const r=this.document.selection.editableElement;r&&(this.domConverter.focus(r),this.forceRender())}}change(r){if(this.isRenderingInProgress||this._postFixersInProgress)throw new at("cannot-change-view-tree",this);try{if(this._ongoingChange)return r(this._writer);this._ongoingChange=!0;const c=r(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),c}catch(c){at.rethrowUnexpectedError(c,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(z_).flush(),this.change(()=>{})}destroy(){for(const r of this._observers.values())r.destroy();this.document.destroy(),this.stopListening()}createPositionAt(r,c){return Uo._createAt(r,c)}createPositionAfter(r){return Uo._createAfter(r)}createPositionBefore(r){return Uo._createBefore(r)}createRange(r,c){return new Za(r,c)}createRangeOn(r){return Za._createOn(r)}createRangeIn(r){return Za._createIn(r)}createSelection(...r){return new ju(...r)}_disableRendering(r){this._renderingDisabled=r,0==r&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Zp{is(){throw new Error("is() method is abstract")}}class oc extends Zp{constructor(r){super(),this.parent=null,this._attrs=Kc(r)}get document(){return null}get index(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildIndex(this)))throw new at("model-node-not-found-in-parent",this);return r}get startOffset(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildStartOffset(this)))throw new at("model-node-not-found-in-parent",this);return r}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const r=this.index;return null!==r&&this.parent.getChild(r+1)||null}get previousSibling(){const r=this.index;return null!==r&&this.parent.getChild(r-1)||null}get root(){let r=this;for(;r.parent;)r=r.parent;return r}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const r=[];let c=this;for(;c.parent;)r.unshift(c.startOffset),c=c.parent;return r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}getCommonAncestor(r,c={}){const u=this.getAncestors(c),_=r.getAncestors(c);let C=0;for(;u[C]==_[C]&&u[C];)C++;return 0===C?null:u[C-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=tt(c,u);switch(_){case"prefix":return!0;case"extension":return!1;default:return c[_](c[u[0]]=u[1],c),{})),r}_clone(r){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(r,c){this._attrs.set(r,c)}_setAttributesTo(r){this._attrs=Kc(r)}_removeAttribute(r){return this._attrs.delete(r)}_clearAttributes(){this._attrs.clear()}}oc.prototype.is=function(m){return"node"===m||"model:node"===m};class am{constructor(r){this._nodes=[],r&&this._insertNodes(0,r)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((r,c)=>r+c.offsetSize,0)}getNode(r){return this._nodes[r]||null}getNodeIndex(r){const c=this._nodes.indexOf(r);return-1==c?null:c}getNodeStartOffset(r){const c=this.getNodeIndex(r);return null===c?null:this._nodes.slice(0,c).reduce((u,_)=>u+_.offsetSize,0)}indexToOffset(r){if(r==this._nodes.length)return this.maxOffset;const c=this._nodes[r];if(!c)throw new at("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(c)}offsetToIndex(r){let c=0;for(const u of this._nodes){if(r>=c&&r1e4)return u.slice(0,C).concat(_).concat(u.slice(C+0,u.length));{const E=Array.from(u);return E.splice(C,0,..._),E}}(this._nodes,Array.from(c),r)}_removeNodes(r,c=1){return this._nodes.splice(r,c)}toJSON(){return this._nodes.map(r=>r.toJSON())}}class rs extends oc{constructor(r,c){super(c),this._data=r||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const r=super.toJSON();return r.data=this.data,r}_clone(){return new rs(this.data,this.getAttributes())}static fromJSON(r){return new rs(r.data,r.attributes)}}rs.prototype.is=function(m){return"$text"===m||"model:$text"===m||"text"===m||"model:text"===m||"node"===m||"model:node"===m};class Ku extends Zp{constructor(r,c,u){if(super(),this.textNode=r,c<0||c>r.offsetSize)throw new at("model-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.offsetSize)throw new at("model-textproxy-wrong-length",this);this.data=r.data.substring(c,c+u),this.offsetInText=c}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const r=this.textNode.getPath();return r.length>0&&(r[r.length-1]+=this.offsetInText),r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}hasAttribute(r){return this.textNode.hasAttribute(r)}getAttribute(r){return this.textNode.getAttribute(r)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}Ku.prototype.is=function(m){return"$textProxy"===m||"model:$textProxy"===m||"textProxy"===m||"model:textProxy"===m};class Jr extends oc{constructor(r,c,u){super(c),this._children=new am,this.name=r,u&&this._insertChild(0,u)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}offsetToIndex(r){return this._children.offsetToIndex(r)}getNodeByPath(r){let c=this;for(const u of r)c=c.getChild(c.offsetToIndex(u));return c}findAncestor(r,c={}){let u=c.includeSelf?this:this.parent;for(;u;){if(u.name===r)return u;u=u.parent}return null}toJSON(){const r=super.toJSON();if(r.name=this.name,this._children.length>0){r.children=[];for(const c of this._children)r.children.push(c.toJSON())}return r}_clone(r=!1){const c=r?Array.from(this._children).map(u=>u._clone(!0)):void 0;return new Jr(this.name,this.getAttributes(),c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const u="string"==typeof(_=c)?[new rs(_)]:(et(_)||(_=[_]),Array.from(_).map(C=>"string"==typeof C?new rs(C):C instanceof Ku?new rs(C.data,C.getAttributes()):C));var _;for(const _ of u)null!==_.parent&&_._remove(),_.parent=this;this._children._insertNodes(r,u)}_removeChildren(r,c=1){const u=this._children._removeNodes(r,c);for(const _ of u)_.parent=null;return u}static fromJSON(r){let c;if(r.children){c=[];for(const u of r.children)c.push(u.name?Jr.fromJSON(u):rs.fromJSON(u))}return new Jr(r.name,r.attributes,c)}}Jr.prototype.is=function(m,r){return r?r===this.name&&("element"===m||"model:element"===m):"element"===m||"model:element"===m||"node"===m||"model:node"===m};class Gd{constructor(r){if(!r||!r.boundaries&&!r.startPosition)throw new at("model-tree-walker-no-start-position",null);const c=r.direction||"forward";if("forward"!=c&&"backward"!=c)throw new at("model-tree-walker-unknown-direction",r,{direction:c});this.direction=c,this.boundaries=r.boundaries||null,this._position=r.startPosition?r.startPosition.clone():to._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(r){let c,u,_,C;do{_=this.position,C=this._visitedParent,({done:c,value:u}=this.next())}while(!c&&r(u));c||(this._position=_,this._visitedParent=C)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const r=this.position,c=this.position.clone(),u=this._visitedParent;if(null===u.parent&&c.offset===u.maxOffset)return{done:!0,value:void 0};if(u===this._boundaryEndParent&&c.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const _=Y1(c,u),C=_||Ym(c,u,_);if(C instanceof Jr){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(c))return{done:!0,value:void 0};c.offset++}else c.path.push(0),this._visitedParent=C;return this._position=c,B1("elementStart",C,r,c,1)}if(C instanceof rs){let M;if(this.singleCharacters)M=1;else{let j=C.endOffset;this._boundaryEndParent==u&&this.boundaries.end.offsetK&&(K=this.boundaries.start.offset),E=c.offset-K}const j=new Ku(M,c.offset-M.startOffset-E,E);return c.offset-=E,this._position=c,B1("text",j,r,c,E)}return c.path.pop(),this._position=c,this._visitedParent=u.parent,B1("elementStart",u,r,c,1)}}function B1(m,r,c,u,_){return{done:!1,value:{type:m,item:r,previousPosition:c,nextPosition:u,length:_}}}class to extends Zp{constructor(r,c,u="toNone"){if(super(),!r.is("element")&&!r.is("documentFragment"))throw new at("model-position-root-invalid",r);if(!(c instanceof Array)||0===c.length)throw new at("model-position-path-incorrect-format",r,{path:c});r.is("rootElement")?c=c.slice():(c=[...r.getPath(),...c],r=r.root),this.root=r,this.path=c,this.stickiness=u}get offset(){return this.path[this.path.length-1]}set offset(r){this.path[this.path.length-1]=r}get parent(){let r=this.root;for(let c=0;c1)return!1;if(1===_)return rm(r,this,u);if(-1===_)return rm(this,r,u)}return this.path.length===r.path.length||Vm(this.path.length>r.path.length?this.path:r.path,c)}hasSameParentAs(r){return this.root===r.root&&"same"==tt(this.getParentPath(),r.getParentPath())}getTransformedByOperation(r){let c;switch(r.type){case"insert":c=this._getTransformedByInsertOperation(r);break;case"move":case"remove":case"reinsert":c=this._getTransformedByMoveOperation(r);break;case"split":c=this._getTransformedBySplitOperation(r);break;case"merge":c=this._getTransformedByMergeOperation(r);break;default:c=to._createAt(this)}return c}_getTransformedByInsertOperation(r){return this._getTransformedByInsertion(r.position,r.howMany)}_getTransformedByMoveOperation(r){return this._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}_getTransformedBySplitOperation(r){const c=r.movedRange;return c.containsPosition(this)||c.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(r.splitPosition,r.moveTargetPosition):r.graveyardPosition?this._getTransformedByMove(r.graveyardPosition,r.insertionPosition,1):this._getTransformedByInsertion(r.insertionPosition,1)}_getTransformedByMergeOperation(r){const c=r.movedRange;let u;return c.containsPosition(this)||c.start.isEqual(this)?(u=this._getCombined(r.sourcePosition,r.targetPosition),r.sourcePosition.isBefore(r.targetPosition)&&(u=u._getTransformedByDeletion(r.deletionPosition,1))):u=this.isEqual(r.deletionPosition)?to._createAt(r.deletionPosition):this._getTransformedByMove(r.deletionPosition,r.graveyardPosition,1),u}_getTransformedByDeletion(r,c){const u=to._createAt(this);if(this.root!=r.root)return u;if("same"==tt(r.getParentPath(),this.getParentPath())){if(r.offsetthis.offset)return null;u.offset-=c}}else if("prefix"==tt(r.getParentPath(),this.getParentPath())){const _=r.path.length-1;if(r.offset<=this.path[_]){if(r.offset+c>this.path[_])return null;u.path[_]-=c}}return u}_getTransformedByInsertion(r,c){const u=to._createAt(this);if(this.root!=r.root)return u;if("same"==tt(r.getParentPath(),this.getParentPath()))(r.offset=_;){if(u.path[M]+E!==C.maxOffset)return!1;E=1,M--,C=C.parent}return!0}(m,c+1)}function Vm(m,r){for(;rc+1;){const C=_.maxOffset-u.offset;0!==C&&r.push(new Li(u,u.getShiftedBy(C))),u.path=u.path.slice(0,-1),u.offset++,_=_.parent}for(;u.path.length<=this.end.path.length;){const C=this.end.path[u.path.length-1],M=C-u.offset;0!==M&&r.push(new Li(u,u.getShiftedBy(M))),u.offset=C,u.path.push(0)}return r}getWalker(r={}){return r.boundaries=this,new Gd(r)}*getItems(r={}){r.boundaries=this,r.ignoreElementEnd=!0;const c=new Gd(r);for(const u of c)yield u.item}*getPositions(r={}){r.boundaries=this;const c=new Gd(r);yield c.position;for(const u of c)yield u.nextPosition}getTransformedByOperation(r){switch(r.type){case"insert":return this._getTransformedByInsertOperation(r);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(r);case"split":return[this._getTransformedBySplitOperation(r)];case"merge":return[this._getTransformedByMergeOperation(r)]}return[new Li(this.start,this.end)]}getTransformedByOperations(r){const c=[new Li(this.start,this.end)];for(const u of r)for(let _=0;_0?new this(u,_):new this(_,u)}static _createIn(r){return new this(to._createAt(r,0),to._createAt(r,r.maxOffset))}static _createOn(r){return this._createFromPositionAndShift(to._createBefore(r),r.offsetSize)}static _createFromRanges(r){if(0===r.length)throw new at("range-create-from-ranges-empty-array",null);if(1==r.length)return r[0].clone();const c=r[0];r.sort((C,M)=>C.start.isAfter(M.start)?1:-1);const u=r.indexOf(c),_=new this(c.start,c.end);if(u>0)for(let C=u-1;r[C].end.isEqual(_.start);C++)_.start=to._createAt(r[C].start);for(let C=u+1;C{if(c.viewPosition)return;const u=this._modelToViewMapping.get(c.modelPosition.parent);if(!u)throw new at("mapping-model-position-view-parent-not-found",this,{modelPosition:c.modelPosition});c.viewPosition=this.findPositionIn(u,c.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(r,c)=>{if(c.modelPosition)return;const u=this.findMappedViewAncestor(c.viewPosition),_=this._viewToModelMapping.get(u),C=this._toModelOffset(c.viewPosition.parent,c.viewPosition.offset,u);c.modelPosition=to._createAt(_,C)},{priority:"low"})}bindElements(r,c){this._modelToViewMapping.set(r,c),this._viewToModelMapping.set(c,r)}unbindViewElement(r,c={}){const u=this.toModelElement(r);if(this._elementToMarkerNames.has(r))for(const _ of this._elementToMarkerNames.get(r))this._unboundMarkerNames.add(_);c.defer?this._deferredBindingRemovals.set(r,r.root):(this._viewToModelMapping.delete(r),this._modelToViewMapping.get(u)==r&&this._modelToViewMapping.delete(u))}unbindModelElement(r){const c=this.toViewElement(r);this._modelToViewMapping.delete(r),this._viewToModelMapping.get(c)==r&&this._viewToModelMapping.delete(c)}bindElementToMarker(r,c){const u=this._markerNameToElements.get(c)||new Set;u.add(r);const _=this._elementToMarkerNames.get(r)||new Set;_.add(c),this._markerNameToElements.set(c,u),this._elementToMarkerNames.set(r,_)}unbindElementFromMarkerName(r,c){const u=this._markerNameToElements.get(c);u&&(u.delete(r),0==u.size&&this._markerNameToElements.delete(c));const _=this._elementToMarkerNames.get(r);_&&(_.delete(c),0==_.size&&this._elementToMarkerNames.delete(r))}flushUnboundMarkerNames(){const r=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),r}flushDeferredBindings(){for(const[r,c]of this._deferredBindingRemovals)r.root==c&&this.unbindViewElement(r);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(r){return this._viewToModelMapping.get(r)}toViewElement(r){return this._modelToViewMapping.get(r)}toModelRange(r){return new Li(this.toModelPosition(r.start),this.toModelPosition(r.end))}toViewRange(r){return new Za(this.toViewPosition(r.start),this.toViewPosition(r.end))}toModelPosition(r){const c={viewPosition:r,mapper:this};return this.fire("viewToModelPosition",c),c.modelPosition}toViewPosition(r,c={}){const u={modelPosition:r,mapper:this,isPhantom:c.isPhantom};return this.fire("modelToViewPosition",u),u.viewPosition}markerNameToElements(r){const c=this._markerNameToElements.get(r);if(!c)return null;const u=new Set;for(const _ of c)if(_.is("attributeElement"))for(const C of _.getElementsWithSameId())u.add(C);else u.add(_);return u}registerViewToModelLength(r,c){this._viewToModelLengthCallbacks.set(r,c)}findMappedViewAncestor(r){let c=r.parent;for(;!this._viewToModelMapping.has(c);)c=c.parent;return c}_toModelOffset(r,c,u){if(u!=r)return this._toModelOffset(r.parent,r.index,u)+this._toModelOffset(r,c,r);if(r.is("$text"))return c;let _=0;for(let C=0;C1?r[0]+":"+r[1]:r[0]}var Kf=Object.defineProperty,Xf=Object.defineProperties,Y6=Object.getOwnPropertyDescriptors,Jg=Object.getOwnPropertySymbols,Y2=Object.prototype.hasOwnProperty,th=Object.prototype.propertyIsEnumerable,Y_=(m,r,c)=>r in m?Kf(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Gg=(m,r)=>{for(var c in r||(r={}))Y2.call(r,c)&&Y_(m,c,r[c]);if(Jg)for(var c of Jg(r))th.call(r,c)&&Y_(m,c,r[c]);return m},V_=(m,r)=>Xf(m,Y6(r));class Qg extends(Ne()){constructor(r){super(),this._conversionApi=Gg({dispatcher:this},r),this._firedEventsMap=new WeakMap}convertChanges(r,c,u){const _=this._createConversionApi(u,r.getRefreshedItems());for(const M of r.getMarkersToRemove())this._convertMarkerRemove(M.name,M.range,_);const C=this._reduceChanges(r.getChanges());for(const M of C)"insert"===M.type?this._convertInsert(Li._createFromPositionAndShift(M.position,M.length),_):"reinsert"===M.type?this._convertReinsert(Li._createFromPositionAndShift(M.position,M.length),_):"remove"===M.type?this._convertRemove(M.position,M.length,M.name,_):this._convertAttribute(M.range,M.attributeKey,M.attributeOldValue,M.attributeNewValue,_);for(const M of _.mapper.flushUnboundMarkerNames()){const E=c.get(M).getRange();this._convertMarkerRemove(M,E,_),this._convertMarkerAdd(M,E,_)}for(const M of r.getMarkersToAdd())this._convertMarkerAdd(M.name,M.range,_);_.mapper.flushDeferredBindings(),_.consumable.verifyAllConsumed("insert")}convert(r,c,u,_={}){const C=this._createConversionApi(u,void 0,_);this._convertInsert(r,C);for(const[M,E]of c)this._convertMarkerAdd(M,E,C);C.consumable.verifyAllConsumed("insert")}convertSelection(r,c,u){const _=this._createConversionApi(u);this.fire("cleanSelection",{selection:r},_);const C=r.getFirstPosition().root;if(!_.mapper.toViewElement(C))return;const M=Array.from(c.getMarkersAtPosition(r.getFirstPosition()));if(this._addConsumablesForSelection(_.consumable,r,M),this.fire("selection",{selection:r},_),r.isCollapsed){for(const E of M)if(_.consumable.test(r,"addMarker:"+E.name)){const N=E.getRange();if(!jm(r.getFirstPosition(),E,_.mapper))continue;this.fire(`addMarker:${E.name}`,{item:r,markerName:E.name,markerRange:N},_)}for(const E of r.getAttributeKeys())if(_.consumable.test(r,"attribute:"+E)){const N={item:r,range:r.getFirstRange(),attributeKey:E,attributeOldValue:null,attributeNewValue:r.getAttribute(E)};this.fire(`attribute:${E}:$text`,N,_)}}}_convertInsert(r,c,u={}){u.doNotAddConsumables||this._addConsumablesForInsert(c.consumable,Array.from(r));for(const _ of Array.from(r.getWalker({shallow:!0})).map(j_))this._testAndFire("insert",_,c)}_convertRemove(r,c,u,_){this.fire(`remove:${u}`,{position:r,length:c},_)}_convertAttribute(r,c,u,_,C){this._addConsumablesForRange(C.consumable,r,`attribute:${c}`);for(const M of r){const E={item:M.item,range:Li._createFromPositionAndShift(M.previousPosition,M.length),attributeKey:c,attributeOldValue:u,attributeNewValue:_};this._testAndFire(`attribute:${c}`,E,C)}}_convertReinsert(r,c){const u=Array.from(r.getWalker({shallow:!0}));this._addConsumablesForInsert(c.consumable,u);for(const _ of u.map(j_))this._testAndFire("insert",V_(Gg({},_),{reconversion:!0}),c)}_convertMarkerAdd(r,c,u){if("$graveyard"==c.root.rootName)return;const _=`addMarker:${r}`;if(u.consumable.add(c,_),this.fire(_,{markerName:r,markerRange:c},u),u.consumable.consume(c,_)){this._addConsumablesForRange(u.consumable,c,_);for(const C of c.getItems()){if(!u.consumable.test(C,_))continue;const M={item:C,range:Li._createOn(C),markerName:r,markerRange:c};this.fire(_,M,u)}}}_convertMarkerRemove(r,c,u){"$graveyard"!=c.root.rootName&&this.fire(`removeMarker:${r}`,{markerName:r,markerRange:c},u)}_reduceChanges(r){const c={changes:r};return this.fire("reduceChanges",c),c.changes}_addConsumablesForInsert(r,c){for(const u of c){const _=u.item;if(null===r.test(_,"insert")){r.add(_,"insert");for(const C of _.getAttributeKeys())r.add(_,"attribute:"+C)}}return r}_addConsumablesForRange(r,c,u){for(const _ of c.getItems())r.add(_,u);return r}_addConsumablesForSelection(r,c,u){r.add(c,"selection");for(const _ of u)r.add(c,"addMarker:"+_.name);for(const _ of c.getAttributeKeys())r.add(c,"attribute:"+_);return r}_testAndFire(r,c,u){const _=`${r}:${(j=c).item.is("element")?j.item.name:"$text"}`,C=c.item.is("$textProxy")?u.consumable._getSymbolForTextProxy(c.item):c.item,M=this._firedEventsMap.get(u),E=M.get(C);var j;if(E){if(E.has(_))return;E.add(_)}else M.set(C,new Set([_]));this.fire(_,c,u)}_testAndFireAddAttributes(r,c){const u={item:r,range:Li._createOn(r)};for(const _ of u.item.getAttributeKeys())u.attributeKey=_,u.attributeOldValue=null,u.attributeNewValue=u.item.getAttribute(_),this._testAndFire(`attribute:${_}`,u,c)}_createConversionApi(r,c=new Set,u={}){const _=V_(Gg({},this._conversionApi),{consumable:new j3,writer:r,options:u,convertItem:C=>this._convertInsert(Li._createOn(C),_),convertChildren:C=>this._convertInsert(Li._createIn(C),_,{doNotAddConsumables:!0}),convertAttributes:C=>this._testAndFireAddAttributes(C,_),canReuseView:C=>!c.has(_.mapper.toModelElement(C))});return this._firedEventsMap.set(_,new Map),_}}function jm(m,r,c){const u=r.getRange(),_=Array.from(m.getAncestors());return _.shift(),_.reverse(),!_.some(C=>{if(u.containsItem(C))return!!c.toViewElement(C).getCustomProperty("addHighlight")})}function j_(m){return{item:m.item,range:Li._createFromPositionAndShift(m.previousPosition,m.length)}}class Ud extends(Ne(Zp)){constructor(...r){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],r.length&&this.setTo(...r)}get anchor(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.end:r.start}return null}get focus(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.start:r.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(r){if(this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const c of this._ranges){let u=!1;for(const _ of r._ranges)if(c.isEqual(_)){u=!0;break}if(!u)return!1}return!0}*getRanges(){for(const r of this._ranges)yield new Li(r.start,r.end)}getFirstRange(){let r=null;for(const c of this._ranges)r&&!c.start.isBefore(r.start)||(r=c);return r?new Li(r.start,r.end):null}getLastRange(){let r=null;for(const c of this._ranges)r&&!c.end.isAfter(r.end)||(r=c);return r?new Li(r.start,r.end):null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}setTo(...r){let[c,u,_]=r;if("object"==typeof u&&(_=u,u=void 0),null===c)this._setRanges([]);else if(c instanceof Ud)this._setRanges(c.getRanges(),c.isBackward);else if(c&&"function"==typeof c.getRanges)this._setRanges(c.getRanges(),c.isBackward);else if(c instanceof Li)this._setRanges([c],!!_&&!!_.backward);else if(c instanceof to)this._setRanges([new Li(c)]);else if(c instanceof oc){const C=!!_&&!!_.backward;let M;if("in"==u)M=Li._createIn(c);else if("on"==u)M=Li._createOn(c);else{if(void 0===u)throw new at("model-selection-setto-required-second-parameter",[this,c]);M=new Li(to._createAt(c,u))}this._setRanges([M],C)}else{if(!et(c))throw new at("model-selection-setto-not-selectable",[this,c]);this._setRanges(c,_&&!!_.backward)}}_setRanges(r,c=!1){const u=Array.from(r),_=u.some(C=>{if(!(C instanceof Li))throw new at("model-selection-set-ranges-not-range",[this,r]);return this._ranges.every(M=>!M.isEqual(C))});(u.length!==this._ranges.length||_)&&(this._replaceAllRanges(u),this._lastRangeBackward=!!c,this.fire("change:range",{directChange:!0}))}setFocus(r,c){if(null===this.anchor)throw new at("model-selection-setfocus-no-ranges",[this,r]);const u=to._createAt(r,c);if("same"==u.compareWith(this.focus))return;const _=this.anchor;this._ranges.length&&this._popRange(),"before"==u.compareWith(_)?(this._pushRange(new Li(u,_)),this._lastRangeBackward=!0):(this._pushRange(new Li(_,u)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(r){return this._attrs.get(r)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(r){return this._attrs.has(r)}removeAttribute(r){this.hasAttribute(r)&&(this._attrs.delete(r),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}setAttribute(r,c){this.getAttribute(r)!==c&&(this._attrs.set(r,c),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const r=new WeakSet;for(const c of this.getRanges()){const u=$g(c.start,r);V2(u,c)&&(yield u);for(const C of c.getWalker()){const M=C.item;"elementEnd"==C.type&&J3(M,r,c)&&(yield M)}const _=$g(c.end,r);Xg(_,c)&&(yield _)}}containsEntireContent(r=this.anchor.root){const c=to._createAt(r,0),u=to._createAt(r,"end");return c.isTouching(this.getFirstPosition())&&u.isTouching(this.getLastPosition())}_pushRange(r){this._checkRange(r),this._ranges.push(new Li(r.start,r.end))}_checkRange(r){for(let c=0;c0;)this._popRange()}_popRange(){this._ranges.pop()}}function Wg(m,r){return!r.has(m)&&(r.add(m),m.root.document.model.schema.isBlock(m)&&!!m.parent)}function J3(m,r,c){return Wg(m,r)&&Kg(m,c)}function $g(m,r){const c=m.parent.root.document.model.schema,u=m.parent.getAncestors({parentFirst:!0,includeSelf:!0});let _=!1;const C=u.find(M=>!_&&(_=c.isLimit(M),!_&&Wg(M,r)));return u.forEach(M=>r.add(M)),C}function Kg(m,r){const c=function(u){const _=u.root.document.model.schema;let C=u.parent;for(;C;){if(_.isBlock(C))return C;C=C.parent}}(m);return!c||!r.containsRange(Li._createOn(c),!0)}function V2(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.start.isTouching(to._createAt(m,m.maxOffset))&&Kg(m,r))}function Xg(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.end.isTouching(to._createAt(m,0))&&Kg(m,r))}Ud.prototype.is=function(m){return"selection"===m||"model:selection"===m};class Xu extends(Ne(Li)){constructor(r,c){super(r,c),eh.call(this)}detach(){this.stopListening()}toRange(){return new Li(this.start,this.end)}static fromRange(r){return new Xu(r.start,r.end)}}function eh(){this.listenTo(this.root.document.model,"applyOperation",(m,r)=>{const c=r[0];c.isDocumentOperation&&J_.call(this,c)},{priority:"low"})}function J_(m){const r=this.getTransformedByOperation(m),c=Li._createFromRanges(r),u=!c.isEqual(this),_=function(M,E){switch(E.type){case"insert":return M.containsPosition(E.position);case"move":case"remove":case"reinsert":case"merge":return M.containsPosition(E.sourcePosition)||M.start.isEqual(E.sourcePosition)||M.containsPosition(E.targetPosition);case"split":return M.containsPosition(E.splitPosition)||M.containsPosition(E.insertionPosition)}return!1}(this,m);let C=null;if(u){"$graveyard"==c.root.rootName&&(C="remove"==m.type?m.sourcePosition:m.deletionPosition);const M=this.toRange();this.start=c.start,this.end=c.end,this.fire("change:range",M,{deletionPosition:C})}else _&&this.fire("change:content",this.toRange(),{deletionPosition:C})}Xu.prototype.is=function(m){return"liveRange"===m||"model:liveRange"===m||"range"==m||"model:range"===m};const j2="selection:";class Ou extends(Ne(Zp)){constructor(r){super(),this._selection=new sm(r),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(r){return this._selection.containsEntireContent(r)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(r){return this._selection.getAttribute(r)}hasAttribute(r){return this._selection.hasAttribute(r)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(r){this._selection.observeMarkers(r)}_setFocus(r,c){this._selection.setFocus(r,c)}_setTo(...r){this._selection.setTo(...r)}_setAttribute(r,c){this._selection.setAttribute(r,c)}_removeAttribute(r){this._selection.removeAttribute(r)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(r){this._selection.restoreGravity(r)}static _getStoreAttributeKey(r){return j2+r}static _isStoreAttributeKey(r){return r.startsWith(j2)}}Ou.prototype.is=function(m){return"selection"===m||"model:selection"==m||"documentSelection"==m||"model:documentSelection"==m};class sm extends Ud{constructor(r){super(),this.markers=new ec({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=r.model,this._document=r,this.listenTo(this._model,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&"marker"!=_.type&&"rename"!=_.type&&"noop"!=_.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(c,u,_,C)=>{this._updateMarker(u,C)}),this.listenTo(this._document,"change",(c,u)=>{!function(_,C){const M=_.document.differ;for(const E of M.getChanges()){if("insert"!=E.type)continue;const N=E.position.parent;E.length===N.maxOffset&&_.enqueueChange(C,j=>{const K=Array.from(N.getAttributeKeys()).filter(dt=>dt.startsWith(j2));for(const dt of K)j.removeAttribute(dt,N)})}}(this._model,u)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let r=0;r{if(this._hasChangedRange=!0,c.root==this._document.graveyard){this._selectionRestorePosition=C.deletionPosition;const M=this._ranges.indexOf(c);this._ranges.splice(M,1),c.detach()}}),c}updateMarkers(){if(!this._observedMarkers.size)return;const r=[];let c=!1;for(const _ of this._model.markers){const C=_.name.split(":",1)[0];if(!this._observedMarkers.has(C))continue;const M=_.getRange();for(const E of this.getRanges())M.containsRange(E,!E.isCollapsed)&&r.push(_)}const u=Array.from(this.markers);for(const _ of r)this.markers.has(_)||(this.markers.add(_),c=!0);for(const _ of Array.from(this.markers))r.includes(_)||(this.markers.remove(_),c=!0);c&&this.fire("change:marker",{oldMarkers:u,directChange:!1})}_updateMarker(r,c){const u=r.name.split(":",1)[0];if(!this._observedMarkers.has(u))return;let _=!1;const C=Array.from(this.markers),M=this.markers.has(r);if(c){let E=!1;for(const N of this.getRanges())if(c.containsRange(N,!N.isCollapsed)){E=!0;break}E&&!M?(this.markers.add(r),_=!0):!E&&M&&(this.markers.remove(r),_=!0)}else M&&(this.markers.remove(r),_=!0);_&&this.fire("change:marker",{oldMarkers:C,directChange:!1})}_updateAttributes(r){const c=Kc(this._getSurroundingAttributes()),u=Kc(this.getAttributes());if(r)this._attributePriority=new Map,this._attrs=new Map;else for(const[C,M]of this._attributePriority)"low"==M&&(this._attrs.delete(C),this._attributePriority.delete(C));this._setAttributesTo(c);const _=[];for(const[C,M]of this.getAttributes())u.has(C)&&u.get(C)===M||_.push(C);for(const[C]of u)this.hasAttribute(C)||_.push(C);_.length>0&&this.fire("change:attribute",{attributeKeys:_,directChange:!1})}_setAttribute(r,c,u=!0){const _=u?"normal":"low";return("low"!=_||"normal"!=this._attributePriority.get(r))&&super.getAttribute(r)!==c&&(this._attrs.set(r,c),this._attributePriority.set(r,_),!0)}_removeAttribute(r,c=!0){const u=c?"normal":"low";return!("low"==u&&"normal"==this._attributePriority.get(r)||(this._attributePriority.set(r,u),!super.hasAttribute(r)||(this._attrs.delete(r),0)))}_setAttributesTo(r){const c=new Set;for(const[u,_]of this.getAttributes())r.get(u)!==_&&this._removeAttribute(u,!1);for(const[u,_]of r)this._setAttribute(u,_,!1)&&c.add(u);return c}*getStoredAttributes(){const r=this.getFirstPosition().parent;if(this.isCollapsed&&r.isEmpty)for(const c of r.getAttributeKeys())c.startsWith(j2)&&(yield[c.substr(10),r.getAttribute(c)])}_getSurroundingAttributes(){const r=this.getFirstPosition(),c=this._model.schema;if("$graveyard"==r.root.rootName)return null;let u=null;if(this.isCollapsed){const _=r.textNode?r.textNode:r.nodeBefore,C=r.textNode?r.textNode:r.nodeAfter;if(this.isGravityOverridden||(u=J2(_,c)),u||(u=J2(C,c)),!this.isGravityOverridden&&!u){let M=_;for(;M&&!u;)M=M.previousSibling,u=J2(M,c)}if(!u){let M=C;for(;M&&!u;)M=M.nextSibling,u=J2(M,c)}u||(u=this.getStoredAttributes())}else{const _=this.getFirstRange();for(const C of _){if(C.item.is("element")&&c.isObject(C.item)){u=J2(C.item,c);break}if("text"==C.type){u=C.item.getAttributes();break}}}return u}_fixGraveyardSelection(r){const c=this._model.schema.getNearestSelectionRange(r);c&&this._pushRange(c)}}function J2(m,r){if(!m)return null;if(m instanceof Ku||m instanceof rs)return m.getAttributes();if(!r.isInline(m))return null;if(!r.isObject(m))return[];const c=[];for(const[u,_]of m.getAttributes())r.checkAttribute("$text",u)&&!1!==r.getAttributeProperties(u).copyFromObject&&c.push([u,_]);return c}class no{constructor(r){this._dispatchers=r}add(r){for(const c of this._dispatchers)r(c);return this}}class V6 extends no{elementToElement(r){return this.add(function(c){const u=G2(c.model),_=Q2(c.view,"container");return u.attributes.length&&(u.children=!0),C=>{C.on(`insert:${u.name}`,function(M,E=J6){return(N,j,K)=>{if(!E(j.item,K.consumable,{preflight:!0}))return;const dt=M(j.item,K,j);if(!dt)return;E(j.item,K.consumable);const Dt=K.mapper.toViewPosition(j.range.start);K.mapper.bindElements(j.item,dt),K.writer.insert(Dt,dt),K.convertAttributes(j.item),e0(dt,j.item.getChildren(),K,{reconversion:j.reconversion})}}(_,j6(u)),{priority:c.converterPriority||"normal"}),(u.children||u.attributes.length)&&C.on("reduceChanges",G3(u),{priority:"low"})}}(r))}elementToStructure(r){return this.add(function(c){const u=G2(c.model),_=Q2(c.view,"container");return u.children=!0,C=>{if(C._conversionApi.schema.checkChild(u.name,"$text"))throw new at("conversion-element-to-structure-disallowed-text",C,{elementName:u.name});var M,E;C.on(`insert:${u.name}`,(M=_,E=j6(u),(N,j,K)=>{if(!E(j.item,K.consumable,{preflight:!0}))return;const dt=new Map;var Ue,qe,pn;K.writer._registerSlotFactory((Ue=j.item,qe=dt,pn=K,(Ln,pi)=>{const Ri=Ln.createContainerElement("$slot");let Go=null;if("children"===pi)Go=Array.from(Ue.getChildren());else{if("function"!=typeof pi)throw new at("conversion-slot-mode-unknown",pn.dispatcher,{modeOrFilter:pi});Go=Array.from(Ue.getChildren()).filter(ka=>pi(ka))}return qe.set(Ri,Go),Ri}));const Dt=M(j.item,K,j);if(K.writer._clearSlotFactory(),!Dt)return;(function(Ue,qe,pn){const Ln=Array.from(qe.values()).flat(),pi=new Set(Ln);if(pi.size!=Ln.length)throw new at("conversion-slot-filter-overlap",pn.dispatcher,{element:Ue});if(pi.size!=Ue.childCount)throw new at("conversion-slot-filter-incomplete",pn.dispatcher,{element:Ue})})(j.item,dt,K),E(j.item,K.consumable);const me=K.mapper.toViewPosition(j.range.start);K.mapper.bindElements(j.item,Dt),K.writer.insert(me,Dt),K.convertAttributes(j.item),function(Ue,qe,pn,Ln){pn.mapper.on("modelToViewPosition",Go,{priority:"highest"});let pi=null,Ri=null;for([pi,Ri]of qe)e0(Ue,Ri,pn,Ln),pn.writer.move(pn.writer.createRangeIn(pi),pn.writer.createPositionBefore(pi)),pn.writer.remove(pi);function Go(ka,Ts){const Il=Ri.indexOf(Ts.modelPosition.nodeAfter);Il<0||(Ts.viewPosition=Ts.mapper.findPositionIn(pi,Il))}pn.mapper.off("modelToViewPosition",Go)}(Dt,dt,K,{reconversion:j.reconversion})}),{priority:c.converterPriority||"normal"}),C.on("reduceChanges",G3(u),{priority:"low"})}}(r))}attributeToElement(r){return this.add(function(c){let u=(c=U1(c)).model;"string"==typeof u&&(u={key:u});let _=`attribute:${u.key}`;if(u.name&&(_+=":"+u.name),u.values)for(const M of u.values)c.view[M]=Q2(c.view[M],"attribute");else c.view=Q2(c.view,"attribute");const C=Mp(c);return M=>{var E;M.on(_,(E=C,(N,j,K)=>{if(!K.consumable.test(j.item,N.name))return;const dt=E(j.attributeOldValue,K,j),Dt=E(j.attributeNewValue,K,j);if(!dt&&!Dt)return;K.consumable.consume(j.item,N.name);const me=K.writer;if(j.item instanceof Ud||j.item instanceof Ou)me.wrap(me.document.selection.getFirstRange(),Dt);else{let qe=K.mapper.toViewRange(j.range);null!==j.attributeOldValue&&dt&&(qe=me.unwrap(qe,dt)),null!==j.attributeNewValue&&Dt&&me.wrap(qe,Dt)}}),{priority:c.converterPriority||"normal"})}}(r))}attributeToAttribute(r){return this.add(function(c){let u=(c=U1(c)).model;"string"==typeof u&&(u={key:u});let _=`attribute:${u.key}`;if(u.name&&(_+=":"+u.name),u.values)for(const M of u.values)c.view[M]=V1(c.view[M]);else c.view=V1(c.view);const C=Mp(c);return M=>{var E;M.on(_,(E=C,(N,j,K)=>{if(!K.consumable.test(j.item,N.name))return;const dt=E(j.attributeOldValue,K,j),Dt=E(j.attributeNewValue,K,j);if(!dt&&!Dt)return;K.consumable.consume(j.item,N.name);const me=K.mapper.toViewElement(j.item),Ue=K.writer;if(!me)throw new at("conversion-attribute-to-attribute-on-text",K.dispatcher,j);if(null!==j.attributeOldValue&&dt)if("class"==dt.key){const qe=Ss(dt.value);for(const pn of qe)Ue.removeClass(pn,me)}else if("style"==dt.key){const qe=Object.keys(dt.value);for(const pn of qe)Ue.removeStyle(pn,me)}else Ue.removeAttribute(dt.key,me);if(null!==j.attributeNewValue&&Dt)if("class"==Dt.key){const qe=Ss(Dt.value);for(const pn of qe)Ue.addClass(pn,me)}else if("style"==Dt.key){const qe=Object.keys(Dt.value);for(const pn of qe)Ue.setStyle(pn,Dt.value[pn],me)}else Ue.setAttribute(Dt.key,Dt.value,me)}),{priority:c.converterPriority||"normal"})}}(r))}markerToElement(r){return this.add(function(c){const u=Q2(c.view,"ui");return _=>{var C;_.on(`addMarker:${c.model}`,(C=u,(M,E,N)=>{E.isOpening=!0;const j=C(E,N);E.isOpening=!1;const K=C(E,N);if(!j||!K)return;const dt=E.markerRange;if(dt.isCollapsed&&!N.consumable.consume(dt,M.name))return;for(const Ue of dt)if(!N.consumable.consume(Ue.item,M.name))return;const Dt=N.mapper,me=N.writer;me.insert(Dt.toViewPosition(dt.start),j),N.mapper.bindElementToMarker(j,E.markerName),dt.isCollapsed||(me.insert(Dt.toViewPosition(dt.end),K),N.mapper.bindElementToMarker(K,E.markerName)),M.stop()}),{priority:c.converterPriority||"normal"}),_.on(`removeMarker:${c.model}`,(M,E,N)=>{const j=N.mapper.markerNameToElements(E.markerName);if(j){for(const K of j)N.mapper.unbindElementFromMarkerName(K,E.markerName),N.writer.clear(N.writer.createRangeOn(K),K);N.writer.clearClonedElementsGroup(E.markerName),M.stop()}},{priority:c.converterPriority||"normal"})}}(r))}markerToHighlight(r){return this.add((c=r,u=>{var _,C;u.on(`addMarker:${c.model}`,(_=c.view,(C,M,E)=>{if(!M.item||!(M.item instanceof Ud||M.item instanceof Ou||M.item.is("$textProxy")))return;const N=W2(_,M,E);if(!N||!E.consumable.consume(M.item,C.name))return;const j=E.writer,K=t0(j,N);if(M.item instanceof Ud||M.item instanceof Ou)j.wrap(j.document.selection.getFirstRange(),K);else{const Dt=E.mapper.toViewRange(M.range),me=j.wrap(Dt,K);for(const Ue of me.getItems())if(Ue.is("attributeElement")&&Ue.isSimilar(K)){E.mapper.bindElementToMarker(Ue,M.markerName);break}}}),{priority:c.converterPriority||"normal"}),u.on(`addMarker:${c.model}`,(C=c.view,(M,E,N)=>{if(!(E.item&&E.item instanceof Jr))return;const j=W2(C,E,N);if(!j||!N.consumable.test(E.item,M.name))return;const K=N.mapper.toViewElement(E.item);if(K&&K.getCustomProperty("addHighlight")){N.consumable.consume(E.item,M.name);for(const dt of Li._createIn(E.item))N.consumable.consume(dt.item,M.name);K.getCustomProperty("addHighlight")(K,j,N.writer),N.mapper.bindElementToMarker(K,E.markerName)}}),{priority:c.converterPriority||"normal"}),u.on(`removeMarker:${c.model}`,function(C){return(M,E,N)=>{if(E.markerRange.isCollapsed)return;const j=W2(C,E,N);if(!j)return;const K=t0(N.writer,j),dt=N.mapper.markerNameToElements(E.markerName);if(dt){for(const Dt of dt)N.mapper.unbindElementFromMarkerName(Dt,E.markerName),Dt.is("attributeElement")?N.writer.unwrap(N.writer.createRangeOn(Dt),K):Dt.getCustomProperty("removeHighlight")(Dt,j.id,N.writer);N.writer.clearClonedElementsGroup(E.markerName),M.stop()}}}(c.view),{priority:c.converterPriority||"normal"})}));var c}markerToData(r){return this.add(function(c){const u=(c=U1(c)).model;let _=c.view;return _||(_=C=>({group:u,name:C.substr(c.model.length+1)})),C=>{var M,E;C.on(`addMarker:${u}`,(M=_,(E,N,j)=>{const K=M(N.markerName,j);if(!K)return;const dt=N.markerRange;j.consumable.consume(dt,E.name)&&(Eu(dt,!1,j,N,K),Eu(dt,!0,j,N,K),E.stop())}),{priority:c.converterPriority||"normal"}),C.on(`removeMarker:${u}`,(E=_,(N,j,K)=>{const dt=E(j.markerName,K);if(!dt)return;const Dt=K.mapper.markerNameToElements(j.markerName);if(Dt){for(const Ue of Dt)K.mapper.unbindElementFromMarkerName(Ue,j.markerName),Ue.is("containerElement")?(me(`data-${dt.group}-start-before`,Ue),me(`data-${dt.group}-start-after`,Ue),me(`data-${dt.group}-end-before`,Ue),me(`data-${dt.group}-end-after`,Ue)):K.writer.clear(K.writer.createRangeOn(Ue),Ue);K.writer.clearClonedElementsGroup(j.markerName),N.stop()}function me(Ue,qe){if(qe.hasAttribute(Ue)){const pn=new Set(qe.getAttribute(Ue).split(","));pn.delete(dt.name),0==pn.size?K.writer.removeAttribute(Ue,qe):K.writer.setAttribute(Ue,Array.from(pn).join(","),qe)}}}),{priority:c.converterPriority||"normal"})}}(r))}}function t0(m,r){const c=m.createAttributeElement("span",r.attributes);return r.classes&&c._addClass(r.classes),"number"==typeof r.priority&&(c._priority=r.priority),c._id=r.id,c}function Eu(m,r,c,u,_){const C=r?m.start:m.end,M=C.nodeAfter&&C.nodeAfter.is("element")?C.nodeAfter:null,E=C.nodeBefore&&C.nodeBefore.is("element")?C.nodeBefore:null;if(M||E){let N,j;r&&M||!r&&!E?(N=M,j=!0):(N=E,j=!1);const K=c.mapper.toViewElement(N);if(K)return void function(dt,Dt,me,Ue,qe,pn){const Ln=`data-${pn.group}-${Dt?"start":"end"}-${me?"before":"after"}`,pi=dt.hasAttribute(Ln)?dt.getAttribute(Ln).split(","):[];pi.unshift(pn.name),Ue.writer.setAttribute(Ln,pi.join(","),dt),Ue.mapper.bindElementToMarker(dt,qe.markerName)}(K,r,j,c,u,_)}!function(N,j,K,dt,Dt){const qe=K.writer.createUIElement(`${Dt.group}-${j?"start":"end"}`,Dt.name?{name:Dt.name}:null);K.writer.insert(N,qe),K.mapper.bindElementToMarker(qe,dt.markerName)}(c.mapper.toViewPosition(C),r,c,u,_)}function G2(m){return"string"==typeof m&&(m={name:m}),m.attributes?Array.isArray(m.attributes)||(m.attributes=[m.attributes]):m.attributes=[],m.children=!!m.children,m}function Q2(m,r){return"function"==typeof m?m:(c,u)=>function(_,C,M){let E;"string"==typeof _&&(_={name:_});const N=C.writer,j=Object.assign({},_.attributes);if(E="container"==M?N.createContainerElement(_.name,j):"attribute"==M?N.createAttributeElement(_.name,j,{priority:_.priority||tm.DEFAULT_PRIORITY}):N.createUIElement(_.name,j),_.styles){const K=Object.keys(_.styles);for(const dt of K)N.setStyle(dt,_.styles[dt],E)}if(_.classes){const K=_.classes;if("string"==typeof K)N.addClass(K,E);else for(const dt of K)N.addClass(dt,E)}return E}(m,u,r)}function Mp(m){return m.model.values?(r,c,u)=>{const _=m.view[r];return _?_(r,c,u):null}:m.view}function V1(m){return"string"==typeof m?r=>({key:m,value:r}):"object"==typeof m?m.value?()=>m:r=>({key:m.key,value:r}):m}function W2(m,r,c){const u="function"==typeof m?m(r,c):m;return u?(u.priority||(u.priority=10),u.id||(u.id=r.markerName),u):null}function G3(m){const r=(c=m,(u,_)=>{if(!u.is("element",c.name))return!1;if("attribute"==_.type){if(c.attributes.includes(_.attributeKey))return!0}else if(c.children)return!0;return!1});var c;return(c,u)=>{const _=[];u.reconvertedElements||(u.reconvertedElements=new Set);for(const C of u.changes){const M="attribute"==C.type?C.range.start.nodeAfter:C.position.parent;if(M&&r(M,C)){if(!u.reconvertedElements.has(M)){u.reconvertedElements.add(M);const E=to._createBefore(M);let N=_.length;for(let j=_.length-1;j>=0;j--){const K=_[j],dt=("attribute"==K.type?K.range.start:K.position).compareWith(E);if("before"==dt||"remove"==K.type&&"same"==dt)break;N=j}_.splice(N,0,{type:"remove",name:M.name,position:E,length:1},{type:"reinsert",name:M.name,position:E,length:1})}}else _.push(C)}u.changes=_}}function j6(m){return(r,c,u={})=>{const _=["insert"];for(const C of m.attributes)r.hasAttribute(C)&&_.push(`attribute:${C}`);return!!_.every(C=>c.test(r,C))&&(u.preflight||_.forEach(C=>c.consume(r,C)),!0)}}function e0(m,r,c,u){for(const _ of r)cm(m.root,_,c,u)||c.convertItem(_)}function cm(m,r,c,u){const{writer:_,mapper:C}=c;if(!u.reconversion)return!1;const M=C.toViewElement(r);return!(!M||M.root==m||!c.canReuseView(M)||(_.move(_.createRangeOn(M),C.toViewPosition(to._createBefore(r))),0))}function J6(m,r,{preflight:c}={}){return c?r.test(m,"insert"):r.consume(m,"insert")}function nh(m){const{schema:r,document:c}=m.model;for(const u of c.getRoots())if(u.isEmpty&&!r.checkChild(u,"$text")&&r.checkChild(u,"paragraph"))return m.insertElement("paragraph",u),!0;return!1}function $2(m,r,c){const u=c.createContext(m);return!!c.checkChild(u,"paragraph")&&!!c.checkChild(u.push("paragraph"),r)}function n0(m,r){const c=r.createElement("paragraph");return r.insert(c,m),r.createPositionAt(c,0)}var Q3=Object.defineProperty,K2=Object.defineProperties,ih=Object.getOwnPropertyDescriptors,oh=Object.getOwnPropertySymbols,Qd=Object.prototype.hasOwnProperty,o0=Object.prototype.propertyIsEnumerable,G_=(m,r,c)=>r in m?Q3(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class G6 extends no{elementToElement(r){return this.add(W3(r))}elementToAttribute(r){return this.add(function(c){Sl(c=U1(c));const u=Wd(c,!1),_=ah(c.view),C=_?`element:${_}`:"element";return M=>{M.on(C,u,{priority:c.converterPriority||"low"})}}(r))}attributeToAttribute(r){return this.add(function(c){let u=null;("string"==typeof(c=U1(c)).view||c.view.key)&&(u=function(C){"string"==typeof C.view&&(C.view={key:C.view});const M=C.view.key;let E;return E="class"==M||"style"==M?{["class"==M?"classes":"styles"]:C.view.value}:{attributes:{[M]:void 0===C.view.value?/[\s\S]*/:C.view.value}},C.view.name&&(E.name=C.view.name),C.view=E,M}(c)),Sl(c,u);const _=Wd(c,!0);return C=>{C.on("element",_,{priority:c.converterPriority||"low"})}}(r))}elementToMarker(r){return this.add(function(c){const u=(M=c.model,(E,N)=>{const j="string"==typeof M?M:M(E,N);return N.writer.createElement("$marker",{"data-name":j})});var M,_;return W3((_=((M,E)=>{for(var N in E||(E={}))Qd.call(E,N)&&G_(M,N,E[N]);if(oh)for(var N of oh(E))o0.call(E,N)&&G_(M,N,E[N]);return M})({},c),K2(_,ih({model:u}))))}(r))}dataToMarker(r){return this.add(function(c){(c=U1(c)).model||(c.model=M=>M?c.view+":"+M:c.view);const u={view:c.view,model:c.model},_=lm(kp(u,"start")),C=lm(kp(u,"end"));return M=>{M.on(`element:${c.view}-start`,_,{priority:c.converterPriority||"normal"}),M.on(`element:${c.view}-end`,C,{priority:c.converterPriority||"normal"});const E=St.low,N=St.highest,j=St.get(c.converterPriority)/N;var K;M.on("element",(K=u,(dt,Dt,me)=>{const Ue=`data-${K.view}`;function qe(pn,Ln){for(const pi of Ln){const Ri=K.model(pi,me),Go=me.writer.createElement("$marker",{"data-name":Ri});me.writer.insert(Go,pn),Dt.modelCursor=Dt.modelCursor.isEqual(pn)?Dt.modelCursor.getShiftedBy(1):Dt.modelCursor._getTransformedByInsertion(pn,1),Dt.modelRange=Dt.modelRange._getTransformedByInsertion(pn,1)[0]}}(me.consumable.test(Dt.viewItem,{attributes:Ue+"-end-after"})||me.consumable.test(Dt.viewItem,{attributes:Ue+"-start-after"})||me.consumable.test(Dt.viewItem,{attributes:Ue+"-end-before"})||me.consumable.test(Dt.viewItem,{attributes:Ue+"-start-before"}))&&(Dt.modelRange||Object.assign(Dt,me.convertChildren(Dt.viewItem,Dt.modelCursor)),me.consumable.consume(Dt.viewItem,{attributes:Ue+"-end-after"})&&qe(Dt.modelRange.end,Dt.viewItem.getAttribute(Ue+"-end-after").split(",")),me.consumable.consume(Dt.viewItem,{attributes:Ue+"-start-after"})&&qe(Dt.modelRange.end,Dt.viewItem.getAttribute(Ue+"-start-after").split(",")),me.consumable.consume(Dt.viewItem,{attributes:Ue+"-end-before"})&&qe(Dt.modelRange.start,Dt.viewItem.getAttribute(Ue+"-end-before").split(",")),me.consumable.consume(Dt.viewItem,{attributes:Ue+"-start-before"})&&qe(Dt.modelRange.start,Dt.viewItem.getAttribute(Ue+"-start-before").split(",")))}),{priority:E+j})}}(r))}}function W3(m){const r=lm(m=U1(m)),c=ah(m.view),u=c?`element:${c}`:"element";return _=>{_.on(u,r,{priority:m.converterPriority||"normal"})}}function ah(m){return"string"==typeof m?m:"object"==typeof m&&"string"==typeof m.name?m.name:null}function lm(m){const r=new ds(m.view);return(c,u,_)=>{const C=r.match(u.viewItem);if(!C)return;const M=C.match;if(M.name=!0,!_.consumable.test(u.viewItem,M))return;const E=(K=_,(N=m.model)instanceof Function?N(u.viewItem,K):K.writer.createElement(N));var N,K;E&&_.safeInsert(E,u.modelCursor)&&(_.consumable.consume(u.viewItem,M),_.convertChildren(u.viewItem,E),_.updateConversionResult(E,u))}}function Sl(m,r=null){m.model={key:"object"!=typeof m.model?m.model:m.model.key,value:"object"!=typeof m.model||void 0===m.model.value?null===r||(C=>C.getAttribute(r)):m.model.value}}function Wd(m,r){const c=new ds(m.view);return(u,_,C)=>{if(!_.modelRange&&r)return;const M=c.match(_.viewItem);if(!M||(function(K,dt){const Dt="function"==typeof K?K(dt):K;return!("object"==typeof Dt&&!ah(Dt)||Dt.classes||Dt.attributes||Dt.styles)}(m.view,_.viewItem)?M.match.name=!0:delete M.match.name,!C.consumable.test(_.viewItem,M.match)))return;const E=m.model.key,N="function"==typeof m.model.value?m.model.value(_.viewItem,C):m.model.value;null!==N&&(_.modelRange||Object.assign(_,C.convertChildren(_.viewItem,_.modelCursor)),function(K,dt,Dt,me){let Ue=!1;for(const qe of Array.from(K.getItems({shallow:Dt})))me.schema.checkAttribute(qe,dt.key)&&(Ue=!0,qe.hasAttribute(dt.key)||me.writer.setAttribute(dt.key,dt.value,qe));return Ue}(_.modelRange,{key:E,value:N},r,C)&&(C.consumable.test(_.viewItem,{name:!0})&&(M.match.name=!0),C.consumable.consume(_.viewItem,M.match)))}}function kp(m,r){return{view:`${m.view}-${r}`,model:(c,u)=>{const _=c.getAttribute("name"),C=m.model(_,u);return u.writer.createElement("$marker",{"data-name":C})}}}function Ga(m,r){return m.isCollapsed?function(c,u){const _=c.start,C=u.getNearestSelectionRange(_);if(!C){const E=_.getAncestors().reverse().find(N=>u.isObject(N));return E?Li._createOn(E):null}if(!C.isCollapsed)return C;const M=C.start;return _.isEqual(M)?null:new Li(M)}(m,r):function(c,u){const{start:_,end:C}=c,M=u.checkChild(_,"$text"),E=u.checkChild(C,"$text"),N=u.getLimitElement(_),j=u.getLimitElement(C);if(N===j){if(M&&E)return null;if(function(Dt,me,Ue){const qe=Dt.nodeAfter&&!Ue.isLimit(Dt.nodeAfter)||Ue.checkChild(Dt,"$text"),pn=me.nodeBefore&&!Ue.isLimit(me.nodeBefore)||Ue.checkChild(me,"$text");return qe||pn}(_,C,u)){const Dt=_.nodeAfter&&u.isSelectable(_.nodeAfter)?null:u.getNearestSelectionRange(_,"forward"),me=C.nodeBefore&&u.isSelectable(C.nodeBefore)?null:u.getNearestSelectionRange(C,"backward");return new Li(Dt?Dt.start:_,me?me.end:C)}}const K=N&&!N.is("rootElement"),dt=j&&!j.is("rootElement");if(K||dt){const Dt=_.nodeAfter&&C.nodeBefore&&_.nodeAfter.parent===C.nodeBefore.parent,me=K&&(!Dt||!Q_(_.nodeAfter,u)),Ue=dt&&(!Dt||!Q_(C.nodeBefore,u));let qe=_,pn=C;return me&&(qe=to._createBefore(sh(N,u))),Ue&&(pn=to._createAfter(sh(j,u))),new Li(qe,pn)}return null}(m,r)}function sh(m,r){let c=m,u=c;for(;r.isLimit(u)&&u.parent;)c=u,u=u.parent;return c}function Q_(m,r){return m&&r.isSelectable(m)}class um extends(Ze()){constructor(r,c){super(),this.model=r,this.view=new jg(c),this.mapper=new V3,this.downcastDispatcher=new Qg({mapper:this.mapper,schema:r.schema});const u=this.model.document,_=u.selection,C=this.model.markers;var M,E,N,j,K;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(u,"change",()=>{this.view.change(j=>{this.downcastDispatcher.convertChanges(u.differ,C,j),this.downcastDispatcher.convertSelection(_,C,j)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(j=this.model,K=this.mapper,(dt,Dt)=>{const me=Dt.newSelection,Ue=[];for(const pn of me.getRanges())Ue.push(K.toModelRange(pn));const qe=j.createSelection(Ue,{backward:me.isBackward});qe.isEqual(j.document.selection)||j.change(pn=>{pn.setSelection(qe)})})),this.listenTo(this.view.document,"beforeinput",(M=this.mapper,E=this.model.schema,N=this.view,(j,K)=>{if(!N.document.isComposing||D_isAndroid)for(let dt=0;dt{if(!dt.consumable.consume(K.item,j.name))return;const Dt=dt.writer,me=dt.mapper.toViewPosition(K.range.start),Ue=Dt.createText(K.item.data);Dt.insert(me,Ue)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(j,K,dt)=>{dt.convertAttributes(K.item),K.reconversion||!K.item.is("element")||K.item.isEmpty||dt.convertChildren(K.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(j,K,dt)=>{const Dt=dt.mapper.toViewPosition(K.position),me=K.position.getShiftedBy(K.length),Ue=dt.mapper.toViewPosition(me,{isPhantom:!0}),qe=dt.writer.createRange(Dt,Ue),pn=dt.writer.remove(qe.getTrimmed());for(const Ln of dt.writer.createRangeIn(pn).getItems())dt.mapper.unbindViewElement(Ln,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("cleanSelection",(j,K,dt)=>{const Dt=dt.writer,me=Dt.document.selection;for(const Ue of me.getRanges())Ue.isCollapsed&&Ue.end.parent.isAttached()&&dt.writer.mergeAttributes(Ue.start);Dt.setSelection(null)}),this.downcastDispatcher.on("selection",(j,K,dt)=>{const Dt=K.selection;if(Dt.isCollapsed||!dt.consumable.consume(Dt,"selection"))return;const me=[];for(const Ue of Dt.getRanges())me.push(dt.mapper.toViewRange(Ue));dt.writer.setSelection(me,{backward:Dt.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(j,K,dt)=>{const Dt=K.selection;if(!Dt.isCollapsed||!dt.consumable.consume(Dt,"selection"))return;const me=dt.writer,Ue=Dt.getFirstPosition(),qe=dt.mapper.toViewPosition(Ue),pn=me.breakAttributes(qe);me.setSelection(pn)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(j=>{if("$graveyard"==j.rootName)return null;const K=new qm(this.view.document,j.name);return K.rootName=j.rootName,this.mapper.bindElements(j,K),K})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(r){const c="string"==typeof r?r:r.name,u=this.model.markers.get(c);if(!u)throw new at("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:c});this.model.change(()=>{this.model.markers._refresh(u)})}reconvertItem(r){this.model.change(()=>{this.model.document.differ._refreshItem(r)})}}class W_{constructor(){this._consumables=new Map}add(r,c){let u;r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):(this._consumables.has(r)?u=this._consumables.get(r):(u=new lh(r),this._consumables.set(r,u)),u.add(c))}test(r,c){const u=this._consumables.get(r);return void 0===u?null:r.is("$text")||r.is("documentFragment")?u:u.test(c)}consume(r,c){return!!this.test(r,c)&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!1):this._consumables.get(r).consume(c),!0)}revert(r,c){const u=this._consumables.get(r);void 0!==u&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):u.revert(c))}static consumablesFromElement(r){const c={element:r,name:!0,attributes:[],classes:[],styles:[]},u=r.getAttributeKeys();for(const M of u)"style"!=M&&"class"!=M&&c.attributes.push(M);const _=r.getClassNames();for(const M of _)c.classes.push(M);const C=r.getStyleNames();for(const M of C)c.styles.push(M);return c}static createFrom(r,c){if(c||(c=new W_),r.is("$text"))return c.add(r),c;r.is("element")&&c.add(r,W_.consumablesFromElement(r)),r.is("documentFragment")&&c.add(r);for(const u of r.getChildren())c=W_.createFrom(u,c);return c}}const ch=["attributes","classes","styles"];class lh{constructor(r){this.element=r,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(r){r.name&&(this._canConsumeName=!0);for(const c of ch)c in r&&this._add(c,r[c])}test(r){if(r.name&&!this._canConsumeName)return this._canConsumeName;for(const c of ch)if(c in r){const u=this._test(c,r[c]);if(!0!==u)return u}return!0}consume(r){r.name&&(this._canConsumeName=!1);for(const c of ch)c in r&&this._consume(c,r[c])}revert(r){r.name&&(this._canConsumeName=!0);for(const c of ch)c in r&&this._revert(c,r[c])}_add(r,c){const u=je(c)?c:[c],_=this._consumables[r];for(const C of u){if("attributes"===r&&("class"===C||"style"===C))throw new at("viewconsumable-invalid-attribute",this);if(_.set(C,!0),"styles"===r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(C))_.set(M,!0)}}_test(r,c){const u=je(c)?c:[c],_=this._consumables[r];for(const C of u)if("attributes"!==r||"class"!==C&&"style"!==C){const M=_.get(C);if(void 0===M)return null;if(!M)return!1}else{const M="class"==C?"classes":"styles",E=this._test(M,[...this._consumables[M].keys()]);if(!0!==E)return E}return!0}_consume(r,c){const u=je(c)?c:[c],_=this._consumables[r];for(const C of u)if("attributes"!==r||"class"!==C&&"style"!==C){if(_.set(C,!1),"styles"==r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(C))_.set(M,!1)}else{const M="class"==C?"classes":"styles";this._consume(M,[...this._consumables[M].keys()])}}_revert(r,c){const u=je(c)?c:[c],_=this._consumables[r];for(const C of u)if("attributes"!==r||"class"!==C&&"style"!==C)!1===_.get(C)&&_.set(C,!0);else{const M="class"==C?"classes":"styles";this._revert(M,[...this._consumables[M].keys()])}}}class $3 extends(Ze()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(r,c)=>{c[0]=new dm(c[0])},{priority:"highest"}),this.on("checkChild",(r,c)=>{c[0]=new dm(c[0]),c[1]=this.getDefinition(c[1])},{priority:"highest"})}register(r,c){if(this._sourceDefinitions[r])throw new at("schema-cannot-register-item-twice",this,{itemName:r});this._sourceDefinitions[r]=[Object.assign({},c)],this._clearCache()}extend(r,c){if(!this._sourceDefinitions[r])throw new at("schema-cannot-extend-missing-item",this,{itemName:r});this._sourceDefinitions[r].push(Object.assign({},c)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(r){let c;return c="string"==typeof r?r:"is"in r&&(r.is("$text")||r.is("$textProxy"))?"$text":r.name,this.getDefinitions()[c]}isRegistered(r){return!!this.getDefinition(r)}isBlock(r){const c=this.getDefinition(r);return!(!c||!c.isBlock)}isLimit(r){const c=this.getDefinition(r);return!(!c||!c.isLimit&&!c.isObject)}isObject(r){const c=this.getDefinition(r);return!!c&&!!(c.isObject||c.isLimit&&c.isSelectable&&c.isContent)}isInline(r){const c=this.getDefinition(r);return!(!c||!c.isInline)}isSelectable(r){const c=this.getDefinition(r);return!(!c||!c.isSelectable&&!c.isObject)}isContent(r){const c=this.getDefinition(r);return!(!c||!c.isContent&&!c.isObject)}checkChild(r,c){return!!c&&this._checkContextMatch(c,r)}checkAttribute(r,c){const u=this.getDefinition(r.last);return!!u&&u.allowAttributes.includes(c)}checkMerge(r,c){if(r instanceof to){const u=r.nodeBefore,_=r.nodeAfter;if(!(u instanceof Jr))throw new at("schema-check-merge-no-element-before",this);if(!(_ instanceof Jr))throw new at("schema-check-merge-no-element-after",this);return this.checkMerge(u,_)}for(const u of c.getChildren())if(!this.checkChild(r,u))return!1;return!0}addChildCheck(r){this.on("checkChild",(c,[u,_])=>{if(!_)return;const C=r(u,_);"boolean"==typeof C&&(c.stop(),c.return=C)},{priority:"high"})}addAttributeCheck(r){this.on("checkAttribute",(c,[u,_])=>{const C=r(u,_);"boolean"==typeof C&&(c.stop(),c.return=C)},{priority:"high"})}setAttributeProperties(r,c){this._attributeProperties[r]=Object.assign(this.getAttributeProperties(r),c)}getAttributeProperties(r){return this._attributeProperties[r]||{}}getLimitElement(r){let c;for(c=r instanceof to?r.parent:(r instanceof Li?[r]:Array.from(r.getRanges())).reduce((u,_)=>{const C=_.getCommonAncestor();return u?u.getCommonAncestor(C,{includeSelf:!0}):C},null);!this.isLimit(c)&&c.parent;)c=c.parent;return c}checkAttributeInSelection(r,c){if(r.isCollapsed){const u=[...r.getFirstPosition().getAncestors(),new rs("",r.getAttributes())];return this.checkAttribute(u,c)}{const u=r.getRanges();for(const _ of u)for(const C of _)if(this.checkAttribute(C.item,c))return!0}return!1}*getValidRanges(r,c){r=function*(u){for(const _ of u)yield*_.getMinimalFlatRanges()}(r);for(const u of r)yield*this._getValidRangesForRange(u,c)}getNearestSelectionRange(r,c="both"){if("$graveyard"==r.root.rootName)return null;if(this.checkChild(r,"$text"))return new Li(r);let u,_;const C=r.getAncestors().reverse().find(M=>this.isLimit(M))||r.root;"both"!=c&&"backward"!=c||(u=new Gd({boundaries:Li._createIn(C),startPosition:r,direction:"backward"})),"both"!=c&&"forward"!=c||(_=new Gd({boundaries:Li._createIn(C),startPosition:r}));for(const M of function*(E,N){let j=!1;for(;!j;){if(j=!0,E){const K=E.next();K.done||(j=!1,yield{walker:E,value:K.value})}if(N){const K=N.next();K.done||(j=!1,yield{walker:N,value:K.value})}}}(u,_)){const N=M.value;if(N.type==(M.walker==u?"elementEnd":"elementStart")&&this.isObject(N.item))return Li._createOn(N.item);if(this.checkChild(N.nextPosition,"$text"))return new Li(N.nextPosition)}return null}findAllowedParent(r,c){let u=r.parent;for(;u;){if(this.checkChild(u,c))return u;if(this.isLimit(u))return null;u=u.parent}return null}setAllowedAttributes(r,c,u){const _=u.model;for(const[C,M]of Object.entries(c))_.schema.checkAttribute(r,C)&&u.setAttribute(C,M,r)}removeDisallowedAttributes(r,c){for(const u of r)if(u.is("$text"))uh(this,u,c);else{const _=Li._createIn(u).getPositions();for(const C of _)uh(this,C.nodeBefore||C.parent,c)}}getAttributesWithProperty(r,c,u){const _={};for(const[C,M]of r.getAttributes()){const E=this.getAttributeProperties(C);void 0!==E[c]&&(void 0!==u&&u!==E[c]||(_[C]=M))}return _}createContext(r){return new dm(r)}_clearCache(){this._compiledDefinitions=null}_compile(){const r={},c=this._sourceDefinitions,u=Object.keys(c);for(const _ of u)r[_]=a0(c[_],_);for(const _ of u)K3(r,_);for(const _ of u)Q6(r,_);for(const _ of u)X3(r,_);for(const _ of u)Zd(r,_),pm(r,_);for(const _ of u)W6(r,_),Dp(r,_),Qa(r,_);this._compiledDefinitions=r}_checkContextMatch(r,c,u=c.length-1){const _=c.getItem(u);if(r.allowIn.includes(_.name)){if(0==u)return!0;{const C=this.getDefinition(_);return this._checkContextMatch(C,c,u-1)}}return!1}*_getValidRangesForRange(r,c){let u=r.start,_=r.start;for(const C of r.getItems({shallow:!0}))C.is("element")&&(yield*this._getValidRangesForRange(Li._createIn(C),c)),this.checkAttribute(C,c)||(u.isEqual(_)||(yield new Li(u,_)),u=to._createAfter(C)),_=to._createAfter(C);u.isEqual(_)||(yield new Li(u,_))}}class dm{constructor(r){if(r instanceof dm)return r;let c;c="string"==typeof r?[r]:Array.isArray(r)?r:r.getAncestors({includeSelf:!0}),this._items=c.map(Nc)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(r){const c=new dm([r]);return c._items=[...this._items,...c._items],c}getItem(r){return this._items[r]}*getNames(){yield*this._items.map(r=>r.name)}endsWith(r){return Array.from(this.getNames()).join(" ").endsWith(r)}startsWith(r){return Array.from(this.getNames()).join(" ").startsWith(r)}}function a0(m,r){const c={name:r,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(u,_){for(const C of u){const M=Object.keys(C).filter(E=>E.startsWith("is"));for(const E of M)_[E]=!!C[E]}}(m,c),Jm(m,c,"allowIn"),Jm(m,c,"allowContentOf"),Jm(m,c,"allowWhere"),Jm(m,c,"allowAttributes"),Jm(m,c,"allowAttributesOf"),Jm(m,c,"allowChildren"),Jm(m,c,"inheritTypesFrom"),function(u,_){for(const C of u){const M=C.inheritAllFrom;M&&(_.allowContentOf.push(M),_.allowWhere.push(M),_.allowAttributesOf.push(M),_.inheritTypesFrom.push(M))}}(m,c),c}function K3(m,r){const c=m[r];for(const u of c.allowChildren){const _=m[u];_&&_.allowIn.push(r)}c.allowChildren.length=0}function Q6(m,r){for(const c of m[r].allowContentOf)m[c]&&td(m,c).forEach(u=>{u.allowIn.push(r)});delete m[r].allowContentOf}function X3(m,r){for(const c of m[r].allowWhere){const u=m[c];u&&m[r].allowIn.push(...u.allowIn)}delete m[r].allowWhere}function Zd(m,r){for(const c of m[r].allowAttributesOf){const u=m[c];u&&m[r].allowAttributes.push(...u.allowAttributes)}delete m[r].allowAttributesOf}function pm(m,r){const c=m[r];for(const u of c.inheritTypesFrom){const _=m[u];if(_){const C=Object.keys(_).filter(M=>M.startsWith("is"));for(const M of C)M in c||(c[M]=_[M])}}delete c.inheritTypesFrom}function W6(m,r){const c=m[r],u=c.allowIn.filter(_=>m[_]);c.allowIn=Array.from(new Set(u))}function Dp(m,r){const c=m[r];for(const u of c.allowIn)m[u].allowChildren.push(r)}function Qa(m,r){const c=m[r];c.allowAttributes=Array.from(new Set(c.allowAttributes))}function Jm(m,r,c){for(const u of m){const _=u[c];"string"==typeof _?r[c].push(_):Array.isArray(_)&&r[c].push(..._)}}function td(m,r){const c=m[r];return(u=m,Object.keys(u).map(_=>u[_])).filter(_=>_.allowIn.includes(c.name));var u}function Nc(m){return"string"==typeof m||m.is("documentFragment")?{name:"string"==typeof m?m:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:m.is("element")?m.name:"$text",*getAttributeKeys(){yield*m.getAttributeKeys()},getAttribute:r=>m.getAttribute(r)}}function uh(m,r,c){for(const u of r.getAttributeKeys())m.checkAttribute(r,u)||c.removeAttribute(u,r)}var Md=Object.defineProperty,r0=Object.defineProperties,dh=Object.getOwnPropertyDescriptors,s0=Object.getOwnPropertySymbols,Gm=Object.prototype.hasOwnProperty,X2=Object.prototype.propertyIsEnumerable,tf=(m,r,c)=>r in m?Md(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Qm extends(Ne()){constructor(r){var c;super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=(c=((u,_)=>{for(var C in _||(_={}))Gm.call(_,C)&&tf(u,C,_[C]);if(s0)for(var C of s0(_))X2.call(_,C)&&tf(u,C,_[C]);return u})({},r),r0(c,dh({consumable:null,writer:null,store:null,convertItem:(u,_)=>this._convertItem(u,_),convertChildren:(u,_)=>this._convertChildren(u,_),safeInsert:(u,_)=>this._safeInsert(u,_),updateConversionResult:(u,_)=>this._updateConversionResult(u,_),splitToAllowedParent:(u,_)=>this._splitToAllowedParent(u,_),getSplitParts:u=>this._getSplitParts(u),keepEmptyElement:u=>this._keepEmptyElement(u)})))}convert(r,c,u=["$root"]){this.fire("viewCleanup",r),this._modelCursor=function(M,E){let N;for(const j of new dm(M)){const K={};for(const Dt of j.getAttributeKeys())K[Dt]=j.getAttribute(Dt);const dt=E.createElement(j.name,K);N&&E.insert(dt,N),N=to._createAt(dt,0)}return N}(u,c),this.conversionApi.writer=c,this.conversionApi.consumable=W_.createFrom(r),this.conversionApi.store={};const{modelRange:_}=this._convertItem(r,this._modelCursor),C=c.createDocumentFragment();if(_){this._removeEmptyElements();for(const M of Array.from(this._modelCursor.parent.getChildren()))c.append(M,C);C.markers=function(M,E){const N=new Set,j=new Map,K=Li._createIn(M).getItems();for(const dt of K)dt.is("element","$marker")&&N.add(dt);for(const dt of N){const Dt=dt.getAttribute("data-name"),me=E.createPositionBefore(dt);j.has(Dt)?j.get(Dt).end=me.clone():j.set(Dt,new Li(me.clone())),E.remove(dt)}return j}(C,c)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,C}_convertItem(r,c){const u={viewItem:r,modelCursor:c,modelRange:null};if(r.is("element")?this.fire(`element:${r.name}`,u,this.conversionApi):r.is("$text")?this.fire("text",u,this.conversionApi):this.fire("documentFragment",u,this.conversionApi),u.modelRange&&!(u.modelRange instanceof Li))throw new at("view-conversion-dispatcher-incorrect-result",this);return{modelRange:u.modelRange,modelCursor:u.modelCursor}}_convertChildren(r,c){let u=c.is("position")?c:to._createAt(c,0);const _=new Li(u);for(const C of Array.from(r.getChildren())){const M=this._convertItem(C,u);M.modelRange instanceof Li&&(_.end=M.modelRange.end,u=M.modelCursor)}return{modelRange:_,modelCursor:u}}_safeInsert(r,c){const u=this._splitToAllowedParent(r,c);return!!u&&(this.conversionApi.writer.insert(r,u.position),!0)}_updateConversionResult(r,c){const u=this._getSplitParts(r),_=this.conversionApi.writer;c.modelRange||(c.modelRange=_.createRange(_.createPositionBefore(r),_.createPositionAfter(u[u.length-1])));const C=this._cursorParents.get(r);c.modelCursor=C?_.createPositionAt(C,0):c.modelRange.end}_splitToAllowedParent(r,c){const{schema:u,writer:_}=this.conversionApi;let C=u.findAllowedParent(c,r);if(C){if(C===c.parent)return{position:c};this._modelCursor.parent.getAncestors().includes(C)&&(C=null)}if(!C)return $2(c,r,u)?{position:n0(c,_)}:null;const M=this.conversionApi.writer.split(c,C),E=[];for(const j of M.range.getWalker())if("elementEnd"==j.type)E.push(j.item);else{const K=E.pop();this._registerSplitPair(K,j.item)}const N=M.range.end.parent;return this._cursorParents.set(r,N),{position:M.position,cursorParent:N}}_registerSplitPair(r,c){this._splitParts.has(r)||this._splitParts.set(r,[r]);const u=this._splitParts.get(r);this._splitParts.set(c,u),u.push(c)}_getSplitParts(r){let c;return c=this._splitParts.has(r)?this._splitParts.get(r):[r],c}_keepEmptyElement(r){this._emptyElementsToKeep.add(r)}_removeEmptyElements(){let r=!1;for(const c of this._splitParts.keys())c.isEmpty&&!this._emptyElementsToKeep.has(c)&&(this.conversionApi.writer.remove(c),this._splitParts.delete(c),r=!0);r&&this._removeEmptyElements()}}class j1{getHtml(r){const c=document.implementation.createHTMLDocument("").createElement("div");return c.appendChild(r),c.innerHTML}}class c0{constructor(r){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new N_(r,{renderingMode:"data"}),this.htmlWriter=new j1}toData(r){const c=this.domConverter.viewToDom(r);return this.htmlWriter.getHtml(c)}toView(r){const c=this._toDom(r);return this.domConverter.domToView(c,{skipComments:this.skipComments})}registerRawContentMatcher(r){this.domConverter.registerRawContentMatcher(r)}useFillerType(r){this.domConverter.blockFillerMode="marked"==r?"markedNbsp":"nbsp"}_toDom(r){r.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(r=`${r}`);const c=this.domParser.parseFromString(r,"text/html"),u=c.createDocumentFragment(),_=c.body.childNodes;for(;_.length>0;)u.appendChild(_[0]);return u}}class $_ extends(Ne()){constructor(r,c){super(),this.model=r,this.mapper=new V3,this.downcastDispatcher=new Qg({mapper:this.mapper,schema:r.schema}),this.downcastDispatcher.on("insert:$text",(u,_,C)=>{if(!C.consumable.consume(_.item,u.name))return;const M=C.writer,E=C.mapper.toViewPosition(_.range.start),N=M.createText(_.item.data);M.insert(E,N)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(u,_,C)=>{C.convertAttributes(_.item),_.reconversion||!_.item.is("element")||_.item.isEmpty||C.convertChildren(_.item)},{priority:"lowest"}),this.upcastDispatcher=new Qm({schema:r.schema}),this.viewDocument=new Xp(c),this.stylesProcessor=c,this.htmlProcessor=new c0(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Hm(this.viewDocument),this.upcastDispatcher.on("text",(u,_,{schema:C,consumable:M,writer:E})=>{let N=_.modelCursor;if(!M.test(_.viewItem))return;if(!C.checkChild(N,"$text")){if(!$2(N,"$text",C)||0==_.viewItem.data.trim().length)return;const K=N.nodeBefore;N=n0(N,E),K&&K.is("element","$marker")&&(E.move(E.createRangeOn(K),N),N=E.createPositionAfter(K))}M.consume(_.viewItem);const j=E.createText(_.viewItem.data);E.insert(j,N),_.modelRange=E.createRange(N,N.getShiftedBy(j.offsetSize)),_.modelCursor=_.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(u,_,C)=>{if(!_.modelRange&&C.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=C.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(u,_,C)=>{if(!_.modelRange&&C.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=C.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),Ze().prototype.decorate.call(this,"init"),Ze().prototype.decorate.call(this,"set"),Ze().prototype.decorate.call(this,"get"),Ze().prototype.decorate.call(this,"toView"),Ze().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},nh)},{priority:"lowest"})}get(r={}){const{rootName:c="main",trim:u="empty"}=r;if(!this._checkIfRootsExists([c]))throw new at("datacontroller-get-non-existent-root",this);const _=this.model.document.getRoot(c);return _.isAttached()||Zt("datacontroller-get-detached-root",this),"empty"!==u||this.model.hasContent(_,{ignoreWhitespaces:!0})?this.stringify(_,r):""}stringify(r,c={}){const u=this.toView(r,c);return this.processor.toData(u)}toView(r,c={}){const u=this.viewDocument,_=this._viewWriter;this.mapper.clearBindings();const C=Li._createIn(r),M=new Td(u);this.mapper.bindElements(r,M);const E=r.is("documentFragment")?r.markers:function(N){const j=[],K=N.root.document;if(!K)return new Map;const dt=Li._createIn(N);for(const Dt of K.model.markers){const me=Dt.getRange(),Ue=me.isCollapsed,qe=me.start.isEqual(dt.start)||me.end.isEqual(dt.end);if(Ue&&qe)j.push([Dt.name,me]);else{const pn=dt.getIntersection(me);pn&&j.push([Dt.name,pn])}}return j.sort(([Dt,me],[Ue,qe])=>{if("after"!==me.end.compareWith(qe.start))return 1;if("before"!==me.start.compareWith(qe.end))return-1;switch(me.start.compareWith(qe.start)){case"before":return 1;case"after":return-1;default:switch(me.end.compareWith(qe.end)){case"before":return 1;case"after":return-1;default:return Ue.localeCompare(Dt)}}}),new Map(j)}(r);return this.downcastDispatcher.convert(C,E,_,c),M}init(r){if(this.model.document.version)throw new at("datacontroller-init-document-not-empty",this);let c={};if("string"==typeof r?c.main=r:c=r,!this._checkIfRootsExists(Object.keys(c)))throw new at("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},u=>{for(const _ of Object.keys(c)){const C=this.model.document.getRoot(_);u.insert(this.parse(c[_],C),C,0)}}),Promise.resolve()}set(r,c={}){let u={};if("string"==typeof r?u.main=r:u=r,!this._checkIfRootsExists(Object.keys(u)))throw new at("datacontroller-set-non-existent-root",this);this.model.enqueueChange(c.batchType||{},_=>{_.setSelection(null),_.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const C of Object.keys(u)){const M=this.model.document.getRoot(C);_.remove(_.createRangeIn(M)),_.insert(this.parse(u[C],M),M,0)}})}parse(r,c="$root"){const u=this.processor.toView(r);return this.toModel(u,c)}toModel(r,c="$root"){return this.model.change(u=>this.upcastDispatcher.convert(r,u,c))}addStyleProcessorRules(r){r(this.stylesProcessor)}registerRawContentMatcher(r){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(r),this.htmlProcessor.registerRawContentMatcher(r)}destroy(){this.stopListening()}_checkIfRootsExists(r){for(const c of r)if(!this.model.document.getRoot(c))return!1;return!0}}class Os{constructor(r,c){this._helpers=new Map,this._downcast=Ss(r),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Ss(c),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(r,c){const u=this._downcast.includes(c);if(!this._upcast.includes(c)&&!u)throw new at("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:r,dispatchers:[c],isDowncast:u})}for(r){if(!this._helpers.has(r))throw new at("conversion-for-unknown-group",this);return this._helpers.get(r)}elementToElement(r){this.for("downcast").elementToElement(r);for(const{model:c,view:u}of ac(r))this.for("upcast").elementToElement({model:c,view:u,converterPriority:r.converterPriority})}attributeToElement(r){this.for("downcast").attributeToElement(r);for(const{model:c,view:u}of ac(r))this.for("upcast").elementToAttribute({view:u,model:c,converterPriority:r.converterPriority})}attributeToAttribute(r){this.for("downcast").attributeToAttribute(r);for(const{model:c,view:u}of ac(r))this.for("upcast").attributeToAttribute({view:u,model:c})}_createConversionHelpers({name:r,dispatchers:c,isDowncast:u}){if(this._helpers.has(r))throw new at("conversion-group-exists",this);const _=u?new V6(c):new G6(c);this._helpers.set(r,_)}}function*ac(m){if(m.model.values)for(const r of m.model.values){const c={key:m.model.key,value:r},u=m.view[r],_=m.upcastAlso?m.upcastAlso[r]:void 0;yield*l0(c,u,_)}else yield*l0(m.model,m.view,m.upcastAlso)}function*l0(m,r,c){if(yield{model:m,view:r},c)for(const u of Ss(c))yield{model:m,view:u}}class ed{constructor(r){this.baseVersion=r,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const r=Object.assign({},this);return r.__className=this.constructor.className,delete r.batch,delete r.isDocumentOperation,r}static get className(){return"Operation"}static fromJSON(r,c){return new this(r.baseVersion)}}function ph(m,r){const c=_h(r),u=c.reduce((M,E)=>M+E.offsetSize,0),_=m.parent;$m(m);const C=m.index;return _._insertChild(C,c),J1(_,C+c.length),J1(_,C),new Li(m,m.getShiftedBy(u))}function mh(m){if(!m.isFlat)throw new at("operation-utils-remove-range-not-flat",this);const r=m.start.parent;$m(m.start),$m(m.end);const c=r._removeChildren(m.start.index,m.end.index-m.start.index);return J1(r,m.start.index),c}function Wm(m,r){if(!m.isFlat)throw new at("operation-utils-move-range-not-flat",this);const c=mh(m);return ph(r=r._getTransformedByDeletion(m.start,m.end.offset-m.start.offset),c)}function _h(m){const r=[];!function c(u){if("string"==typeof u)r.push(new rs(u));else if(u instanceof Ku)r.push(new rs(u.data,u.getAttributes()));else if(u instanceof oc)r.push(u);else if(et(u))for(const _ of u)c(_)}(m);for(let c=1;cr.maxOffset)throw new at("move-operation-nodes-do-not-exist",this);if(r===c&&u<_&&_=u&&this.targetPosition.path[C]u._clone(!0))),c=new _c(this.position,r,this.baseVersion);return c.shouldReceiveAttributes=this.shouldReceiveAttributes,c}getReversed(){const c=new to(this.position.root.document.graveyard,[0]);return new ir(this.position,this.nodes.maxOffset,c,this.baseVersion+1)}_validate(){const r=this.position.parent;if(!r||r.maxOffsetc._clone(!0))),ph(this.position,r)}toJSON(){const r=super.toJSON();return r.position=this.position.toJSON(),r.nodes=this.nodes.toJSON(),r}static get className(){return"InsertOperation"}static fromJSON(r,c){const u=[];for(const C of r.nodes)u.push(C.name?Jr.fromJSON(C):rs.fromJSON(C));const _=new _c(to.fromJSON(r.position,c),u,r.baseVersion);return _.shouldReceiveAttributes=r.shouldReceiveAttributes,_}}class Ar extends ed{constructor(r,c,u,_,C){super(C),this.splitPosition=r.clone(),this.splitPosition.stickiness="toNext",this.howMany=c,this.insertionPosition=u,this.graveyardPosition=_?_.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const r=this.insertionPosition.path.slice();return r.push(0),new to(this.insertionPosition.root,r)}get movedRange(){const r=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Li(this.splitPosition,r)}get affectedSelectable(){const r=[Li._createFromPositionAndShift(this.splitPosition,0),Li._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&r.push(Li._createFromPositionAndShift(this.graveyardPosition,0)),r}clone(){return new Ar(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const c=new to(this.splitPosition.root.document.graveyard,[0]);return new _s(this.moveTargetPosition,this.howMany,this.splitPosition,c,this.baseVersion+1)}_validate(){const r=this.splitPosition.parent;if(!r||r.maxOffset{if(m.key===r.key&&m.range.start.hasSameParentAs(r.range.start)){const u=m.range.getDifference(r.range).map(C=>new Wr(C,m.key,m.oldValue,m.newValue,0)),_=m.range.getIntersection(r.range);return _&&c.aIsStrong&&u.push(new Wr(_,r.key,r.newValue,m.newValue,0)),0==u.length?[new fc(0)]:u}return[m]}),Zr(Wr,_c,(m,r)=>{if(m.range.start.hasSameParentAs(r.position)&&m.range.containsPosition(r.position)){const c=m.range._getTransformedByInsertion(r.position,r.howMany,!r.shouldReceiveAttributes).map(u=>new Wr(u,m.key,m.oldValue,m.newValue,m.baseVersion));if(r.shouldReceiveAttributes){const u=Km(r,m.key,m.oldValue);u&&c.unshift(u)}return c}return m.range=m.range._getTransformedByInsertion(r.position,r.howMany,!1)[0],[m]}),Zr(Wr,_s,(m,r)=>{const c=[];m.range.start.hasSameParentAs(r.deletionPosition)&&(m.range.containsPosition(r.deletionPosition)||m.range.start.isEqual(r.deletionPosition))&&c.push(Li._createFromPositionAndShift(r.graveyardPosition,1));const u=m.range._getTransformedByMergeOperation(r);return u.isCollapsed||c.push(u),c.map(_=>new Wr(_,m.key,m.oldValue,m.newValue,m.baseVersion))}),Zr(Wr,ir,(m,r)=>function(u,_){const C=Li._createFromPositionAndShift(_.sourcePosition,_.howMany);let M=null,E=[];C.containsRange(u,!0)?M=u:u.start.hasSameParentAs(C.start)?(E=u.getDifference(C),M=u.getIntersection(C)):E=[u];const N=[];for(let j of E){j=j._getTransformedByDeletion(_.sourcePosition,_.howMany);const K=_.getMovedRangeStart(),dt=j.start.hasSameParentAs(K),Dt=j._getTransformedByInsertion(K,_.howMany,dt);N.push(...Dt)}return M&&N.push(M._getTransformedByMove(_.sourcePosition,_.targetPosition,_.howMany,!1)[0]),N}(m.range,r).map(u=>new Wr(u,m.key,m.oldValue,m.newValue,m.baseVersion))),Zr(Wr,Ar,(m,r)=>{if(m.range.end.isEqual(r.insertionPosition))return r.graveyardPosition||m.range.end.offset++,[m];if(m.range.start.hasSameParentAs(r.splitPosition)&&m.range.containsPosition(r.splitPosition)){const c=m.clone();return c.range=new Li(r.moveTargetPosition.clone(),m.range.end._getCombined(r.splitPosition,r.moveTargetPosition)),m.range.end=r.splitPosition.clone(),m.range.end.stickiness="toPrevious",[m,c]}return m.range=m.range._getTransformedBySplitOperation(r),[m]}),Zr(_c,Wr,(m,r)=>{const c=[m];if(m.shouldReceiveAttributes&&m.position.hasSameParentAs(r.range.start)&&r.range.containsPosition(m.position)){const u=Km(m,r.key,r.newValue);u&&c.push(u)}return c}),Zr(_c,_c,(m,r,c)=>(m.position.isEqual(r.position)&&c.aIsStrong||(m.position=m.position._getTransformedByInsertOperation(r)),[m])),Zr(_c,ir,(m,r)=>(m.position=m.position._getTransformedByMoveOperation(r),[m])),Zr(_c,Ar,(m,r)=>(m.position=m.position._getTransformedBySplitOperation(r),[m])),Zr(_c,_s,(m,r)=>(m.position=m.position._getTransformedByMergeOperation(r),[m])),Zr(ys,_c,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByInsertOperation(r)[0]),m.newRange&&(m.newRange=m.newRange._getTransformedByInsertOperation(r)[0]),[m])),Zr(ys,ys,(m,r,c)=>{if(m.name==r.name){if(!c.aIsStrong)return[new fc(0)];m.oldRange=r.newRange?r.newRange.clone():null}return[m]}),Zr(ys,_s,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByMergeOperation(r)),m.newRange&&(m.newRange=m.newRange._getTransformedByMergeOperation(r)),[m])),Zr(ys,ir,(m,r,c)=>{if(m.oldRange&&(m.oldRange=Li._createFromRanges(m.oldRange._getTransformedByMoveOperation(r))),m.newRange){if(c.abRelation){const u=Li._createFromRanges(m.newRange._getTransformedByMoveOperation(r));if("left"==c.abRelation.side&&r.targetPosition.isEqual(m.newRange.start))return m.newRange.end=u.end,m.newRange.start.path=c.abRelation.path,[m];if("right"==c.abRelation.side&&r.targetPosition.isEqual(m.newRange.end))return m.newRange.start=u.start,m.newRange.end.path=c.abRelation.path,[m]}m.newRange=Li._createFromRanges(m.newRange._getTransformedByMoveOperation(r))}return[m]}),Zr(ys,Ar,(m,r,c)=>{if(m.oldRange&&(m.oldRange=m.oldRange._getTransformedBySplitOperation(r)),m.newRange){if(c.abRelation){const u=m.newRange._getTransformedBySplitOperation(r);return m.newRange.start.isEqual(r.splitPosition)&&c.abRelation.wasStartBeforeMergedElement?m.newRange.start=to._createAt(r.insertionPosition):m.newRange.start.isEqual(r.splitPosition)&&!c.abRelation.wasInLeftElement&&(m.newRange.start=to._createAt(r.moveTargetPosition)),m.newRange.end=m.newRange.end.isEqual(r.splitPosition)&&c.abRelation.wasInRightElement?to._createAt(r.moveTargetPosition):m.newRange.end.isEqual(r.splitPosition)&&c.abRelation.wasEndBeforeMergedElement?to._createAt(r.insertionPosition):u.end,[m]}m.newRange=m.newRange._getTransformedBySplitOperation(r)}return[m]}),Zr(_s,_c,(m,r)=>(m.sourcePosition.hasSameParentAs(r.position)&&(m.howMany+=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByInsertOperation(r),m.targetPosition=m.targetPosition._getTransformedByInsertOperation(r),[m])),Zr(_s,_s,(m,r,c)=>{if(m.sourcePosition.isEqual(r.sourcePosition)&&m.targetPosition.isEqual(r.targetPosition)){if(c.bWasUndone){const u=r.graveyardPosition.path.slice();return u.push(0),m.sourcePosition=new to(r.graveyardPosition.root,u),m.howMany=0,[m]}return[new fc(0)]}if(m.sourcePosition.isEqual(r.sourcePosition)&&!m.targetPosition.isEqual(r.targetPosition)&&!c.bWasUndone&&"splitAtSource"!=c.abRelation){const u="$graveyard"==m.targetPosition.root.rootName,_="$graveyard"==r.targetPosition.root.rootName;if(_&&!u||(!u||_)&&c.aIsStrong){const C=r.targetPosition._getTransformedByMergeOperation(r),M=m.targetPosition._getTransformedByMergeOperation(r);return[new ir(C,m.howMany,M,0)]}return[new fc(0)]}return m.sourcePosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByMergeOperation(r),m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),m.graveyardPosition.isEqual(r.graveyardPosition)&&c.aIsStrong||(m.graveyardPosition=m.graveyardPosition._getTransformedByMergeOperation(r)),[m]}),Zr(_s,ir,(m,r,c)=>{const u=Li._createFromPositionAndShift(r.sourcePosition,r.howMany);return"remove"==r.type&&!c.bWasUndone&&!c.forceWeakRemove&&m.deletionPosition.hasSameParentAs(r.sourcePosition)&&u.containsPosition(m.sourcePosition)?[new fc(0)]:(m.sourcePosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.sourcePosition.hasSameParentAs(r.sourcePosition)&&(m.howMany-=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByMoveOperation(r),m.targetPosition=m.targetPosition._getTransformedByMoveOperation(r),m.graveyardPosition.isEqual(r.targetPosition)||(m.graveyardPosition=m.graveyardPosition._getTransformedByMoveOperation(r)),[m])}),Zr(_s,Ar,(m,r,c)=>{if(r.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedByDeletion(r.graveyardPosition,1),m.deletionPosition.isEqual(r.graveyardPosition)&&(m.howMany=r.howMany)),m.targetPosition.isEqual(r.splitPosition)){const u=0!=r.howMany,_=r.graveyardPosition&&m.deletionPosition.isEqual(r.graveyardPosition);if(u||_||"mergeTargetNotMoved"==c.abRelation)return m.sourcePosition=m.sourcePosition._getTransformedBySplitOperation(r),[m]}if(m.sourcePosition.isEqual(r.splitPosition)){if("mergeSourceNotMoved"==c.abRelation)return m.howMany=0,m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m];if("mergeSameElement"==c.abRelation||m.sourcePosition.offset>0)return m.sourcePosition=r.moveTargetPosition.clone(),m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m]}return m.sourcePosition.hasSameParentAs(r.splitPosition)&&(m.howMany=r.splitPosition.offset),m.sourcePosition=m.sourcePosition._getTransformedBySplitOperation(r),m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m]}),Zr(ir,_c,(m,r)=>{const c=Li._createFromPositionAndShift(m.sourcePosition,m.howMany)._getTransformedByInsertOperation(r,!1)[0];return m.sourcePosition=c.start,m.howMany=c.end.offset-c.start.offset,m.targetPosition.isEqual(r.position)||(m.targetPosition=m.targetPosition._getTransformedByInsertOperation(r)),[m]}),Zr(ir,ir,(m,r,c)=>{const u=Li._createFromPositionAndShift(m.sourcePosition,m.howMany),_=Li._createFromPositionAndShift(r.sourcePosition,r.howMany);let C,M=c.aIsStrong,E=!c.aIsStrong;if("insertBefore"==c.abRelation||"insertAfter"==c.baRelation?E=!0:"insertAfter"!=c.abRelation&&"insertBefore"!=c.baRelation||(E=!1),C=m.targetPosition.isEqual(r.targetPosition)&&E?m.targetPosition._getTransformedByDeletion(r.sourcePosition,r.howMany):m.targetPosition._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),ef(m,r)&&ef(r,m))return[r.getReversed()];if(u.containsPosition(r.targetPosition)&&u.containsRange(_,!0))return u.start=u.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),u.end=u.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),mm([u],C);if(_.containsPosition(m.targetPosition)&&_.containsRange(u,!0))return u.start=u.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),u.end=u.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),mm([u],C);const N=tt(m.sourcePosition.getParentPath(),r.sourcePosition.getParentPath());if("prefix"==N||"extension"==N)return u.start=u.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),u.end=u.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),mm([u],C);"remove"!=m.type||"remove"==r.type||c.aWasUndone||c.forceWeakRemove?"remove"==m.type||"remove"!=r.type||c.bWasUndone||c.forceWeakRemove||(M=!1):M=!0;const j=[],K=u.getDifference(_);for(const Dt of K){Dt.start=Dt.start._getTransformedByDeletion(r.sourcePosition,r.howMany),Dt.end=Dt.end._getTransformedByDeletion(r.sourcePosition,r.howMany);const me="same"==tt(Dt.start.getParentPath(),r.getMovedRangeStart().getParentPath()),Ue=Dt._getTransformedByInsertion(r.getMovedRangeStart(),r.howMany,me);j.push(...Ue)}const dt=u.getIntersection(_);return null!==dt&&M&&(dt.start=dt.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),dt.end=dt.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),0===j.length?j.push(dt):1==j.length?_.start.isBefore(u.start)||_.start.isEqual(u.start)?j.unshift(dt):j.push(dt):j.splice(1,0,dt)),0===j.length?[new fc(m.baseVersion)]:mm(j,C)}),Zr(ir,Ar,(m,r,c)=>{let u=m.targetPosition.clone();m.targetPosition.isEqual(r.insertionPosition)&&r.graveyardPosition&&"moveTargetAfter"!=c.abRelation||(u=m.targetPosition._getTransformedBySplitOperation(r));const _=Li._createFromPositionAndShift(m.sourcePosition,m.howMany);if(_.end.isEqual(r.insertionPosition))return r.graveyardPosition||m.howMany++,m.targetPosition=u,[m];if(_.start.hasSameParentAs(r.splitPosition)&&_.containsPosition(r.splitPosition)){let M=new Li(r.splitPosition,_.end);return M=M._getTransformedBySplitOperation(r),mm([new Li(_.start,r.splitPosition),M],u)}m.targetPosition.isEqual(r.splitPosition)&&"insertAtSource"==c.abRelation&&(u=r.moveTargetPosition),m.targetPosition.isEqual(r.insertionPosition)&&"insertBetween"==c.abRelation&&(u=m.targetPosition);const C=[_._getTransformedBySplitOperation(r)];if(r.graveyardPosition){const M=_.start.isEqual(r.graveyardPosition)||_.containsPosition(r.graveyardPosition);m.howMany>1&&M&&!c.aWasUndone&&C.push(Li._createFromPositionAndShift(r.insertionPosition,1))}return mm(C,u)}),Zr(ir,_s,(m,r,c)=>{const u=Li._createFromPositionAndShift(m.sourcePosition,m.howMany);if(r.deletionPosition.hasSameParentAs(m.sourcePosition)&&u.containsPosition(r.sourcePosition))if("remove"!=m.type||c.forceWeakRemove){if(1==m.howMany)return c.bWasUndone?(m.sourcePosition=r.graveyardPosition.clone(),m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),[m]):[new fc(0)]}else if(!c.aWasUndone){const C=[];let M=r.graveyardPosition.clone(),E=r.targetPosition._getTransformedByMergeOperation(r);m.howMany>1&&(C.push(new ir(m.sourcePosition,m.howMany-1,m.targetPosition,0)),M=M._getTransformedByMove(m.sourcePosition,m.targetPosition,m.howMany-1),E=E._getTransformedByMove(m.sourcePosition,m.targetPosition,m.howMany-1));const N=r.deletionPosition._getCombined(m.sourcePosition,m.targetPosition),j=new ir(M,1,N,0),K=j.getMovedRangeStart().path.slice();K.push(0);const dt=new to(j.targetPosition.root,K);E=E._getTransformedByMove(M,N,1);const Dt=new ir(E,r.howMany,dt,0);return C.push(j),C.push(Dt),C}const _=Li._createFromPositionAndShift(m.sourcePosition,m.howMany)._getTransformedByMergeOperation(r);return m.sourcePosition=_.start,m.howMany=_.end.offset-_.start.offset,m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),[m]}),Zr(Ll,_c,(m,r)=>(m.position=m.position._getTransformedByInsertOperation(r),[m])),Zr(Ll,_s,(m,r)=>m.position.isEqual(r.deletionPosition)?(m.position=r.graveyardPosition.clone(),m.position.stickiness="toNext",[m]):(m.position=m.position._getTransformedByMergeOperation(r),[m])),Zr(Ll,ir,(m,r)=>(m.position=m.position._getTransformedByMoveOperation(r),[m])),Zr(Ll,Ll,(m,r,c)=>{if(m.position.isEqual(r.position)){if(!c.aIsStrong)return[new fc(0)];m.oldName=r.newName}return[m]}),Zr(Ll,Ar,(m,r)=>{if("same"==tt(m.position.path,r.splitPosition.getParentPath())&&!r.graveyardPosition){const c=new Ll(m.position.getShiftedBy(1),m.oldName,m.newName,0);return[m,c]}return m.position=m.position._getTransformedBySplitOperation(r),[m]}),Zr($d,$d,(m,r,c)=>{if(m.root===r.root&&m.key===r.key){if(!c.aIsStrong||m.newValue===r.newValue)return[new fc(0)];m.oldValue=r.newValue}return[m]}),Zr(_l,_l,(m,r)=>m.rootName===r.rootName&&m.isAdd===r.isAdd?[new fc(0)]:[m]),Zr(Ar,_c,(m,r)=>(m.splitPosition.hasSameParentAs(r.position)&&m.splitPosition.offset{if(!m.graveyardPosition&&!c.bWasUndone&&m.splitPosition.hasSameParentAs(r.sourcePosition)){const u=r.graveyardPosition.path.slice();u.push(0);const _=new to(r.graveyardPosition.root,u),C=Ar.getInsertionPosition(new to(r.graveyardPosition.root,u)),M=new Ar(_,0,C,null,0);return m.splitPosition=m.splitPosition._getTransformedByMergeOperation(r),m.insertionPosition=Ar.getInsertionPosition(m.splitPosition),m.graveyardPosition=M.insertionPosition.clone(),m.graveyardPosition.stickiness="toNext",[M,m]}return m.splitPosition.hasSameParentAs(r.deletionPosition)&&!m.splitPosition.isAfter(r.deletionPosition)&&m.howMany--,m.splitPosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.splitPosition=m.splitPosition._getTransformedByMergeOperation(r),m.insertionPosition=Ar.getInsertionPosition(m.splitPosition),m.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedByMergeOperation(r)),[m]}),Zr(Ar,ir,(m,r,c)=>{const u=Li._createFromPositionAndShift(r.sourcePosition,r.howMany);if(m.graveyardPosition){const C=u.start.isEqual(m.graveyardPosition)||u.containsPosition(m.graveyardPosition);if(!c.bWasUndone&&C){const M=m.splitPosition._getTransformedByMoveOperation(r),E=m.graveyardPosition._getTransformedByMoveOperation(r),N=E.path.slice();N.push(0);const j=new to(E.root,N);return[new ir(M,m.howMany,j,0)]}m.graveyardPosition=m.graveyardPosition._getTransformedByMoveOperation(r)}const _=m.splitPosition.isEqual(r.targetPosition);if(_&&("insertAtSource"==c.baRelation||"splitBefore"==c.abRelation))return m.howMany+=r.howMany,m.splitPosition=m.splitPosition._getTransformedByDeletion(r.sourcePosition,r.howMany),m.insertionPosition=Ar.getInsertionPosition(m.splitPosition),[m];if(_&&c.abRelation&&c.abRelation.howMany){const{howMany:C,offset:M}=c.abRelation;return m.howMany+=C,m.splitPosition=m.splitPosition.getShiftedBy(M),[m]}return m.splitPosition.hasSameParentAs(r.sourcePosition)&&u.containsPosition(m.splitPosition)?(m.howMany-=r.howMany-(m.splitPosition.offset-r.sourcePosition.offset),m.splitPosition.hasSameParentAs(r.targetPosition)&&m.splitPosition.offset{if(m.splitPosition.isEqual(r.splitPosition)){if(!m.graveyardPosition&&!r.graveyardPosition)return[new fc(0)];if(m.graveyardPosition&&r.graveyardPosition&&m.graveyardPosition.isEqual(r.graveyardPosition))return[new fc(0)];if("splitBefore"==c.abRelation)return m.howMany=0,m.graveyardPosition=m.graveyardPosition._getTransformedBySplitOperation(r),[m]}if(m.graveyardPosition&&r.graveyardPosition&&m.graveyardPosition.isEqual(r.graveyardPosition)){const u="$graveyard"==m.splitPosition.root.rootName,_="$graveyard"==r.splitPosition.root.rootName;if(_&&!u||(!u||_)&&c.aIsStrong){const C=[];return r.howMany&&C.push(new ir(r.moveTargetPosition,r.howMany,r.splitPosition,0)),m.howMany&&C.push(new ir(m.splitPosition,m.howMany,m.moveTargetPosition,0)),C}return[new fc(0)]}if(m.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedBySplitOperation(r)),m.splitPosition.isEqual(r.insertionPosition)&&"splitBefore"==c.abRelation)return m.howMany++,[m];if(r.splitPosition.isEqual(m.insertionPosition)&&"splitBefore"==c.baRelation){const u=r.insertionPosition.path.slice();u.push(0);const _=new to(r.insertionPosition.root,u);return[m,new ir(m.insertionPosition,1,_,0)]}return m.splitPosition.hasSameParentAs(r.splitPosition)&&m.splitPosition.offset{const c=r[0];c.isDocumentOperation&&$6.call(this,c)},{priority:"low"})}function $6(m){const r=this.getTransformedByOperation(m);if(!this.isEqual(r)){const c=this.toPosition();this.path=r.path,this.root=r.root,this.fire("change",c)}}el.prototype.is=function(m){return"livePosition"===m||"model:livePosition"===m||"position"==m||"model:position"===m};class _m{constructor(r={}){"string"==typeof r&&(r="transparent"===r?{isUndoable:!1}:{},Zt("batch-constructor-deprecated-string-type"));const{isUndoable:c=!0,isLocal:u=!0,isUndo:_=!1,isTyping:C=!1}=r;this.operations=[],this.isUndoable=c,this.isLocal=u,this.isUndo=_,this.isTyping=C}get type(){return Zt("batch-type-deprecated"),"default"}get baseVersion(){for(const r of this.operations)if(null!==r.baseVersion)return r.baseVersion;return null}addOperation(r){return r.batch=this,this.operations.push(r),r}}var K6=Object.defineProperty,e4=Object.defineProperties,Tv=Object.getOwnPropertyDescriptors,hh=Object.getOwnPropertySymbols,nf=Object.prototype.hasOwnProperty,n4=Object.prototype.propertyIsEnumerable,Ql=(m,r,c)=>r in m?K6(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,af=(m,r)=>{for(var c in r||(r={}))nf.call(r,c)&&Ql(m,c,r[c]);if(hh)for(var c of hh(r))n4.call(r,c)&&Ql(m,c,r[c]);return m};class i4{constructor(r){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=r}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(r){const c=r;switch(c.type){case"insert":if(this._isInInsertedElement(c.position.parent))return;this._markInsert(c.position.parent,c.position.offset,c.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const u of c.range.getItems({shallow:!0}))this._isInInsertedElement(u.parent)||this._markAttribute(u);break;case"remove":case"move":case"reinsert":{if(c.sourcePosition.isEqual(c.targetPosition)||c.sourcePosition.getShiftedBy(c.howMany).isEqual(c.targetPosition))return;const u=this._isInInsertedElement(c.sourcePosition.parent),_=this._isInInsertedElement(c.targetPosition.parent);u||this._markRemove(c.sourcePosition.parent,c.sourcePosition.offset,c.howMany),_||this._markInsert(c.targetPosition.parent,c.getMovedRangeStart().offset,c.howMany);break}case"rename":{if(this._isInInsertedElement(c.position.parent))return;this._markRemove(c.position.parent,c.position.offset,1),this._markInsert(c.position.parent,c.position.offset,1);const u=Li._createFromPositionAndShift(c.position,1);for(const _ of this._markerCollection.getMarkersIntersectingRange(u)){const C=_.getData();this.bufferMarkerChange(_.name,C,C)}break}case"split":{const u=c.splitPosition.parent;this._isInInsertedElement(u)||this._markRemove(u,c.splitPosition.offset,c.howMany),this._isInInsertedElement(c.insertionPosition.parent)||this._markInsert(c.insertionPosition.parent,c.insertionPosition.offset,1),c.graveyardPosition&&this._markRemove(c.graveyardPosition.parent,c.graveyardPosition.offset,1);break}case"merge":{const u=c.sourcePosition.parent;this._isInInsertedElement(u.parent)||this._markRemove(u.parent,u.startOffset,1),this._markInsert(c.graveyardPosition.parent,c.graveyardPosition.offset,1);const C=c.targetPosition.parent;this._isInInsertedElement(C)||this._markInsert(C,c.targetPosition.offset,u.maxOffset);break}case"detachRoot":case"addRoot":{const u=c.affectedSelectable;if(!u._isLoaded||u.isAttached()==c.isAdd)return;this._bufferRootStateChange(c.rootName,c.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":if(!c.root._isLoaded)return;this._bufferRootAttributeChange(c.root.rootName,c.key,c.oldValue,c.newValue)}this._cachedChanges=null}bufferMarkerChange(r,c,u){c.range&&c.range.root.is("rootElement")&&!c.range.root._isLoaded&&(c.range=null),u.range&&u.range.root.is("rootElement")&&!u.range.root._isLoaded&&(u.range=null);let _=this._changedMarkers.get(r);_?_.newMarkerData=u:(_={newMarkerData:u,oldMarkerData:c},this._changedMarkers.set(r,_)),null==_.oldMarkerData.range&&null==u.range&&this._changedMarkers.delete(r)}getMarkersToRemove(){const r=[];for(const[c,u]of this._changedMarkers)null!=u.oldMarkerData.range&&r.push({name:c,range:u.oldMarkerData.range});return r}getMarkersToAdd(){const r=[];for(const[c,u]of this._changedMarkers)null!=u.newMarkerData.range&&r.push({name:c,range:u.newMarkerData.range});return r}getChangedMarkers(){return Array.from(this._changedMarkers).map(([r,c])=>({name:r,data:{oldRange:c.oldMarkerData.range,newRange:c.newMarkerData.range}}))}hasDataChanges(){if(this._changesInElement.size>0||this._changedRoots.size>0)return!0;for(const{newMarkerData:r,oldMarkerData:c}of this._changedMarkers.values()){if(r.affectsData!==c.affectsData)return!0;if(r.affectsData){const u=r.range&&!c.range,_=!r.range&&c.range,C=r.range&&c.range&&!r.range.isEqual(c.range);if(u||_||C)return!0}}return!1}getChanges(r={}){if(this._cachedChanges)return r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let c=[];for(const u of this._changesInElement.keys()){const _=this._changesInElement.get(u).sort((K,dt)=>K.offset===dt.offset?K.type!=dt.type?"remove"==K.type?-1:1:0:K.offsetu.position.root!=_.position.root?u.position.root.rootName<_.position.root.rootName?-1:1:u.position.isEqual(_.position)?u.changeCount-_.changeCount:u.position.isBefore(_.position)?-1:1);for(let u=1,_=0;uu);for(const u of c)delete u.changeCount,"attribute"==u.type&&(delete u.position,delete u.length);return this._changeCount=0,this._cachedChangesWithGraveyard=c,this._cachedChanges=c.filter(p0),r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map(r=>{const c=af({},r);return void 0!==c.state&&delete c.attributes,c})}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(r,c){if(!this._changedRoots.has(r))return void this._changedRoots.set(r,{name:r,state:c?"attached":"detached"});const u=this._changedRoots.get(r);void 0!==u.state?(delete u.state,void 0===u.attributes&&this._changedRoots.delete(r)):u.state=c?"attached":"detached"}_bufferRootAttributeChange(r,c,u,_){const C=this._changedRoots.get(r)||{name:r},M=C.attributes||{};if(M[c]){const E=M[c];_===E.oldValue?delete M[c]:E.newValue=_}else M[c]={oldValue:u,newValue:_};0===Object.entries(M).length?(delete C.attributes,void 0===C.state&&this._changedRoots.delete(r)):(C.attributes=M,this._changedRoots.set(r,C))}_refreshItem(r){if(this._isInInsertedElement(r.parent))return;this._markRemove(r.parent,r.startOffset,r.offsetSize),this._markInsert(r.parent,r.startOffset,r.offsetSize),this._refreshedItems.add(r);const c=Li._createOn(r);for(const u of this._markerCollection.getMarkersIntersectingRange(c)){const _=u.getData();this.bufferMarkerChange(u.name,_,_)}this._cachedChanges=null}_bufferRootLoad(r){if(r.isAttached()){this._bufferRootStateChange(r.rootName,!0),this._markInsert(r,0,r.maxOffset);for(const u of r.getAttributeKeys())this._bufferRootAttributeChange(r.rootName,u,null,r.getAttribute(u));for(const u of this._markerCollection)if(u.getRange().root==r){const _=u.getData();this.bufferMarkerChange(u.name,(c=af({},_),e4(c,Tv({range:null}))),_)}var c}}_markInsert(r,c,u){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const _={type:"insert",offset:c,howMany:u,count:this._changeCount++};this._markChange(r,_)}_markRemove(r,c,u){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const _={type:"remove",offset:c,howMany:u,count:this._changeCount++};this._markChange(r,_),this._removeAllNestedChanges(r,c,u)}_markAttribute(r){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const c={type:"attribute",offset:r.startOffset,howMany:r.offsetSize,count:this._changeCount++};this._markChange(r.parent,c)}_markChange(r,c){this._makeSnapshot(r);const u=this._getChangesForElement(r);this._handleChange(c,u),u.push(c);for(let _=0;_u.offset){if(_>C){const M={type:"attribute",offset:C,howMany:_-C,count:this._changeCount++};this._handleChange(M,c),c.push(M)}r.nodesToHandle=u.offset-r.offset,r.howMany=r.nodesToHandle}else r.offset>=u.offset&&r.offsetC?(r.nodesToHandle=_-C,r.offset=C):r.nodesToHandle=0);if("remove"==u.type&&r.offsetu.offset){const M={type:"attribute",offset:u.offset,howMany:_-u.offset,count:this._changeCount++};this._handleChange(M,c),c.push(M),r.nodesToHandle=u.offset-r.offset,r.howMany=r.nodesToHandle}"attribute"==u.type&&(r.offset>=u.offset&&_<=C?(r.nodesToHandle=0,r.howMany=0,r.offset=0):r.offset<=u.offset&&_>=C&&(u.howMany=0))}}r.howMany=r.nodesToHandle,delete r.nodesToHandle}_getInsertDiff(r,c,u){return{type:"insert",position:to._createAt(r,c),name:u.name,attributes:new Map(u.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(r,c,u){return{type:"remove",position:to._createAt(r,c),name:u.name,attributes:new Map(u.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(r,c,u){const _=[];u=new Map(u);for(const[C,M]of c){const E=u.has(C)?u.get(C):null;E!==M&&_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:C,attributeOldValue:M,attributeNewValue:E,changeCount:this._changeCount++}),u.delete(C)}for(const[C,M]of u)_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:C,attributeOldValue:null,attributeNewValue:M,changeCount:this._changeCount++});return _}_isInInsertedElement(r){const c=r.parent;if(!c)return!1;const u=this._changesInElement.get(c),_=r.startOffset;if(u)for(const C of u)if("insert"==C.type&&_>=C.offset&&_u){for(let M=0;Mthis._version+1&&this._gaps.set(this._version,r),this._version=r}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(r){if(r.baseVersion!==this.version)throw new at("model-document-history-addoperation-incorrect-version",this,{operation:r,historyVersion:this.version});this._operations.push(r),this._version++,this._baseVersionToOperationIndex.set(r.baseVersion,this._operations.length-1)}getOperations(r,c=this.version){if(!this._operations.length)return[];const u=this._operations[0];void 0===r&&(r=u.baseVersion);let _=c-1;for(const[E,N]of this._gaps)r>E&&rE&&_this.lastOperation.baseVersion)return[];let C=this._baseVersionToOperationIndex.get(r);void 0===C&&(C=0);let M=this._baseVersionToOperationIndex.get(_);return void 0===M&&(M=this._operations.length-1),this._operations.slice(C,M+1)}getOperation(r){const c=this._baseVersionToOperationIndex.get(r);if(void 0!==c)return this._operations[c]}setOperationAsUndone(r,c){this._undoPairs.set(c,r),this._undoneOperations.add(r)}isUndoingOperation(r){return this._undoPairs.has(r)}isUndoneOperation(r){return this._undoneOperations.has(r)}getUndoneOperation(r){return this._undoPairs.get(r)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class nl extends Jr{constructor(r,c,u="main"){super(c),this._isAttached=!0,this._isLoaded=!0,this._document=r,this.rootName=u}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}nl.prototype.is=function(m,r){return r?r===this.name&&("rootElement"===m||"model:rootElement"===m||"element"===m||"model:element"===m):"rootElement"===m||"model:rootElement"===m||"element"===m||"model:element"===m||"node"===m||"model:node"===m};var kd=Object.defineProperty,t5=Object.defineProperties,wv=Object.getOwnPropertyDescriptors,Pp=Object.getOwnPropertySymbols,bh=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable,fm=(m,r,c)=>r in m?kd(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,X_=(m,r)=>{for(var c in r||(r={}))bh.call(r,c)&&fm(m,c,r[c]);if(Pp)for(var c of Pp(r))vh.call(r,c)&&fm(m,c,r[c]);return m},Xm=(m,r)=>t5(m,wv(r));const rf="$graveyard";class e5 extends(Ne()){constructor(r){super(),this.model=r,this.history=new X6,this.selection=new Ou(this),this.roots=new ec({idProperty:"rootName"}),this.differ=new i4(r.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",rf),this.listenTo(r,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&this.differ.bufferOperation(_)},{priority:"high"}),this.listenTo(r,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&this.history.addOperation(_)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(r.markers,"update",(c,u,_,C,M)=>{const E=Xm(X_({},u.getData()),{range:C});this.differ.bufferMarkerChange(u.name,M,E),null===_&&u.on("change",(N,j)=>{const K=u.getData();this.differ.bufferMarkerChange(u.name,Xm(X_({},K),{range:j}),K)})}),this.registerPostFixer(c=>{let u=!1;for(const _ of this.roots)_.isAttached()||_.isEmpty||(c.remove(c.createRangeIn(_)),u=!0);for(const _ of this.model.markers)_.getRange().root.isAttached()||(c.removeMarker(_),u=!0);return u})}get version(){return this.history.version}set version(r){this.history.version=r}get graveyard(){return this.getRoot(rf)}createRoot(r="$root",c="main"){if(this.roots.get(c))throw new at("model-document-createroot-name-exists",this,{name:c});const u=new nl(this,r,c);return this.roots.add(u),u}destroy(){this.selection.destroy(),this.stopListening()}getRoot(r="main"){return this.roots.get(r)}getRootNames(r=!1){return this.getRoots(r).map(c=>c.rootName)}getRoots(r=!1){return Array.from(this.roots).filter(c=>c!=this.graveyard&&(r||c.isAttached())&&c._isLoaded)}registerPostFixer(r){this._postFixers.add(r)}toJSON(){const r=Mi(this);return r.selection="[engine.model.DocumentSelection]",r.model="[engine.model.Model]",r}_handleChangeBlock(r){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(r),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",r.batch):this.fire("change",r.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const r=this.getRoots();return r.length?r[0]:this.graveyard}_getDefaultRange(){const r=this._getDefaultRoot(),c=this.model,u=c.schema,_=c.createPositionFromPath(r,[0]);return u.getNearestSelectionRange(_)||c.createRange(_)}_validateSelectionRange(r){return G1(r.start)&&G1(r.end)}_callPostFixers(r){let c=!1;do{for(const u of this._postFixers)if(this.selection.refresh(),c=u(r),c)break}while(c)}}function G1(m){const r=m.textNode;if(r){const c=r.data,u=m.offset-r.startOffset;return!un(c,u)&&!hd(c,u)}return!0}var xh=Object.defineProperty,m0=Object.defineProperties,n5=Object.getOwnPropertyDescriptors,_0=Object.getOwnPropertySymbols,o5=Object.prototype.hasOwnProperty,Ch=Object.prototype.propertyIsEnumerable,Q1=(m,r,c)=>r in m?xh(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class t2 extends(Ne()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(r){return this._markers.has(r instanceof hm?r.name:r)}get(r){return this._markers.get(r)||null}_set(r,c,u=!1,_=!1){const C=r instanceof hm?r.name:r;if(C.includes(","))throw new at("markercollection-incorrect-marker-name",this);const M=this._markers.get(C);if(M){const K=M.getData(),dt=M.getRange();let Dt=!1;return dt.isEqual(c)||(M._attachLiveRange(Xu.fromRange(c)),Dt=!0),u!=M.managedUsingOperations&&(M._managedUsingOperations=u,Dt=!0),"boolean"==typeof _&&_!=M.affectsData&&(M._affectsData=_,Dt=!0),Dt&&this.fire(`update:${C}`,M,dt,c,K),M}const E=Xu.fromRange(c),N=new hm(C,E,u,_);var j;return this._markers.set(C,N),this.fire(`update:${C}`,N,null,c,(j=((K,dt)=>{for(var Dt in dt||(dt={}))o5.call(dt,Dt)&&Q1(K,Dt,dt[Dt]);if(_0)for(var Dt of _0(dt))Ch.call(dt,Dt)&&Q1(K,Dt,dt[Dt]);return K})({},N.getData()),m0(j,n5({range:null})))),N}_remove(r){const c=r instanceof hm?r.name:r,u=this._markers.get(c);return!!u&&(this._markers.delete(c),this.fire(`update:${c}`,u,u.getRange(),null,u.getData()),this._destroyMarker(u),!0)}_refresh(r){const c=r instanceof hm?r.name:r,u=this._markers.get(c);if(!u)throw new at("markercollection-refresh-marker-not-exists",this);const _=u.getRange();this.fire(`update:${c}`,u,_,_,u.getData())}*getMarkersAtPosition(r){for(const c of this)c.getRange().containsPosition(r)&&(yield c)}*getMarkersIntersectingRange(r){for(const c of this)null!==c.getRange().getIntersection(r)&&(yield c)}destroy(){for(const r of this._markers.values())this._destroyMarker(r);this._markers=null,this.stopListening()}*getMarkersGroup(r){for(const c of this._markers.values())c.name.startsWith(r+":")&&(yield c)}_destroyMarker(r){r.stopListening(),r._detachLiveRange()}}class hm extends(Ne(Zp)){constructor(r,c,u,_){super(),this.name=r,this._liveRange=this._attachLiveRange(c),this._managedUsingOperations=u,this._affectsData=_}get managedUsingOperations(){if(!this._liveRange)throw new at("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new at("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new at("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new at("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new at("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(r){return this._liveRange&&this._detachLiveRange(),r.delegate("change:range").to(this),r.delegate("change:content").to(this),this._liveRange=r,r}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}hm.prototype.is=function(m){return"marker"===m||"model:marker"===m};class gm extends ed{constructor(r,c){super(null),this.sourcePosition=r.clone(),this.howMany=c}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const r=super.toJSON();return r.sourcePosition=this.sourcePosition.toJSON(),r}_validate(){if(this.sourcePosition.root.document)throw new at("detach-operation-on-document-node",this)}_execute(){mh(Li._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Xd extends Zp{constructor(r){super(),this.markers=new Map,this._children=new am,r&&this._insertChild(0,r)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}getPath(){return[]}getNodeByPath(r){let c=this;for(const u of r)c=c.getChild(c.offsetToIndex(u));return c}offsetToIndex(r){return this._children.offsetToIndex(r)}toJSON(){const r=[];for(const c of this._children)r.push(c.toJSON());return r}static fromJSON(r){const c=[];for(const u of r)c.push(u.name?Jr.fromJSON(u):rs.fromJSON(u));return new Xd(c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const u="string"==typeof(_=c)?[new rs(_)]:(et(_)||(_=[_]),Array.from(_).map(C=>"string"==typeof C?new rs(C):C instanceof Ku?new rs(C.data,C.getAttributes()):C));var _;for(const _ of u)null!==_.parent&&_._remove(),_.parent=this;this._children._insertNodes(r,u)}_removeChildren(r,c=1){const u=this._children._removeNodes(r,c);for(const _ of u)_.parent=null;return u}}Xd.prototype.is=function(m){return"documentFragment"===m||"model:documentFragment"===m};class sf{constructor(r,c){this.model=r,this.batch=c}createText(r,c){return new rs(r,c)}createElement(r,c){return new Jr(r,c)}createDocumentFragment(){return new Xd}cloneElement(r,c=!0){return r._clone(c)}insert(r,c,u=0){if(this._assertWriterUsedCorrectly(),r instanceof rs&&""==r.data)return;const _=to._createAt(c,u);if(r.parent){if(h0(r.root,_.root))return void this.move(Li._createOn(r),_);if(r.root.document)throw new at("model-writer-insert-forbidden-move",this);this.remove(r)}const M=new _c(_,r,_.root.document?_.root.document.version:null);if(r instanceof rs&&(M.shouldReceiveAttributes=!0),this.batch.addOperation(M),this.model.applyOperation(M),r instanceof Xd)for(const[E,N]of r.markers){const j=to._createAt(N.root,0),K={range:new Li(N.start._getCombined(j,_),N.end._getCombined(j,_)),usingOperation:!0,affectsData:!0};this.model.markers.has(E)?this.updateMarker(E,K):this.addMarker(E,K)}}insertText(r,c,u,_){c instanceof Xd||c instanceof Jr||c instanceof to?this.insert(this.createText(r),c,u):this.insert(this.createText(r,c),u,_)}insertElement(r,c,u,_){c instanceof Xd||c instanceof Jr||c instanceof to?this.insert(this.createElement(r),c,u):this.insert(this.createElement(r,c),u,_)}append(r,c){this.insert(r,c,"end")}appendText(r,c,u){c instanceof Xd||c instanceof Jr?this.insert(this.createText(r),c,"end"):this.insert(this.createText(r,c),u,"end")}appendElement(r,c,u){c instanceof Xd||c instanceof Jr?this.insert(this.createElement(r),c,"end"):this.insert(this.createElement(r,c),u,"end")}setAttribute(r,c,u){if(this._assertWriterUsedCorrectly(),u instanceof Li){const _=u.getMinimalFlatRanges();for(const C of _)t_(this,r,c,C)}else Ah(this,r,c,u)}setAttributes(r,c){for(const[u,_]of Kc(r))this.setAttribute(u,_,c)}removeAttribute(r,c){if(this._assertWriterUsedCorrectly(),c instanceof Li){const u=c.getMinimalFlatRanges();for(const _ of u)t_(this,r,null,_)}else Ah(this,r,null,c)}clearAttributes(r){this._assertWriterUsedCorrectly();const c=u=>{for(const _ of u.getAttributeKeys())this.removeAttribute(_,u)};if(r instanceof Li)for(const u of r.getItems())c(u);else c(r)}move(r,c,u){if(this._assertWriterUsedCorrectly(),!(r instanceof Li))throw new at("writer-move-invalid-range",this);if(!r.isFlat)throw new at("writer-move-range-not-flat",this);const _=to._createAt(c,u);if(_.isEqual(r.start))return;if(this._addOperationForAffectedMarkers("move",r),!h0(r.root,_.root))throw new at("writer-move-different-document",this);const M=new ir(r.start,r.end.offset-r.start.offset,_,r.root.document?r.root.document.version:null);this.batch.addOperation(M),this.model.applyOperation(M)}remove(r){this._assertWriterUsedCorrectly();const c=(r instanceof Li?r:Li._createOn(r)).getMinimalFlatRanges().reverse();for(const u of c)this._addOperationForAffectedMarkers("move",u),f0(u.start,u.end.offset-u.start.offset,this.batch,this.model)}merge(r){this._assertWriterUsedCorrectly();const c=r.nodeBefore,u=r.nodeAfter;if(this._addOperationForAffectedMarkers("merge",r),!(c instanceof Jr))throw new at("writer-merge-no-element-before",this);if(!(u instanceof Jr))throw new at("writer-merge-no-element-after",this);r.root.document?this._merge(r):this._mergeDetached(r)}createPositionFromPath(r,c,u){return this.model.createPositionFromPath(r,c,u)}createPositionAt(r,c){return this.model.createPositionAt(r,c)}createPositionAfter(r){return this.model.createPositionAfter(r)}createPositionBefore(r){return this.model.createPositionBefore(r)}createRange(r,c){return this.model.createRange(r,c)}createRangeIn(r){return this.model.createRangeIn(r)}createRangeOn(r){return this.model.createRangeOn(r)}createSelection(...r){return this.model.createSelection(...r)}_mergeDetached(r){const c=r.nodeBefore,u=r.nodeAfter;this.move(Li._createIn(u),to._createAt(c,"end")),this.remove(u)}_merge(r){const c=to._createAt(r.nodeBefore,"end"),u=to._createAt(r.nodeAfter,0),C=new to(r.root.document.graveyard,[0]),E=new _s(u,r.nodeAfter.maxOffset,c,C,r.root.document.version);this.batch.addOperation(E),this.model.applyOperation(E)}rename(r,c){if(this._assertWriterUsedCorrectly(),!(r instanceof Jr))throw new at("writer-rename-not-element-instance",this);const u=r.root.document?r.root.document.version:null,_=new Ll(to._createBefore(r),r.name,c,u);this.batch.addOperation(_),this.model.applyOperation(_)}split(r,c){this._assertWriterUsedCorrectly();let u,_,C=r.parent;if(!C.parent)throw new at("writer-split-element-no-parent",this);if(c||(c=C.parent),!r.parent.getAncestors({includeSelf:!0}).includes(c))throw new at("writer-split-invalid-limit-element",this);do{const M=C.root.document?C.root.document.version:null,E=C.maxOffset-r.offset,N=Ar.getInsertionPosition(r),j=new Ar(r,E,N,null,M);this.batch.addOperation(j),this.model.applyOperation(j),u||_||(u=C,_=r.parent.nextSibling),C=(r=this.createPositionAfter(r.parent)).parent}while(C!==c);return{position:r,range:new Li(to._createAt(u,"end"),to._createAt(_,0))}}wrap(r,c){if(this._assertWriterUsedCorrectly(),!r.isFlat)throw new at("writer-wrap-range-not-flat",this);const u=c instanceof Jr?c:new Jr(c);if(u.childCount>0)throw new at("writer-wrap-element-not-empty",this);if(null!==u.parent)throw new at("writer-wrap-element-attached",this);this.insert(u,r.start);const _=new Li(r.start.getShiftedBy(1),r.end.getShiftedBy(1));this.move(_,to._createAt(u,0))}unwrap(r){if(this._assertWriterUsedCorrectly(),null===r.parent)throw new at("writer-unwrap-element-no-parent",this);this.move(Li._createIn(r),this.createPositionAfter(r)),this.remove(r)}addMarker(r,c){if(this._assertWriterUsedCorrectly(),!c||"boolean"!=typeof c.usingOperation)throw new at("writer-addmarker-no-usingoperation",this);const u=c.usingOperation,_=c.range,C=void 0!==c.affectsData&&c.affectsData;if(this.model.markers.has(r))throw new at("writer-addmarker-marker-exists",this);if(!_)throw new at("writer-addmarker-no-range",this);return u?(Sp(this,r,null,_,C),this.model.markers.get(r)):this.model.markers._set(r,_,u,C)}updateMarker(r,c){this._assertWriterUsedCorrectly();const u="string"==typeof r?r:r.name,_=this.model.markers.get(u);if(!_)throw new at("writer-updatemarker-marker-not-exists",this);if(!c)return Zt("writer-updatemarker-reconvert-using-editingcontroller",{markerName:u}),void this.model.markers._refresh(_);const C="boolean"==typeof c.usingOperation,M="boolean"==typeof c.affectsData,E=M?c.affectsData:_.affectsData;if(!C&&!c.range&&!M)throw new at("writer-updatemarker-wrong-options",this);const N=_.getRange(),j=c.range?c.range:N;C&&c.usingOperation!==_.managedUsingOperations?c.usingOperation?Sp(this,u,null,j,E):(Sp(this,u,N,null,E),this.model.markers._set(u,j,void 0,E)):_.managedUsingOperations?Sp(this,u,N,j,E):this.model.markers._set(u,j,void 0,E)}removeMarker(r){this._assertWriterUsedCorrectly();const c="string"==typeof r?r:r.name;if(!this.model.markers.has(c))throw new at("writer-removemarker-no-marker",this);const u=this.model.markers.get(c);u.managedUsingOperations?Sp(this,c,u.getRange(),null,u.affectsData):this.model.markers._remove(c)}addRoot(r,c="$root"){this._assertWriterUsedCorrectly();const u=this.model.document.getRoot(r);if(u&&u.isAttached())throw new at("writer-addroot-root-exists",this);const _=this.model.document,C=new _l(r,c,!0,_,_.version);return this.batch.addOperation(C),this.model.applyOperation(C),this.model.document.getRoot(r)}detachRoot(r){this._assertWriterUsedCorrectly();const c="string"==typeof r?this.model.document.getRoot(r):r;if(!c||!c.isAttached())throw new at("writer-detachroot-no-root",this);for(const C of this.model.markers)C.getRange().root===c&&this.removeMarker(C);for(const C of c.getAttributeKeys())this.removeAttribute(C,c);this.remove(this.createRangeIn(c));const u=this.model.document,_=new _l(c.rootName,c.name,!1,u,u.version);this.batch.addOperation(_),this.model.applyOperation(_)}setSelection(...r){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...r)}setSelectionFocus(r,c){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(r,c)}setSelectionAttribute(r,c){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._setSelectionAttribute(r,c);else for(const[u,_]of Kc(r))this._setSelectionAttribute(u,_)}removeSelectionAttribute(r){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._removeSelectionAttribute(r);else for(const c of r)this._removeSelectionAttribute(c)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(r){this.model.document.selection._restoreGravity(r)}_setSelectionAttribute(r,c){const u=this.model.document.selection;if(u.isCollapsed&&u.anchor.parent.isEmpty){const _=Ou._getStoreAttributeKey(r);this.setAttribute(_,c,u.anchor.parent)}u._setAttribute(r,c)}_removeSelectionAttribute(r){const c=this.model.document.selection;if(c.isCollapsed&&c.anchor.parent.isEmpty){const u=Ou._getStoreAttributeKey(r);this.removeAttribute(u,c.anchor.parent)}c._removeAttribute(r)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new at("writer-incorrect-use",this)}_addOperationForAffectedMarkers(r,c){for(const u of this.model.markers){if(!u.managedUsingOperations)continue;const _=u.getRange();let C=!1;if("move"===r){const M=c;C=M.containsPosition(_.start)||M.start.isEqual(_.start)||M.containsPosition(_.end)||M.end.isEqual(_.end)}else{const N=c.nodeAfter,K=_.end.parent==N&&0==_.end.offset,dt=_.end.nodeAfter==N,Dt=_.start.nodeAfter==N;C=_.start.parent==c.nodeBefore&&_.start.isAtEnd||K||dt||Dt}C&&this.updateMarker(u.name,{range:_})}}}function t_(m,r,c,u){const _=m.model,C=_.document;let M,E,N,j=u.start;for(const dt of u.getWalker({shallow:!0}))N=dt.item.getAttribute(r),M&&E!=N&&(E!=c&&K(),j=M),M=dt.nextPosition,E=N;function K(){const dt=new Li(j,M),me=new Wr(dt,r,E,c,dt.root.document?C.version:null);m.batch.addOperation(me),_.applyOperation(me)}M instanceof to&&M!=j&&E!=c&&K()}function Ah(m,r,c,u){const _=m.model,C=_.document,M=u.getAttribute(r);let E,N;M!=c&&(u.root===u?N=new $d(u,r,M,c,u.document?C.version:null):(E=new Li(to._createBefore(u),m.createPositionAfter(u)),N=new Wr(E,r,M,c,E.root.document?C.version:null)),m.batch.addOperation(N),_.applyOperation(N))}function Sp(m,r,c,u,_){const C=m.model,E=new ys(r,c,u,C.markers,!!_,C.document.version);m.batch.addOperation(E),C.applyOperation(E)}function f0(m,r,c,u){let _;if(m.root.document){const C=u.document,M=new to(C.graveyard,[0]);_=new ir(m,r,M,C.version)}else _=new gm(m,r);c.addOperation(_),u.applyOperation(_)}function h0(m,r){return m===r||m instanceof nl&&r instanceof nl}function yh(m,r,c={}){if(r.isCollapsed)return;const u=r.getFirstRange();if("$graveyard"==u.root.rootName)return;const _=m.schema;m.change(C=>{if(!c.doNotResetEntireContent&&function(j,K){const dt=j.getLimitElement(K);if(!K.containsEntireContent(dt))return!1;const Dt=K.getFirstRange();return Dt.start.parent!=Dt.end.parent&&j.checkChild(dt,"paragraph")}(_,r))return void function(j,K){const dt=j.model.schema.getLimitElement(K);j.remove(j.createRangeIn(dt)),b0(j,j.createPositionAt(dt,0),K)}(C,r);const M={};if(!c.doNotAutoparagraph){const j=r.getSelectedElement();j&&Object.assign(M,_.getAttributesWithProperty(j,"copyOnReplace",!0))}const[E,N]=function(j){const K=j.root.document.model,dt=j.start;let Dt=j.end;if(K.hasContent(j,{ignoreMarkers:!0})){const me=function(Ue){const qe=Ue.parent,pn=qe.root.document.model.schema,Ln=qe.getAncestors({parentFirst:!0,includeSelf:!0});for(const pi of Ln){if(pn.isLimit(pi))return null;if(pn.isBlock(pi))return pi}}(Dt);if(me&&Dt.isTouching(K.createPositionAt(me,0))){const Ue=K.createSelection(j);K.modifySelection(Ue,{direction:"backward"});const qe=Ue.getLastPosition(),pn=K.createRange(qe,Dt);K.hasContent(pn,{ignoreMarkers:!0})||(Dt=qe)}}return[el.fromPosition(dt,"toPrevious"),el.fromPosition(Dt,"toNext")]}(u);E.isTouching(N)||C.remove(C.createRange(E,N)),c.leaveUnmerged||(function(j,K,dt){const Dt=j.model;if(!g0(j.model.schema,K,dt))return;const[me,Ue]=function(qe,pn){const Ln=qe.getAncestors(),pi=pn.getAncestors();let Ri=0;for(;Ln[Ri]&&Ln[Ri]==pi[Ri];)Ri++;return[Ln[Ri],pi[Ri]]}(K,dt);!me||!Ue||(!Dt.hasContent(me,{ignoreMarkers:!0})&&Dt.hasContent(Ue,{ignoreMarkers:!0})?a5(j,K,dt,me.parent):o4(j,K,dt,me.parent))}(C,E,N),_.removeDisallowedAttributes(E.parent.getChildren(),C)),v0(C,r,E),!c.doNotAutoparagraph&&function(j,K){const dt=j.checkChild(K,"$text"),Dt=j.checkChild(K,"paragraph");return!dt&&Dt}(_,E)&&b0(C,E,r,M),E.detach(),N.detach()})}function o4(m,r,c,u){const _=r.parent,C=c.parent;if(_!=u&&C!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(C)).isEqual(r)||m.insert(C,r),m.merge(r);c.parent.isEmpty;){const M=c.parent;c=m.createPositionBefore(M),m.remove(M)}g0(m.model.schema,r,c)&&o4(m,r,c,u)}}function a5(m,r,c,u){const _=r.parent,C=c.parent;if(_!=u&&C!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(C)).isEqual(r)||m.insert(_,c);r.parent.isEmpty;){const M=r.parent;r=m.createPositionBefore(M),m.remove(M)}c=m.createPositionBefore(C),function(M,E){const N=E.nodeBefore,j=E.nodeAfter;N.name!=j.name&&M.rename(N,j.name),M.clearAttributes(N),M.setAttributes(Object.fromEntries(j.getAttributes()),N),M.merge(E)}(m,c),g0(m.model.schema,r,c)&&a5(m,r,c,u)}}function g0(m,r,c){const u=r.parent,_=c.parent;return u!=_&&!m.isLimit(u)&&!m.isLimit(_)&&function(C,M,E){const N=new Li(C,M);for(const j of N.getWalker())if(E.isLimit(j.item))return!1;return!0}(r,c,m)}function b0(m,r,c,u={}){const _=m.createElement("paragraph");m.model.schema.setAllowedAttributes(_,u,m),m.insert(_,r),v0(m,c,m.createPositionAt(_,0))}function v0(m,r,c){r instanceof Ou?m.setSelection(c):r.setTo(c)}function cf(m,r){const c=[];Array.from(m.getItems({direction:"backward"})).map(u=>r.createRangeOn(u)).filter(u=>(u.start.isAfter(m.start)||u.start.isEqual(m.start))&&(u.end.isBefore(m.end)||u.end.isEqual(m.end))).forEach(u=>{c.push(u.start.parent),r.remove(u)}),c.forEach(u=>{let _=u;for(;_.parent&&_.isEmpty;){const C=r.createRangeOn(_);_=_.parent,r.remove(C)}})}class a4{constructor(r,c,u){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=r,this.writer=c,this.position=u,this.canMergeWith=new Set([this.position.parent]),this.schema=r.schema,this._documentFragment=c.createDocumentFragment(),this._documentFragmentPosition=c.createPositionAt(this._documentFragment,0)}handleNodes(r){for(const c of Array.from(r))this._handleNode(c);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(r){const c=this.writer.createPositionAfter(this._lastNode),u=this.writer.createPositionAfter(r);if(u.isAfter(c)){if(this._lastNode=r,this.position.parent!=r||!this.position.isAtEnd)throw new at("insertcontent-invalid-insertion-position",this);this.position=u,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Li._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Li(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(r){if(this.schema.isObject(r))return void this._handleObject(r);let c=this._checkAndAutoParagraphToAllowedPosition(r);c||(c=this._checkAndSplitToAllowedPosition(r),c)?(this._appendToFragment(r),this._firstNode||(this._firstNode=r),this._lastNode=r):this._handleDisallowedNode(r)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const r=el.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=r.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=r.toPosition(),r.detach()}_handleObject(r){this._checkAndSplitToAllowedPosition(r)?this._appendToFragment(r):this._tryAutoparagraphing(r)}_handleDisallowedNode(r){r.is("element")?this.handleNodes(r.getChildren()):this._tryAutoparagraphing(r)}_appendToFragment(r){if(!this.schema.checkChild(this.position,r))throw new at("insertcontent-wrong-position",this,{node:r,position:this.position});this.writer.insert(r,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(r.offsetSize),this._nodeToSelect=this.schema.isObject(r)&&!this.schema.checkChild(this.position,"$text")?r:null,this._filterAttributesOf.push(r)}_setAffectedBoundaries(r){this._affectedStart||(this._affectedStart=el.fromPosition(r,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(r)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=el.fromPosition(r,"toNext"))}_mergeOnLeft(){const r=this._firstNode;if(!(r instanceof Jr&&this._canMergeLeft(r)))return;const c=el._createBefore(r);c.stickiness="toNext";const u=el.fromPosition(this.position,"toNext");this._affectedStart.isEqual(c)&&(this._affectedStart.detach(),this._affectedStart=el._createAt(c.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=c.nodeBefore,this._lastNode=c.nodeBefore),this.writer.merge(c),c.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=el._createAt(c.nodeBefore,"end","toNext")),this.position=u.toPosition(),u.detach(),this._filterAttributesOf.push(this.position.parent),c.detach()}_mergeOnRight(){const r=this._lastNode;if(!(r instanceof Jr&&this._canMergeRight(r)))return;const c=el._createAfter(r);if(c.stickiness="toNext",!this.position.isEqual(c))throw new at("insertcontent-invalid-insertion-position",this);this.position=to._createAt(c.nodeBefore,"end");const u=el.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(c)&&(this._affectedEnd.detach(),this._affectedEnd=el._createAt(c.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=c.nodeBefore,this._lastNode=c.nodeBefore),this.writer.merge(c),c.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=el._createAt(c.nodeBefore,0,"toPrevious")),this.position=u.toPosition(),u.detach(),this._filterAttributesOf.push(this.position.parent),c.detach()}_canMergeLeft(r){const c=r.previousSibling;return c instanceof Jr&&this.canMergeWith.has(c)&&this.model.schema.checkMerge(c,r)}_canMergeRight(r){const c=r.nextSibling;return c instanceof Jr&&this.canMergeWith.has(c)&&this.model.schema.checkMerge(r,c)}_tryAutoparagraphing(r){const c=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,c)&&this.schema.checkChild(c,r)&&(c._appendChild(r),this._handleNode(c))}_checkAndAutoParagraphToAllowedPosition(r){if(this.schema.checkChild(this.position.parent,r))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",r))return!1;this._insertPartialFragment();const c=this.writer.createElement("paragraph");return this.writer.insert(c,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=c,this.position=this.writer.createPositionAt(c,0),!0}_checkAndSplitToAllowedPosition(r){const c=this._getAllowedIn(this.position.parent,r);if(!c)return!1;for(c!=this.position.parent&&this._insertPartialFragment();c!=this.position.parent;)if(this.position.isAtStart){const u=this.position.parent;this.position=this.writer.createPositionBefore(u),u.isEmpty&&u.parent===c&&this.writer.remove(u)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const u=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=u,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(r,c){return this.schema.checkChild(r,c)?r:this.schema.isLimit(r)?null:this._getAllowedIn(r.parent,c)}}function x0(m,r,c="auto"){const u=m.getSelectedElement();if(u&&r.schema.isObject(u)&&!r.schema.isInline(u))return"before"==c||"after"==c?r.createRange(r.createPositionAt(u,c)):r.createRangeOn(u);const _=os(m.getSelectedBlocks());if(!_)return r.createRange(m.focus);if(_.isEmpty)return r.createRange(r.createPositionAt(_,0));const C=r.createPositionAfter(_);return m.focus.isTouching(C)?r.createRange(C):r.createRange(r.createPositionBefore(_))}function r4(m,r){const{isForward:c,walker:u,unit:_,schema:C,treatEmojiAsSingleUnit:M}=m,{type:E,item:N,nextPosition:j}=r;if("text"==E)return"word"===m.unit?function(K,dt){let Dt=K.position.textNode;for(Dt||(Dt=dt?K.position.nodeAfter:K.position.nodeBefore);Dt&&Dt.is("$text");){const me=K.position.offset-Dt.startOffset;if(C0(Dt,me,dt))Dt=dt?K.position.nodeAfter:K.position.nodeBefore;else{if(r5(Dt.data,me,dt))break;K.next()}}return K.position}(u,c):function(K,dt,Dt){const me=K.position.textNode;if(me){const Ue=me.data;let qe=K.position.offset-me.startOffset;for(;un(Ue,qe)||"character"==dt&&hd(Ue,qe)||Dt&&kl(Ue,qe);)K.next(),qe=K.position.offset-me.startOffset}return K.position}(u,_,M);if(E==(c?"elementStart":"elementEnd")){if(C.isSelectable(N))return to._createAt(N,c?"after":"before");if(C.checkChild(j,"$text"))return j}else{if(C.isLimit(N))return void u.skip(()=>!0);if(C.checkChild(j,"$text"))return j}}function s4(m,r){const u=to._createAt(m.root,r?"end":0);return r?new Li(m,u):new Li(u,m)}function r5(m,r,c){return' ,.?!:;"-()'.includes(m.charAt(r+(c?0:-1)))}function C0(m,r,c){return r===(c?m.offsetSize:0)}class fs extends(Ze()){constructor(){super(),this.markers=new t2,this.document=new e5(this),this.schema=new $3,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(r=>this.decorate(r)),this.on("applyOperation",(r,c)=>{c[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((r,c)=>{if("$marker"===c.name)return!0}),function rh(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.selection,C=u.schema,M=[];let E=!1;for(const N of _.getRanges()){const j=Ga(N,C);j&&!j.isEqual(N)?(M.push(j),E=!0):M.push(N)}return E&&c.setSelection(function(N){const j=[...N],K=new Set;let dt=1;for(;dt!K.has(me))}(M),{backward:_.isBackward}),!1}(r,m))}(this),this.document.registerPostFixer(nh),this.on("insertContent",(r,[c,u])=>{var _,C,M;r.return=(C=c,M=u,(_=this).change(E=>{const N=M||_.document.selection;N.isCollapsed||_.deleteContent(N,{doNotAutoparagraph:!0});const j=new a4(_,E,N.anchor),K=[];let dt;if(C.is("documentFragment")){if(C.markers.size){const Ue=[];for(const[qe,pn]of C.markers){const{start:Ln,end:pi}=pn,Ri=Ln.isEqual(pi);Ue.push({position:Ln,name:qe,isCollapsed:Ri},{position:pi,name:qe,isCollapsed:Ri})}Ue.sort(({position:qe},{position:pn})=>qe.isBefore(pn)?1:-1);for(const{position:qe,name:pn,isCollapsed:Ln}of Ue){let pi=null,Ri=null;const Go=qe.parent===C&&qe.isAtStart,ka=qe.parent===C&&qe.isAtEnd;Go||ka?Ln&&(Ri=Go?"start":"end"):(pi=E.createElement("$marker"),E.insert(pi,qe)),K.push({name:pn,element:pi,collapsed:Ri})}}dt=C.getChildren()}else dt=[C];j.handleNodes(dt);let Dt=j.getSelectionRange();if(C.is("documentFragment")&&K.length){const Ue=Dt?Xu.fromRange(Dt):null,qe={};for(let pn=K.length-1;pn>=0;pn--){const{name:Ln,element:pi,collapsed:Ri}=K[pn],Go=!qe[Ln];if(Go&&(qe[Ln]=[]),pi){const ka=E.createPositionAt(pi,"before");qe[Ln].push(ka),E.remove(pi)}else{const ka=j.getAffectedRange();if(!ka){Ri&&qe[Ln].push(j.position);continue}qe[Ln].push(Ri?ka[Ri]:Go?ka.start:ka.end)}}for(const[pn,[Ln,pi]]of Object.entries(qe))Ln&&pi&&Ln.root===pi.root&&E.addMarker(pn,{usingOperation:!0,affectsData:!0,range:new Li(Ln,pi)});Ue&&(Dt=Ue.toRange(),Ue.detach())}Dt&&(N instanceof Ou?E.setSelection(Dt):N.setTo(Dt));const me=j.getAffectedRange()||_.createRange(N.anchor);return j.destroy(),me}))}),this.on("insertObject",(r,[c,u,_])=>{r.return=function mu(m,r,c,u={}){if(!m.schema.isObject(r))throw new at("insertobject-element-not-an-object",m,{object:r});const _=c||m.document.selection;let C=_;u.findOptimalPosition&&m.schema.isBlock(r)&&(C=m.createSelection(x0(_,m,u.findOptimalPosition)));const M=os(_.getSelectedBlocks()),E={};return M&&Object.assign(E,m.schema.getAttributesWithProperty(M,"copyOnReplace",!0)),m.change(N=>{C.isCollapsed||m.deleteContent(C,{doNotAutoparagraph:!0});let j=r;const K=C.anchor.parent;!m.schema.checkChild(K,r)&&m.schema.checkChild(K,"paragraph")&&m.schema.checkChild("paragraph",r)&&(j=N.createElement("paragraph"),N.insert(r,j)),m.schema.setAllowedAttributes(j,E,N);const dt=m.insertContent(j,C);return dt.isCollapsed||u.setSelection&&function(Dt,me,Ue,qe){const pn=Dt.model;if("on"==Ue)return void Dt.setSelection(me,"on");if("after"!=Ue)throw new at("insertobject-invalid-place-parameter-value",pn);let Ln=me.nextSibling;pn.schema.isInline(me)?Dt.setSelection(me,"after"):(!(Ln&&pn.schema.checkChild(Ln,"$text"))&&pn.schema.checkChild(me.parent,"paragraph")&&(Ln=Dt.createElement("paragraph"),pn.schema.setAllowedAttributes(Ln,qe,Dt),pn.insertContent(Ln,Dt.createPositionAfter(me))),Ln&&Dt.setSelection(Ln,0))}(N,r,u.setSelection,E),dt})}(this,c,u,_)}),this.on("canEditAt",r=>{const c=!this.document.isReadOnly;r.return=c,c||r.stop()})}change(r){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new _m,callback:r}),this._runPendingChanges()[0]):r(this._currentWriter)}catch(c){at.rethrowUnexpectedError(c,this)}}enqueueChange(r,c){try{r?"function"==typeof r?(c=r,r=new _m):r instanceof _m||(r=new _m(r)):r=new _m,this._pendingChanges.push({batch:r,callback:c}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(u){at.rethrowUnexpectedError(u,this)}}applyOperation(r){r._execute()}insertContent(r,c,u,..._){const C=e2(c,u);return this.fire("insertContent",[r,C,u,..._])}insertObject(r,c,u,_,...C){const M=e2(c,u);return this.fire("insertObject",[r,M,_,_,...C])}deleteContent(r,c){yh(this,r,c)}modifySelection(r,c){!function(u,_,C={}){const M=u.schema,E="backward"!=C.direction,N=C.unit?C.unit:"character",j=!!C.treatEmojiAsSingleUnit,dt=new Gd({boundaries:s4(_.focus,E),singleCharacters:!0,direction:E?"forward":"backward"}),Dt={walker:dt,schema:M,isForward:E,unit:N,treatEmojiAsSingleUnit:j};let me;for(;me=dt.next();){if(me.done)return;const Ue=r4(Dt,me.value);if(Ue)return void(_ instanceof Ou?u.change(qe=>{qe.setSelectionFocus(Ue)}):_.setFocus(Ue))}}(this,r,c)}getSelectedContent(r){return u=r,this.change(_=>{const C=_.createDocumentFragment(),M=u.getFirstRange();if(!M||M.isCollapsed)return C;const E=M.start.root,N=M.start.getCommonPath(M.end),j=E.getNodeByPath(N);let K;K=M.start.parent==M.end.parent?M:_.createRange(_.createPositionAt(j,M.start.path[N.length]),_.createPositionAt(j,M.end.path[N.length]+1));const dt=K.end.offset-K.start.offset;for(const Dt of K.getItems({shallow:!0}))Dt.is("$textProxy")?_.appendText(Dt.data,Dt.getAttributes(),C):_.append(_.cloneElement(Dt,!0),C);if(K!=M){const Dt=M._getTransformedByMove(K.start,_.createPositionAt(C,0),dt)[0],me=_.createRange(_.createPositionAt(C,0),Dt.start);cf(_.createRange(Dt.end,_.createPositionAt(C,"end")),_),cf(me,_)}return C});var u}hasContent(r,c={}){const u=r instanceof Li?r:Li._createIn(r);if(u.isCollapsed)return!1;const{ignoreWhitespaces:_=!1,ignoreMarkers:C=!1}=c;if(!C)for(const M of this.markers.getMarkersIntersectingRange(u))if(M.affectsData)return!0;for(const M of u.getItems())if(this.schema.isContent(M)&&(!M.is("$textProxy")||!_||-1!==M.data.search(/\S/)))return!0;return!1}canEditAt(r){const c=e2(r);return this.fire("canEditAt",[c])}createPositionFromPath(r,c,u){return new to(r,c,u)}createPositionAt(r,c){return to._createAt(r,c)}createPositionAfter(r){return to._createAfter(r)}createPositionBefore(r){return to._createBefore(r)}createRange(r,c){return new Li(r,c)}createRangeIn(r){return Li._createIn(r)}createRangeOn(r){return Li._createOn(r)}createSelection(...r){return new Ud(...r)}createBatch(r){return new _m(r)}createOperationFromJSON(r){return class Z1{static fromJSON(r,c){return pu[r.__className].fromJSON(r,c)}}.fromJSON(r,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const r=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){this._currentWriter=new sf(this,this._pendingChanges[0].batch);const u=this._pendingChanges[0].callback(this._currentWriter);r.push(u),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return r}}function e2(m,r){if(m)return m instanceof Ud||m instanceof Ou?m:m instanceof oc?r||0===r?new Ud(m,r):m.is("rootElement")?new Ud(m,"in"):new Ud(m,"on"):new Ud(m)}class c4 extends Wu{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(r){this.fire(r.type,r)}}class A0 extends Wu{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(r){this.fire(r.type,r)}}class W1{constructor(r){this.document=r}createDocumentFragment(r){return new Td(this.document,r)}createElement(r,c,u){return new Xc(this.document,r,c,u)}createText(r){return new Eo(this.document,r)}clone(r,c=!1){return r._clone(c)}appendChild(r,c){return c._appendChild(r)}insertChild(r,c,u){return u._insertChild(r,c)}removeChildren(r,c,u){return u._removeChildren(r,c)}remove(r){const c=r.parent;return c?this.removeChildren(c.getChildIndex(r),1,c):[]}replace(r,c){const u=r.parent;if(u){const _=u.getChildIndex(r);return this.removeChildren(_,1,u),this.insertChild(_,c,u),!0}return!1}unwrapElement(r){const c=r.parent;if(c){const u=c.getChildIndex(r);this.remove(r),this.insertChild(u,r.getChildren(),c)}}rename(r,c){const u=new Xc(this.document,r,c.getAttributes(),c.getChildren());return this.replace(c,u)?u:null}setAttribute(r,c,u){u._setAttribute(r,c)}removeAttribute(r,c){c._removeAttribute(r)}addClass(r,c){c._addClass(r)}removeClass(r,c){c._removeClass(r)}setStyle(r,c,u){en(r)&&void 0===u?c._setStyle(r):u._setStyle(r,c)}removeStyle(r,c){c._removeStyle(r)}setCustomProperty(r,c,u){u._setCustomProperty(r,c)}removeCustomProperty(r,c){return c._removeCustomProperty(r)}createPositionAt(r,c){return Uo._createAt(r,c)}createPositionAfter(r){return Uo._createAfter(r)}createPositionBefore(r){return Uo._createBefore(r)}createRange(r,c){return new Za(r,c)}createRangeOn(r){return Za._createOn(r)}createRangeIn(r){return Za._createIn(r)}createSelection(...r){return new ju(...r)}}class l4{constructor(){this._commands=new Map}add(r,c){this._commands.set(r,c)}get(r){return this._commands.get(r)}execute(r,...c){const u=this.get(r);if(!u)throw new at("commandcollection-command-not-found",this,{commandName:r});return u.execute(...c)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const r of this.commands())r.destroy()}}class u4 extends(Ze()){constructor(r={}){super();const c=this.constructor;this._context=r.context||new k2({language:r.language||c.defaultConfig&&c.defaultConfig.language}),this._context._addEditor(this,!r.context);const _=Array.from(c.builtinPlugins||[]);this.config=new nr(r,c.defaultConfig),this.config.define("plugins",_),this.config.define(this._context._getEditorConfig()),this.plugins=new If(this,_,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new l4,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new fs,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const C=new Og;this.data=new $_(this.model,C),this.editing=new um(this.model,C),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new Os([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Wp(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(r){throw new at("editor-isreadonly-has-no-setter")}enableReadOnlyMode(r){if("string"!=typeof r&&"symbol"!=typeof r)throw new at("editor-read-only-lock-id-invalid",null,{lockId:r});this._readOnlyLocks.has(r)||(this._readOnlyLocks.add(r),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(r){if("string"!=typeof r&&"symbol"!=typeof r)throw new at("editor-read-only-lock-id-invalid",null,{lockId:r});this._readOnlyLocks.has(r)&&(this._readOnlyLocks.delete(r),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const r=this.config,c=r.get("plugins"),u=r.get("removePlugins")||[],_=r.get("extraPlugins")||[],C=r.get("substitutePlugins")||[];return this.plugins.init(c.concat(_),u,C)}destroy(){let r=Promise.resolve();return"initializing"==this.state&&(r=new Promise(c=>this.once("ready",c))),r.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(r,...c){try{return this.commands.execute(r,...c)}catch(u){at.rethrowUnexpectedError(u,this)}}focus(){this.editing.view.focus()}static create(...r){throw new Error("This is an abstract method.")}}function n2(m){return class extends m{setData(r){this.data.set(r)}getData(r){return this.data.get(r)}}}{const m=n2(Object);n2.setData=m.prototype.setData,n2.getData=m.prototype.getData}function lf(m){return class extends m{updateSourceElement(r=this.data.get()){if(!this.sourceElement)throw new at("editor-missing-sourceelement",this);const c=this.config.get("updateSourceElementOnDestroy"),u=this.sourceElement instanceof HTMLTextAreaElement;!function Ti(m,r){m instanceof HTMLTextAreaElement&&(m.value=r),m.innerHTML=r}(this.sourceElement,c||u?r:"")}}}lf.updateSourceElement=lf(Object).prototype.updateSourceElement;class wh extends w_{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new ec({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(r){if("string"!=typeof r)throw new at("pendingactions-add-invalid-message",this);const c=new(Ze());return c.set("message",r),this._actions.add(c),this.hasAny=!0,c}remove(r){this._actions.remove(r),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const hs={bold:'',cancel:'',caption:'',check:'',cog:'',eraser:'',history:'',image:'',lowVision:'',loupe:'',importExport:'',paragraph:'',plus:'',text:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:'',quote:'',threeVerticalDots:'',dragIndicator:''};var y0=v(5542);Fo()(y0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const{threeVerticalDots:o2}=hs,T0={alignLeft:hs.alignLeft,bold:hs.bold,importExport:hs.importExport,paragraph:hs.paragraph,plus:hs.plus,text:hs.text,threeVerticalDots:hs.threeVerticalDots,pilcrow:hs.pilcrow,dragIndicator:hs.dragIndicator};class w0 extends oa{constructor(r,c){super(r);const u=this.bindTemplate,_=this.t;this.options=c||{},this.set("ariaLabel",_("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new as,this.keystrokes=new $c,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new Ys(r),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const C="rtl"===r.uiLanguageDirection;this._focusCycler=new dl({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[C?"arrowright":"arrowleft","arrowup"],focusNext:[C?"arrowleft":"arrowright","arrowdown"]}});const M=["ck","ck-toolbar",u.to("class"),u.if("isCompact","ck-toolbar_compact")];var E;this.options.shouldGroupWhenFull&&this.options.isFloating&&M.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:M,role:"toolbar","aria-label":u.to("ariaLabel"),style:{maxWidth:u.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(E=this,E.bindTemplate.to(N=>{N.target===E.element&&N.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new d4(this):new qc(this)}render(){super.render(),this.focusTracker.add(this.element);for(const r of this.items)this.focusTracker.add(r.element);this.items.on("add",(r,c)=>{this.focusTracker.add(c.element)}),this.items.on("remove",(r,c)=>{this.focusTracker.remove(c.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(r,c,u){this.items.addMany(this._buildItemsFromConfig(r,c,u))}_buildItemsFromConfig(r,c,u){const _=fp(r),C=u||_.removeItems;return this._cleanItemsConfiguration(_.items,c,C).map(M=>Kt(M)?this._createNestedToolbarDropdown(M,c,C):"|"===M?new pl:"-"===M?new M2:c.create(M)).filter(M=>!!M)}_cleanItemsConfiguration(r,c,u){const _=r.filter((C,M,E)=>"|"===C||-1===u.indexOf(C)&&("-"===C?!this.options.shouldGroupWhenFull||(Zt("toolbarview-line-break-ignored-when-grouping-items",E),!1):!(!Kt(C)&&!c.has(C)&&(Zt("toolbarview-item-unavailable",{item:C}),1))));return this._cleanSeparatorsAndLineBreaks(_)}_cleanSeparatorsAndLineBreaks(r){const c=M=>"-"!==M&&"|"!==M,u=r.length,_=r.findIndex(c);if(-1===_)return[];const C=u-r.slice().reverse().findIndex(c);return r.slice(_,C).filter((M,E,N)=>!!c(M)||!(E>0&&N[E-1]===M))}_createNestedToolbarDropdown(r,c,u){let{label:_,icon:C,items:M,tooltip:E=!0,withText:N=!1}=r;if(M=this._cleanItemsConfiguration(M,c,u),!M.length)return null;const j=Op(this.locale);return _||Zt("toolbarview-nested-toolbar-dropdown-missing-label",r),j.class="ck-toolbar__nested-toolbar-dropdown",j.buttonView.set({label:_,tooltip:E,withText:!!N}),!1!==C?j.buttonView.icon=T0[C]||C||o2:j.buttonView.withText=!0,e_(j,()=>j.toolbarView._buildItemsFromConfig(M,c,u)),j}}class Ys extends oa{constructor(r){super(r),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class qc{constructor(r){const c=r.bindTemplate;r.set("isVertical",!1),r.itemsView.children.bindTo(r.items).using(u=>u),r.focusables.bindTo(r.items).using(u=>u),r.extendTemplate({attributes:{class:[c.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class d4{constructor(r){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=r,this.viewChildren=r.children,this.viewFocusables=r.focusables,this.viewItemsView=r.itemsView,this.viewFocusTracker=r.focusTracker,this.viewLocale=r.locale,this.ungroupedItems=r.createCollection(),this.groupedItems=r.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),r.itemsView.children.bindTo(this.ungroupedItems).using(c=>c),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),r.children.on("change",this._updateFocusCycleableItems.bind(this)),r.items.on("change",(c,u)=>{const _=u.index,C=Array.from(u.added);for(const M of u.removed)_>=this.ungroupedItems.length?this.groupedItems.remove(M):this.ungroupedItems.remove(M);for(let M=_;M<_+C.length;M++){const E=C[M-_];M>this.ungroupedItems.length?this.groupedItems.add(E,M-this.ungroupedItems.length):this.ungroupedItems.add(E,M)}this._updateGrouping()}),r.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(r){this.viewElement=r.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(r)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!ra(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const r=this.groupedItems.length;let c;for(;this._areItemsOverflowing;)this._groupLastItem(),c=!0;if(!c&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==r&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const r=this.viewElement,c=this.viewLocale.uiLanguageDirection,u=new de(r.lastChild),_=new de(r);if(!this.cachedPadding){const C=Lt.window.getComputedStyle(r);this.cachedPadding=Number.parseInt(C["ltr"===c?"paddingRight":"paddingLeft"])}return"ltr"===c?u.right>_.right-this.cachedPadding:u.left<_.left+this.cachedPadding}_enableGroupingOnResize(){let r;this.resizeObserver=new yi(this.viewElement,c=>{r&&r===c.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),r=c.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(r){r.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new pl),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const r=this.viewLocale,c=r.t,u=Op(r);return u.class="ck-toolbar__grouped-dropdown",u.panelPosition="ltr"===r.uiLanguageDirection?"sw":"se",e_(u,this.groupedItems),u.buttonView.set({label:c("Show more items"),tooltip:!0,tooltipPosition:"rtl"===r.uiLanguageDirection?"se":"sw",icon:o2}),u}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(r=>{this.viewFocusables.add(r)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class a2 extends oa{constructor(r){super(r);const c=this.bindTemplate,u=`ck-editor__label_${Pt()}`,_=new p4(r);this.children=this.createCollection(),this.children.addMany([this._createLabel(u),_]),this.set({label:"",isVisible:!0}),_.set({role:"group",ariaLabelledBy:u}),_.focusTracker.destroy(),_.keystrokes.destroy(),this.items=_.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",c.if("isVisible","ck-hidden",C=>!C)]},children:this.children})}_createLabel(r){const c=new oa(this.locale);return c.setTemplate({tag:"span",attributes:{id:r},children:[{text:this.bindTemplate.to("label")}]}),c}focus(){this.items.first&&this.items.first.focus()}}var r2=v(1046);Fo()(r2.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class p4 extends oa{constructor(r){super(r),this._listItemGroupToChangeListeners=new WeakMap;const c=this.bindTemplate;this.focusables=new Ia,this.items=this.createCollection(),this.focusTracker=new as,this.keystrokes=new $c,this._focusCycler=new dl({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:c.to("role"),"aria-label":c.to("ariaLabel"),"aria-labelledby":c.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const r of this.items)r instanceof a2?this._registerFocusableItemsGroup(r):this._registerFocusableListItem(r);this.items.on("change",(r,c)=>{for(const u of c.removed)u instanceof a2?this._deregisterFocusableItemsGroup(u):this._deregisterFocusableListItem(u);for(const u of Array.from(c.added).reverse())u instanceof a2?this._registerFocusableItemsGroup(u,c.index):this._registerFocusableListItem(u,c.index)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(r,c){this.focusTracker.add(r.element),this.focusables.add(r,c)}_deregisterFocusableListItem(r){this.focusTracker.remove(r.element),this.focusables.remove(r)}_getOnGroupItemsChangeCallback(r){return(c,u)=>{for(const _ of u.removed)this._deregisterFocusableListItem(_);for(const _ of Array.from(u.added).reverse())this._registerFocusableListItem(_,this.items.getIndex(r)+u.index)}}_registerFocusableItemsGroup(r,c){Array.from(r.items).forEach((_,C)=>{this._registerFocusableListItem(_,void 0!==c?c+C:void 0)});const u=this._getOnGroupItemsChangeCallback(r);this._listItemGroupToChangeListeners.set(r,u),r.items.on("change",u)}_deregisterFocusableItemsGroup(r){for(const c of r.items)this._deregisterFocusableListItem(c);r.items.off("change",this._listItemGroupToChangeListeners.get(r)),this._listItemGroupToChangeListeners.delete(r)}}class Zh extends oa{constructor(r){super(r);const c=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",c.if("isVisible","ck-hidden",u=>!u)],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class Lp extends oa{constructor(r){super(r),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var bm=v(7686);Fo()(bm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class m4 extends oa{constructor(r){super(r);const c=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new $c,this.focusTracker=new as,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",c.to("class"),c.if("isVisible","ck-hidden",u=>!u),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(r,c)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),c())}),this.keystrokes.set("arrowleft",(r,c)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),c())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const r=new $o;return r.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),r.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),r.delegate("execute").to(this),r}_createArrowView(){const r=new $o,c=r.bindTemplate;return r.icon=xd,r.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":c.to("isOn"),"aria-haspopup":!0,"aria-expanded":c.to("isOn",u=>String(u))}}),r.bind("isEnabled").to(this),r.bind("label").to(this),r.bind("tooltip").to(this),r.delegate("execute").to(this,"open"),r}}var kh=v(7339);Fo()(kh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var vm=v(3949);function Op(m,r=x1){const c=new r(m),u=new y_(m),_=new Uu(m,c,u);return c.bind("isEnabled").to(_),c instanceof m4?c.arrowView.bind("isOn").to(_,"isOpen"):c.bind("isOn").to(_,"isOpen"),(M=C=_).on("render",()=>{t({emitter:M,activator:()=>M.isOpen,callback:()=>{M.isOpen=!1},contextElements:()=>[M.element,...M.focusTracker._elements]})}),function(M){M.on("execute",E=>{E.source instanceof As||(M.isOpen=!1)})}(C),function(M){M.focusTracker.on("change:isFocused",(E,N,j)=>{M.isOpen&&!j&&(M.isOpen=!1)})}(C),function(M){M.keystrokes.set("arrowdown",(E,N)=>{M.isOpen&&(M.panelView.focus(),N())}),M.keystrokes.set("arrowup",(E,N)=>{M.isOpen&&(M.panelView.focusLast(),N())})}(C),function(M){M.on("change:isOpen",(E,N,j)=>{if(j)return;const K=M.panelView.element;K&&K.contains(Lt.document.activeElement)&&M.buttonView.focus()})}(C),function(M){M.on("change:isOpen",(E,N,j)=>{j&&M.panelView.focus()},{priority:"low"})}(C),_;var C,M}function e_(m,r,c={}){m.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),m.isOpen?n_(m,r,c):m.once("change:isOpen",()=>n_(m,r,c),{priority:"highest"}),c.enableActiveItemFocusOnDropdownOpen&&s2(m,()=>m.toolbarView.items.find(u=>u.isOn))}function n_(m,r,c){const u=m.locale,_=u.t,C=m.toolbarView=new w0(u),M="function"==typeof r?r():r;C.ariaLabel=c.ariaLabel||_("Dropdown toolbar"),c.maxWidth&&(C.maxWidth=c.maxWidth),c.class&&(C.class=c.class),c.isCompact&&(C.isCompact=c.isCompact),c.isVertical&&(C.isVertical=!0),M instanceof Ia?C.items.bindTo(M).using(E=>E):C.items.addMany(M),m.panelView.children.add(C),C.items.delegate("execute").to(m)}function t1(m,r,c={}){m.isOpen?Cm(m,r,c):m.once("change:isOpen",()=>Cm(m,r,c),{priority:"highest"}),s2(m,()=>m.listView.items.find(u=>u instanceof Zh&&u.children.first.isOn))}function Cm(m,r,c){const u=m.locale,_=m.listView=new p4(u),C="function"==typeof r?r():r;_.ariaLabel=c.ariaLabel,_.role=c.role,Am(m,_.items,C,u),m.panelView.children.add(_),_.items.delegate("execute").to(m)}function s2(m,r){m.on("change:isOpen",()=>{if(!m.isOpen)return;const c=r();c&&("function"==typeof c.focus?c.focus():Zt("ui-dropdown-focus-child-on-open-child-missing-focus",{view:c}))},{priority:St.low-10})}function Am(m,r,c,u){r.bindTo(c).using(_=>{if("separator"===_.type)return new Lp(u);if("group"===_.type){const C=new a2(u);return C.set({label:_.label}),Am(m,C.items,_.items,u),C.items.delegate("execute").to(m),C}if("button"===_.type||"switchbutton"===_.type){const C=new Zh(u);let M;return M="button"===_.type?new $o(u):new As(u),M.bind(...Object.keys(_.model)).to(_.model),M.delegate("execute").to(C),C.children.add(M),C}return null})}Fo()(vm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const uf=(m,r,c)=>{const u=new xg(m.locale);return u.set({id:r,ariaDescribedById:c}),u.bind("isReadOnly").to(m,"isEnabled",_=>!_),u.bind("hasError").to(m,"errorText",_=>!!_),u.on("input",()=>{m.errorText=null}),m.bind("isEmpty","isFocused","placeholder").to(u),u},K1=(m,r=0,c=1)=>m>c?c:mMath.round(c*m)/c,U0=m=>("#"===m[0]&&(m=m.substring(1)),m.length<6?{r:parseInt(m[0]+m[0],16),g:parseInt(m[1]+m[1],16),b:parseInt(m[2]+m[2],16),a:4===m.length?Ol(parseInt(m[3]+m[3],16)/255,2):1}:{r:parseInt(m.substring(0,2),16),g:parseInt(m.substring(2,4),16),b:parseInt(m.substring(4,6),16),a:8===m.length?Ol(parseInt(m.substring(6,8),16)/255,2):1}),X1=m=>{const{h:r,s:c,l:u}=(({h:m,s:r,v:c,a:u})=>{const _=(200-r)*c/100;return{h:Ol(m),s:Ol(_>0&&_<200?r*c/100/(_<=100?_:200-_)*100:0),l:Ol(_/2),a:Ol(u,2)}})(m);return`hsl(${r}, ${c}%, ${u}%)`},Dh=m=>{const r=m.toString(16);return r.length<2?"0"+r:r},f4=(m,r)=>{if(m===r)return!0;for(const c in m)if(m[c]!==r[c])return!1;return!0},D0={},P0=m=>{let r=D0[m];return r||(r=document.createElement("template"),r.innerHTML=m,D0[m]=r),r},Ph=(m,r,c)=>{m.dispatchEvent(new CustomEvent(r,{bubbles:!0,detail:c}))};let ym=!1;const S0=m=>"touches"in m,df=(m,r)=>{const c=S0(r)?r.touches[0]:r,u=m.el.getBoundingClientRect();Ph(m.el,"move",m.getMove({x:K1((c.pageX-(u.left+window.pageXOffset))/u.width),y:K1((c.pageY-(u.top+window.pageYOffset))/u.height)}))};class h4{constructor(r,c,u,_){const C=P0(`
`);r.appendChild(C.content.cloneNode(!0));const M=r.querySelector(`[part=${c}]`);M.addEventListener("mousedown",this),M.addEventListener("touchstart",this),M.addEventListener("keydown",this),this.el=M,this.xy=_,this.nodes=[M.firstChild,M]}set dragging(r){const c=r?document.addEventListener:document.removeEventListener;c(ym?"touchmove":"mousemove",this),c(ym?"touchend":"mouseup",this)}handleEvent(r){switch(r.type){case"mousedown":case"touchstart":if(r.preventDefault(),c=r,ym&&!S0(c)||(ym||(ym=S0(c)),0)||!ym&&0!=r.button)return;this.el.focus(),df(this,r),this.dragging=!0;break;case"mousemove":case"touchmove":r.preventDefault(),df(this,r);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((c,u)=>{const _=u.keyCode;_>40||c.xy&&_<37||_<33||(u.preventDefault(),Ph(c.el,"move",c.getMove({x:39===_?.01:37===_?-.01:34===_?.05:33===_?-.05:35===_?1:36===_?-1:0,y:40===_?.01:38===_?-.01:0},!0)))})(this,r)}var c}style(r){r.forEach((c,u)=>{for(const _ in c)this.nodes[u].style.setProperty(_,c[_])})}}class L extends h4{constructor(r){super(r,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:r}){this.h=r,this.style([{left:r/360*100+"%",color:X1({h:r,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Ol(r)}`)}getMove(r,c){return{h:c?K1(this.h+360*r.x,0,360):360*r.x}}}class R extends h4{constructor(r){super(r,"saturation",'aria-label="Color"',!0)}update(r){this.hsva=r,this.style([{top:100-r.v+"%",left:`${r.s}%`,color:X1(r)},{"background-color":X1({h:r.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Ol(r.s)}%, Brightness ${Ol(r.v)}%`)}getMove(r,c){return{s:c?K1(this.hsva.s+100*r.x,0,100):100*r.x,v:c?K1(this.hsva.v-100*r.y,0,100):Math.round(100-100*r.y)}}}const lt=Symbol("same"),Xt=Symbol("color"),Re=Symbol("hsva"),_n=Symbol("update"),Yn=Symbol("parts"),ci=Symbol("css"),fi=Symbol("sliders");class Wi extends HTMLElement{static get observedAttributes(){return["color"]}get[ci](){return[':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',"[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}","[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}"]}get[fi](){return[R,L]}get color(){return this[Xt]}set color(r){if(!this[lt](r)){const c=this.colorModel.toHsva(r);this[_n](c),this[Xt]=r}}constructor(){super();const r=P0(``),c=this.attachShadow({mode:"open"});c.appendChild(r.content.cloneNode(!0)),c.addEventListener("move",this),this[Yn]=this[fi].map(u=>new u(c))}connectedCallback(){if(this.hasOwnProperty("color")){const r=this.color;delete this.color,this.color=r}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(r,c,u){const _=this.colorModel.fromAttr(u);this[lt](_)||(this.color=_)}handleEvent(r){const c=this[Re],u={...c,...r.detail};let _;this[_n](u),f4(u,c)||this[lt](_=this.colorModel.fromHsva(u))||(this[Xt]=_,Ph(this,"color-changed",{value:_}))}[lt](r){return this.color&&this.colorModel.equal(r,this.color)}[_n](r){this[Re]=r,this[Yn].forEach(c=>c.update(r))}}const $i={defaultColor:"#000",toHsva:m=>(({r:m,g:r,b:c,a:u})=>{const _=Math.max(m,r,c),C=_-Math.min(m,r,c),M=C?_===m?(r-c)/C:_===r?2+(c-m)/C:4+(m-r)/C:0;return{h:Ol(60*(M<0?M+6:M)),s:Ol(_?C/_*100:0),v:Ol(_/255*100),a:u}})(U0(m)),fromHsva:({h:m,s:r,v:c})=>(({r:m,g:r,b:c,a:u})=>{const _=u<1?Dh(Ol(255*u)):"";return"#"+Dh(m)+Dh(r)+Dh(c)+_})((({h:m,s:r,v:c,a:u})=>{m=m/360*6,r/=100,c/=100;const _=Math.floor(m),C=c*(1-r),M=c*(1-(m-_)*r),E=c*(1-(1-m+_)*r),N=_%6;return{r:Ol(255*[c,M,C,C,E,c][N]),g:Ol(255*[E,c,c,M,C,C][N]),b:Ol(255*[C,C,E,c,c,M][N]),a:Ol(u,2)}})({h:m,s:r,v:c,a:1})),equal:(m,r)=>m.toLowerCase()===r.toLowerCase()||f4(U0(m),U0(r)),fromAttr:m=>m};class co extends Wi{get colorModel(){return $i}}customElements.define("hex-color-picker",class extends co{});var Lo=v(3398);Fo()(Lo.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ze(ec);var xa=v(4157);Fo()(xa.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class ba{constructor(r){this._components=new Map,this.editor=r}*names(){for(const r of this._components.values())yield r.originalName}add(r,c){this._components.set(Xa(r),{callback:c,originalName:r})}create(r){if(!this.has(r))throw new at("componentfactory-item-missing",this,{name:r});return this._components.get(Xa(r)).callback(this.editor.locale)}has(r){return this._components.has(Xa(r))}}function Xa(m){return String(m).toLowerCase()}var za=v(8793);Fo()(za.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var hc=Object.defineProperty,fl=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Wl=Object.prototype.propertyIsEnumerable,_u=(m,r,c)=>r in m?hc(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,_r=(m,r)=>{for(var c in r||(r={}))Es.call(r,c)&&_u(m,c,r[c]);if(fl)for(var c of fl(r))Wl.call(r,c)&&_u(m,c,r[c]);return m};const i_=bo("px"),c2=Lt.document.body,Sh={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},g4=class extends oa{constructor(m){super(m);const r=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",r.to("position",c=>`ck-balloon-panel_${c}`),r.if("isVisible","ck-balloon-panel_visible"),r.if("withArrow","ck-balloon-panel_with-arrow"),r.to("class")],style:{top:r.to("top",i_),left:r.to("left",i_)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(m){this.show();const r=g4.defaultPositions,c=Object.assign({},{element:this.element,positions:[r.southArrowNorth,r.southArrowNorthMiddleWest,r.southArrowNorthMiddleEast,r.southArrowNorthWest,r.southArrowNorthEast,r.northArrowSouth,r.northArrowSouthMiddleWest,r.northArrowSouthMiddleEast,r.northArrowSouthWest,r.northArrowSouthEast,r.viewportStickyNorth],limiter:c2,fitInViewport:!0},m),u=g4._getOptimalPosition(c)||Sh,_=parseInt(u.left),C=parseInt(u.top),M=u.name,E=u.config||{},{withArrow:N=!0}=E;this.top=C,this.left=_,this.position=M,this.withArrow=N}pin(m){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(m):this._stopPinning()},this._startPinning(m),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(m){this.attachTo(m);const r=b4(m.target),c=m.limiter?b4(m.limiter):c2;this.listenTo(Lt.document,"scroll",(u,_)=>{const C=_.target,M=r&&C.contains(r),E=c&&C.contains(c);!M&&!E&&r&&c||this.attachTo(m)},{useCapture:!0}),this.listenTo(Lt.window,"resize",()=>{this.attachTo(m)})}_stopPinning(){this.stopListening(Lt.document,"scroll"),this.stopListening(Lt.window,"resize")}};let id=g4;function b4(m){return ua(m)?m:$t(m)?m.commonAncestorContainer:"function"==typeof m?b4(m()):null}function v4(m={}){const{sideOffset:r=id.arrowSideOffset,heightOffset:c=id.arrowHeightOffset,stickyVerticalOffset:u=id.stickyVerticalOffset,config:_}=m;return{northWestArrowSouthWest:(E,N)=>_r({top:C(E,N),left:E.left-r,name:"arrow_sw"},_&&{config:_}),northWestArrowSouthMiddleWest:(E,N)=>_r({top:C(E,N),left:E.left-.25*N.width-r,name:"arrow_smw"},_&&{config:_}),northWestArrowSouth:(E,N)=>_r({top:C(E,N),left:E.left-N.width/2,name:"arrow_s"},_&&{config:_}),northWestArrowSouthMiddleEast:(E,N)=>_r({top:C(E,N),left:E.left-.75*N.width+r,name:"arrow_sme"},_&&{config:_}),northWestArrowSouthEast:(E,N)=>_r({top:C(E,N),left:E.left-N.width+r,name:"arrow_se"},_&&{config:_}),northArrowSouthWest:(E,N)=>_r({top:C(E,N),left:E.left+E.width/2-r,name:"arrow_sw"},_&&{config:_}),northArrowSouthMiddleWest:(E,N)=>_r({top:C(E,N),left:E.left+E.width/2-.25*N.width-r,name:"arrow_smw"},_&&{config:_}),northArrowSouth:(E,N)=>_r({top:C(E,N),left:E.left+E.width/2-N.width/2,name:"arrow_s"},_&&{config:_}),northArrowSouthMiddleEast:(E,N)=>_r({top:C(E,N),left:E.left+E.width/2-.75*N.width+r,name:"arrow_sme"},_&&{config:_}),northArrowSouthEast:(E,N)=>_r({top:C(E,N),left:E.left+E.width/2-N.width+r,name:"arrow_se"},_&&{config:_}),northEastArrowSouthWest:(E,N)=>_r({top:C(E,N),left:E.right-r,name:"arrow_sw"},_&&{config:_}),northEastArrowSouthMiddleWest:(E,N)=>_r({top:C(E,N),left:E.right-.25*N.width-r,name:"arrow_smw"},_&&{config:_}),northEastArrowSouth:(E,N)=>_r({top:C(E,N),left:E.right-N.width/2,name:"arrow_s"},_&&{config:_}),northEastArrowSouthMiddleEast:(E,N)=>_r({top:C(E,N),left:E.right-.75*N.width+r,name:"arrow_sme"},_&&{config:_}),northEastArrowSouthEast:(E,N)=>_r({top:C(E,N),left:E.right-N.width+r,name:"arrow_se"},_&&{config:_}),southWestArrowNorthWest:E=>_r({top:M(E),left:E.left-r,name:"arrow_nw"},_&&{config:_}),southWestArrowNorthMiddleWest:(E,N)=>_r({top:M(E),left:E.left-.25*N.width-r,name:"arrow_nmw"},_&&{config:_}),southWestArrowNorth:(E,N)=>_r({top:M(E),left:E.left-N.width/2,name:"arrow_n"},_&&{config:_}),southWestArrowNorthMiddleEast:(E,N)=>_r({top:M(E),left:E.left-.75*N.width+r,name:"arrow_nme"},_&&{config:_}),southWestArrowNorthEast:(E,N)=>_r({top:M(E),left:E.left-N.width+r,name:"arrow_ne"},_&&{config:_}),southArrowNorthWest:E=>_r({top:M(E),left:E.left+E.width/2-r,name:"arrow_nw"},_&&{config:_}),southArrowNorthMiddleWest:(E,N)=>_r({top:M(E),left:E.left+E.width/2-.25*N.width-r,name:"arrow_nmw"},_&&{config:_}),southArrowNorth:(E,N)=>_r({top:M(E),left:E.left+E.width/2-N.width/2,name:"arrow_n"},_&&{config:_}),southArrowNorthMiddleEast:(E,N)=>_r({top:M(E),left:E.left+E.width/2-.75*N.width+r,name:"arrow_nme"},_&&{config:_}),southArrowNorthEast:(E,N)=>_r({top:M(E),left:E.left+E.width/2-N.width+r,name:"arrow_ne"},_&&{config:_}),southEastArrowNorthWest:E=>_r({top:M(E),left:E.right-r,name:"arrow_nw"},_&&{config:_}),southEastArrowNorthMiddleWest:(E,N)=>_r({top:M(E),left:E.right-.25*N.width-r,name:"arrow_nmw"},_&&{config:_}),southEastArrowNorth:(E,N)=>_r({top:M(E),left:E.right-N.width/2,name:"arrow_n"},_&&{config:_}),southEastArrowNorthMiddleEast:(E,N)=>_r({top:M(E),left:E.right-.75*N.width+r,name:"arrow_nme"},_&&{config:_}),southEastArrowNorthEast:(E,N)=>_r({top:M(E),left:E.right-N.width+r,name:"arrow_ne"},_&&{config:_}),westArrowEast:(E,N)=>_r({top:E.top+E.height/2-N.height/2,left:E.left-N.width-c,name:"arrow_e"},_&&{config:_}),eastArrowWest:(E,N)=>_r({top:E.top+E.height/2-N.height/2,left:E.right+c,name:"arrow_w"},_&&{config:_}),viewportStickyNorth:(E,N,j,K)=>{const dt=K||j;return E.getIntersection(dt)?dt.height-E.height>u?null:{top:dt.top+u,left:E.left+E.width/2-N.width/2,name:"arrowless",config:_r({withArrow:!1},_)}:null}};function C(E,N){return E.top-N.height-c}function M(E){return E.bottom+c}}id.arrowSideOffset=25,id.arrowHeightOffset=10,id.stickyVerticalOffset=20,id._getOptimalPosition=ts,id.defaultPositions=v4();var c5=v(3332);Fo()(c5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const l5="ck-tooltip",od=class extends(Xi()){constructor(m){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,od._editors.add(m),od._instance)return od._instance;od._instance=this,this.tooltipTextView=new oa(m.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new id(m.locale),this.balloonPanelView.class=l5,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=R_(this._pinTooltip,600),this.listenTo(Lt.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Lt.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Lt.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Lt.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Lt.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(m){const r=m.ui.view&&m.ui.view.body;od._editors.delete(m),this.stopListening(m.ui),r&&r.has(this.balloonPanelView)&&r.remove(this.balloonPanelView),od._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),od._instance=null)}static getPositioningFunctions(m){const r=od.defaultBalloonPositions;return{s:[r.southArrowNorth,r.southArrowNorthEast,r.southArrowNorthWest],n:[r.northArrowSouth],e:[r.eastArrowWest],w:[r.westArrowEast],sw:[r.southArrowNorthEast],se:[r.southArrowNorthWest]}[m]}_onEnterOrFocus(m,{target:r}){const c=x4(r);var u;c&&c!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(c,{text:(u=c).dataset.ckeTooltipText,position:u.dataset.ckeTooltipPosition||"s",cssClass:u.dataset.ckeTooltipClass||""}))}_onLeaveOrBlur(m,{target:r,relatedTarget:c}){if("mouseleave"===m.name){if(!ua(r)||this._currentElementWithTooltip&&r!==this._currentElementWithTooltip)return;const u=x4(r),_=x4(c);u&&u!==_&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&r!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(m,{target:r}){this._currentElementWithTooltip&&(r.contains(this.balloonPanelView.element)&&r.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(m,{text:r,position:c,cssClass:u}){const _=os(od._editors.values()).ui.view.body;_.has(this.balloonPanelView)||_.add(this.balloonPanelView),this.tooltipTextView.text=r,this.balloonPanelView.pin({target:m,positions:od.getPositioningFunctions(c)}),this._resizeObserver=new yi(m,()=>{ra(m)||this._unpinTooltip()}),this.balloonPanelView.class=[l5,u].filter(C=>C).join(" ");for(const C of od._editors)this.listenTo(C.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=m,this._currentTooltipPosition=c}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const m of od._editors)this.stopListening(m.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){ra(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:od.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}};let L0=od;function x4(m){return ua(m)?m.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}L0.defaultBalloonPositions=v4({heightOffset:5,sideOffset:13}),L0._editors=new Set,L0._instance=null;const Lh=function(m,r,c){var u=!0,_=!0;if("function"!=typeof m)throw new TypeError("Expected a function");return Kt(c)&&(u="leading"in c?!!c.leading:u,_="trailing"in c?!!c.trailing:_),R_(m,r,{leading:u,maxWait:r,trailing:_})};var C4=Object.defineProperty,Zv=Object.getOwnPropertySymbols,u5=Object.prototype.hasOwnProperty,A4=Object.prototype.propertyIsEnumerable,O0=(m,r,c)=>r in m?C4(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class kv extends(Xi()){constructor(r){super(),this.editor=r,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=Lh(this._showBalloon.bind(this),50,{leading:!0}),r.on("ready",this._handleEditorReady.bind(this))}destroy(){const r=this._balloonView;r&&(r.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const r=this.editor;(r.config.get("ui.poweredBy.forceVisible")||"VALID"!==function(c){function u(me){return me.length>=40&&me.length<=255?"VALID":"INVALID"}if(!c)return"INVALID";let _="";try{_=atob(c)}catch{return"INVALID"}const C=_.split("-"),M=C[0],E=C[1];if(!E)return u(c);try{atob(E)}catch{try{if(atob(M),!atob(M).length)return u(c)}catch{return u(c)}}if(M.length<40||M.length>255)return"INVALID";let N="";try{atob(M),N=atob(E)}catch{return"INVALID"}if(8!==N.length)return"INVALID";const j=Number(N.substring(0,4)),K=Number(N.substring(4,6))-1,dt=Number(N.substring(6,8)),Dt=new Date(j,K,dt);return Dt{this._updateLastFocusedEditableElement(),_?this._showBalloon():this._hideBalloon()}),r.ui.focusTracker.on("change:focusedElement",(c,u,_)=>{this._updateLastFocusedEditableElement(),_&&this._showBalloon()}),r.ui.on("update",()=>{this._showBalloonThrottled()}))}_createBalloonView(){const r=this.editor,c=this._balloonView=new id,u=l2(r),_=new T4(r.locale,u.label);c.content.add(_),c.set({class:"ck-powered-by-balloon"}),r.ui.view.body.add(c),r.ui.focusTracker.add(c.element),this._balloonView=c}_showBalloon(){if(!this._lastFocusedEditableElement)return;const r=function(c,u){const _=l2(c);var E;return{target:u,positions:["right"===_.side?Eh(u,E=_,(N,j)=>N.left+N.width-j.width-E.horizontalOffset):function(M,E){return Eh(M,E,N=>N.left+E.horizontalOffset)}(u,_)]}}(this.editor,this._lastFocusedEditableElement);r&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(r))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const r=this.editor,u=r.ui.focusTracker.focusedElement;if(!r.ui.focusTracker.isFocused||!u)return void(this._lastFocusedEditableElement=null);const _=Array.from(r.ui.getEditableElementsNames()).map(C=>r.ui.getEditableElement(C));this._lastFocusedEditableElement=_.includes(u)?u:_[0]}}class T4 extends oa{constructor(r,c){super(r);const u=new zs,_=this.bindTemplate;u.set({content:'\n',isColorInherited:!1}),u.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...c?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[c]}]:[],u],on:{dragstart:_.to(C=>C.preventDefault())}}]})}}function Eh(m,r,c){return(u,_)=>{const C=new de(m);if(C.width<350||C.height<50)return null;let M;M="inside"===r.position?C.bottom-_.height:C.bottom-_.height/2,M-=r.verticalOffset;const E=c(C,_),N=u.clone().moveTo(E,M).getIntersection(_.clone().moveTo(E,M)).getVisible();return!N||N.getArea()<_.getArea()?null:{top:M,left:E,name:`position_${r.position}-side_${r.side}`,config:{withArrow:!1}}}}function l2(m){const r=m.config.get("ui.poweredBy"),c=r&&r.position||"border";return((m,r)=>{for(var c in r||(r={}))u5.call(r,c)&&O0(m,c,r[c]);if(Zv)for(var c of Zv(r))A4.call(r,c)&&O0(m,c,r[c]);return m})({position:c,label:"Powered by",verticalOffset:"inside"===c?5:0,horizontalOffset:5,side:"ltr"===m.locale.contentLanguageDirection?"right":"left"},r)}var Dv=Object.defineProperty,e1=Object.getOwnPropertySymbols,w4=Object.prototype.hasOwnProperty,I0=Object.prototype.propertyIsEnumerable,M1=(m,r,c)=>r in m?Dv(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Ep extends(Ze()){constructor(r){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const c=r.editing.view;this.editor=r,this.componentFactory=new ba(r),this.focusTracker=new as,this.tooltipManager=new L0(r),this.poweredBy=new kv(r),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",()=>{this.isReady=!0}),this.listenTo(c.document,"layoutChanged",this.update.bind(this)),this.listenTo(c,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const r of this._editableElementsMap.values())r.ckeditorInstance=null,this.editor.keystrokes.stopListening(r);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(r,c){this._editableElementsMap.set(r,c),c.ckeditorInstance||(c.ckeditorInstance=this.editor),this.focusTracker.add(c);const u=()=>{this.editor.editing.view.getDomRoot(r)||this.editor.keystrokes.listenTo(c)};this.isReady?u():this.once("ready",u)}removeEditableElement(r){const c=this._editableElementsMap.get(r);c&&(this._editableElementsMap.delete(r),this.editor.keystrokes.stopListening(c),this.focusTracker.remove(c),c.ckeditorInstance=null)}getEditableElement(r="main"){return this._editableElementsMap.get(r)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(r,c={}){r.isRendered?(this.focusTracker.add(r.element),this.editor.keystrokes.listenTo(r.element)):r.once("render",()=>{this.focusTracker.add(r.element),this.editor.keystrokes.listenTo(r.element)}),this._focusableToolbarDefinitions.push({toolbarView:r,options:c})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const r=this.editor,c=r.config.get("ui.viewportOffset");if(c)return c;const u=r.config.get("toolbar.viewportTopOffset");return u?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:u}):{top:0}}_initFocusTracking(){const r=this.editor,c=r.editing.view;let u,_;r.keystrokes.set("Alt+F10",(C,M)=>{const E=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(E)&&!Array.from(c.domRoots.values()).includes(E)&&(u=E);const N=this._getCurrentFocusedToolbarDefinition();N&&_||(_=this._getFocusableCandidateToolbarDefinitions());for(let j=0;j<_.length;j++){const K=_.shift();if(_.push(K),K!==N&&this._focusFocusableCandidateToolbar(K)){N&&N.options.afterBlur&&N.options.afterBlur();break}}M()}),r.keystrokes.set("Esc",(C,M)=>{const E=this._getCurrentFocusedToolbarDefinition();E&&(u?(u.focus(),u=null):r.editing.view.focus(),E.options.afterBlur&&E.options.afterBlur(),M())})}_getFocusableCandidateToolbarDefinitions(){const r=[];for(const c of this._focusableToolbarDefinitions){const{toolbarView:u,options:_}=c;(ra(u.element)||_.beforeFocus)&&r.push(c)}return r.sort((c,u)=>Pv(c)-Pv(u)),r}_getCurrentFocusedToolbarDefinition(){for(const r of this._focusableToolbarDefinitions)if(r.toolbarView.element&&r.toolbarView.element.contains(this.focusTracker.focusedElement))return r;return null}_focusFocusableCandidateToolbar(r){const{toolbarView:c,options:{beforeFocus:u}}=r;return u&&u(),!!ra(c.element)&&(c.focus(),!0)}_handleScrollToTheSelection(r,c){const u=((_,C)=>{for(var M in C||(C={}))w4.call(C,M)&&M1(_,M,C[M]);if(e1)for(var M of e1(C))I0.call(C,M)&&M1(_,M,C[M]);return _})({top:0,bottom:0,left:0,right:0},this.viewportOffset);c.viewportOffset.top+=u.top,c.viewportOffset.bottom+=u.bottom,c.viewportOffset.left+=u.left,c.viewportOffset.right+=u.right}}function Pv(m){const{toolbarView:r,options:c}=m;let u=10;return ra(r.element)&&u--,c.isContextual&&u--,u}var U4=v(9688);Fo()(U4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class p5 extends oa{constructor(r){super(r),this.body=new Qi(r)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class Sv extends p5{constructor(r){super(r),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:r.uiLanguageDirection,lang:r.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const r=this.t,c=new wu;return c.text=r("Rich Text Editor"),c.extendTemplate({attributes:{class:"ck-voice-label"}}),c}}class k8 extends oa{constructor(r,c,u){super(r),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:r.contentLanguage,dir:r.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=u,this._hasExternalElement=!!this._editableElement,this._editingView=c}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const r=this._editingView;function c(u){r.change(_=>{const C=r.document.getRoot(u.name);_.addClass(u.isFocused?"ck-focused":"ck-blurred",C),_.removeClass(u.isFocused?"ck-blurred":"ck-focused",C)})}r.isRenderingInProgress?function u(_){r.once("change:isRenderingInProgress",(C,M,E)=>{E?u(_):c(_)})}(this):c(this)}}class Z4 extends k8{constructor(r,c,u,_={}){super(r,c,u);const C=r.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=_.label||(()=>C("Editor editing area: %0",this.name))}render(){super.render();const r=this._editingView;r.change(c=>{const u=r.document.getRoot(this.name);c.setAttribute("aria-label",this._generateLabel(this),u)})}}var Ih=v(8847);Fo()(Ih.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class u2 extends w_{static get pluginName(){return"Notification"}init(){this.on("show:warning",(r,c)=>{window.alert(c.message)},{priority:"lowest"})}showSuccess(r,c={}){this._showNotification({message:r,type:"success",namespace:c.namespace,title:c.title})}showInfo(r,c={}){this._showNotification({message:r,type:"info",namespace:c.namespace,title:c.title})}showWarning(r,c={}){this._showNotification({message:r,type:"warning",namespace:c.namespace,title:c.title})}_showNotification(r){this.fire(r.namespace?`show:${r.type}:${r.namespace}`:`show:${r.type}`,{message:r.message,type:r.type,title:r.title||""})}}class M4 extends(Ze()){constructor(r,c){super(),c&&R2(this,c),r&&this.set(r)}}var N0=v(4650);Fo()(N0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var pf=v(7676);Fo()(pf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Fh=bo("px");class q0 extends lo{constructor(r){super(r),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const c=this.editor.editing.view,u=c.document.selection.editableElement;return u?c.domConverter.mapViewToDom(u.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(r){return Array.from(this._viewToStack.keys()).includes(r)}add(r){if(this._view||this._createPanelView(),this.hasView(r.view))throw new at("contextualballoon-add-view-exist",[this,r]);const c=r.stackId||"main";if(!this._idToStack.has(c))return this._idToStack.set(c,new Map([[r.view,r]])),this._viewToStack.set(r.view,this._idToStack.get(c)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!r.singleViewMode||this.showStack(c));const u=this._idToStack.get(c);r.singleViewMode&&this.showStack(c),u.set(r.view,r),this._viewToStack.set(r.view,u),u===this._visibleStack&&this._showView(r)}remove(r){if(!this.hasView(r))throw new at("contextualballoon-remove-view-not-exist",[this,r]);const c=this._viewToStack.get(r);this._singleViewMode&&this.visibleView===r&&(this._singleViewMode=!1),this.visibleView===r&&(1===c.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(c.values())[c.size-2])),1===c.size?(this._idToStack.delete(this._getStackId(c)),this._numberOfStacks=this._idToStack.size):c.delete(r),this._viewToStack.delete(r)}updatePosition(r){r&&(this._visibleStack.get(this.visibleView).position=r),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(r){this.visibleStack=r;const c=this._idToStack.get(r);if(!c)throw new at("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==c&&this._showView(Array.from(c.values()).pop())}_createPanelView(){this._view=new id(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(r){return Array.from(this._idToStack.entries()).find(c=>c[1]===r)[0]}_showNextStack(){const r=Array.from(this._idToStack.values());let c=r.indexOf(this._visibleStack)+1;r[c]||(c=0),this.showStack(this._getStackId(r[c]))}_showPrevStack(){const r=Array.from(this._idToStack.values());let c=r.indexOf(this._visibleStack)-1;r[c]||(c=r.length-1),this.showStack(this._getStackId(r[c]))}_createRotatorView(){const r=new Lv(this.editor.locale),c=this.editor.locale.t;return this.view.content.add(r),r.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(u,_)=>!_&&u>1),r.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),r.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(u,_)=>{if(_<2)return"";const C=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return c("%0 of %1",[C,_])}),r.buttonNextView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),r.buttonPrevView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),r}_createFakePanelsView(){const r=new D8(this.editor.locale,this.view);return r.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(c,u)=>!u&&c>=2?Math.min(c-1,2):0),r.listenTo(this.view,"change:top",()=>r.updatePosition()),r.listenTo(this.view,"change:left",()=>r.updatePosition()),this.editor.ui.view.body.add(r),r}_showView({view:r,balloonClassName:c="",withArrow:u=!0,singleViewMode:_=!1}){this.view.class=c,this.view.withArrow=u,this._rotatorView.showView(r),this.visibleView=r,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),_&&(this._singleViewMode=!0)}_getBalloonPosition(){let r=Array.from(this._visibleStack.values()).pop().position;return r&&(r.limiter||(r=Object.assign({},r,{limiter:this.positionLimiter})),r=Object.assign({},r,{viewportOffsetConfig:this.editor.ui.viewportOffset})),r}}class Lv extends oa{constructor(r){super(r);const c=r.t,u=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new as,this.buttonPrevView=this._createButtonView(c("Previous"),''),this.buttonNextView=this._createButtonView(c("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",u.to("isNavigationVisible",_=>_?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:u.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(r){this.hideView(),this.content.add(r)}hideView(){this.content.clear()}_createButtonView(r,c){const u=new $o(this.locale);return u.set({label:r,icon:c,tooltip:!0}),u}}class D8 extends oa{constructor(r,c){super(r);const u=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=c,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",u.to("numberOfPanels",_=>_?"":"ck-hidden")],style:{top:u.to("top",Fh),left:u.to("left",Fh),width:u.to("width",Fh),height:u.to("height",Fh)}},children:this.content}),this.on("change:numberOfPanels",(_,C,M,E)=>{M>E?this._addPanels(M-E):this._removePanels(E-M),this.updatePosition()})}_addPanels(r){for(;r--;){const c=new oa;c.setTemplate({tag:"div"}),this.content.add(c),this.registerChild(c)}}_removePanels(r){for(;r--;){const c=this.content.last;this.content.remove(c),this.deregisterChild(c),c.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:r,left:c}=this._balloonPanelView,{width:u,height:_}=new de(this._balloonPanelView.element);Object.assign(this,{top:r,left:c,width:u,height:_})}}}var Ov=v(5868);Fo()(Ov.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const mf=bo("px");class Iv extends oa{constructor(r){super(r);const c=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new Ur({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:c.to("isSticky",u=>u?"block":"none"),height:c.to("isSticky",u=>u?mf(this._contentPanelRect.height):null)}}}).render(),this._contentPanel=new Ur({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",c.if("isSticky","ck-sticky-panel__content_sticky"),c.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:c.to("isSticky",u=>u?mf(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:c.to("_stickyTopOffset",u=>u&&mf(u)),bottom:c.to("_stickyBottomOffset",u=>u&&mf(u)),marginLeft:c.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(Lt.document,"scroll",()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,"change:isActive",()=>{this.checkIfShouldBeSticky()})}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const r=new de(this.limiterElement);let c=r.getVisible();if(c){const u=new de(Lt.window);u.top+=this.viewportTopOffset,u.height-=this.viewportTopOffset,c=c.getIntersection(u)}if(c&&r.topc.bottom){const _=Math.max(r.bottom-c.bottom,0)+this.limiterBottomOffset;r.bottom-_>r.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(_):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset{this.reset(),this.focus(),this.fire("reset")}),this.resetButtonView.bind("isVisible").to(this.fieldView,"isEmpty",C=>!C),this.fieldWrapperChildren.add(this.resetButtonView),this.extendTemplate({attributes:{class:"ck-search__query_with-reset"}}))}reset(){this.fieldView.reset(),this._viewConfig.showResetButton&&(this.resetButtonView.isVisible=!1)}}class o_ extends oa{constructor(){super();const r=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",r.if("isVisible","ck-hidden",c=>!c)],tabindex:-1},children:[{tag:"span",children:[{text:[r.to("primaryText")]}]},{tag:"span",children:[{text:[r.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class P8 extends oa{constructor(r){super(r),this.children=this.createCollection(),this.focusTracker=new as,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new dl({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const r of this.children)this.focusTracker.add(r.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var Fv=/[\\^$.*+?()[\]{}|]/g,Nv=RegExp(Fv.source);const _5=function(m){return(m=Ug(m))&&Nv.test(m)?m.replace(Fv,"\\$&"):m};var f5=v(6770);Fo()(f5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var fu=Object.defineProperty,h5=Object.getOwnPropertySymbols,S8=Object.prototype.hasOwnProperty,n1=Object.prototype.propertyIsEnumerable,g5=(m,r,c)=>r in m?fu(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class b5 extends oa{constructor(r,c){super(r),this._config=c,this.filteredView=c.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new as,this.keystrokes=new $c,this.resultsView=new P8(r),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),c.infoView&&c.infoView.instance?this.infoView=c.infoView.instance:(this.infoView=new o_,this._enableDefaultInfoViewBehavior(),this.on("render",()=>{this.search("")})),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new dl({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(u,{resultsCount:_,totalItemsCount:C})=>{this.resultsCount=_,this.totalItemsCount=C}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",c.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const r=c=>c.stopPropagation();for(const c of this.focusableChildren)this.focusTracker.add(c.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(r){const c=r?new RegExp(_5(r),"ig"):null,u=this.filteredView.filter(c);this.fire("search",((_,C)=>{for(var M in C||(C={}))S8.call(C,M)&&g5(_,M,C[M]);if(h5)for(var M of h5(C))n1.call(C,M)&&g5(_,M,C[M]);return _})({query:r},u))}_createSearchTextQueryView(){const r=new $l(this.locale,this._config.queryView);return this.listenTo(r.fieldView,"input",()=>{this.search(r.fieldView.element.value)}),r.on("reset",()=>this.reset()),r.bind("isEnabled").to(this),r}_enableDefaultInfoViewBehavior(){const r=this.locale.t,c=this.infoView;function u(_,{query:C,resultsCount:M,totalItemsCount:E}){return"function"==typeof _?_(C,M,E):_}this.on("search",(_,C)=>{if(C.resultsCount)c.set({isVisible:!1});else{const M=this._config.infoView&&this._config.infoView.text;let E,N;C.totalItemsCount?M&&M.notFound?(E=M.notFound.primary,N=M.notFound.secondary):(E=r("No results found"),N=""):M&&M.noSearchableItems?(E=M.noSearchableItems.primary,N=M.noSearchableItems.secondary):(E=r("No searchable items"),N=""),c.set({primaryText:u(E,C),secondaryText:u(N,C),isVisible:!0})}})}}var L8=v(8157);Fo()(L8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const R0=class extends b5{constructor(m,r){super(m,r),this._config=r;const c=bo("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const u=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[u.if("isVisible","ck-hidden",_=>!_),u.to("_position",_=>`ck-search__results_${_}`)],style:{width:u.to("_width",c)}}}),this.focusTracker.on("change:isFocused",(_,C,M)=>{this._updateResultsVisibility(),M?this.resultsView.element.scrollTop=0:r.resetOnBlur&&this.queryView.reset()}),this.on("search",()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()}),this.keystrokes.set("esc",(_,C)=>{this.resultsView.isVisible=!1,C()}),this.listenTo(Lt.document,"scroll",()=>{this._updateResultsViewWidthAndPosition()}),this.on("change:isEnabled",()=>{this._updateResultsVisibility()}),this.filteredView.on("execute",(_,{value:C})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=C,this.resultsView.isVisible=!1}),this.resultsView.on("change:isVisible",()=>{this._updateResultsViewWidthAndPosition()})}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new de(this.queryView.fieldView.element).width;const m=R0._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:R0.defaultResultsPositions});this.resultsView._position=m?m.name:"s"}_updateResultsVisibility(){this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&this.queryView.fieldView.element.value.length>=(void 0===this._config.queryMinChars?0:this._config.queryMinChars)}};let Ip=R0;Ip.defaultResultsPositions=[m=>({top:m.bottom,left:m.left,name:"s"}),(m,r)=>({top:m.top-r.height,left:m.left,name:"n"})],Ip._getOptimalPosition=ts;var qv=v(8960);Fo()(qv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var o1=v(498);Fo()(o1.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bo("px");var tp=v(9695);Fo()(tp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bo("px"),bo("px");class Hv extends Ep{constructor(r,c){super(r),this.view=c,this._toolbarConfig=fp(r.config.get("toolbar")),this._elementReplacer=new vt,this.listenTo(r.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(r){const u=this.view,_=this.editor.editing.view,C=u.editable,M=_.document.getRoot();C.name=M.rootName,u.render();const E=C.element;this.setEditableElement(C.name,E),u.editable.bind("isFocused").to(this.focusTracker),_.attachDomRoot(E),r&&this._elementReplacer.replace(r,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const r=this.view,c=this.editor.editing.view;this._elementReplacer.restore(),c.detachDomRoot(r.editable.name),r.destroy()}_initToolbar(){const r=this.view;r.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),r.stickyPanel.limiterElement=r.element,r.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:c})=>c||0),r.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(r.toolbar)}_initPlaceholder(){const r=this.editor,c=r.editing.view,u=c.document.getRoot(),_=r.sourceElement;let C;const M=r.config.get("placeholder");M&&(C="string"==typeof M?M:M[this.view.editable.name]),!C&&_&&"textarea"===_.tagName.toLowerCase()&&(C=_.getAttribute("placeholder")),C&&(u.placeholder=C),B({view:c,element:u,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(r,c,u){const _=this.view.stickyPanel;if(_.isSticky){const C=new de(_.element).height;c.viewportOffset.top+=C}else{const C=()=>{this.editor.editing.view.scrollToTheSelection(u)};this.listenTo(_,"change:isSticky",C),setTimeout(()=>{this.stopListening(_,"change:isSticky",C)},20)}}}var zv=v(3143);Fo()(zv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class E8 extends Sv{constructor(r,c,u={}){super(r),this.stickyPanel=new Iv(r),this.toolbar=new w0(r,{shouldGroupWhenFull:u.shouldToolbarGroupWhenFull}),this.editable=new Z4(r,c)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class x5{constructor(r){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof r.crashNumberLimit?r.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof r.minimumNonErrorTimePeriod?r.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=c=>{const u="error"in c?c.error:c.reason;u instanceof Error&&this._handleError(u,c)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(r,c){this._listeners[r]||(this._listeners[r]=[]),this._listeners[r].push(c)}off(r,c){this._listeners[r]=this._listeners[r].filter(u=>u!==c)}_fire(r,...c){const u=this._listeners[r]||[];for(const _ of u)_.apply(this,[null,...c])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(r,c){if(this._shouldReactToError(r)){this.crashes.push({message:r.message,stack:r.stack,filename:c instanceof ErrorEvent?c.filename:void 0,lineno:c instanceof ErrorEvent?c.lineno:void 0,colno:c instanceof ErrorEvent?c.colno:void 0,date:this._now()});const u=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:r,causesRestart:u}),u?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(r){return r.is&&r.is("CKEditorError")&&null!=r.context&&"ready"===this.state&&this._isErrorComingFromThisItem(r)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function d2(m,r=new Set){const c=[m],u=new Set;let _=0;for(;c.length>_;){const C=c[_++];if(!u.has(C)&&H0(C)&&!r.has(C))if(u.add(C),Symbol.iterator in C)try{for(const M of C)c.push(M)}catch{}else for(const M in C)"defaultValue"!==M&&c.push(C[M])}return u}function H0(m){const r=Object.prototype.toString.call(m),c=typeof m;return!("number"===c||"boolean"===c||"string"===c||"symbol"===c||"function"===c||"[object Date]"===r||"[object RegExp]"===r||"[object Module]"===r||null==m||m._watchdogExcluded||m instanceof EventTarget||m instanceof Event)}function Bv(m,r,c=new Set){if(m===r&&"object"==typeof(u=m)&&null!==u)return!0;var u;const _=d2(m,c),C=d2(r,c);for(const M of _)if(C.has(M))return!0;return!1}var C5=Object.defineProperty,I8=Object.defineProperties,A5=Object.getOwnPropertyDescriptors,z0=Object.getOwnPropertySymbols,Nh=Object.prototype.hasOwnProperty,Yv=Object.prototype.propertyIsEnumerable,D4=(m,r,c)=>r in m?C5(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,P4=(m,r)=>{for(var c in r||(r={}))Nh.call(r,c)&&D4(m,c,r[c]);if(z0)for(var c of z0(r))Yv.call(r,c)&&D4(m,c,r[c]);return m};class S4 extends x5{constructor(r,c={}){super(c),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=Lh(this._save.bind(this),"number"==typeof c.saveInterval?c.saveInterval:5e3),r&&(this._creator=(u,_)=>r.create(u,_)),this._destructor=u=>u.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(r){this._creator=r}setDestructor(r){this._destructor=r}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(r=>{console.error("An error happened during the editor destroying.",r)}).then(()=>{const r={},c=[],u=this._config.rootsAttributes||{},_={};for(const[N,j]of Object.entries(this._data.roots))j.isLoaded?(r[N]="",_[N]=u[N]||{}):c.push(N);const C=(M=P4({},this._config),I8(M,A5({extraPlugins:this._config.extraPlugins||[],lazyRoots:c,rootsAttributes:_,_watchdogInitialData:this._data})));var M;return delete C.initialData,C.extraPlugins.push(rc),this._initUsingData?this.create(r,C,C.context):ua(this._elementOrData)?this.create(this._elementOrData,C,C.context):this.create(this._editables,C,C.context)}).then(()=>{this._fire("restart")})}create(r=this._elementOrData,c=this._config,u){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=r,this._initUsingData="string"==typeof r||Object.keys(r).length>0&&"string"==typeof Object.values(r)[0],this._config=this._cloneEditorConfiguration(c)||{},this._config.context=u,this._creator(r,this._config))).then(_=>{this._editor=_,_.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=_.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const r=this._editor;return this._editor=null,r.model.document.off("change:data",this._throttledSave),this._destructor(r)})}_save(){const r=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=r}catch(c){console.error(c,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(r){this._excludedProps=r}_getData(){const r=this._editor,c=r.model.document.roots.filter(E=>E.isAttached()&&"$graveyard"!=E.rootName),{plugins:u}=r,_=u.has("CommentsRepository")&&u.get("CommentsRepository"),C=u.has("TrackChanges")&&u.get("TrackChanges"),M={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};c.forEach(E=>{M.roots[E.rootName]={content:JSON.stringify(Array.from(E.getChildren())),attributes:JSON.stringify(Array.from(E.getAttributes())),isLoaded:E._isLoaded}});for(const E of r.model.markers)E._affectsData&&(M.markers[E.name]={rangeJSON:E.getRange().toJSON(),usingOperation:E._managedUsingOperations,affectsData:E._affectsData});return _&&(M.commentThreads=JSON.stringify(_.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),C&&(M.suggestions=JSON.stringify(C.getSuggestions({toJSON:!0,skipNotAttached:!0}))),M}_getEditables(){const r={};for(const c of this.editor.model.document.getRootNames()){const u=this.editor.ui.getEditableElement(c);u&&(r[c]=u)}return r}_isErrorComingFromThisItem(r){return Bv(this._editor,r.context,this._excludedProps)}_cloneEditorConfiguration(r){return So(r,(c,u)=>ua(c)||"context"===u?c:void 0)}}class rc{constructor(r){this.editor=r,this._data=r.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",r=>{r.stop(),this.editor.model.enqueueChange({isUndoable:!1},c=>{this._restoreCollaborationData(),this._restoreEditorData(c)}),this.editor.data.fire("ready")},{priority:999})}_createNode(r,c){if("name"in c){const u=r.createElement(c.name,c.attributes);if(c.children)for(const _ of c.children)u._appendChild(this._createNode(r,_));return u}return r.createText(c.data,c.attributes)}_restoreEditorData(r){const c=this.editor;Object.entries(this._data.roots).forEach(([u,{content:_,attributes:C}])=>{const M=JSON.parse(_),E=JSON.parse(C),N=c.model.document.getRoot(u);for(const[j,K]of E)r.setAttribute(j,K,N);for(const j of M){const K=this._createNode(r,j);r.insert(K,N,"end")}}),Object.entries(this._data.markers).forEach(([u,_])=>{const{document:C}=c.model,M=_,{rangeJSON:{start:E,end:N}}=M,j=((Ue,qe)=>{var pn={};for(var Ln in Ue)Nh.call(Ue,Ln)&&qe.indexOf(Ln)<0&&(pn[Ln]=Ue[Ln]);if(null!=Ue&&z0)for(var Ln of z0(Ue))qe.indexOf(Ln)<0&&Yv.call(Ue,Ln)&&(pn[Ln]=Ue[Ln]);return pn})(M,["rangeJSON"]),K=C.getRoot(E.root),dt=r.createPositionFromPath(K,E.path,E.stickiness),Dt=r.createPositionFromPath(K,N.path,N.stickiness),me=r.createRange(dt,Dt);r.addMarker(u,P4({range:me},j))})}_restoreCollaborationData(){const r=JSON.parse(this._data.commentThreads),c=JSON.parse(this._data.suggestions);r.forEach(u=>{const _=this.editor.config.get("collaboration.channelId"),C=this.editor.plugins.get("CommentsRepository");C.hasCommentThread(u.threadId)&&C.getCommentThread(u.threadId).remove(),C.addCommentThread(P4({channelId:_},u))}),c.forEach(u=>{const _=this.editor.plugins.get("TrackChangesEditing");_.hasSuggestion(u.id)?_.getSuggestion(u.id).attributes=u.attributes:_.addSuggestionData(u)})}}const _f=Symbol("MainQueueId");class y5{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(r){this._onEmptyCallbacks.push(r)}enqueue(r,c){const u=r===_f;this._activeActions++,this._queues.get(r)||this._queues.set(r,Promise.resolve());const _=Promise.all(u?this._queues.values():[this._queues.get(_f),this._queues.get(r)]).then(c),C=_.catch(()=>{});return this._queues.set(r,C),_.finally(()=>{this._activeActions--,this._queues.get(r)===C&&0===this._activeActions&&this._onEmptyCallbacks.forEach(M=>M())})}}function B0(m){return Array.isArray(m)?m:[m]}class Y0 extends(n2(lf(u4))){constructor(r,c={}){if(!qh(r)&&void 0!==c.initialData)throw new at("editor-create-initial-data",null);var C,M;super(c),void 0===this.config.get("initialData")&&this.config.set("initialData",qh(C=r)?(M=C)instanceof HTMLTextAreaElement?M.value:M.innerHTML:C),qh(r)&&(this.sourceElement=r),this.model.document.createRoot();const u=!this.config.get("toolbar.shouldNotGroupWhenFull"),_=new E8(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:u});this.ui=new Hv(this,_),function(C){if(!No(C.updateSourceElement))throw new at("attachtoform-missing-elementapi-interface",C);const M=C.sourceElement;if((E=M)&&"textarea"===E.tagName.toLowerCase()&&M.form){let E;const N=M.form,j=()=>C.updateSourceElement();No(N.submit)&&(E=N.submit,N.submit=()=>{j(),E.apply(N)}),N.addEventListener("submit",j),C.on("destroy",()=>{N.removeEventListener("submit",j),E&&(N.submit=E)})}var E}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(r,c={}){return new Promise(u=>{const _=new this(r,c);u(_.initPlugins().then(()=>_.ui.init(qh(r)?r:null)).then(()=>_.data.init(_.config.get("initialData"))).then(()=>_.fire("ready")).then(()=>_))})}}function qh(m){return ua(m)}Y0.Context=k2,Y0.EditorWatchdog=S4,Y0.ContextWatchdog=class extends x5{constructor(m,r={}){super(r),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new y5,this._watchdogConfig=r,this._creator=c=>m.create(c),this._destructor=c=>c.destroy(),this._actionQueues.onEmpty(()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))})}setCreator(m){this._creator=m}setDestructor(m){this._destructor=m}get context(){return this._context}create(m={}){return this._actionQueues.enqueue(_f,()=>(this._contextConfig=m,this._create()))}getItem(m){return this._getWatchdog(m)._item}getItemState(m){return this._getWatchdog(m).state}add(m){const r=B0(m);return Promise.all(r.map(c=>this._actionQueues.enqueue(c.id,()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let u;if(this._watchdogs.has(c.id))throw new Error(`Item with the given id is already added: '${c.id}'.`);if("editor"===c.type)return u=new S4(null,this._watchdogConfig),u.setCreator(c.creator),u._setExcludedProperties(this._contextProps),c.destructor&&u.setDestructor(c.destructor),this._watchdogs.set(c.id,u),u.on("error",(_,{error:C,causesRestart:M})=>{this._fire("itemError",{itemId:c.id,error:C}),M&&this._actionQueues.enqueue(c.id,()=>new Promise(E=>{const N=()=>{u.off("restart",N),this._fire("itemRestart",{itemId:c.id}),E()};u.on("restart",N)}))}),u.create(c.sourceElementOrData,c.config,this._context);throw new Error(`Not supported item type: '${c.type}'.`)})))}remove(m){const r=B0(m);return Promise.all(r.map(c=>this._actionQueues.enqueue(c,()=>{const u=this._getWatchdog(c);return this._watchdogs.delete(c),u.destroy()})))}destroy(){return this._actionQueues.enqueue(_f,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(_f,()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch(m=>{console.error("An error happened during destroying the context or items.",m)}).then(()=>this._create()).then(()=>this._fire("restart"))))}_create(){return Promise.resolve().then(()=>(this._startErrorHandling(),this._creator(this._contextConfig))).then(m=>(this._context=m,this._contextProps=d2(this._context),Promise.all(Array.from(this._watchdogs.values()).map(r=>(r._setExcludedProperties(this._contextProps),r.create(void 0,void 0,this._context))))))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling();const m=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map(r=>r.destroy())).then(()=>this._destructor(m))})}_getWatchdog(m){const r=this._watchdogs.get(m);if(!r)throw new Error(`Item with the given id was not registered: ${m}.`);return r}_isErrorComingFromThisItem(m){for(const r of this._watchdogs.values())if(r._isErrorComingFromThisItem(m))return!1;return Bv(this._context,m.context)}};class Rh extends Wu{constructor(r){super(r),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const c=this.document;function u(_){return(C,M)=>{M.preventDefault();const E=M.dropRange?[M.dropRange]:null,N=new ct(c,_);c.fire(N,{dataTransfer:M.dataTransfer,method:C.name,targetRanges:E,target:M.target,domEvent:M.domEvent}),N.stop.called&&M.stopPropagation()}}this.listenTo(c,"paste",u("clipboardInput"),{priority:"low"}),this.listenTo(c,"drop",u("clipboardInput"),{priority:"low"}),this.listenTo(c,"dragover",u("dragging"),{priority:"low"})}onDomEvent(r){const _={dataTransfer:new mc("clipboardData"in r?r.clipboardData:r.dataTransfer,{cacheFiles:"drop"==r.type||"paste"==r.type})};"drop"!=r.type&&"dragover"!=r.type||(_.dropRange=function(C,M){const E=M.target.ownerDocument,N=M.clientX,j=M.clientY;let K;return E.caretRangeFromPoint&&E.caretRangeFromPoint(N,j)?K=E.caretRangeFromPoint(N,j):M.rangeParent&&(K=E.createRange(),K.setStart(M.rangeParent,M.rangeOffset),K.collapse(!0)),K?C.domConverter.domRangeToView(K):null}(this.view,r)),this.fire(r.type,r,_)}}const T5=["figcaption","li"];function w5(m){let r="";if(m.is("$text")||m.is("$textProxy"))r=m.data;else if(m.is("element","img")&&m.hasAttribute("alt"))r=m.getAttribute("alt");else if(m.is("element","br"))r="\n";else{let c=null;for(const u of m.getChildren()){const _=w5(u);c&&(c.is("containerElement")||u.is("containerElement"))&&(T5.includes(c.name)||T5.includes(u.name)?r+="\n":r+="\n\n"),r+=_,c=u}}return r}class Np extends lo{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(Rh),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(r,c,u){const _=this.editor.model.getSelectedContent(c);this.fire("outputTransformation",{dataTransfer:r,content:_,method:u})}_setupPasteDrop(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document;this.listenTo(_,"clipboardInput",(C,M)=>{"paste"!=M.method||r.model.canEditAt(r.model.document.selection)||C.stop()},{priority:"highest"}),this.listenTo(_,"clipboardInput",(C,M)=>{const E=M.dataTransfer;let N;if(M.content)N=M.content;else{let dt="";E.getData("text/html")?dt=E.getData("text/html").replace(/(\s+)<\/span>/g,(me,Ue)=>1==Ue.length?" ":Ue).replace(//g,""):E.getData("text/plain")&&(((j=(j=E.getData("text/plain")).replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/\t/g,"    ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||j.includes("
"))&&(j=`

${j}

`),dt=j),N=this.editor.data.htmlProcessor.toView(dt)}var j;const K=new ct(this,"inputTransformation");this.fire(K,{content:N,dataTransfer:E,targetRanges:M.targetRanges,method:M.method}),K.stop.called&&C.stop(),u.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(C,M)=>{if(M.content.isEmpty)return;const E=this.editor.data.toModel(M.content,"$clipboardHolder");0!=E.childCount&&(C.stop(),c.change(()=>{this.fire("contentInsertion",{content:E,method:M.method,dataTransfer:M.dataTransfer,targetRanges:M.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(C,M)=>{M.resultRange=c.insertContent(M.content)},{priority:"low"})}_setupCopyCut(){const r=this.editor,c=r.model.document,u=r.editing.view.document,_=(C,M)=>{const E=M.dataTransfer;M.preventDefault(),this._fireOutputTransformationEvent(E,c.selection,C.name)};this.listenTo(u,"copy",_,{priority:"low"}),this.listenTo(u,"cut",(C,M)=>{r.model.canEditAt(r.model.document.selection)?_(C,M):M.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(C,M)=>{const E=r.data.toView(M.content);u.fire("clipboardOutput",{dataTransfer:M.dataTransfer,content:E,method:M.method})},{priority:"low"}),this.listenTo(u,"clipboardOutput",(C,M)=>{M.content.isEmpty||(M.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(M.content)),M.dataTransfer.setData("text/plain",w5(M.content))),"cut"==M.method&&r.model.deleteContent(c.selection)},{priority:"low"})}}class U5{constructor(r,c=20){this._batch=null,this.model=r,this._size=0,this.limit=c,this._isLocked=!1,this._changeCallback=(u,_)=>{_.isLocal&&_.isUndoable&&_!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(r){this._size+=r,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(r=!1){this.isLocked&&!r||(this._batch=null,this._size=0)}}class F8 extends Ua{constructor(r,c){super(r),this._buffer=new U5(r.model,c),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(r={}){const c=this.editor.model,u=c.document,_=r.text||"",C=_.length;let M=u.selection;if(r.selection?M=r.selection:r.range&&(M=c.createSelection(r.range)),!c.canEditAt(M))return;const E=r.resultRange;c.enqueueChange(this._buffer.batch,N=>{this._buffer.lock(),c.deleteContent(M),_&&c.insertContent(N.createText(_,u.selection.getAttributes()),M),E?N.setSelection(E):M.is("documentSelection")||N.setSelection(M),this._buffer.unlock(),this._buffer.input(C)})}}const Vv=["insertText","insertReplacementText"];class jv extends Qu{constructor(r){super(r),this.focusObserver=r.getObserver(z_),D_isAndroid&&Vv.push("insertCompositionText");const c=r.document;c.on("beforeinput",(u,_)=>{if(!this.isEnabled)return;const{data:C,targetRanges:M,inputType:E,domEvent:N}=_;if(!Vv.includes(E))return;this.focusObserver.flush();const j=new ct(c,"insertText");c.fire(j,new pc(r,N,{text:C,selection:r.createSelection(M)})),j.stop.called&&u.stop()}),c.on("compositionend",(u,{data:_,domEvent:C})=>{this.isEnabled&&!D_isAndroid&&_&&c.fire("insertText",new pc(r,C,{text:_,selection:c.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class Jv extends lo{static get pluginName(){return"Input"}init(){const r=this.editor,c=r.model,u=r.editing.view,_=c.document.selection;u.addObserver(jv);const C=new F8(r,r.config.get("typing.undoStep")||20);r.commands.add("insertText",C),r.commands.add("input",C),this.listenTo(u.document,"insertText",(M,E)=>{u.document.isComposing||E.preventDefault();const{text:N,selection:j,resultRange:K}=E,dt=Array.from(j.getRanges()).map(Ue=>r.editing.mapper.toModelRange(Ue));let Dt=N;if(D_isAndroid){const Ue=Array.from(dt[0].getItems()).reduce((qe,pn)=>qe+(pn.is("$textProxy")?pn.data:""),"");Ue&&(Ue.length<=Dt.length?Dt.startsWith(Ue)&&(Dt=Dt.substring(Ue.length),dt[0].start=dt[0].start.getShiftedBy(Ue.length)):Ue.startsWith(Dt)&&(dt[0].start=dt[0].start.getShiftedBy(Dt.length),Dt=""))}const me={text:Dt,selection:c.createSelection(dt)};K&&(me.resultRange=r.editing.mapper.toModelRange(K)),r.execute("insertText",me),u.scrollToTheSelection()}),D_isAndroid?this.listenTo(u.document,"keydown",(M,E)=>{!_.isCollapsed&&229==E.keyCode&&u.document.isComposing&&Z5(c,C)}):this.listenTo(u.document,"compositionstart",()=>{_.isCollapsed||Z5(c,C)})}}function Z5(m,r){if(!r.isEnabled)return;const c=r.buffer;c.lock(),m.enqueueChange(c.batch,()=>{m.deleteContent(m.document.selection)}),c.unlock()}class Gv extends Ua{constructor(r,c){super(r),this.direction=c,this._buffer=new U5(r.model,r.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(r={}){const c=this.editor.model,u=c.document;c.enqueueChange(this._buffer.batch,_=>{this._buffer.lock();const C=_.createSelection(r.selection||u.selection);if(!c.canEditAt(C))return;const M=r.sequence||1,E=C.isCollapsed;if(C.isCollapsed&&c.modifySelection(C,{direction:this.direction,unit:r.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(M))return void this._replaceEntireContentWithParagraph(_);if(this._shouldReplaceFirstBlockWithParagraph(C,M))return void this.editor.execute("paragraph",{selection:C});if(C.isCollapsed)return;let N=0;C.getFirstRange().getMinimalFlatRanges().forEach(j=>{N+=xt(j.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),c.deleteContent(C,{doNotResetEntireContent:E,direction:this.direction}),this._buffer.input(N),_.setSelection(C),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(r){if(r>1)return!1;const c=this.editor.model,u=c.document.selection,_=c.schema.getLimitElement(u);if(!u.isCollapsed||!u.containsEntireContent(_)||!c.schema.checkChild(_,"paragraph"))return!1;const C=_.getChild(0);return!C||!C.is("element","paragraph")}_replaceEntireContentWithParagraph(r){const c=this.editor.model,_=c.schema.getLimitElement(c.document.selection),C=r.createElement("paragraph");r.remove(r.createRangeIn(_)),r.insert(C,_),r.setSelection(C,0)}_shouldReplaceFirstBlockWithParagraph(r,c){const u=this.editor.model;if(c>1||"backward"!=this.direction||!r.isCollapsed)return!1;const _=r.getFirstPosition(),C=u.schema.getLimitElement(_),M=C.getChild(0);return _.parent==M&&!!r.containsEntireContent(M)&&!!u.schema.checkChild(C,"paragraph")&&"paragraph"!=M.name}}const p2="selection",Hh="backward",a_="forward",Wv={deleteContent:{unit:p2,direction:Hh},deleteContentBackward:{unit:"codePoint",direction:Hh},deleteWordBackward:{unit:"word",direction:Hh},deleteHardLineBackward:{unit:p2,direction:Hh},deleteSoftLineBackward:{unit:p2,direction:Hh},deleteContentForward:{unit:"character",direction:a_},deleteWordForward:{unit:"word",direction:a_},deleteHardLineForward:{unit:p2,direction:a_},deleteSoftLineForward:{unit:p2,direction:a_}};class $v extends Qu{constructor(r){super(r);const c=r.document;let u=0;c.on("keydown",()=>{u++}),c.on("keyup",()=>{u=0}),c.on("beforeinput",(_,C)=>{if(!this.isEnabled)return;const{targetRanges:M,domEvent:E,inputType:N}=C,j=Wv[N];if(!j)return;const K={direction:j.direction,unit:j.unit,sequence:u};K.unit==p2&&(K.selectionToRemove=r.createSelection(M[0])),"deleteContentBackward"===N&&(D_isAndroid&&(K.sequence=1),function(Dt){if(1!=Dt.length||Dt[0].isCollapsed)return!1;const me=Dt[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let Ue=0;for(const{nextPosition:qe}of me){if(qe.parent.is("$text")){const pn=qe.parent.data,Ln=qe.offset;if(un(pn,Ln)||hd(pn,Ln)||kl(pn,Ln))continue;Ue++}else Ue++;if(Ue>1)return!0}return!1}(M)&&(K.unit=p2,K.selectionToRemove=r.createSelection(M)));const dt=new Cp(c,"delete",M[0]);c.fire(dt,new pc(r,E,K)),dt.stop.called&&_.stop()}),D_isBlink&&function(_){const C=_.view,M=C.document;let E=null,N=!1;function j(dt){return dt==Ka.backspace||dt==Ka.delete}function K(dt){return dt==Ka.backspace?Hh:a_}M.on("keydown",(dt,{keyCode:Dt})=>{E=Dt,N=!1}),M.on("keyup",(dt,{keyCode:Dt,domEvent:me})=>{const Ue=M.selection,qe=_.isEnabled&&Dt==E&&j(Dt)&&!Ue.isCollapsed&&!N;if(E=null,qe){const pn=Ue.getFirstRange(),Ln=new Cp(M,"delete",pn),pi={unit:p2,direction:K(Dt),selectionToRemove:Ue};M.fire(Ln,new pc(C,me,pi))}}),M.on("beforeinput",(dt,{inputType:Dt})=>{const me=Wv[Dt];j(E)&&me&&me.direction==K(E)&&(N=!0)},{priority:"high"}),M.on("beforeinput",(dt,{inputType:Dt,data:me})=>{E==Ka.delete&&"insertText"==Dt&&"\x7f"==me&&dt.stop()},{priority:"high"})}(this)}observe(){}stopObserving(){}}class r_ extends lo{static get pluginName(){return"Delete"}init(){const r=this.editor,c=r.editing.view,u=c.document,_=r.model.document;c.addObserver($v),this._undoOnBackspace=!1;const C=new Gv(r,"forward");r.commands.add("deleteForward",C),r.commands.add("forwardDelete",C),r.commands.add("delete",new Gv(r,"backward")),this.listenTo(u,"delete",(M,E)=>{u.isComposing||E.preventDefault();const{direction:N,sequence:j,selectionToRemove:K,unit:dt}=E,Dt="forward"===N?"deleteForward":"delete",me={sequence:j};if("selection"==dt){const Ue=Array.from(K.getRanges()).map(qe=>r.editing.mapper.toModelRange(qe));me.selection=r.model.createSelection(Ue)}else me.unit=dt;r.execute(Dt,me),c.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(u,"delete",(M,E)=>{this._undoOnBackspace&&"backward"==E.direction&&1==E.sequence&&"codePoint"==E.unit&&(this._undoOnBackspace=!1,r.execute("undo"),E.preventDefault(),M.stop())},{context:"$capture"}),this.listenTo(_,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class Ba extends lo{static get requires(){return[Jv,r_]}static get pluginName(){return"Typing"}}function L4(m,r){let c=m.start;return{text:Array.from(m.getWalker({ignoreElementEnd:!1})).reduce((u,{item:_})=>_.is("$text")||_.is("$textProxy")?u+_.data:(c=r.createPositionAfter(_),""),""),range:r.createRange(c,m.end)}}class Kv extends(Ze()){constructor(r,c){super(),this.model=r,this.testCallback=c,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(r.document.selection),this.stopListening(r.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const r=this.model.document;this.listenTo(r.selection,"change:range",(c,{directChange:u})=>{u&&(r.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(r,"change:data",(c,u)=>{!u.isUndo&&u.isLocal&&this._evaluateTextBeforeSelection("data",{batch:u})})}_evaluateTextBeforeSelection(r,c={}){const u=this.model,_=u.document.selection,C=u.createRange(u.createPositionAt(_.focus.parent,0),_.focus),{text:M,range:E}=L4(C,u),N=this.testCallback(M);if(!N&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!N,N){const j=Object.assign(c,{text:M,range:E});"object"==typeof N&&Object.assign(j,N),this.fire(`matched:${r}`,j)}}}class M5 extends lo{constructor(r){super(r),this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const r=this.editor,_=r.locale,C=r.model.document.selection;this.listenTo(r.editing.view.document,"arrowKey",(M,E)=>{if(!C.isCollapsed||E.shiftKey||E.altKey||E.ctrlKey)return;const N=E.keyCode==Ka.arrowright,j=E.keyCode==Ka.arrowleft;if(!N&&!j)return;const K=_.contentLanguageDirection;let dt=!1;dt="ltr"===K&&N||"rtl"===K&&j?this._handleForwardMovement(E):this._handleBackwardMovement(E),!0===dt&&M.stop()},{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(C,"change:range",(M,E)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!E.directChange&&V0(C.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(r){this.attributes.add(r)}_handleForwardMovement(r){const c=this.attributes,u=this.editor.model.document.selection,_=u.getFirstPosition();return!(this._isGravityOverridden||_.isAtStart&&O4(u,c)||!V0(_,c)||(zh(r),this._overrideGravity(),0))}_handleBackwardMovement(r){const c=this.attributes,u=this.editor.model,_=u.document.selection,C=_.getFirstPosition();return this._isGravityOverridden?(zh(r),this._restoreGravity(),E4(u,c,C),!0):C.isAtStart?!!O4(_,c)&&(zh(r),E4(u,c,C),!0):(E=c,!(!V0(C.getShiftedBy(-1),E)||(C.isAtEnd&&!O4(_,c)&&V0(C,c)?(zh(r),E4(u,c,C),0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),1))));var E}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(r=>r.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(r=>{r.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function O4(m,r){for(const c of r)if(m.hasAttribute(c))return!0;return!1}function E4(m,r,c){const u=c.nodeBefore;m.change(_=>{if(u){const C=[],M=m.schema.isObject(u)&&m.schema.isInline(u);for(const[E,N]of u.getAttributes())!m.schema.checkAttribute("$text",E)||M&&!1===m.schema.getAttributeProperties(E).copyFromObject||C.push([E,N]);_.setSelectionAttribute(C)}else _.removeSelectionAttribute(r)})}function zh(m){m.preventDefault()}function V0(m,r){const{nodeBefore:c,nodeAfter:u}=m;for(const _ of r){const C=c?c.getAttribute(_):void 0;if((u?u.getAttribute(_):void 0)!==C)return!0}return!1}const k5={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"\xbd",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"\u2153",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"\u2154",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"\xbc",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"\xbe",null]},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:a1('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:a1("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:a1("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:a1('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:a1('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:a1("'"),to:[null,"\u201a",null,"\u2019"]}},Dd={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},da=["symbols","mathematical","typography","quotes"];function Xv(m){return"string"==typeof m?new RegExp(`(${_5(m)})$`):m}function I4(m){return"string"==typeof m?()=>[m]:m instanceof Array?()=>m:m}function D5(m){return(m.textNode?m.textNode:m.nodeAfter).getAttributes()}function a1(m){return new RegExp(`(^|\\s)(${m})([^${m}]*)(${m})$`)}function gc(m,r,c,u){return u.createRange(tx(m,r,c,!0,u),tx(m,r,c,!1,u))}function tx(m,r,c,u,_){let C=m.textNode||(u?m.nodeBefore:m.nodeAfter),M=null;for(;C&&C.getAttribute(r)==c;)M=C,C=u?C.previousSibling:C.nextSibling;return M?_.createPositionAt(M,u?"before":"after"):m}function*m2(m,r){for(const c of r)c&&m.getAttributeProperties(c[0]).copyOnEnter&&(yield c)}class ex extends Ua{execute(){this.editor.model.change(r=>{this.enterBlock(r),this.fire("afterExecute",{writer:r})})}enterBlock(r){const c=this.editor.model,u=c.document.selection,_=c.schema,C=u.isCollapsed,M=u.getFirstRange(),E=M.start.parent,N=M.end.parent;if(_.isLimit(E)||_.isLimit(N))return C||E!=N||c.deleteContent(u),!1;if(C){const j=m2(r.model.schema,u.getAttributes());return wi(r,M.start),r.setSelectionAttribute(j),!0}{const j=!(M.start.isAtStart&&M.end.isAtEnd),K=E==N;if(c.deleteContent(u,{leaveUnmerged:j}),j){if(K)return wi(r,u.focus),!0;r.setSelection(N,0)}}return!1}}function wi(m,r){m.split(r),m.setSelection(r.parent.nextSibling,0)}const jn={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class H extends Qu{constructor(r){super(r);const c=this.document;let u=!1;c.on("keydown",(_,C)=>{u=C.shiftKey}),c.on("beforeinput",(_,C)=>{if(!this.isEnabled)return;let M=C.inputType;D_isSafari&&u&&"insertParagraph"==M&&(M="insertLineBreak");const E=C.domEvent,N=jn[M];if(!N)return;const j=new Cp(c,"enter",C.targetRanges[0]);c.fire(j,new pc(r,E,{isSoft:N.isSoft})),j.stop.called&&_.stop()})}observe(){}stopObserving(){}}class Tm extends lo{static get pluginName(){return"Enter"}init(){const r=this.editor,c=r.editing.view,u=c.document;c.addObserver(H),r.commands.add("enter",new ex(r)),this.listenTo(u,"enter",(_,C)=>{u.isComposing||C.preventDefault(),C.isSoft||(r.execute("enter"),c.scrollToTheSelection())},{priority:"low"})}}class hu extends Ua{execute(){const r=this.editor.model,c=r.document;r.change(u=>{(function(_,C,M){const E=M.isCollapsed,N=M.getFirstRange(),K=N.end.parent,dt=N.start.parent==K;if(E){const Dt=m2(_.schema,M.getAttributes());Ma(_,C,N.end),C.removeSelectionAttribute(M.getAttributeKeys()),C.setSelectionAttribute(Dt)}else{const Dt=!(N.start.isAtStart&&N.end.isAtEnd);_.deleteContent(M,{leaveUnmerged:Dt}),dt?Ma(_,C,M.focus):Dt&&C.setSelection(K,0)}})(r,u,c.selection),this.fire("afterExecute",{writer:u})})}refresh(){const r=this.editor.model;this.isEnabled=function(u,_){if(_.rangeCount>1)return!1;const C=_.anchor;if(!C||!u.checkChild(C,"softBreak"))return!1;const M=_.getFirstRange(),E=M.start.parent,N=M.end.parent;return!((F4(E,u)||F4(N,u))&&E!==N)}(r.schema,r.document.selection)}}function Ma(m,r,c){const u=r.createElement("softBreak");m.insertContent(u,c),r.setSelection(u,"after")}function F4(m,r){return!m.is("rootElement")&&(r.isLimit(m)||F4(m.parent,r))}class N8 extends lo{static get pluginName(){return"ShiftEnter"}init(){const r=this.editor,u=r.conversion,_=r.editing.view,C=_.document;r.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),u.for("upcast").elementToElement({model:"softBreak",view:"br"}),u.for("downcast").elementToElement({model:"softBreak",view:(M,{writer:E})=>E.createEmptyElement("br")}),_.addObserver(H),r.commands.add("shiftEnter",new hu(r)),this.listenTo(C,"enter",(M,E)=>{C.isComposing||E.preventDefault(),E.isSoft&&(r.execute("shiftEnter"),_.scrollToTheSelection())},{priority:"low"})}}class nx extends(Ne()){constructor(){super(...arguments),this._stack=[]}add(r,c){const u=this._stack,_=u[0];this._insertDescriptor(r);const C=u[0];_===C||s_(_,C)||this.fire("change:top",{oldDescriptor:_,newDescriptor:C,writer:c})}remove(r,c){const u=this._stack,_=u[0];this._removeDescriptor(r);const C=u[0];_===C||s_(_,C)||this.fire("change:top",{oldDescriptor:_,newDescriptor:C,writer:c})}_insertDescriptor(r){const c=this._stack,u=c.findIndex(C=>C.id===r.id);if(s_(r,c[u]))return;u>-1&&c.splice(u,1);let _=0;for(;c[_]&&q8(c[_],r);)_++;c.splice(_,0,r)}_removeDescriptor(r){const c=this._stack,u=c.findIndex(_=>_.id===r);u>-1&&c.splice(u,1)}}function s_(m,r){return m&&r&&m.priority==r.priority&&ff(m.classes)==ff(r.classes)}function q8(m,r){return m.priority>r.priority||!(m.priorityff(r.classes)}function ff(m){return Array.isArray(m)?m.sort().join(","):m}const ix="ck-widget_selected";function El(m){return!!m.is("element")&&!!m.getCustomProperty("widget")}function ep(m,r,c={}){if(!m.is("containerElement"))throw new at("widget-to-widget-wrong-element-type",null,{element:m});return r.setAttribute("contenteditable","false",m),r.addClass("ck-widget",m),r.setCustomProperty("widget",!0,m),m.getFillerOffset=H8,r.setCustomProperty("widgetLabel",[],m),c.label&&(_=c.label,m.getCustomProperty("widgetLabel").push(_)),c.hasSelectionHandle&&function(u,_){const C=_.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(M){const E=this.toDomElement(M),N=new zs;return N.set("content",''),N.render(),E.appendChild(N.element),E});_.insert(_.createPositionAt(u,0),C),_.addClass(["ck-widget_with-selection-handle"],u)}(m,r),P5(m,r),m;var _}function R8(m,r,c){if(r.classes&&c.addClass(Ss(r.classes),m),r.attributes)for(const u in r.attributes)c.setAttribute(u,r.attributes[u],m)}function ox(m,r,c){if(r.classes&&c.removeClass(Ss(r.classes),m),r.attributes)for(const u in r.attributes)c.removeAttribute(u,m)}function P5(m,r,c=R8,u=ox){const _=new nx;_.on("change:top",(C,M)=>{M.oldDescriptor&&u(m,M.oldDescriptor,M.writer),M.newDescriptor&&c(m,M.newDescriptor,M.writer)}),r.setCustomProperty("addHighlight",(C,M,E)=>_.add(M,E),m),r.setCustomProperty("removeHighlight",(C,M,E)=>_.remove(M,E),m)}function S5(m,r,c={}){return r.addClass(["ck-editor__editable","ck-editor__nested-editable"],m),r.setAttribute("role","textbox",m),c.label&&r.setAttribute("aria-label",c.label,m),r.setAttribute("contenteditable",m.isReadOnly?"false":"true",m),m.on("change:isReadOnly",(u,_,C)=>{r.setAttribute("contenteditable",C?"false":"true",m)}),m.on("change:isFocused",(u,_,C)=>{C?r.addClass("ck-editor__nested-editable_focused",m):r.removeClass("ck-editor__nested-editable_focused",m)}),P5(m,r),m}function q4(m,r){const c=m.getSelectedElement();if(c){const u=np(m);if(u)return r.createRange(r.createPositionAt(c,u))}return x0(m,r)}function H8(){return null}const c_="widget-type-around";function hf(m,r,c){return!!m&&El(m)&&!c.isInline(r)}function np(m){return m.getAttribute(c_)}var ax=v(4921);Fo()(ax.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const gf=["before","after"],_2=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,R4="ck-widget__type-around_disabled";class sx extends lo{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Tm,r_]}init(){const r=this.editor,c=r.editing.view;this.on("change:isEnabled",(u,_,C)=>{c.change(M=>{for(const E of c.document.roots)C?M.removeClass(R4,E):M.addClass(R4,E)}),C||r.model.change(M=>{M.removeSelectionAttribute(c_)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(r,c){const u=this.editor,_=u.editing.view,C=u.model.schema.getAttributesWithProperty(r,"copyOnReplace",!0);u.execute("insertParagraph",{position:u.model.createPositionAt(r,c),attributes:C}),_.focus(),_.scrollToTheSelection()}_listenToIfEnabled(r,c,u,_){this.listenTo(r,c,(...C)=>{this.isEnabled&&u(...C)},_)}_insertParagraphAccordingToFakeCaretPosition(){const r=this.editor.model.document.selection,c=np(r);if(!c)return!1;const u=r.getSelectedElement();return this._insertParagraph(u,c),!0}_enableTypeAroundUIInjection(){const r=this.editor,c=r.model.schema,u=r.locale.t,_={before:u("Insert paragraph before block"),after:u("Insert paragraph after block")};r.editing.downcastDispatcher.on("insert",(C,M,E)=>{const N=E.mapper.toViewElement(M.item);N&&hf(N,M.item,c)&&(function(j,K,dt){const Dt=j.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(me){const Ue=this.toDomElement(me);return function(qe,pn){for(const Ln of gf){const pi=new Ur({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${Ln}`],title:pn[Ln],"aria-hidden":"true"},children:[qe.ownerDocument.importNode(_2,!0)]});qe.appendChild(pi.render())}}(Ue,K),function(qe){const pn=new Ur({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});qe.appendChild(pn.render())}(Ue),Ue});j.insert(j.createPositionAt(dt,"end"),Dt)}(E.writer,_,N),N.getCustomProperty("widgetLabel").push(()=>this.isEnabled?u("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const r=this.editor,c=r.model,u=c.document.selection,_=c.schema;function M(E){return`ck-widget_type-around_show-fake-caret_${E}`}this._listenToIfEnabled(r.editing.view.document,"arrowKey",(E,N)=>{this._handleArrowKeyPress(E,N)},{context:[El,"$text"],priority:"high"}),this._listenToIfEnabled(u,"change:range",(E,N)=>{N.directChange&&r.model.change(j=>{j.removeSelectionAttribute(c_)})}),this._listenToIfEnabled(c.document,"change:data",()=>{const E=u.getSelectedElement();E&&hf(r.editing.mapper.toViewElement(E),E,_)||r.model.change(N=>{N.removeSelectionAttribute(c_)})}),this._listenToIfEnabled(r.editing.downcastDispatcher,"selection",(E,N,j)=>{const K=j.writer;if(this._currentFakeCaretModelElement){const Ue=j.mapper.toViewElement(this._currentFakeCaretModelElement);Ue&&(K.removeClass(gf.map(M),Ue),this._currentFakeCaretModelElement=null)}const dt=N.selection.getSelectedElement();if(!dt)return;const Dt=j.mapper.toViewElement(dt);if(!hf(Dt,dt,_))return;const me=np(N.selection);me&&(K.addClass(M(me),Dt),this._currentFakeCaretModelElement=dt)}),this._listenToIfEnabled(r.ui.focusTracker,"change:isFocused",(E,N,j)=>{j||r.model.change(K=>{K.removeSelectionAttribute(c_)})})}_handleArrowKeyPress(r,c){const u=this.editor,_=u.model,C=_.document.selection,M=_.schema,E=u.editing.view,N=function(dt,Dt){const me=b1(dt,Dt);return"down"===me||"right"===me}(c.keyCode,u.locale.contentLanguageDirection),j=E.document.selection.getSelectedElement();let K;hf(j,u.editing.mapper.toModelElement(j),M)?K=this._handleArrowKeyPressOnSelectedWidget(N):C.isCollapsed?K=this._handleArrowKeyPressWhenSelectionNextToAWidget(N):c.shiftKey||(K=this._handleArrowKeyPressWhenNonCollapsedSelection(N)),K&&(c.preventDefault(),r.stop())}_handleArrowKeyPressOnSelectedWidget(r){const c=this.editor.model,u=np(c.document.selection);return c.change(_=>u?u!==(r?"after":"before")&&(_.removeSelectionAttribute(c_),!0):(_.setSelectionAttribute(c_,r?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(r){const c=this.editor,u=c.model,_=u.schema,C=c.plugins.get("Widget"),M=C._getObjectElementNextToSelection(r);return!!hf(c.editing.mapper.toViewElement(M),M,_)&&(u.change(E=>{C._setSelectionOverElement(M),E.setSelectionAttribute(c_,r?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(r){const c=this.editor,u=c.model,_=u.schema,C=c.editing.mapper,M=u.document.selection,E=r?M.getLastPosition().nodeBefore:M.getFirstPosition().nodeAfter;return!!hf(C.toViewElement(E),E,_)&&(u.change(N=>{N.setSelection(E,"on"),N.setSelectionAttribute(c_,r?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const r=this.editor,c=r.editing.view;this._listenToIfEnabled(c.document,"mousedown",(u,_)=>{const C=_.domTarget.closest(".ck-widget__type-around__button");if(!C)return;const M=C.classList.contains("ck-widget__type-around__button_before")?"before":"after",E=function(j,K){const dt=j.closest(".ck-widget");return K.mapDomToView(dt)}(C,c.domConverter),N=r.editing.mapper.toModelElement(E);this._insertParagraph(N,M),_.preventDefault(),u.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const r=this.editor,c=r.model.document.selection;this._listenToIfEnabled(r.editing.view.document,"enter",(_,C)=>{if("atTarget"!=_.eventPhase)return;const M=c.getSelectedElement(),E=r.editing.mapper.toViewElement(M),N=r.model.schema;let j;this._insertParagraphAccordingToFakeCaretPosition()?j=!0:hf(E,M,N)&&(this._insertParagraph(M,C.isSoft?"before":"after"),j=!0),j&&(C.preventDefault(),_.stop())},{context:El})}_enableInsertingParagraphsOnTypingKeystroke(){const r=this.editor.editing.view.document;this._listenToIfEnabled(r,"insertText",(c,u)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(u.selection=r.selection)},{priority:"high"}),D_isAndroid?this._listenToIfEnabled(r,"keydown",(c,u)=>{229==u.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(r,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const r=this.editor,u=r.model,_=u.schema;this._listenToIfEnabled(r.editing.view.document,"delete",(C,M)=>{if("atTarget"!=C.eventPhase)return;const E=np(u.document.selection);if(!E)return;const N=M.direction,j=u.document.selection.getSelectedElement(),K="forward"==N;if("before"===E===K)r.execute("delete",{selection:u.createSelection(j,"on")});else{const dt=_.getNearestSelectionRange(u.createPositionAt(j,E),N);if(dt)if(dt.isCollapsed){const Dt=u.createSelection(dt.start);if(u.modifySelection(Dt,{direction:N}),Dt.focus.isEqual(dt.start)){const me=function(Ue,qe){let pn=qe;for(const Ln of qe.getAncestors({parentFirst:!0})){if(Ln.childCount>1||Ue.isLimit(Ln))break;pn=Ln}return pn}(_,dt.start.parent);u.deleteContent(u.createSelection(me,"on"),{doNotAutoparagraph:!0})}else u.change(me=>{me.setSelection(dt),r.execute(K?"deleteForward":"delete")})}else u.change(Dt=>{Dt.setSelection(dt),r.execute(K?"deleteForward":"delete")})}M.preventDefault(),C.stop()},{context:El})}_enableInsertContentIntegration(){const c=this.editor.model,u=c.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(_,[C,M])=>{if(M&&!M.is("documentSelection"))return;const E=np(u);return E?(_.stop(),c.change(N=>{const j=u.getSelectedElement(),K=c.createPositionAt(j,E),dt=N.createSelection(K),Dt=c.insertContent(C,dt);return N.setSelection(dt),Dt})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const c=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"insertObject",(u,_)=>{const[,C,M={}]=_;if(C&&!C.is("documentSelection"))return;const E=np(c);E&&(M.findOptimalPosition=E,_[3]=M)},{priority:"high"})}_enableDeleteContentIntegration(){const c=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"deleteContent",(u,[_])=>{_&&!_.is("documentSelection")||np(c)&&u.stop()},{priority:"high"})}}function lx(m,r,c){const u=m.schema,_=m.createRangeIn(r.root),C="forward"==c?"elementStart":"elementEnd";for(const{previousPosition:M,item:E,type:N}of _.getWalker({startPosition:r,direction:c})){if(u.isLimit(E)&&!u.isInline(E))return M;if(N==C&&u.isBlock(E))return null}return null}function bf(m,r,c){const u="backward"==c?r.end:r.start;if(m.checkChild(u,"$text"))return u;for(const{nextPosition:_}of r.getWalker({direction:c}))if(m.checkChild(_,"$text"))return _;return null}var Bh=v(3488);Fo()(Bh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class j0 extends lo{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[sx,r_]}init(){const r=this.editor,c=r.editing.view,u=c.document;this.editor.editing.downcastDispatcher.on("selection",(_,C,M)=>{const E=M.writer,N=C.selection;if(N.isCollapsed)return;const j=N.getSelectedElement();if(!j)return;const K=r.editing.mapper.toViewElement(j);var dt;El(K)&&M.consumable.consume(N,"selection")&&E.setSelection(E.createRangeOn(K),{fake:!0,label:(dt=K,dt.getCustomProperty("widgetLabel").reduce((Dt,me)=>"function"==typeof me?Dt?Dt+". "+me():me():Dt?Dt+". "+me:me,""))})}),this.editor.editing.downcastDispatcher.on("selection",(_,C,M)=>{this._clearPreviouslySelectedWidgets(M.writer);const E=M.writer,N=E.document.selection;let j=null;for(const K of N.getRanges())for(const dt of K){const Dt=dt.item;El(Dt)&&!z8(Dt,j)&&(E.addClass(ix,Dt),this._previouslySelected.add(Dt),j=Dt)}},{priority:"low"}),c.addObserver(A0),this.listenTo(u,"mousedown",(..._)=>this._onMousedown(..._)),this.listenTo(u,"arrowKey",(..._)=>{this._handleSelectionChangeOnArrowKeyPress(..._)},{context:[El,"$text"]}),this.listenTo(u,"arrowKey",(..._)=>{this._preventDefaultOnArrowKeyPress(..._)},{context:"$root"}),this.listenTo(u,"arrowKey",function cx(m){const r=m.model;return(c,u)=>{const C=u.keyCode==Ka.arrowdown,M=u.shiftKey,E=r.document.selection;if(u.keyCode!=Ka.arrowup&&!C)return;const N=C;if(M&&!(K=E).isCollapsed&&K.isBackward==N)return;var K;const j=function(K,dt,Dt){const me=K.model;if(Dt){const Ue=dt.isCollapsed?dt.focus:dt.getLastPosition(),qe=lx(me,Ue,"forward");if(!qe)return null;const pn=me.createRange(Ue,qe),Ln=bf(me.schema,pn,"backward");return Ln?me.createRange(Ue,Ln):null}{const Ue=dt.isCollapsed?dt.focus:dt.getFirstPosition(),qe=lx(me,Ue,"backward");if(!qe)return null;const pn=me.createRange(qe,Ue),Ln=bf(me.schema,pn,"forward");return Ln?me.createRange(Ln,Ue):null}}(m,E,N);if(j){if(j.isCollapsed&&(E.isCollapsed||M))return;(j.isCollapsed||function(K,dt,Dt){const me=K.model,Ue=K.view.domConverter;if(Dt){const Ri=me.createSelection(dt.start);me.modifySelection(Ri),Ri.focus.isAtEnd||dt.start.isEqual(Ri.focus)||(dt=me.createRange(Ri.focus,dt.end))}const qe=K.mapper.toViewRange(dt),pn=Ue.viewRangeToDom(qe),Ln=de.getDomRangeRects(pn);let pi;for(const Ri of Ln)if(void 0!==pi){if(Math.round(Ri.top)>=pi)return!1;pi=Math.max(pi,Math.round(Ri.bottom))}else pi=Math.round(Ri.bottom);return!0}(m,j,N))&&(r.change(K=>{const dt=N?j.end:j.start;if(M){const Dt=r.createSelection(E.anchor);Dt.setFocus(dt),K.setSelection(Dt)}else K.setSelection(dt)}),c.stop(),u.preventDefault(),u.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(u,"delete",(_,C)=>{this._handleDelete("forward"==C.direction)&&(C.preventDefault(),_.stop())},{context:"$root"})}_onMousedown(r,c){const u=this.editor,_=u.editing.view,C=_.document;let M=c.target;if(function(N){let j=N;for(;j;){if(j.is("editableElement")&&!j.is("rootElement"))return!0;if(El(j))return!1;j=j.parent}return!1}(M)){if((D_isSafari||D_isGecko)&&c.domEvent.detail>=3){const N=u.editing.mapper,j=M.is("attributeElement")?M.findAncestor(dt=>!dt.is("attributeElement")):M,K=N.toModelElement(j);c.preventDefault(),this.editor.model.change(dt=>{dt.setSelection(K,"in")})}return}if(!El(M)&&(M=M.findAncestor(El),!M))return;D_isAndroid&&c.preventDefault(),C.isFocused||_.focus();const E=u.editing.mapper.toModelElement(M);this._setSelectionOverElement(E)}_handleSelectionChangeOnArrowKeyPress(r,c){const u=c.keyCode,_=this.editor.model,C=_.schema,M=_.document.selection,E=M.getSelectedElement(),N=b1(u,this.editor.locale.contentLanguageDirection),j="down"==N||"right"==N,K="up"==N||"down"==N;if(E&&C.isObject(E)){const Dt=j?M.getLastPosition():M.getFirstPosition(),me=C.getNearestSelectionRange(Dt,j?"forward":"backward");return void(me&&(_.change(Ue=>{Ue.setSelection(me)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed&&!c.shiftKey){const Dt=M.getFirstPosition(),me=M.getLastPosition(),Ue=Dt.nodeAfter,qe=me.nodeBefore;return void((Ue&&C.isObject(Ue)||qe&&C.isObject(qe))&&(_.change(pn=>{pn.setSelection(j?me:Dt)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed)return;const dt=this._getObjectElementNextToSelection(j);if(dt&&C.isObject(dt)){if(C.isInline(dt)&&K)return;this._setSelectionOverElement(dt),c.preventDefault(),r.stop()}}_preventDefaultOnArrowKeyPress(r,c){const u=this.editor.model,_=u.schema,C=u.document.selection.getSelectedElement();C&&_.isObject(C)&&(c.preventDefault(),r.stop())}_handleDelete(r){const c=this.editor.model.document.selection;if(!this.editor.model.canEditAt(c)||!c.isCollapsed)return;const u=this._getObjectElementNextToSelection(r);return u?(this.editor.model.change(_=>{let C=c.anchor.parent;for(;C.isEmpty;){const M=C;C=M.parent,_.remove(M)}this._setSelectionOverElement(u)}),!0):void 0}_setSelectionOverElement(r){this.editor.model.change(c=>{c.setSelection(c.createRangeOn(r))})}_getObjectElementNextToSelection(r){const c=this.editor.model,u=c.schema,_=c.document.selection,C=c.createSelection(_);if(c.modifySelection(C,{direction:r?"forward":"backward"}),C.isEqual(_))return null;const M=r?C.focus.nodeBefore:C.focus.nodeAfter;return M&&u.isObject(M)?M:null}_clearPreviouslySelectedWidgets(r){for(const c of this._previouslySelected)r.removeClass(ix,c);this._previouslySelected.clear()}}function z8(m,r){return!!r&&Array.from(m.getAncestors()).includes(r)}class J0 extends lo{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[q0]}static get pluginName(){return"WidgetToolbarRepository"}init(){const r=this.editor;if(r.plugins.has("BalloonToolbar")){const c=r.plugins.get("BalloonToolbar");this.listenTo(c,"show",u=>{(function(_){const C=_.getSelectedElement();return!(!C||!El(C))})(r.editing.view.document.selection)&&u.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const r of this._toolbarDefinitions.values())r.view.destroy()}register(r,{ariaLabel:c,items:u,getRelatedElement:_,balloonClassName:C="ck-toolbar-container"}){if(!u.length)return void Zt("widget-toolbar-no-items",{toolbarId:r});const M=this.editor,E=M.t,N=new w0(M.locale);if(N.ariaLabel=c||E("Widget toolbar"),this._toolbarDefinitions.has(r))throw new at("widget-toolbar-duplicated",this,{toolbarId:r});const j={view:N,getRelatedElement:_,balloonClassName:C,itemsConfig:u,initialized:!1};M.ui.addToolbar(N,{isContextual:!0,beforeFocus:()=>{const K=_(M.editing.view.document.selection);K&&this._showToolbar(j,K)},afterBlur:()=>{this._hideToolbar(j)}}),this._toolbarDefinitions.set(r,j)}_updateToolbarsVisibility(){let r=0,c=null,u=null;for(const _ of this._toolbarDefinitions.values()){const C=_.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&C)if(this.editor.ui.focusTracker.isFocused){const M=C.getAncestors().length;M>r&&(r=M,c=C,u=_)}else this._isToolbarVisible(_)&&this._hideToolbar(_);else this._isToolbarInBalloon(_)&&this._hideToolbar(_)}u&&this._showToolbar(u,c)}_hideToolbar(r){this._balloon.remove(r.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(r,c){this._isToolbarVisible(r)?L5(this.editor,c):this._isToolbarInBalloon(r)||(r.initialized||(r.initialized=!0,r.view.fillFromConfig(r.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:r.view,position:O5(this.editor,c),balloonClassName:r.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const u of this._toolbarDefinitions.values())if(this._isToolbarVisible(u)){const _=u.getRelatedElement(this.editor.editing.view.document.selection);L5(this.editor,_)}}))}_isToolbarVisible(r){return this._balloon.visibleView===r.view}_isToolbarInBalloon(r){return this._balloon.hasView(r.view)}}function L5(m,r){const c=m.plugins.get("ContextualBalloon"),u=O5(m,r);c.updatePosition(u)}function O5(m,r){const u=id.defaultPositions;return{target:m.editing.view.domConverter.mapViewToDom(r),positions:[u.northArrowSouth,u.northArrowSouthWest,u.northArrowSouthEast,u.southArrowNorth,u.southArrowNorthWest,u.southArrowNorthEast,u.viewportStickyNorth]}}Ze(),Ze();var dx=v(8506);Fo()(dx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const E5=bo("px");class B8 extends oa{constructor(){super();const r=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",r.if("isVisible","ck-hidden",c=>!c)],style:{left:r.to("left",c=>E5(c)),top:r.to("top",c=>E5(c)),width:r.to("width",c=>E5(c))}}})}}class I5 extends lo{constructor(){super(...arguments),this.removeDropMarkerDelayed=wr(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=Lh(r=>this._updateDropMarker(r),40),this._reconvertMarkerThrottled=Lh(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new B8,this._domEmitter=new(Xi()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:r}of this._scrollables.values())r.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(r,c,u,_,C){this.removeDropMarkerDelayed.cancel();const M=F5(this.editor,r,c,u,_,C);M&&this._updateDropMarkerThrottled(M)}getFinalDropRange(r,c,u,_,C){const M=F5(this.editor,r,c,u,_,C);return this.removeDropMarker(),M}removeDropMarker(){const r=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,r.markers.has("drop-target")&&r.change(c=>{c.removeMarker("drop-target")})}_setupDropMarker(){const r=this.editor;r.ui.view.body.add(this._dropTargetLineView),r.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),r.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(c,{writer:u})=>{if(r.model.schema.checkChild(c.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(u);c.markerRange.isCollapsed?this._updateDropTargetLine(c.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(r){const c=this.editor,u=c.model.markers;c.model.change(_=>{u.has("drop-target")?u.get("drop-target").getRange().isEqual(r)||_.updateMarker("drop-target",{range:r}):_.addMarker("drop-target",{range:r,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(r){return r.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(c){const u=this.toDomElement(c);return u.append("\u2060",c.createElement("span"),"\u2060"),u})}_updateDropTargetLine(r){const c=this.editor.editing,u=r.start.nodeBefore,_=r.start.nodeAfter,C=r.start.parent,M=u?c.mapper.toViewElement(u):null,E=M?c.view.domConverter.mapViewToDom(M):null,N=_?c.mapper.toViewElement(_):null,j=N?c.view.domConverter.mapViewToDom(N):null,K=c.mapper.toViewElement(C),dt=c.view.domConverter.mapViewToDom(K),Dt=this._getScrollableRect(K),{scrollX:me,scrollY:Ue}=Lt.window,qe=E?new de(E):null,pn=j?new de(j):null,Ln=new de(dt).excludeScrollbarsAndBorders(),pi=qe?qe.bottom:Ln.top,Ri=pn?pn.top:Ln.bottom,Go=Lt.window.getComputedStyle(dt),ka=pi<=Ri?(pi+Ri)/2:Ri;if(Dt.topDt.is("element")&&!iy(m,Dt));let K=0,dt=j.length;if(0==dt)return M.createRange(M.createPositionAt(N,"end"));for(;Kr in m?Y8(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class j8 extends lo{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(Xi())}static get pluginName(){return"DragDropBlockToolbar"}init(){const r=this.editor;if(this.listenTo(r,"change:isReadOnly",(c,u,_)=>{_?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),D_isAndroid&&this.forceDisabled("noAndroidSupport"),r.plugins.has("BlockToolbar")){const c=r.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(c,"dragstart",(u,_)=>this._handleBlockDragStart(_)),this._domEmitter.listenTo(Lt.document,"dragover",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Lt.document,"drop",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Lt.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&c.setAttribute("draggable","true"),this.on("change:isEnabled",(u,_,C)=>{c.setAttribute("draggable",C?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(r){if(!this.isEnabled)return;const c=this.editor.model,_=this.editor.editing.view,C=Array.from(c.document.selection.getSelectedBlocks()),M=c.createRange(c.createPositionBefore(C[0]),c.createPositionAfter(C[C.length-1]));c.change(E=>E.setSelection(M)),this._isBlockDragging=!0,_.focus(),_.getObserver(Rh).onDomEvent(r)}_handleBlockDragging(r){if(!this.isEnabled||!this._isBlockDragging)return;const c=r.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),u=r.clientY,_=document.elementFromPoint(c,u),C=this.editor.editing.view;var M;_&&_.closest(".ck-editor__editable")&&C.getObserver(Rh).onDomEvent((M=((N,j)=>{for(var K in j||(j={}))_x.call(j,K)&&fx(N,K,j[K]);if(vf)for(var K of vf(j))N5.call(j,K)&&fx(N,K,j[K]);return N})({},r),V8(M,mx({type:r.type,dataTransfer:r.dataTransfer,target:_,clientX:c,clientY:u,preventDefault:()=>r.preventDefault(),stopPropagation:()=>r.stopPropagation()}))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var hx=v(903);Fo()(hx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class bx extends lo{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=wr(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(Xi())}static get pluginName(){return"DragDrop"}static get requires(){return[Np,j0,I5,j8]}init(){const r=this.editor,c=r.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,c.addObserver(Rh),c.addObserver(A0),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(r,"change:isReadOnly",(u,_,C)=>{C?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(u,_,C)=>{C||this._finalizeDragging(!1)}),D_isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document,C=r.plugins.get(I5);this.listenTo(_,"dragstart",(M,E)=>{if(E.target&&E.target.is("editableElement")||(this._prepareDraggedRange(E.target),!this._draggedRange))return void E.preventDefault();this._draggingUid=Pt(),E.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",E.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const N=c.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(E.dataTransfer,N,"dragstart");const{dataTransfer:j,domTarget:K,domEvent:dt}=E,{clientX:Dt}=dt;this._updatePreview({dataTransfer:j,domTarget:K,clientX:Dt}),E.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(_,"dragend",(M,E)=>{this._finalizeDragging(!E.dataTransfer.isCanceled&&"move"==E.dataTransfer.dropEffect)},{priority:"low"}),this._domEmitter.listenTo(Lt.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(_,"dragenter",()=>{this.isEnabled&&u.focus()}),this.listenTo(_,"dragleave",()=>{C.removeDropMarkerDelayed()}),this.listenTo(_,"dragging",(M,E)=>{if(!this.isEnabled)return void(E.dataTransfer.dropEffect="none");const{clientX:N,clientY:j}=E.domEvent;C.updateDropMarker(E.target,E.targetRanges,N,j,this._blockMode),this._draggedRange||(E.dataTransfer.dropEffect="copy"),D_isGecko||("copy"==E.dataTransfer.effectAllowed?E.dataTransfer.dropEffect="copy":["all","copyMove"].includes(E.dataTransfer.effectAllowed)&&(E.dataTransfer.dropEffect="move")),M.stop()},{priority:"low"})}_setupClipboardInputIntegration(){const r=this.editor,c=r.editing.view.document,u=r.plugins.get(I5);this.listenTo(c,"clipboardInput",(_,C)=>{if("drop"!=C.method)return;const{clientX:M,clientY:E}=C.domEvent,N=u.getFinalDropRange(C.target,C.targetRanges,M,E,this._blockMode);return N?(this._draggedRange&&this._draggingUid!=C.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==vx(C.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(N,!0)?(this._finalizeDragging(!1),void _.stop()):void(C.targetRanges=[r.editing.mapper.toViewRange(N)])):(this._finalizeDragging(!1),void _.stop())},{priority:"high"})}_setupContentInsertionIntegration(){const r=this.editor.plugins.get(Np);r.on("contentInsertion",(c,u)=>{if(!this.isEnabled||"drop"!==u.method)return;const _=u.targetRanges.map(C=>this.editor.editing.mapper.toModelRange(C));this.editor.model.change(C=>C.setSelection(_))},{priority:"high"}),r.on("contentInsertion",(c,u)=>{if(!this.isEnabled||"drop"!==u.method)return;const _="move"==vx(u.dataTransfer);this._finalizeDragging((!u.resultRange||!u.resultRange.isCollapsed)&&_)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const r=this.editor,c=r.editing.view,u=c.document;this.listenTo(u,"mousedown",(_,C)=>{if(D_isAndroid||!C)return;this._clearDraggableAttributesDelayed.cancel();let M=Yh(C.target);if(D_isBlink&&!r.isReadOnly&&!M&&!u.selection.isCollapsed){const E=u.selection.getSelectedElement();E&&El(E)||(M=u.selection.editableElement)}M&&(c.change(E=>{E.setAttribute("draggable","true",M)}),this._draggableElement=r.editing.mapper.toModelElement(M))}),this.listenTo(u,"mouseup",()=>{D_isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const r=this.editor.editing;r.view.change(c=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&c.removeAttribute("draggable",r.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(r){const c=this.editor,u=c.model;c.plugins.get(I5).removeDropMarker(),this._clearDraggableAttributes(),c.plugins.has("WidgetToolbarRepository")&&c.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(r&&this.isEnabled&&u.change(_=>{const C=u.createSelection(this._draggedRange);u.deleteContent(C,{doNotAutoparagraph:!0});const M=C.getFirstPosition().parent;M.isEmpty&&!u.schema.checkChild(M,"$text")&&u.schema.checkChild(M,"paragraph")&&_.insertElement("paragraph",M,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(r){const c=this.editor,u=c.model,_=u.document.selection,C=r?Yh(r):null;if(C){const j=c.editing.mapper.toModelElement(C);return this._draggedRange=Xu.fromRange(u.createRangeOn(j)),this._blockMode=u.schema.isBlock(j),void(c.plugins.has("WidgetToolbarRepository")&&c.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop"))}if(_.isCollapsed&&!_.getFirstPosition().parent.isEmpty)return;const M=Array.from(_.getSelectedBlocks()),E=_.getFirstRange();if(0==M.length)return void(this._draggedRange=Xu.fromRange(E));const N=xx(u,M);if(M.length>1)this._draggedRange=Xu.fromRange(N),this._blockMode=!0;else if(1==M.length){const j=E.start.isTouching(N.start)&&E.end.isTouching(N.end);this._draggedRange=Xu.fromRange(j?N:E),this._blockMode=j}u.change(j=>j.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:r,domTarget:c,clientX:u}){const _=this.editor.editing.view,M=_.domConverter.mapViewToDom(_.document.selection.editableElement),E=Lt.window.getComputedStyle(M);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=tn(Lt.document,"div",{style:"position: fixed; left: -999999px;"}),Lt.document.body.appendChild(this._previewContainer));const N=new de(M);if(M.contains(c))return;const j=parseFloat(E.paddingLeft),K=tn(Lt.document,"div");K.className="ck ck-content",K.style.width=E.width,K.style.paddingLeft=`${N.left-u+j}px`,D_isiOS&&(K.style.backgroundColor="white"),K.innerHTML=r.getData("text/html"),r.setDragImage(K,0,0),this._previewContainer.appendChild(K)}}function vx(m){return D_isGecko?m.dropEffect:["all","copyMove"].includes(m.effectAllowed)?"move":"copy"}function Yh(m){if(m.is("editableElement"))return null;if(m.hasClass("ck-widget__selection-handle"))return m.findAncestor(El);if(El(m))return m;const r=m.findAncestor(c=>El(c)||c.is("editableElement"));return El(r)?r:null}function xx(m,r){const c=r[0],u=r[r.length-1],_=c.getCommonAncestor(u),C=m.createPositionBefore(c),M=m.createPositionAfter(u);if(_&&_.is("element")&&!m.schema.isLimit(_)){const E=m.createRangeOn(_),N=C.isTouching(E.start),j=M.isTouching(E.end);if(N&&j)return xx(m,[_])}return m.createRange(C,M)}class Cx extends lo{static get pluginName(){return"PastePlainText"}static get requires(){return[Np]}init(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document,C=c.document.selection;let M=!1;u.addObserver(Rh),this.listenTo(_,"keydown",(E,N)=>{M=N.shiftKey}),r.plugins.get(Np).on("contentInsertion",(E,N)=>{(M||function(j,K){if(j.childCount>1)return!1;const dt=j.getChild(0);return!K.isObject(dt)&&0==Array.from(dt.getAttributeKeys()).length}(N.content,c.schema))&&c.change(j=>{const K=Array.from(C.getAttributes()).filter(([Dt])=>c.schema.getAttributeProperties(Dt).isFormatting);C.isCollapsed||c.deleteContent(C,{doNotAutoparagraph:!0}),K.push(...C.getAttributes());const dt=j.createRangeIn(N.content);for(const Dt of dt.getItems())Dt.is("$textProxy")&&j.setAttributes(K,Dt)})})}}class Ax extends lo{static get pluginName(){return"Clipboard"}static get requires(){return[Np,bx,Cx]}}class z4 extends Ua{constructor(r){super(r),this.affectsData=!1}execute(){const r=this.editor.model,c=r.document.selection;let u=r.schema.getLimitElement(c);if(c.containsEntireContent(u)||!yx(r.schema,u))do{if(u=u.parent,!u)return}while(!yx(r.schema,u));r.change(_=>{_.setSelection(u,"in")})}}function yx(m,r){return m.isLimit(r)&&(m.checkChild(r,"$text")||m.checkChild(r,"paragraph"))}const Tx=tc("Ctrl+A");class J8 extends lo{static get pluginName(){return"SelectAllEditing"}init(){const r=this.editor,c=r.editing.view.document;r.commands.add("selectAll",new z4(r)),this.listenTo(c,"keydown",(u,_)=>{Tc(_)===Tx&&(r.execute("selectAll"),_.preventDefault())})}}class q5 extends lo{static get pluginName(){return"SelectAllUI"}init(){const r=this.editor;r.ui.componentFactory.add("selectAll",c=>{const u=r.commands.get("selectAll"),_=new $o(c);return _.set({label:(0,c.t)("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),_.bind("isEnabled").to(u,"isEnabled"),this.listenTo(_,"execute",()=>{r.execute("selectAll"),r.editing.view.focus()}),_})}}class G8 extends lo{static get requires(){return[J8,q5]}static get pluginName(){return"SelectAll"}}var wx=Object.defineProperty,R5=Object.getOwnPropertySymbols,Ux=Object.prototype.hasOwnProperty,Zx=Object.prototype.propertyIsEnumerable,Mx=(m,r,c)=>r in m?wx(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Vh extends Ua{constructor(r){super(r),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(r.data,"set",(c,u)=>{u[1]=((C,M)=>{for(var E in M||(M={}))Ux.call(M,E)&&Mx(C,E,M[E]);if(R5)for(var E of R5(M))Zx.call(M,E)&&Mx(C,E,M[E]);return C})({},u[1]);const _=u[1];_.batchType||(_.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(r.data,"set",(c,u)=>{u[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(r){const c=this.editor.model.document.selection,u={ranges:c.hasOwnRange?Array.from(c.getRanges()):[],isBackward:c.isBackward};this._stack.push({batch:r,selection:u}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(r,c,u){const _=this.editor.model,C=_.document,M=[],E=r.map(j=>j.getTransformedByOperations(u)),N=E.flat();for(const j of E){const K=j.filter(dt=>dt.root!=C.graveyard).filter(dt=>!kx(dt,N));K.length&&(Q8(K),M.push(K[0]))}M.length&&_.change(j=>{j.setSelection(M,{backward:c})})}_undo(r,c){const u=this.editor.model,_=u.document;this._createdBatches.add(c);const C=r.operations.slice().filter(M=>M.isDocumentOperation);C.reverse();for(const M of C){const N=Array.from(_.history.getOperations(M.baseVersion+1)),j=fh([M.getReversed()],N,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let K of j){const dt=K.affectedSelectable;dt&&!u.canEditAt(dt)&&(K=new fc(K.baseVersion)),c.addOperation(K),u.applyOperation(K),_.history.setOperationAsUndone(M,K)}}}}function Q8(m){m.sort((r,c)=>r.start.isBefore(c.start)?-1:1);for(let r=1;rc!==m&&c.containsRange(m,!0))}class Dx extends Vh{execute(r=null){const c=r?this._stack.findIndex(C=>C.batch==r):this._stack.length-1,u=this._stack.splice(c,1)[0],_=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(_,()=>{this._undo(u.batch,_);const C=this.editor.model.document.history.getOperations(u.batch.baseVersion);this._restoreSelection(u.selection.ranges,u.selection.isBackward,C)}),this.fire("revert",u.batch,_),this.refresh()}}class W8 extends Vh{execute(){const r=this._stack.pop(),c=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(c,()=>{const _=this.editor.model.document.history.getOperations(r.batch.operations[r.batch.operations.length-1].baseVersion+1);this._restoreSelection(r.selection.ranges,r.selection.isBackward,_),this._undo(r.batch,c)}),this.refresh()}}class $8 extends lo{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const r=this.editor;this._undoCommand=new Dx(r),this._redoCommand=new W8(r),r.commands.add("undo",this._undoCommand),r.commands.add("redo",this._redoCommand),this.listenTo(r.model,"applyOperation",(c,u)=>{const _=u[0];if(!_.isDocumentOperation)return;const C=_.batch,M=this._redoCommand.createdBatches.has(C),E=this._undoCommand.createdBatches.has(C);this._batchRegistry.has(C)||(this._batchRegistry.add(C),C.isUndoable&&(M?this._undoCommand.addBatch(C):E||(this._undoCommand.addBatch(C),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(c,u,_)=>{this._redoCommand.addBatch(_)}),r.keystrokes.set("CTRL+Z","undo"),r.keystrokes.set("CTRL+Y","redo"),r.keystrokes.set("CTRL+SHIFT+Z","redo")}}const H5='',Px='';class K8 extends lo{static get pluginName(){return"UndoUI"}init(){const r=this.editor,c=r.locale,u=r.t,_="ltr"==c.uiLanguageDirection?H5:Px,C="ltr"==c.uiLanguageDirection?Px:H5;this._addButton("undo",u("Undo"),"CTRL+Z",_),this._addButton("redo",u("Redo"),"CTRL+Y",C)}_addButton(r,c,u,_){const C=this.editor;C.ui.componentFactory.add(r,M=>{const E=C.commands.get(r),N=new $o(M);return N.set({label:c,icon:_,keystroke:u,tooltip:!0}),N.bind("isEnabled").to(E,"isEnabled"),this.listenTo(N,"execute",()=>{C.execute(r),C.editing.view.focus()}),N})}}class Sx extends lo{static get requires(){return[$8,K8]}static get pluginName(){return"Undo"}}class Lx extends(Ze()){constructor(){super();const r=new window.FileReader;this._reader=r,this._data=void 0,this.set("loaded",0),r.onprogress=c=>{this.loaded=c.loaded}}get error(){return this._reader.error}get data(){return this._data}read(r){const c=this._reader;return this.total=r.size,new Promise((u,_)=>{c.onload=()=>{const C=c.result;this._data=C,u(C)},c.onerror=()=>{_("error")},c.onabort=()=>{_("aborted")},this._reader.readAsDataURL(r)})}abort(){this._reader.abort()}}class ip extends lo{constructor(){super(...arguments),this.loaders=new ec,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[wh]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,c)=>c?r/c*100:0)}getLoader(r){return this._loadersMap.get(r)||null}createLoader(r){if(!this.createUploadAdapter)return Zt("filerepository-no-upload-adapter"),null;const c=new z5(Promise.resolve(r),this.createUploadAdapter);return this.loaders.add(c),this._loadersMap.set(r,c),r instanceof Promise&&c.file.then(u=>{this._loadersMap.set(u,c)}).catch(()=>{}),c.on("change:uploaded",()=>{let u=0;for(const _ of this.loaders)u+=_.uploaded;this.uploaded=u}),c.on("change:uploadTotal",()=>{let u=0;for(const _ of this.loaders)_.uploadTotal&&(u+=_.uploadTotal);this.uploadTotal=u}),c}destroyLoader(r){const c=r instanceof z5?r:this.getLoader(r);c._destroy(),this.loaders.remove(c),this._loadersMap.forEach((u,_)=>{u===c&&this._loadersMap.delete(_)})}_updatePendingAction(){const r=this.editor.plugins.get(wh);if(this.loaders.length){if(!this._pendingAction){const c=this.editor.t,u=_=>`${c("Upload in progress")} ${parseInt(_)}%.`;this._pendingAction=r.add(u(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",u)}}else r.remove(this._pendingAction),this._pendingAction=null}}class z5 extends(Ze()){constructor(r,c){super(),this.id=Pt(),this._filePromiseWrapper=this._createFilePromiseWrapper(r),this._adapter=c(this),this._reader=new Lx,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(u,_)=>_?u/_*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(r=>this._filePromiseWrapper?r:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new at("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(r=>this._reader.read(r)).then(r=>{if("reading"!==this.status)throw this.status;return this.status="idle",r}).catch(r=>{throw"aborted"===r?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:r)})}upload(){if("idle"!=this.status)throw new at("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(r=>(this.uploadResponse=r,this.status="idle",r)).catch(r=>{throw"aborted"===this.status?"aborted":(this.status="error",r)})}abort(){const r=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==r?this._reader.abort():"uploading"==r&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(r){const c={};return c.promise=new Promise((u,_)=>{c.rejecter=_,c.isFulfilled=!1,r.then(C=>{c.isFulfilled=!0,u(C)}).catch(C=>{c.isFulfilled=!0,_(C)})}),c}}class Ox extends oa{constructor(r){super(r),this.buttonView=new $o(r),this._fileInputView=new X8(r),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class X8 extends oa{constructor(r){super(r),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const c=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:c.to("acceptedType"),multiple:c.to("allowMultipleFiles")},on:{change:c.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}const B5="abcdefghijklmnopqrstuvwxyz0123456789";class tA{constructor(r,c,u){this.loader=r,this.url=c,this.t=u}upload(){return this.loader.file.then(r=>new Promise((c,u)=>{this._initRequest(),this._initListeners(c,u,r),this._sendRequest(r)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const r=this.xhr=new XMLHttpRequest;r.open("POST",this.url,!0),r.responseType="json"}_initListeners(r,c,u){const _=this.xhr,C=this.loader,M=(0,this.t)("Cannot upload file:")+` ${u.name}.`;_.addEventListener("error",()=>c(M)),_.addEventListener("abort",()=>c()),_.addEventListener("load",()=>{const E=_.response;if(!E||!E.uploaded)return c(E&&E.error&&E.error.message?E.error.message:M);r({default:E.url})}),_.upload&&_.upload.addEventListener("progress",E=>{E.lengthComputable&&(C.uploadTotal=E.total,C.uploaded=E.loaded)})}_sendRequest(r){const c=new FormData;c.append("upload",r),c.append("ckCsrfToken",function Y5(){let m=function(u){u=u.toLowerCase();const _=document.cookie.split(";");for(const C of _){const M=C.split("=");if(decodeURIComponent(M[0].trim().toLowerCase())===u)return decodeURIComponent(M[1])}return null}("ckCsrfToken");var c;return m&&40==m.length||(m=function(u){let _="";const C=new Uint8Array(40);window.crypto.getRandomValues(C);for(let M=0;M.5?E.toUpperCase():E}return _}(),c=m,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(c)+";path=/"),m}()),this.xhr.send(c)}}function qp(m,r,c,u){let _,C=null;"function"==typeof u?_=u:(C=m.commands.get(u),_=()=>{m.execute(u)}),m.model.document.on("change:data",(M,E)=>{if(C&&!C.isEnabled||!r.isEnabled)return;const N=os(m.model.document.selection.getRanges());if(!N.isCollapsed||E.isUndo||!E.isLocal)return;const j=Array.from(m.model.document.differ.getChanges()),K=j[0];if(1!=j.length||"insert"!==K.type||"$text"!=K.name||1!=K.length)return;const dt=K.position.parent;if(dt.is("element","codeBlock")||dt.is("element","listItem")&&"function"!=typeof u&&!["numberedList","bulletedList","todoList"].includes(u)||C&&!0===C.value)return;const Dt=dt.getChild(0),me=m.model.createRangeOn(Dt);if(!me.containsRange(N)&&!N.end.isEqual(me.end))return;const Ue=c.exec(Dt.data.substr(0,N.end.offset));Ue&&m.model.enqueueChange(qe=>{const pn=qe.createPositionAt(dt,0),Ln=qe.createPositionAt(dt,Ue[0].length),pi=new Xu(pn,Ln);if(!1!==_({match:Ue})){qe.remove(pi);const Ri=m.model.document.selection.getFirstRange(),Go=qe.createRangeIn(dt);!dt.isEmpty||Go.isEqual(Ri)||Go.containsRange(Ri,!0)||qe.remove(dt)}pi.detach(),m.model.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})})})}function f2(m,r,c,u){let _,C;c instanceof RegExp?_=c:C=c,C=C||(M=>{let E;const N=[],j=[];for(;null!==(E=_.exec(M))&&!(E&&E.length<4);){let{index:K,1:dt,2:Dt,3:me}=E;K+=E[0].length-(dt+Dt+me).length;const pn=[K+dt.length+Dt.length,K+dt.length+Dt.length+me.length];N.push([K,K+dt.length]),N.push(pn),j.push([K+dt.length,K+dt.length+Dt.length])}return{remove:N,format:j}}),m.model.document.on("change:data",(M,E)=>{if(E.isUndo||!E.isLocal||!r.isEnabled)return;const N=m.model,j=N.document.selection;if(!j.isCollapsed)return;const K=Array.from(N.document.differ.getChanges()),dt=K[0];if(1!=K.length||"insert"!==dt.type||"$text"!=dt.name||1!=dt.length)return;const Dt=j.focus,me=Dt.parent,{text:Ue,range:qe}=function(Ri,Go){let ka=Ri.start;return{text:Array.from(Ri.getItems()).reduce(($r,Il)=>!Il.is("$text")&&!Il.is("$textProxy")||Il.getAttribute("code")?(ka=Go.createPositionAfter(Il),""):$r+Il.data,""),range:Go.createRange(ka,Ri.end)}}(N.createRange(N.createPositionAt(me,0),Dt),N),pn=C(Ue),Ln=V5(qe.start,pn.format,N),pi=V5(qe.start,pn.remove,N);Ln.length&&pi.length&&N.enqueueChange(Ri=>{if(!1!==u(Ri,Ln)){for(const Go of pi.reverse())Ri.remove(Go);N.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})}})})}function V5(m,r,c){return r.filter(u=>void 0!==u[0]&&void 0!==u[1]).map(u=>c.createRange(m.getShiftedBy(u[0]),m.getShiftedBy(u[1])))}function jh(m,r){return(c,u)=>{if(!m.commands.get(r).isEnabled)return!1;const _=m.model.schema.getValidRanges(u,r);for(const C of _)c.setAttribute(r,!0,C);c.removeSelectionAttribute(r)}}class Ex extends Ua{constructor(r,c){super(r),this.attributeKey=c}refresh(){const r=this.editor.model,c=r.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=r.schema.checkAttributeInSelection(c.selection,this.attributeKey)}execute(r={}){const c=this.editor.model,u=c.document.selection,_=void 0===r.forceValue?!this.value:r.forceValue;c.change(C=>{if(u.isCollapsed)_?C.setSelectionAttribute(this.attributeKey,!0):C.removeSelectionAttribute(this.attributeKey);else{const M=c.schema.getValidRanges(u.getRanges(),this.attributeKey);for(const E of M)_?C.setAttribute(this.attributeKey,_,E):C.removeAttribute(this.attributeKey,E)}})}_getValueFromFirstAllowedNode(){const r=this.editor.model,c=r.schema,u=r.document.selection;if(u.isCollapsed)return u.hasAttribute(this.attributeKey);for(const _ of u.getRanges())for(const C of _.getItems())if(c.checkAttribute(C,this.attributeKey))return C.hasAttribute(this.attributeKey);return!1}}const Jh="bold";class j5 extends lo{static get pluginName(){return"BoldEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:Jh}),r.model.schema.setAttributeProperties(Jh,{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:Jh,view:"strong",upcastAlso:["b",c=>{const u=c.getStyle("font-weight");return u&&("bold"==u||Number(u)>=600)?{name:!0,styles:["font-weight"]}:null}]}),r.commands.add(Jh,new Ex(r,Jh)),r.keystrokes.set("CTRL+B",Jh)}}const J5="bold";class G5 extends lo{static get pluginName(){return"BoldUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(J5,u=>{const _=r.commands.get(J5),C=new $o(u);return C.set({label:c("Bold"),icon:hs.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),C.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(C,"execute",()=>{r.execute(J5),r.editing.view.focus()}),C})}}var xf=v(8603);Fo()(xf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Gh="italic";class oy extends lo{static get pluginName(){return"ItalicEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:Gh}),r.model.schema.setAttributeProperties(Gh,{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:Gh,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),r.commands.add(Gh,new Ex(r,Gh)),r.keystrokes.set("CTRL+I",Gh)}}const W0="italic";class V4 extends lo{static get pluginName(){return"ItalicUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(W0,u=>{const _=r.commands.get(W0),C=new $o(u);return C.set({label:c("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),C.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(C,"execute",()=>{r.execute(W0),r.editing.view.focus()}),C})}}class eA extends Ua{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const c=this.editor.model,u=c.schema,C=Array.from(c.document.selection.getSelectedBlocks()),M=void 0===r.forceValue?!this.value:r.forceValue;c.change(E=>{if(M){const N=C.filter(j=>Cf(j)||Q5(u,j));this._applyQuote(E,N)}else this._removeQuote(E,C.filter(Cf))})}_getValue(){const r=os(this.editor.model.document.selection.getSelectedBlocks());return!(!r||!Cf(r))}_checkEnabled(){if(this.value)return!0;const c=this.editor.model.schema,u=os(this.editor.model.document.selection.getSelectedBlocks());return!!u&&Q5(c,u)}_removeQuote(r,c){Ix(r,c).reverse().forEach(u=>{if(u.start.isAtStart&&u.end.isAtEnd)return void r.unwrap(u.start.parent);if(u.start.isAtStart){const C=r.createPositionBefore(u.start.parent);return void r.move(u,C)}u.end.isAtEnd||r.split(u.end);const _=r.createPositionAfter(u.end.parent);r.move(u,_)})}_applyQuote(r,c){const u=[];Ix(r,c).reverse().forEach(_=>{let C=Cf(_.start);C||(C=r.createElement("blockQuote"),r.wrap(_,C)),u.push(C)}),u.reverse().reduce((_,C)=>_.nextSibling==C?(r.merge(r.createPositionAfter(_)),_):C)}}function Cf(m){return"blockQuote"==m.parent.name?m.parent:null}function Ix(m,r){let c,u=0;const _=[];for(;u{const E=r.model.document.differ.getChanges();for(const N of E)if("insert"==N.type){const j=N.position.nodeAfter;if(!j)continue;if(j.is("element","blockQuote")&&j.isEmpty)return M.remove(j),!0;if(j.is("element","blockQuote")&&!c.checkChild(N.position,j))return M.unwrap(j),!0;if(j.is("element")){const K=M.createRangeIn(j);for(const dt of K.getItems())if(dt.is("element","blockQuote")&&!c.checkChild(M.createPositionBefore(dt),dt))return M.unwrap(dt),!0}}else if("remove"==N.type){const j=N.position.parent;if(j.is("element","blockQuote")&&j.isEmpty)return M.remove(j),!0}return!1});const u=this.editor.editing.view.document,_=r.model.document.selection,C=r.commands.get("blockQuote");this.listenTo(u,"enter",(M,E)=>{!_.isCollapsed||!C.value||_.getLastPosition().parent.isEmpty&&(r.execute("blockQuote"),r.editing.view.scrollToTheSelection(),E.preventDefault(),M.stop())},{context:"blockquote"}),this.listenTo(u,"delete",(M,E)=>{if("backward"!=E.direction||!_.isCollapsed||!C.value)return;const N=_.getLastPosition().parent;N.isEmpty&&!N.previousSibling&&(r.execute("blockQuote"),r.editing.view.scrollToTheSelection(),E.preventDefault(),M.stop())},{context:"blockquote"})}}var _a=v(3062);Fo()(_a.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Fx extends lo{static get pluginName(){return"BlockQuoteUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add("blockQuote",u=>{const _=r.commands.get("blockQuote"),C=new $o(u);return C.set({label:c("Block quote"),icon:hs.quote,tooltip:!0,isToggleable:!0}),C.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(C,"execute",()=>{r.execute("blockQuote"),r.editing.view.focus()}),C})}}class Nx extends lo{static get pluginName(){return"CKBoxUI"}afterInit(){const r=this.editor,c=r.commands.get("ckbox");if(!c)return;const u=r.t;r.ui.componentFactory.add("ckbox",_=>{const C=new $o(_);return C.set({label:u("Open file manager"),icon:'',tooltip:!0}),C.bind("isOn","isEnabled").to(c,"value","isEnabled"),C.on("execute",()=>{r.execute("ckbox")}),C})}}function qx(m){const r=[];let c=0;for(const _ in m){const C=parseInt(_,10);isNaN(C)||(C>c&&(c=C),r.push(`${m[_]} ${_}w`))}const u=[{srcset:r.join(","),sizes:`(max-width: ${c}px) 100vw, ${c}px`,type:"image/webp"}];return{imageFallbackUrl:m.default,imageSources:u}}class nA extends Ua{constructor(r){super(r),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const r=this.editor.commands.get("insertImage"),c=this.editor.commands.get("link");return!(!r.isEnabled&&!c.isEnabled)}_prepareOptions(){const r=this.editor.config.get("ckbox");return{theme:r.theme,language:r.language,tokenUrl:r.tokenUrl,serviceOrigin:r.serviceOrigin,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:c=>this.fire("ckbox:choose",c)}}}_initListeners(){const r=this.editor,c=r.model,u=!r.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=tn(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null)}),this.on("ckbox:choose",(_,C)=>{if(!this.isEnabled)return;const M=r.commands.get("insertImage"),E=r.commands.get("link"),N=function({assets:j,isImageAllowed:K,isLinkAllowed:dt}){return j.map(Dt=>function(me){const Ue=me.data.metadata;return!!Ue&&Ue.width&&Ue.height}(Dt)?{id:Dt.data.id,type:"image",attributes:iA(Dt)}:{id:Dt.data.id,type:"link",attributes:oA(Dt)}).filter(Dt=>"image"===Dt.type?K:dt)}({assets:C,isImageAllowed:M.isEnabled,isLinkAllowed:E.isEnabled});0!==N.length&&c.change(j=>{for(const K of N)this._insertAsset(K,K===N[N.length-1],j),u&&(setTimeout(()=>this._chosenAssets.delete(K),1e3),this._chosenAssets.add(K))})}),this.listenTo(r,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(r,c,u){const _=this.editor.model.document.selection;u.removeSelectionAttribute("linkHref"),"image"===r.type?this._insertImage(r):this._insertLink(r,u),c||u.setSelection(_.getLastPosition())}_insertImage(r){const c=this.editor,{imageFallbackUrl:u,imageSources:_,imageTextAlternative:C}=r.attributes;c.execute("insertImage",{source:{src:u,sources:_,alt:C}})}_insertLink(r,c){const u=this.editor,_=u.model,C=_.document.selection,{linkName:M,linkHref:E}=r.attributes;if(C.isCollapsed){const N=Kc(C.getAttributes()),j=c.createText(M,N),K=_.insertContent(j);c.setSelection(K)}u.execute("link",E)}}function iA(m){const{imageFallbackUrl:r,imageSources:c}=qx(m.data.imageUrls);return{imageFallbackUrl:r,imageSources:c,imageTextAlternative:m.data.metadata.description||""}}function oA(m){return{linkName:m.data.name,linkHref:$5(m)}}function $5(m){const r=new URL(m.data.url);return r.searchParams.set("download","true"),r.toString()}var Qh=(m,r,c)=>new Promise((u,_)=>{var C=N=>{try{E(c.next(N))}catch(j){_(j)}},M=N=>{try{E(c.throw(N))}catch(j){_(j)}},E=N=>N.done?u(N.value):Promise.resolve(N.value).then(C,M);E((c=c.apply(m,r)).next())});class Rx extends lo{static get requires(){return["ImageUploadEditing","ImageUploadProgress",ip,K5]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return Qh(this,null,function*(){const r=this.editor,c=!!r.config.get("ckbox"),u=!!window.CKBox;if(!c&&!u)return;const _=r.plugins.get(ip),C=r.plugins.get(K5);_.createUploadAdapter=N=>new Hx(N,C.getToken(),r);const M=!r.config.get("ckbox.ignoreDataId"),E=r.plugins.get("ImageUploadEditing");M&&E.on("uploadComplete",(N,{imageElement:j,data:K})=>{r.model.change(dt=>{dt.setAttribute("ckboxImageId",K.ckboxImageId,j)})})})}}class Hx{constructor(r,c,u){this.loader=r,this.token=c,this.editor=u,this.controller=new AbortController,this.serviceOrigin=u.config.get("ckbox.serviceOrigin")}getWorkspaceId(){const r=(0,this.editor.t)("Cannot access default workspace."),c=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),u=function(_,C){const[,M]=_.value.split("."),E=JSON.parse(atob(M)),N=E.auth&&E.auth.ckbox&&E.auth.ckbox.workspaces||[E.aud];return C?"superadmin"==(E.auth&&E.auth.ckbox&&E.auth.ckbox.role)||N.includes(C)?C:null:N[0]}(this.token,c);if(null==u)throw wt("ckbox-access-default-workspace-error"),r;return u}getAvailableCategories(r=0){return Qh(this,null,function*(){const c=new URL("categories",this.serviceOrigin);return c.searchParams.set("limit",50..toString()),c.searchParams.set("offset",r.toString()),c.searchParams.set("workspaceId",this.getWorkspaceId()),this._sendHttpRequest({url:c}).then(u=>Qh(this,null,function*(){if(u.totalCount-(r+50)>0){const _=yield this.getAvailableCategories(r+50);return[...u.items,..._]}return u.items})).catch(()=>{this.controller.signal.throwIfAborted(),wt("ckbox-fetch-category-http-error")})})}getCategoryIdForFile(r){return Qh(this,null,function*(){const c=function(M){const E=new RegExp("\\.(?[^.]+)$");return M.match(E).groups.ext.toLowerCase()}(r.name),u=yield this.getAvailableCategories();if(!u)return null;const _=this.editor.config.get("ckbox.defaultUploadCategories");if(_){const M=Object.keys(_).find(E=>_[E].find(N=>N.toLowerCase()==c));if(M){const E=u.find(N=>N.id===M||N.name===M);return E?E.id:null}}const C=u.find(M=>M.extensions.find(E=>E.toLowerCase()==c));return C?C.id:null})}upload(){return Qh(this,null,function*(){const r=this.editor.t,c=r("Cannot determine a category for the uploaded file."),u=yield this.loader.file,_=yield this.getCategoryIdForFile(u);if(!_)return Promise.reject(c);const C=new URL("assets",this.serviceOrigin),M=new FormData;return C.searchParams.set("workspaceId",this.getWorkspaceId()),M.append("categoryId",_),M.append("file",u),this._sendHttpRequest({method:"POST",url:C,data:M,onUploadProgress:N=>{N.lengthComputable&&(this.loader.uploadTotal=N.total,this.loader.uploaded=N.loaded)}}).then(N=>Qh(this,null,function*(){const j=qx(N.imageUrls);return{ckboxImageId:N.id,default:j.imageFallbackUrl,sources:j.imageSources}})).catch(()=>{const N=r("Cannot upload file:")+` ${u.name}.`;return Promise.reject(N)})})}abort(){this.controller.abort()}_sendHttpRequest({url:r,method:c="GET",data:u,onUploadProgress:_}){const C=this.controller.signal,M=new XMLHttpRequest;M.open(c,r.toString(),!0),M.setRequestHeader("Authorization",this.token.value),M.setRequestHeader("CKBox-Version","CKEditor 5"),M.responseType="json";const E=()=>{M.abort()};return new Promise((N,j)=>{C.addEventListener("abort",E),M.addEventListener("loadstart",()=>{C.addEventListener("abort",E)}),M.addEventListener("loadend",()=>{C.removeEventListener("abort",E)}),M.addEventListener("error",()=>{j()}),M.addEventListener("abort",()=>{j()}),M.addEventListener("load",()=>Qh(this,null,function*(){const K=M.response;return!K||K.statusCode>=400?j(K&&K.message):N(K)})),_&&M.upload.addEventListener("progress",K=>{_(K)}),M.send(u)})}}class K5 extends lo{static get pluginName(){return"CKBoxEditing"}static get requires(){return["CloudServices","LinkEditing","PictureEditing",Rx]}init(){return r=this,u=function*(){const _=this.editor,C=!!_.config.get("ckbox"),M=!!window.CKBox;if(!C&&!M)return;this._initConfig();const E=_.plugins.get("CloudServicesCore"),N=_.config.get("ckbox.tokenUrl");if(N===_.config.get("cloudServices.tokenUrl")){const j=_.plugins.get("CloudServices");this._token=j.token}else this._token=yield E.createToken(N).init();_.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),M&&_.commands.add("ckbox",new nA(_))},new Promise((_,C)=>{var M=j=>{try{N(u.next(j))}catch(K){C(K)}},E=j=>{try{N(u.throw(j))}catch(K){C(K)}},N=j=>j.done?_(j.value):Promise.resolve(j.value).then(M,E);N((u=u.apply(r,null)).next())});var r,u}getToken(){return this._token}_initConfig(){const r=this.editor;if(r.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:r.locale.uiLanguage,theme:"default",tokenUrl:r.config.get("cloudServices.tokenUrl")}),!r.config.get("ckbox.tokenUrl"))throw new at("ckbox-plugin-missing-token-url",this);r.plugins.has("ImageBlockEditing")||r.plugins.has("ImageInlineEditing")||wt("ckbox-plugin-image-feature-missing",r)}_initSchema(){const r=this.editor.model.schema;r.extend("$text",{allowAttributes:"ckboxLinkId"}),r.isRegistered("imageBlock")&&r.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),r.isRegistered("imageInline")&&r.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),r.addAttributeCheck((c,u)=>{if(!c.last.getAttribute("linkHref")&&"ckboxLinkId"===u)return!1})}_initConversion(){const r=this.editor;r.conversion.for("downcast").add(c=>{c.on("attribute:ckboxLinkId:imageBlock",(u,_,C)=>{const{writer:M,mapper:E,consumable:N}=C;if(!N.consume(_.item,u.name))return;const j=[...E.toViewElement(_.item).getChildren()].find(K=>"a"===K.name);j&&(_.item.hasAttribute("ckboxLinkId")?M.setAttribute("data-ckbox-resource-id",_.item.getAttribute("ckboxLinkId"),j):M.removeAttribute("data-ckbox-resource-id",j))},{priority:"low"}),c.on("attribute:ckboxLinkId",(u,_,C)=>{const{writer:M,mapper:E,consumable:N}=C;if(N.consume(_.item,u.name)){if(_.attributeOldValue){const j=rA(M,_.attributeOldValue);M.unwrap(E.toViewRange(_.range),j)}if(_.attributeNewValue){const j=rA(M,_.attributeNewValue);_.item.is("selection")?M.wrap(M.document.selection.getFirstRange(),j):M.wrap(E.toViewRange(_.range),j)}}},{priority:"low"})}),r.conversion.for("upcast").add(c=>{c.on("element:a",(u,_,C)=>{const{writer:M,consumable:E}=C;if(!_.viewItem.getAttribute("href")||!E.consume(_.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const N=_.viewItem.getAttribute("data-ckbox-resource-id");if(N)if(_.modelRange)for(let j of _.modelRange.getItems())j.is("$textProxy")&&(j=j.textNode),sA(j)&&M.setAttribute("ckboxLinkId",N,j);else M.setAttribute("ckboxLinkId",N,_.modelCursor.nodeBefore||_.modelCursor.parent)},{priority:"low"})}),r.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),r.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:c=>c.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}})}_initFixers(){const r=this.editor,c=r.model,u=c.document.selection;var _;c.document.registerPostFixer((_=r,C=>{let M=!1;const E=_.model,N=_.commands.get("ckbox");if(!N)return M;for(const j of E.document.differ.getChanges()){if("insert"!==j.type&&"attribute"!==j.type)continue;const K="insert"===j.type?new Li(j.position,j.position.getShiftedBy(j.length)):j.range,dt="attribute"===j.type&&"linkHref"===j.attributeKey&&null===j.attributeNewValue;for(const Dt of K.getItems()){if(dt&&Dt.hasAttribute("ckboxLinkId")){C.removeAttribute("ckboxLinkId",Dt),M=!0;continue}const me=aA(Dt,N._chosenAssets);for(const Ue of me){const qe="image"===Ue.type?"ckboxImageId":"ckboxLinkId";Ue.id!==Dt.getAttribute(qe)&&(C.setAttribute(qe,Ue.id,Dt),M=!0)}}}return M})),c.document.registerPostFixer(function(_){return C=>!(_.hasAttribute("linkHref")||!_.hasAttribute("ckboxLinkId")||(C.removeSelectionAttribute("ckboxLinkId"),0))}(u))}}function aA(m,r){const c=m.is("element","imageInline")||m.is("element","imageBlock"),u=m.hasAttribute("linkHref");return[...r].filter(_=>"image"===_.type&&c?_.attributes.imageFallbackUrl===m.getAttribute("src"):"link"===_.type&&u?_.attributes.linkHref===m.getAttribute("linkHref"):void 0)}function rA(m,r){const c=m.createAttributeElement("a",{"data-ckbox-resource-id":r},{priority:5});return m.setCustomProperty("link",!0,c),c}function sA(m){return!!m.is("$text")||!(!m.is("element","imageInline")&&!m.is("element","imageBlock"))}class zx extends lo{static get pluginName(){return"CKFinderUI"}init(){const r=this.editor,u=r.t;r.ui.componentFactory.add("ckfinder",_=>{const C=r.commands.get("ckfinder"),M=new $o(_);return M.set({label:u("Insert image or file"),icon:'',tooltip:!0}),M.bind("isEnabled").to(C),M.on("execute",()=>{r.execute("ckfinder"),r.editing.view.focus()}),M})}}class Bx extends Ua{constructor(r){super(r),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const r=this.editor.commands.get("insertImage"),c=this.editor.commands.get("link");this.isEnabled=r.isEnabled||c.isEnabled}execute(){const r=this.editor,c=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=c&&"modal"!=c)throw new at("ckfinder-unknown-openermethod",r);const u=this.editor.config.get("ckfinder.options")||{};u.chooseFiles=!0;const _=u.onInit;u.language||(u.language=r.locale.uiLanguage),u.onInit=C=>{_&&_(C),C.on("files:choose",M=>{const E=M.data.files.toArray(),N=E.filter(dt=>!dt.isImage()),j=E.filter(dt=>dt.isImage());for(const dt of N)r.execute("link",dt.getUrl());const K=[];for(const dt of j){const Dt=dt.getUrl();K.push(Dt||C.request("file:getProxyUrl",{file:dt}))}K.length&&X5(r,K)}),C.on("file:choose:resizedImage",M=>{const E=M.data.resizedUrl;if(E)X5(r,[E]);else{const N=r.plugins.get("Notification"),j=r.locale.t;N.showWarning(j("Could not obtain resized image URL."),{title:j("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[c](u)}}function X5(m,r){if(m.commands.get("insertImage").isEnabled)m.execute("insertImage",{source:r});else{const c=m.plugins.get("Notification"),u=m.locale.t;c.showWarning(u("Could not insert image at the current position."),{title:u("Inserting image failed"),namespace:"ckfinder"})}}class Yx extends lo{static get pluginName(){return"CKFinderEditing"}static get requires(){return[u2,"LinkEditing"]}init(){const r=this.editor;if(!r.plugins.has("ImageBlockEditing")&&!r.plugins.has("ImageInlineEditing"))throw new at("ckfinder-missing-image-plugin",r);r.commands.add("ckfinder",new Bx(r))}}class cA extends lo{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",ip]}init(){const r=this.editor,c=r.plugins.get("CloudServices"),u=c.token,_=c.uploadUrl;if(!u)return;const C=r.plugins.get("CloudServicesCore");this._uploadGateway=C.createUploadGateway(u,_),r.plugins.get(ip).createUploadAdapter=M=>new lA(this._uploadGateway,M)}}class lA{constructor(r,c){this.uploadGateway=r,this.loader=c}upload(){return this.loader.file.then(r=>(this.fileUploader=this.uploadGateway.upload(r),this.fileUploader.on("progress",(c,u)=>{this.loader.uploadTotal=u.total,this.loader.uploaded=u.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class tb extends Ua{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}refresh(){const r=this.editor.model,c=os(r.document.selection.getSelectedBlocks());this.value=!!c&&c.is("element","paragraph"),this.isEnabled=!!c&&Vx(c,r.schema)}execute(r={}){const c=this.editor.model,_=r.selection||c.document.selection;c.canEditAt(_)&&c.change(C=>{const M=_.getSelectedBlocks();for(const E of M)!E.is("element","paragraph")&&Vx(E,c.schema)&&C.rename(E,"paragraph")})}}function Vx(m,r){return r.checkChild(m.parent,"paragraph")&&!r.isObject(m)}class uA extends Ua{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}execute(r){const c=this.editor.model,u=r.attributes;let _=r.position;c.canEditAt(_)&&c.change(C=>{if(_=this._findPositionToInsertParagraph(_,C),!_)return;const M=C.createElement("paragraph");u&&c.schema.setAllowedAttributes(M,u,C),c.insertContent(M,_),C.setSelection(M,"in")})}_findPositionToInsertParagraph(r,c){const u=this.editor.model;if(u.schema.checkChild(r,"paragraph"))return r;const _=u.schema.findAllowedParent(r,"paragraph");if(!_)return null;const C=r.parent,M=u.schema.checkChild(C,"$text");return C.isEmpty||M&&r.isAtEnd?u.createPositionAfter(C):!C.isEmpty&&M&&r.isAtStart?u.createPositionBefore(C):c.split(r,_).position}}const eb=class extends lo{static get pluginName(){return"Paragraph"}init(){const m=this.editor,r=m.model;m.commands.add("paragraph",new tb(m)),m.commands.add("insertParagraph",new uA(m)),r.schema.register("paragraph",{inheritAllFrom:"$block"}),m.conversion.elementToElement({model:"paragraph",view:"p"}),m.conversion.for("upcast").elementToElement({model:(c,{writer:u})=>eb.paragraphLikeElements.has(c.name)?c.isEmpty?null:u.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let nb=eb;nb.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class h2 extends Ua{constructor(r,c){super(r),this.modelElements=c}refresh(){const r=os(this.editor.model.document.selection.getSelectedBlocks());this.value=!!r&&this.modelElements.includes(r.name)&&r.name,this.isEnabled=!!r&&this.modelElements.some(c=>j4(r,c,this.editor.model.schema))}execute(r){const c=this.editor.model,u=c.document,_=r.value;c.change(C=>{const M=Array.from(u.selection.getSelectedBlocks()).filter(E=>j4(E,_,c.schema));for(const E of M)E.is("element",_)||C.rename(E,_)})}}function j4(m,r,c){return c.checkChild(m.parent,r)&&!c.isObject(m)}const ib="paragraph";class ob extends lo{static get pluginName(){return"HeadingEditing"}constructor(r){super(r),r.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[nb]}init(){const r=this.editor,c=r.config.get("heading.options"),u=[];for(const _ of c)"paragraph"!==_.model&&(r.model.schema.register(_.model,{inheritAllFrom:"$block"}),r.conversion.elementToElement(_),u.push(_.model));this._addDefaultH1Conversion(r),r.commands.add("heading",new h2(r,u))}afterInit(){const r=this.editor,c=r.commands.get("enter"),u=r.config.get("heading.options");c&&this.listenTo(c,"afterExecute",(_,C)=>{const M=r.model.document.selection.getFirstPosition().parent;u.some(E=>M.is("element",E.model))&&!M.is("element",ib)&&0===M.childCount&&C.writer.rename(M,ib)})}_addDefaultH1Conversion(r){r.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:St.low+1})}}var ab=v(8733);Fo()(ab.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Jx extends lo{static get pluginName(){return"HeadingUI"}init(){const r=this.editor,c=r.t,u=function(M){const E=M.t,N={Paragraph:E("Paragraph"),"Heading 1":E("Heading 1"),"Heading 2":E("Heading 2"),"Heading 3":E("Heading 3"),"Heading 4":E("Heading 4"),"Heading 5":E("Heading 5"),"Heading 6":E("Heading 6")};return M.config.get("heading.options").map(j=>{const K=N[j.title];return K&&K!=j.title&&(j.title=K),j})}(r),_=c("Choose heading"),C=c("Heading");r.ui.componentFactory.add("heading",M=>{const E={},N=new ec,j=r.commands.get("heading"),K=r.commands.get("paragraph"),dt=[j];for(const me of u){const Ue={type:"button",model:new M4({label:me.title,class:me.class,role:"menuitemradio",withText:!0})};"paragraph"===me.model?(Ue.model.bind("isOn").to(K,"value"),Ue.model.set("commandName","paragraph"),dt.push(K)):(Ue.model.bind("isOn").to(j,"value",qe=>qe===me.model),Ue.model.set({commandName:"heading",commandValue:me.model})),N.add(Ue),E[me.model]=me.title}const Dt=Op(M);return t1(Dt,N,{ariaLabel:C,role:"menu"}),Dt.buttonView.set({ariaLabel:C,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:C}),Dt.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),Dt.bind("isEnabled").toMany(dt,"isEnabled",(...me)=>me.some(Ue=>Ue)),Dt.buttonView.bind("label").to(j,"value",K,"value",(me,Ue)=>{const qe=me||Ue&&"paragraph";return"boolean"==typeof qe?_:E[qe]?E[qe]:_}),this.listenTo(Dt,"execute",me=>{const{commandName:Ue,commandValue:qe}=me.source;r.execute(Ue,qe?{value:qe}:void 0),r.editing.view.focus()}),Dt})}}function Gx(m){return m.createContainerElement("figure",{class:"image"},[m.createEmptyElement("img"),m.createSlot("children")])}function dA(m,r){const c=m.plugins.get("ImageUtils"),u=m.plugins.has("ImageInlineEditing")&&m.plugins.has("ImageBlockEditing");return C=>c.isInlineImageView(C)?u&&("block"==C.getStyle("display")||C.findAncestor(c.isBlockImageView)?"imageBlock":"imageInline")!==r?null:function _(C){const M={name:!0};return C.hasAttribute("src")&&(M.attributes=["src"]),M}(C):null}function J4(m,r){const c=os(r.getSelectedBlocks());return!c||m.isObject(c)||c.isEmpty&&"listItem"!=c.name?"imageBlock":"imageInline"}function $0(m){return m&&m.endsWith("px")?parseInt(m):null}function rb(m){const r=$0(m.getStyle("width")),c=$0(m.getStyle("height"));return!(!r||!c)}var G4=Object.defineProperty,Qx=Object.getOwnPropertySymbols,K0=Object.prototype.hasOwnProperty,pA=Object.prototype.propertyIsEnumerable,sa=(m,r,c)=>r in m?G4(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Pd=(m,r)=>{for(var c in r||(r={}))K0.call(r,c)&&sa(m,c,r[c]);if(Qx)for(var c of Qx(r))pA.call(r,c)&&sa(m,c,r[c]);return m};const mA=/^(image|image-inline)$/;class Sd extends lo{constructor(){super(...arguments),this._domEmitter=new(Xi())}static get pluginName(){return"ImageUtils"}isImage(r){return this.isInlineImage(r)||this.isBlockImage(r)}isInlineImageView(r){return!!r&&r.is("element","img")}isBlockImageView(r){return!!r&&r.is("element","figure")&&r.hasClass("image")}insertImage(r={},c=null,u=null,_={}){const C=this.editor,M=C.model,E=M.document.selection;u=Wh(C,c||E,u),r=Pd(Pd({},Object.fromEntries(E.getAttributes())),r);for(const N in r)M.schema.checkAttribute(u,N)||delete r[N];return M.change(N=>{const{setImageSizes:j=!0}=_,K=N.createElement(u,r);return M.insertObject(K,c,null,{setSelection:"on",findOptimalPosition:c||"imageInline"==u?void 0:"auto"}),K.parent?(j&&this.setImageNaturalSizeAttributes(K),K):null})}setImageNaturalSizeAttributes(r){const c=r.getAttribute("src");c&&(r.getAttribute("width")||r.getAttribute("height")||this.editor.model.change(u=>{const _=new Lt.window.Image;this._domEmitter.listenTo(_,"load",()=>{r.getAttribute("width")||r.getAttribute("height")||this.editor.model.enqueueChange(u.batch,C=>{C.setAttribute("width",_.naturalWidth,r),C.setAttribute("height",_.naturalHeight,r)}),this._domEmitter.stopListening(_,"load")}),_.src=c}))}getClosestSelectedImageWidget(r){const c=r.getFirstPosition();if(!c)return null;const u=r.getSelectedElement();if(u&&this.isImageWidget(u))return u;let _=c.parent;for(;_;){if(_.is("element")&&this.isImageWidget(_))return _;_=_.parent}return null}getClosestSelectedImageElement(r){const c=r.getSelectedElement();return this.isImage(c)?c:r.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(r){return r.findAncestor({classes:mA})}isImageAllowed(){const r=this.editor.model.document.selection;return function(c,u){if("imageBlock"==Wh(c,u,null)){const C=function(M,E){const j=q4(M,E).start.parent;return j.isEmpty&&!j.is("element","$root")?j.parent:j}(u,c.model);if(c.model.schema.checkChild(C,"imageBlock"))return!0}else if(c.model.schema.checkChild(u.focus,"imageInline"))return!0;return!1}(this.editor,r)&&[...r.focus.getAncestors()].every(u=>!u.is("element","imageBlock"))}toImageWidget(r,c,u){return c.setCustomProperty("image",!0,r),ep(r,c,{label:()=>{const _=this.findViewImgElement(r).getAttribute("alt");return _?`${_} ${u}`:u}})}isImageWidget(r){return!!r.getCustomProperty("image")&&El(r)}isBlockImage(r){return!!r&&r.is("element","imageBlock")}isInlineImage(r){return!!r&&r.is("element","imageInline")}findViewImgElement(r){if(this.isInlineImageView(r))return r;const c=this.editor.editing.view;for(const{item:u}of c.createRangeIn(r))if(this.isInlineImageView(u))return u}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function Wh(m,r,c){const u=m.model.schema,_=m.config.get("image.insert.type");return m.plugins.has("ImageBlockEditing")?m.plugins.has("ImageInlineEditing")?c||("inline"===_?"imageInline":"block"===_?"imageBlock":r.is("selection")?J4(u,r):u.checkChild(r,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class sb extends Ua{refresh(){const r=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!r,this.value=!(!this.isEnabled||!r.hasAttribute("alt"))&&r.getAttribute("alt")}execute(r){const c=this.editor,u=c.plugins.get("ImageUtils"),_=c.model,C=u.getClosestSelectedImageElement(_.document.selection);_.change(M=>{M.setAttribute("alt",r.newValue,C)})}}class Wx extends lo{static get requires(){return[Sd]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new sb(this.editor))}}var $x=v(1905);Fo()($x.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var X0=v(6764);Fo()(X0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Kx extends oa{constructor(r){super(r);const c=this.locale.t;this.focusTracker=new as,this.keystrokes=new $c,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(c("Save"),hs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(c("Cancel"),hs.cancel,"ck-button-cancel","cancel"),this._focusables=new Ia,this._focusCycler=new dl({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),x({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(r,c,u,_){const C=new $o(this.locale);return C.set({label:r,icon:c,tooltip:!0}),C.extendTemplate({attributes:{class:u}}),_&&C.delegate("execute").to(this,_),C}_createLabeledInputView(){const r=this.locale.t,c=new Sr(this.locale,uf);return c.label=r("Text alternative"),c}}function cb(m){const r=m.editing.view,c=id.defaultPositions,u=m.plugins.get("ImageUtils");return{target:r.domConverter.mapViewToDom(u.getClosestSelectedImageWidget(r.document.selection)),positions:[c.northArrowSouth,c.northArrowSouthWest,c.northArrowSouthEast,c.southArrowNorth,c.southArrowNorthWest,c.southArrowNorthEast,c.viewportStickyNorth]}}class Xx extends lo{static get requires(){return[q0]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const r=this.editor,c=r.t;r.ui.componentFactory.add("imageTextAlternative",u=>{const _=r.commands.get("imageTextAlternative"),C=new $o(u);return C.set({label:c("Change image text alternative"),icon:hs.lowVision,tooltip:!0}),C.bind("isEnabled").to(_,"isEnabled"),C.bind("isOn").to(_,"value",M=>!!M),this.listenTo(C,"execute",()=>{this._showForm()}),C})}_createForm(){const r=this.editor,c=r.editing.view.document,u=r.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(A(Kx))(r.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{r.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(_,C)=>{this._hideForm(!0),C()}),this.listenTo(r.ui,"update",()=>{u.getClosestSelectedImageWidget(c.selection)?this._isVisible&&function(_){const C=_.plugins.get("ContextualBalloon");if(_.plugins.get("ImageUtils").getClosestSelectedImageWidget(_.editing.view.document.selection)){const M=cb(_);C.updatePosition(M)}}(r):this._hideForm(!0)}),t({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const r=this.editor,c=r.commands.get("imageTextAlternative"),u=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:cb(r)}),u.fieldView.value=u.fieldView.element.value=c.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(r=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),r&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class Q4 extends lo{static get requires(){return[Wx,Xx]}static get pluginName(){return"ImageTextAlternative"}}function W4(m,r){const c=(u,_,C)=>{if(!C.consumable.consume(_.item,u.name))return;const M=C.writer,E=C.mapper.toViewElement(_.item),N=m.findViewImgElement(E);null===_.attributeNewValue?(M.removeAttribute("srcset",N),M.removeAttribute("sizes",N)):_.attributeNewValue&&(M.setAttribute("srcset",_.attributeNewValue,N),M.setAttribute("sizes","100vw",N))};return u=>{u.on(`attribute:srcset:${r}`,c)}}function $4(m,r,c){const u=(_,C,M)=>{if(!M.consumable.consume(C.item,_.name))return;const E=M.writer,N=M.mapper.toViewElement(C.item),j=m.findViewImgElement(N);E.setAttribute(C.attributeKey,C.attributeNewValue||"",j)};return _=>{_.on(`attribute:${c}:${r}`,u)}}class fA extends Qu{observe(r){this.listenTo(r,"load",(c,u)=>{const _=u.target;this.checkShouldIgnoreEventFromTarget(_)||"IMG"==_.tagName&&this._fireEvents(u)},{useCapture:!0})}stopObserving(r){this.stopListening(r)}_fireEvents(r){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",r))}}var ay=Object.defineProperty,t3=Object.getOwnPropertySymbols,lb=Object.prototype.hasOwnProperty,ub=Object.prototype.propertyIsEnumerable,K4=(m,r,c)=>r in m?ay(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Kh=(m,r)=>{for(var c in r||(r={}))lb.call(r,c)&&K4(m,c,r[c]);if(t3)for(var c of t3(r))ub.call(r,c)&&K4(m,c,r[c]);return m};class db extends Ua{constructor(r){super(r);const c=r.config.get("image.insert.type");r.plugins.has("ImageBlockEditing")||"block"===c&&Zt("image-block-plugin-required"),r.plugins.has("ImageInlineEditing")||"inline"===c&&Zt("image-inline-plugin-required")}refresh(){const r=this.editor.plugins.get("ImageUtils");this.isEnabled=r.isImageAllowed()}execute(r){const c=Ss(r.source),u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageUtils"),C=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const N=u.getSelectedElement();if("string"==typeof M&&(M={src:M}),E&&N&&_.isImage(N)){const j=this.editor.model.createPositionAfter(N);_.insertImage(Kh(Kh({},M),C),j)}else _.insertImage(Kh(Kh({},M),C))})}}class hA extends Ua{refresh(){const r=this.editor.plugins.get("ImageUtils"),c=this.editor.model.document.selection.getSelectedElement();this.isEnabled=r.isImage(c),this.value=this.isEnabled?c.getAttribute("src"):null}execute(r){const c=this.editor.model.document.selection.getSelectedElement();this.editor.model.change(u=>{u.setAttribute("src",r.source,c),u.removeAttribute("srcset",c),u.removeAttribute("sizes",c)})}}class pb extends lo{static get requires(){return[Sd]}static get pluginName(){return"ImageEditing"}init(){const r=this.editor,c=r.conversion;r.editing.view.addObserver(fA),c.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const u=new db(r),_=new hA(r);r.commands.add("insertImage",u),r.commands.add("replaceImageSource",_),r.commands.add("imageInsert",u)}}class mb extends lo{static get requires(){return[Sd]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(r){const c=this.editor,u=c.plugins.get("ImageUtils"),_="imageBlock"===r?"figure":"img";function C(M,E,N,j){M.on(`attribute:${E}:${r}`,(K,dt,Dt)=>{if(!Dt.consumable.consume(dt.item,K.name))return;const me=Dt.writer,Ue=Dt.mapper.toViewElement(dt.item),qe=u.findViewImgElement(Ue);if(null!==dt.attributeNewValue?me.setAttribute(N,dt.attributeNewValue,qe):me.removeAttribute(N,qe),dt.item.hasAttribute("sources"))return;const pn=dt.item.hasAttribute("resizedWidth");if("imageInline"===r&&!pn&&!j)return;const Ln=dt.item.getAttribute("width"),pi=dt.item.getAttribute("height"),Ri=qe.getStyle("aspect-ratio");Ln&&pi&&!Ri&&me.setStyle("aspect-ratio",`${Ln}/${pi}`,qe)})}c.conversion.for("upcast").attributeToAttribute({view:{name:_,styles:{width:/.+/}},model:{key:"width",value:M=>rb(M)?$0(M.getStyle("width")):null}}).attributeToAttribute({view:{name:_,key:"width"},model:"width"}).attributeToAttribute({view:{name:_,styles:{height:/.+/}},model:{key:"height",value:M=>rb(M)?$0(M.getStyle("height")):null}}).attributeToAttribute({view:{name:_,key:"height"},model:"height"}),c.conversion.for("editingDowncast").add(M=>{C(M,"width","width",!0),C(M,"height","height",!0)}),c.conversion.for("dataDowncast").add(M=>{C(M,"width","width",!1),C(M,"height","height",!1)})}}class _b extends Ua{constructor(r,c){super(r),this._modelElementName=c}refresh(){const r=this.editor.plugins.get("ImageUtils"),c=r.getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled="imageBlock"===this._modelElementName?r.isInlineImage(c):r.isBlockImage(c)}execute(r={}){const u=this.editor.model,_=this.editor.plugins.get("ImageUtils"),C=_.getClosestSelectedImageElement(u.document.selection),M=Object.fromEntries(C.getAttributes());return M.src||M.uploadId?u.change(E=>{const{setImageSizes:N=!0}=r,j=Array.from(u.markers).filter(Dt=>Dt.getRange().containsItem(C)),K=_.insertImage(M,u.createSelection(C,"on"),this._modelElementName,{setImageSizes:N});if(!K)return null;const dt=E.createRangeOn(K);for(const Dt of j){const me=Dt.getRange(),Ue="$graveyard"!=me.root.rootName?me.getJoined(dt,!0):dt;E.updateMarker(Dt,{range:Ue})}return{oldElement:C,newElement:K}}):null}}class e3 extends lo{static get requires(){return[pb,mb,Sd,Np]}static get pluginName(){return"ImageBlockEditing"}init(){const r=this.editor;r.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),r.plugins.has("ImageInlineEditing")&&(r.commands.add("imageTypeBlock",new _b(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const r=this.editor,c=r.t,u=r.conversion,_=r.plugins.get("ImageUtils");u.for("dataDowncast").elementToStructure({model:"imageBlock",view:(C,{writer:M})=>Gx(M)}),u.for("editingDowncast").elementToStructure({model:"imageBlock",view:(C,{writer:M})=>_.toImageWidget(Gx(M),M,c("image widget"))}),u.for("downcast").add($4(_,"imageBlock","src")).add($4(_,"imageBlock","alt")).add(W4(_,"imageBlock")),u.for("upcast").elementToElement({view:dA(r,"imageBlock"),model:(C,{writer:M})=>M.createElement("imageBlock",C.hasAttribute("src")?{src:C.getAttribute("src")}:void 0)}).add(function(C){const M=(E,N,j)=>{if(!j.consumable.test(N.viewItem,{name:!0,classes:"image"}))return;const K=C.findViewImgElement(N.viewItem);if(!K||!j.consumable.test(K,{name:!0}))return;j.consumable.consume(N.viewItem,{name:!0,classes:"image"});const dt=os(j.convertItem(K,N.modelCursor).modelRange.getItems());dt?(j.convertChildren(N.viewItem,dt),j.updateConversionResult(dt,N)):j.consumable.revert(N.viewItem,{name:!0,classes:"image"})};return E=>{E.on("element:figure",M)}}(_))}_setupClipboardIntegration(){const r=this.editor,c=r.model,u=r.editing.view,_=r.plugins.get("ImageUtils"),C=r.plugins.get("ClipboardPipeline");this.listenTo(C,"inputTransformation",(M,E)=>{const N=Array.from(E.content.getChildren());let j;if(!N.every(_.isInlineImageView))return;j=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const K=c.createSelection(j);if("imageBlock"===J4(c.schema,K)){const dt=new W1(u.document),Dt=N.map(me=>dt.createElement("figure",{class:"image"},me));E.content=dt.createDocumentFragment(Dt)}}),this.listenTo(C,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(N=>{const j=N.createRangeIn(E.content);for(const K of j.getItems())K.is("element","imageBlock")&&_.setImageNaturalSizeAttributes(K)})})}}var X4=v(3508);Fo()(X4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class tC extends lo{static get requires(){return[e3,j0,Q4]}static get pluginName(){return"ImageBlock"}}class eC extends lo{static get requires(){return[pb,mb,Sd,Np]}static get pluginName(){return"ImageInlineEditing"}init(){const r=this.editor,c=r.model.schema;c.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),c.addChildCheck((u,_)=>{if(u.endsWith("caption")&&"imageInline"===_.name)return!1}),this._setupConversion(),r.plugins.has("ImageBlockEditing")&&(r.commands.add("imageTypeInline",new _b(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const r=this.editor,c=r.t,u=r.conversion,_=r.plugins.get("ImageUtils");u.for("dataDowncast").elementToElement({model:"imageInline",view:(C,{writer:M})=>M.createEmptyElement("img")}),u.for("editingDowncast").elementToStructure({model:"imageInline",view:(C,{writer:M})=>{return _.toImageWidget((E=M).createContainerElement("span",{class:"image-inline"},E.createEmptyElement("img")),M,c("image widget"));var E}}),u.for("downcast").add($4(_,"imageInline","src")).add($4(_,"imageInline","alt")).add(W4(_,"imageInline")),u.for("upcast").elementToElement({view:dA(r,"imageInline"),model:(C,{writer:M})=>M.createElement("imageInline",C.hasAttribute("src")?{src:C.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const r=this.editor,c=r.model,u=r.editing.view,_=r.plugins.get("ImageUtils"),C=r.plugins.get("ClipboardPipeline");this.listenTo(C,"inputTransformation",(M,E)=>{const N=Array.from(E.content.getChildren());let j;if(!N.every(_.isBlockImageView))return;j=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const K=c.createSelection(j);if("imageInline"===J4(c.schema,K)){const dt=new W1(u.document),Dt=N.map(me=>1===me.childCount?(Array.from(me.getAttributes()).forEach(Ue=>dt.setAttribute(...Ue,_.findViewImgElement(me))),me.getChild(0)):me);E.content=dt.createDocumentFragment(Dt)}}),this.listenTo(C,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(N=>{const j=N.createRangeIn(E.content);for(const K of j.getItems())K.is("element","imageInline")&&_.setImageNaturalSizeAttributes(K)})})}}class gA extends lo{static get requires(){return[eC,j0,Q4]}static get pluginName(){return"ImageInline"}}class n3 extends lo{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Sd]}getCaptionFromImageModelElement(r){for(const c of r.getChildren())if(c&&c.is("element","caption"))return c;return null}getCaptionFromModelSelection(r){const c=this.editor.plugins.get("ImageUtils"),u=r.getFirstPosition().findAncestor("caption");return u&&c.isBlockImage(u.parent)?u:null}matchImageCaptionViewElement(r){const c=this.editor.plugins.get("ImageUtils");return"figcaption"==r.name&&c.isBlockImageView(r.parent)?{name:!0}:null}}class nC extends Ua{refresh(){const r=this.editor,c=r.plugins.get("ImageCaptionUtils"),u=r.plugins.get("ImageUtils");if(!r.plugins.has(e3))return this.isEnabled=!1,void(this.value=!1);const _=r.model.document.selection,C=_.getSelectedElement();if(!C){const M=c.getCaptionFromModelSelection(_);return this.isEnabled=!!M,void(this.value=!!M)}this.isEnabled=u.isImage(C),this.value=!!this.isEnabled&&!!c.getCaptionFromImageModelElement(C)}execute(r={}){const{focusCaptionOnShow:c}=r;this.editor.model.change(u=>{this.value?this._hideImageCaption(u):this._showImageCaption(u,c)})}_showImageCaption(r,c){const u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageCaptionEditing"),C=this.editor.plugins.get("ImageUtils");let M=u.getSelectedElement();const E=_._getSavedCaption(M);C.isInlineImage(M)&&(this.editor.execute("imageTypeBlock"),M=u.getSelectedElement());const N=E||r.createElement("caption");r.append(N,M),c&&r.setSelection(N,"in")}_hideImageCaption(r){const c=this.editor,u=c.model.document.selection,_=c.plugins.get("ImageCaptionEditing"),C=c.plugins.get("ImageCaptionUtils");let M,E=u.getSelectedElement();E?M=C.getCaptionFromImageModelElement(E):(M=C.getCaptionFromModelSelection(u),E=M.parent),_._saveCaption(E,M),r.setSelection(E,"on"),r.remove(M)}}class bA extends lo{constructor(r){super(r),this._savedCaptionsMap=new WeakMap}static get requires(){return[Sd,n3]}static get pluginName(){return"ImageCaptionEditing"}init(){const r=this.editor,c=r.model.schema;c.isRegistered("caption")?c.extend("caption",{allowIn:"imageBlock"}):c.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),r.commands.add("toggleImageCaption",new nC(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const r=this.editor,c=r.editing.view,u=r.plugins.get("ImageUtils"),_=r.plugins.get("ImageCaptionUtils"),C=r.t;r.conversion.for("upcast").elementToElement({view:M=>_.matchImageCaptionViewElement(M),model:"caption"}),r.conversion.for("dataDowncast").elementToElement({model:"caption",view:(M,{writer:E})=>u.isBlockImage(M.parent)?E.createContainerElement("figcaption"):null}),r.conversion.for("editingDowncast").elementToElement({model:"caption",view:(M,{writer:E})=>{if(!u.isBlockImage(M.parent))return null;const N=E.createEditableElement("figcaption");E.setCustomProperty("imageCaption",!0,N),N.placeholder=C("Enter image caption"),B({view:c,element:N,keepOnFocus:!0});const j=M.parent.getAttribute("alt");return S5(N,E,{label:j?C("Caption for image: %0",[j]):C("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const r=this.editor,c=r.plugins.get("ImageUtils"),u=r.plugins.get("ImageCaptionUtils"),_=r.commands.get("imageTypeInline"),C=r.commands.get("imageTypeBlock"),M=E=>{if(!E.return)return;const{oldElement:N,newElement:j}=E.return;if(!N)return;if(c.isBlockImage(N)){const dt=u.getCaptionFromImageModelElement(N);if(dt)return void this._saveCaption(j,dt)}const K=this._getSavedCaption(N);K&&this._saveCaption(j,K)};_&&this.listenTo(_,"execute",M,{priority:"low"}),C&&this.listenTo(C,"execute",M,{priority:"low"})}_getSavedCaption(r){const c=this._savedCaptionsMap.get(r);return c?Jr.fromJSON(c):null}_saveCaption(r,c){this._savedCaptionsMap.set(r,c.toJSON())}_registerCaptionReconversion(){const r=this.editor,c=r.model,u=r.plugins.get("ImageUtils"),_=r.plugins.get("ImageCaptionUtils");c.document.on("change:data",()=>{const C=c.document.differ.getChanges();for(const M of C){if("alt"!==M.attributeKey)continue;const E=M.range.start.nodeAfter;if(u.isBlockImage(E)){const N=_.getCaptionFromImageModelElement(E);if(!N)return;r.editing.reconvertItem(N)}}})}}class hb extends lo{static get requires(){return[n3]}static get pluginName(){return"ImageCaptionUI"}init(){const r=this.editor,c=r.editing.view,u=r.plugins.get("ImageCaptionUtils"),_=r.t;r.ui.componentFactory.add("toggleImageCaption",C=>{const M=r.commands.get("toggleImageCaption"),E=new $o(C);return E.set({icon:hs.caption,tooltip:!0,isToggleable:!0}),E.bind("isOn","isEnabled").to(M,"value","isEnabled"),E.bind("label").to(M,"value",N=>_(N?"Toggle caption off":"Toggle caption on")),this.listenTo(E,"execute",()=>{r.execute("toggleImageCaption",{focusCaptionOnShow:!0});const N=u.getCaptionFromModelSelection(r.model.document.selection);if(N){const j=r.editing.mapper.toViewElement(N);c.scrollToTheSelection(),c.change(K=>{K.addClass("image__caption_highlighted",j)})}r.editing.view.focus()}),E})}}var gb=v(2640);function Af(m){const r=m.map(c=>c.replace("+","\\+"));return new RegExp(`^image\\/(${r.join("|")})$`)}function vA(m){return new Promise((r,c)=>{const u=m.getAttribute("src");fetch(u).then(_=>_.blob()).then(_=>{const C=iC(_,u),M=C.replace("image/",""),E=new File([_],`image.${M}`,{type:C});r(E)}).catch(_=>{return _&&"TypeError"===_.name?(C=u,(M=C,new Promise((E,N)=>{const j=Lt.document.createElement("img");j.addEventListener("load",()=>{const K=Lt.document.createElement("canvas");K.width=j.width,K.height=j.height,K.getContext("2d").drawImage(j,0,0),K.toBlob(dt=>dt?E(dt):N())}),j.addEventListener("error",()=>N()),j.src=M})).then(M=>{const E=iC(M,C),N=E.replace("image/","");return new File([M],`image.${N}`,{type:E})})).then(r).catch(c):c(_);var C,M})})}function iC(m,r){return m.type?m.type:r.match(/data:(image\/\w+);base64/)?r.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}Fo()(gb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class bb extends lo{static get pluginName(){return"ImageUploadUI"}init(){const r=this.editor,c=r.t,u=_=>{const C=new Ox(_),M=r.commands.get("uploadImage"),E=r.config.get("image.upload.types"),N=Af(E);return C.set({acceptedType:E.map(j=>`image/${j}`).join(","),allowMultipleFiles:!0}),C.buttonView.set({label:c("Insert image"),icon:hs.image,tooltip:!0}),C.buttonView.bind("isEnabled").to(M),C.on("done",(j,K)=>{const dt=Array.from(K).filter(Dt=>N.test(Dt.type));dt.length&&(r.execute("uploadImage",{file:dt}),r.editing.view.focus())}),C};r.ui.componentFactory.add("uploadImage",u),r.ui.componentFactory.add("imageUpload",u)}}var xA=v(3689);Fo()(xA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var vb=v(4036);Fo()(vb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var xb=v(3773);Fo()(xb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class CA extends lo{constructor(r){super(r),this.uploadStatusChange=(c,u,_)=>{const C=this.editor,M=u.item,E=M.getAttribute("uploadId");if(!_.consumable.consume(u.item,c.name))return;const N=C.plugins.get("ImageUtils"),j=C.plugins.get(ip),K=E?u.attributeNewValue:null,dt=this.placeholder,Dt=C.editing.mapper.toViewElement(M),me=_.writer;if("reading"==K)return Cb(Dt,me),void aC(N,dt,Dt,me);if("uploading"==K){const Ue=j.loaders.get(E);return Cb(Dt,me),void(Ue?(rC(Dt,me),function(qe,pn,Ln,pi){const Ri=function(Go){const ka=Go.createUIElement("div",{class:"ck-progress-bar"});return Go.setCustomProperty("progressBar",!0,ka),ka}(pn);pn.insert(pn.createPositionAt(qe,"end"),Ri),Ln.on("change:uploadedPercent",(Go,ka,Ts)=>{pi.change($r=>{$r.setStyle("width",Ts+"%",Ri)})})}(Dt,me,Ue,C.editing.view),function(qe,pn,Ln,pi){if(pi.data){const Ri=qe.findViewImgElement(pn);Ln.setAttribute("src",pi.data,Ri)}}(N,Dt,me,Ue)):aC(N,dt,Dt,me))}"complete"==K&&j.loaders.get(E)&&function(Ue,qe,pn){const Ln=qe.createUIElement("div",{class:"ck-image-upload-complete-icon"});qe.insert(qe.createPositionAt(Ue,"end"),Ln),setTimeout(()=>{pn.change(pi=>pi.remove(pi.createRangeOn(Ln)))},3e3)}(Dt,me,C.editing.view),i3(Dt,me,"progressBar"),rC(Dt,me),me.removeClass("ck-appear",Dt)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}init(){const r=this.editor;r.plugins.has("ImageBlockEditing")&&r.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),r.plugins.has("ImageInlineEditing")&&r.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function Cb(m,r){m.hasClass("ck-appear")||r.addClass("ck-appear",m)}function aC(m,r,c,u){c.hasClass("ck-image-upload-placeholder")||u.addClass("ck-image-upload-placeholder",c);const _=m.findViewImgElement(c);_.getAttribute("src")!==r&&u.setAttribute("src",r,_),sC(c,"placeholder")||u.insert(u.createPositionAfter(_),function(C){const M=C.createUIElement("div",{class:"ck-upload-placeholder-loader"});return C.setCustomProperty("placeholder",!0,M),M}(u))}function rC(m,r){m.hasClass("ck-image-upload-placeholder")&&r.removeClass("ck-image-upload-placeholder",m),i3(m,r,"placeholder")}function sC(m,r){for(const c of m.getChildren())if(c.getCustomProperty(r))return c}function i3(m,r,c){const u=sC(m,c);u&&r.remove(r.createRangeOn(u))}var cC=Object.defineProperty,lC=Object.defineProperties,e6=Object.getOwnPropertyDescriptors,n6=Object.getOwnPropertySymbols,ry=Object.prototype.hasOwnProperty,Ab=Object.prototype.propertyIsEnumerable,uC=(m,r,c)=>r in m?cC(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class dC extends Ua{refresh(){const r=this.editor,c=r.plugins.get("ImageUtils"),u=r.model.document.selection.getSelectedElement();this.isEnabled=c.isImageAllowed()||c.isImage(u)}execute(r){const c=Ss(r.file),u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageUtils"),C=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const N=u.getSelectedElement();if(E&&N&&_.isImage(N)){const j=this.editor.model.createPositionAfter(N);this._uploadImage(M,C,j)}else this._uploadImage(M,C)})}_uploadImage(r,c,u){const _=this.editor,C=_.plugins.get(ip).createLoader(r),M=_.plugins.get("ImageUtils");var E;C&&M.insertImage((E=((j,K)=>{for(var dt in K||(K={}))ry.call(K,dt)&&uC(j,dt,K[dt]);if(n6)for(var dt of n6(K))Ab.call(K,dt)&&uC(j,dt,K[dt]);return j})({},c),lC(E,e6({uploadId:C.id}))),u)}}class yf extends lo{constructor(r){super(r),r.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}static get requires(){return[ip,u2,Np,Sd]}static get pluginName(){return"ImageUploadEditing"}init(){const r=this.editor,c=r.model.document,u=r.conversion,_=r.plugins.get(ip),C=r.plugins.get("ImageUtils"),M=r.plugins.get("ClipboardPipeline"),E=Af(r.config.get("image.upload.types")),N=new dC(r);r.commands.add("uploadImage",N),r.commands.add("imageUpload",N),u.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(r.editing.view.document,"clipboardInput",(j,K)=>{if(dt=K.dataTransfer,Array.from(dt.types).includes("text/html")&&""!==dt.getData("text/html"))return;var dt;const Dt=Array.from(K.dataTransfer.files).filter(me=>!!me&&E.test(me.type));Dt.length&&(j.stop(),r.model.change(me=>{K.targetRanges&&me.setSelection(K.targetRanges.map(Ue=>r.editing.mapper.toModelRange(Ue))),r.execute("uploadImage",{file:Dt})}))}),this.listenTo(M,"inputTransformation",(j,K)=>{const dt=Array.from(r.editing.view.createRangeIn(K.content)).map(me=>me.item).filter(me=>{return!(!C.isInlineImageView(qe=me)||!qe.getAttribute("src")||!qe.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!qe.getAttribute("src").match(/^blob:/g)||me.getAttribute("uploadProcessed"));var qe}).map(me=>({promise:vA(me),imageElement:me}));if(!dt.length)return;const Dt=new W1(r.editing.view.document);for(const me of dt){Dt.setAttribute("uploadProcessed",!0,me.imageElement);const Ue=_.createLoader(me.promise);Ue&&(Dt.setAttribute("src","",me.imageElement),Dt.setAttribute("uploadId",Ue.id,me.imageElement))}}),r.editing.view.document.on("dragover",(j,K)=>{K.preventDefault()}),c.on("change",()=>{const j=c.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),K=new Set;for(const dt of j)if("insert"==dt.type&&"$text"!=dt.name){const Dt=dt.position.nodeAfter,me="$graveyard"==dt.position.root.rootName;for(const Ue of AA(r,Dt)){const qe=Ue.getAttribute("uploadId");if(!qe)continue;const pn=_.loaders.get(qe);pn&&(me?K.has(qe)||pn.abort():(K.add(qe),this._uploadImageElements.set(qe,Ue),"idle"==pn.status&&this._readAndUpload(pn)))}}}),this.on("uploadComplete",(j,{imageElement:K,data:dt})=>{const Dt=dt.urls?dt.urls:dt;this.editor.model.change(me=>{me.setAttribute("src",Dt.default,K),this._parseAndSetSrcsetAttributeOnImage(Dt,K,me),C.setImageNaturalSizeAttributes(K)})},{priority:"low"})}afterInit(){const r=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&r.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&r.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(r){const c=this.editor,u=c.model,_=c.locale.t,C=c.plugins.get(ip),M=c.plugins.get(u2),E=c.plugins.get("ImageUtils"),N=this._uploadImageElements;return u.enqueueChange({isUndoable:!1},K=>{K.setAttribute("uploadStatus","reading",N.get(r.id))}),r.read().then(()=>{const K=r.upload(),dt=N.get(r.id);if(D_isSafari){const Dt=c.editing.mapper.toViewElement(dt),me=E.findViewImgElement(Dt);c.editing.view.once("render",()=>{if(!me.parent)return;const Ue=c.editing.view.domConverter.mapViewToDom(me.parent);if(!Ue)return;const qe=Ue.style.display;Ue.style.display="none",Ue._ckHack=Ue.offsetHeight,Ue.style.display=qe})}return u.enqueueChange({isUndoable:!1},Dt=>{Dt.setAttribute("uploadStatus","uploading",dt)}),K}).then(K=>{u.enqueueChange({isUndoable:!1},dt=>{const Dt=N.get(r.id);dt.setAttribute("uploadStatus","complete",Dt),this.fire("uploadComplete",{data:K,imageElement:Dt})}),j()}).catch(K=>{if("error"!==r.status&&"aborted"!==r.status)throw K;"error"==r.status&&K&&M.showWarning(K,{title:_("Upload failed"),namespace:"upload"}),u.enqueueChange({isUndoable:!1},dt=>{dt.remove(N.get(r.id))}),j()});function j(){u.enqueueChange({isUndoable:!1},K=>{const dt=N.get(r.id);K.removeAttribute("uploadId",dt),K.removeAttribute("uploadStatus",dt),N.delete(r.id)}),C.destroyLoader(r)}}_parseAndSetSrcsetAttributeOnImage(r,c,u){let _=0;const C=Object.keys(r).filter(M=>{const E=parseInt(M,10);if(!isNaN(E))return _=Math.max(_,E),!0}).map(M=>`${r[M]} ${M}w`).join(", ");if(""!=C){const M={srcset:C};c.hasAttribute("width")||c.hasAttribute("height")||(M.width=_),u.setAttributes(M,c)}}}function AA(m,r){const c=m.plugins.get("ImageUtils");return Array.from(m.model.createRangeOn(r)).filter(u=>c.isImage(u.item)).map(u=>u.item)}var o3=v(1568);Fo()(o3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var pC=v(3535);Fo()(pC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var yA=v(6270);Fo()(yA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class wA extends Ua{constructor(r,c){super(r),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(c.map(u=>{if(u.isDefault)for(const _ of u.modelElements)this._defaultStyles[_]=u.name;return[u.name,u]}))}refresh(){const r=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!r,this.value=!!this.isEnabled&&(r.hasAttribute("imageStyle")?r.getAttribute("imageStyle"):this._defaultStyles[r.name])}execute(r={}){const c=this.editor,u=c.model,_=c.plugins.get("ImageUtils");u.change(C=>{const M=r.value,{setImageSizes:E=!0}=r;let N=_.getClosestSelectedImageElement(u.document.selection);M&&this.shouldConvertImageType(M,N)&&(this.editor.execute(_.isBlockImage(N)?"imageTypeInline":"imageTypeBlock",{setImageSizes:E}),N=_.getClosestSelectedImageElement(u.document.selection)),!M||this._styles.get(M).isDefault?C.removeAttribute("imageStyle",N):C.setAttribute("imageStyle",M,N),E&&_.setImageNaturalSizeAttributes(N)})}shouldConvertImageType(r,c){return!this._styles.get(r).modelElements.includes(c.name)}}var UA=Object.defineProperty,Tb=Object.getOwnPropertySymbols,wb=Object.prototype.hasOwnProperty,ZA=Object.prototype.propertyIsEnumerable,i6=(m,r,c)=>r in m?UA(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Ub=(m,r)=>{for(var c in r||(r={}))wb.call(r,c)&&i6(m,c,r[c]);if(Tb)for(var c of Tb(r))ZA.call(r,c)&&i6(m,c,r[c]);return m};const{objectFullWidth:o6,objectInline:mC,objectLeft:Zb,objectRight:Mb,objectCenter:a3,objectBlockLeft:kb,objectBlockRight:Db}=hs,tg={get inline(){return{name:"inline",title:"In line",icon:mC,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:Zb,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:kb,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:a3,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:Mb,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Db,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:a3,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:Mb,modelElements:["imageBlock"],className:"image-style-side"}}},Pb={full:o6,left:kb,right:Db,center:a3,inlineLeft:Zb,inlineRight:Mb,inline:mC},_C=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function MA(m){Zt("image-style-configuration-definition-invalid",m)}const r3={normalizeStyles:function(m){return(m.configuredStyles.options||[]).map(r=>{return"string"==typeof(c="string"==typeof(c=r)?tg[c]?Ub({},tg[c]):{name:c}:function(u,_){const C=Ub({},_);for(const M in u)Object.prototype.hasOwnProperty.call(_,M)||(C[M]=u[M]);return C}(tg[c.name],c)).icon&&(c.icon=Pb[c.icon]||c.icon),c;var c}).filter(r=>function(c,{isBlockPluginLoaded:u,isInlinePluginLoaded:_}){const{modelElements:C,name:M}=c;if(!(C&&C.length&&M))return MA({style:c}),!1;{const E=[u?"imageBlock":null,_?"imageInline":null];if(!C.some(N=>E.includes(N)))return Zt("image-style-missing-dependency",{style:c,missingPlugins:C.map(N=>"imageBlock"===N?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}(r,m))},getDefaultStylesConfiguration:function(m,r){return m&&r?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:m?{options:["block","side"]}:r?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(m){return m.has("ImageBlockEditing")&&m.has("ImageInlineEditing")?[..._C]:[]},warnInvalidStyle:MA,DEFAULT_OPTIONS:tg,DEFAULT_ICONS:Pb,DEFAULT_DROPDOWN_DEFINITIONS:_C};function kA(m,r){for(const c of r)if(c.name===m)return c}class fC extends lo{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Sd]}init(){const{normalizeStyles:r,getDefaultStylesConfiguration:c}=r3,u=this.editor,_=u.plugins.has("ImageBlockEditing"),C=u.plugins.has("ImageInlineEditing");u.config.define("image.styles",c(_,C)),this.normalizedStyles=r({configuredStyles:u.config.get("image.styles"),isBlockPluginLoaded:_,isInlinePluginLoaded:C}),this._setupConversion(_,C),this._setupPostFixer(),u.commands.add("imageStyle",new wA(u,this.normalizedStyles))}_setupConversion(r,c){const u=this.editor,_=u.model.schema,C=(M=this.normalizedStyles,(N,j,K)=>{if(!K.consumable.consume(j.item,N.name))return;const dt=kA(j.attributeNewValue,M),Dt=kA(j.attributeOldValue,M),me=K.mapper.toViewElement(j.item),Ue=K.writer;Dt&&Ue.removeClass(Dt.className,me),dt&&Ue.addClass(dt.className,me)});var M;const E=function(N){const j={imageInline:N.filter(K=>!K.isDefault&&K.modelElements.includes("imageInline")),imageBlock:N.filter(K=>!K.isDefault&&K.modelElements.includes("imageBlock"))};return(K,dt,Dt)=>{if(!dt.modelRange)return;const me=dt.viewItem,Ue=os(dt.modelRange.getItems());if(Ue&&Dt.schema.checkAttribute(Ue,"imageStyle"))for(const qe of j[Ue.name])Dt.consumable.consume(me,{classes:qe.className})&&Dt.writer.setAttribute("imageStyle",qe.name,Ue)}}(this.normalizedStyles);u.editing.downcastDispatcher.on("attribute:imageStyle",C),u.data.downcastDispatcher.on("attribute:imageStyle",C),r&&(_.extend("imageBlock",{allowAttributes:"imageStyle"}),u.data.upcastDispatcher.on("element:figure",E,{priority:"low"})),c&&(_.extend("imageInline",{allowAttributes:"imageStyle"}),u.data.upcastDispatcher.on("element:img",E,{priority:"low"}))}_setupPostFixer(){const r=this.editor,c=r.model.document,u=r.plugins.get(Sd),_=new Map(this.normalizedStyles.map(C=>[C.name,C]));c.registerPostFixer(C=>{let M=!1;for(const E of c.differ.getChanges())if("insert"==E.type||"attribute"==E.type&&"imageStyle"==E.attributeKey){let N="insert"==E.type?E.position.nodeAfter:E.range.start.nodeAfter;if(N&&N.is("element","paragraph")&&N.childCount>0&&(N=N.getChild(0)),!u.isImage(N))continue;const j=N.getAttribute("imageStyle");if(!j)continue;const K=_.get(j);K&&K.modelElements.includes(N.name)||(C.removeAttribute("imageStyle",N),M=!0)}return M})}}var DA=v(5083);Fo()(DA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class cy extends lo{static get requires(){return[fC]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const r=this.editor.t;return{"Wrap text":r("Wrap text"),"Break text":r("Break text"),"In line":r("In line"),"Full size image":r("Full size image"),"Side image":r("Side image"),"Left aligned image":r("Left aligned image"),"Centered image":r("Centered image"),"Right aligned image":r("Right aligned image")}}init(){const r=this.editor.plugins,c=this.editor.config.get("image.toolbar")||[],u=PA(r.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const C of u)this._createButton(C);const _=PA([...c.filter(Kt),...r3.getDefaultDropdownDefinitions(r)],this.localizedDefaultStylesTitles);for(const C of _)this._createDropdown(C,u)}_createDropdown(r,c){const u=this.editor.ui.componentFactory;u.add(r.name,_=>{let C;const{defaultItem:M,items:E,title:N}=r,j=E.filter(me=>c.find(({name:Ue})=>SA(Ue)===me)).map(me=>{const Ue=u.create(me);return me===M&&(C=Ue),Ue});E.length!==j.length&&r3.warnInvalidStyle({dropdown:r});const K=Op(_,m4),dt=K.buttonView,Dt=dt.arrowView;return e_(K,j,{enableActiveItemFocusOnDropdownOpen:!0}),dt.set({label:LA(N,C.label),class:null,tooltip:!0}),Dt.unbind("label"),Dt.set({label:N}),dt.bind("icon").toMany(j,"isOn",(...me)=>{const Ue=me.findIndex(ku);return Ue<0?C.icon:j[Ue].icon}),dt.bind("label").toMany(j,"isOn",(...me)=>{const Ue=me.findIndex(ku);return LA(N,Ue<0?C.label:j[Ue].label)}),dt.bind("isOn").toMany(j,"isOn",(...me)=>me.some(ku)),dt.bind("class").toMany(j,"isOn",(...me)=>me.some(ku)?"ck-splitbutton_flatten":void 0),dt.on("execute",()=>{j.some(({isOn:me})=>me)?K.isOpen=!K.isOpen:C.fire("execute")}),K.bind("isEnabled").toMany(j,"isEnabled",(...me)=>me.some(ku)),this.listenTo(K,"execute",()=>{this.editor.editing.view.focus()}),K})}_createButton(r){const c=r.name;this.editor.ui.componentFactory.add(SA(c),u=>{const _=this.editor.commands.get("imageStyle"),C=new $o(u);return C.set({label:r.title,icon:r.icon,tooltip:!0,isToggleable:!0}),C.bind("isEnabled").to(_,"isEnabled"),C.bind("isOn").to(_,"value",M=>M===c),C.on("execute",this._executeCommand.bind(this,c)),C})}_executeCommand(r){this.editor.execute("imageStyle",{value:r}),this.editor.editing.view.focus()}}function PA(m,r){for(const c of m)r[c.title]&&(c.title=r[c.title]);return m}function SA(m){return`imageStyle:${m}`}function LA(m,r){return(m?m+": ":"")+r}class a6 extends lo{static get pluginName(){return"IndentEditing"}init(){const r=this.editor;r.commands.add("indent",new Qp(r)),r.commands.add("outdent",new Qp(r))}}const OA='',Sb='';class s3 extends lo{static get pluginName(){return"IndentUI"}init(){const r=this.editor,c=r.locale,u=r.t,_="ltr"==c.uiLanguageDirection?OA:Sb,C="ltr"==c.uiLanguageDirection?Sb:OA;this._defineButton("indent",u("Increase indent"),_),this._defineButton("outdent",u("Decrease indent"),C)}_defineButton(r,c,u){const _=this.editor;_.ui.componentFactory.add(r,C=>{const M=_.commands.get(r),E=new $o(C);return E.set({label:c,icon:u,tooltip:!0}),E.bind("isEnabled").to(M,"isEnabled"),this.listenTo(E,"execute",()=>{_.execute(r),_.editing.view.focus()}),E})}}class hC{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(r){Array.isArray(r)?r.forEach(c=>this._definitions.add(c)):this._definitions.add(r)}getDispatcher(){return r=>{r.on("attribute:linkHref",(c,u,_)=>{if(!_.consumable.test(u.item,"attribute:linkHref")||!u.item.is("selection")&&!_.schema.isInline(u.item))return;const C=_.writer,M=C.document.selection;for(const E of this._definitions){const N=C.createAttributeElement("a",E.attributes,{priority:5});E.classes&&C.addClass(E.classes,N);for(const j in E.styles)C.setStyle(j,E.styles[j],N);C.setCustomProperty("link",!0,N),E.callback(u.attributeNewValue)?u.item.is("selection")?C.wrap(M.getFirstRange(),N):C.wrap(_.mapper.toViewRange(u.range),N):C.unwrap(_.mapper.toViewRange(u.range),N)}},{priority:"high"})}}getDispatcherForLinkedImage(){return r=>{r.on("attribute:linkHref:imageBlock",(c,u,{writer:_,mapper:C})=>{const M=C.toViewElement(u.item),E=Array.from(M.getChildren()).find(N=>N.is("element","a"));for(const N of this._definitions){const j=Kc(N.attributes);if(N.callback(u.attributeNewValue)){for(const[K,dt]of j)"class"===K?_.addClass(dt,E):_.setAttribute(K,dt,E);N.classes&&_.addClass(N.classes,E);for(const K in N.styles)_.setStyle(K,N.styles[K],E)}else{for(const[K,dt]of j)"class"===K?_.removeClass(dt,E):_.removeAttribute(K,E);N.classes&&_.removeClass(N.classes,E);for(const K in N.styles)_.removeStyle(K,E)}}})}}}var ly=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const c3=function(m){return ly.test(m)};var vC="\\ud800-\\udfff",xC="["+vC+"]",Lb="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ob="\\ud83c[\\udffb-\\udfff]",CC="[^"+vC+"]",AC="(?:\\ud83c[\\udde6-\\uddff]){2}",l3="[\\ud800-\\udbff][\\udc00-\\udfff]",yC="(?:"+Lb+"|"+Ob+")?",TC="[\\ufe0e\\ufe0f]?",EA=TC+yC+"(?:\\u200d(?:"+[CC,AC,l3].join("|")+")"+TC+yC+")*",uy="(?:"+[CC+Lb+"?",Lb,AC,l3,xC].join("|")+")",IA=RegExp(Ob+"(?="+Ob+")|"+uy+EA,"g");const dy=function(r){r=Ug(r);var c=c3(r)?function(m){return c3(m)?function(m){return m.match(IA)||[]}(m):function(m){return m.split("")}(m)}(r):void 0,u=c?c[0]:r.charAt(0),_=c?function(m,r,c){var u=m.length;return P2(m,1,c=void 0===c?u:c)}(c).join(""):r.slice(1);return u.toUpperCase()+_},UC=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,ZC=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,MC=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,py=/^((\w+:(\/{2,})?)|(\W))/i,k1="Ctrl+K";function kC(m,{writer:r}){const c=r.createAttributeElement("a",{href:m},{priority:5});return r.setCustomProperty("link",!0,c),c}function u3(m){const r=String(m);return r.replace(UC,"").match(ZC)?r:"#"}function r6(m,r){return!!m&&r.checkAttribute(m.name,"linkHref")}function r1(m,r){const c=MC.test(m)?"mailto:":r,_=!!c&&!Eb(m);return m&&_?c+m:m}function Eb(m){return py.test(m)}function s6(m){window.open(m,"_blank","noopener")}class Ib extends Ua{constructor(){super(...arguments),this.manualDecorators=new ec,this.automaticDecorators=new hC}restoreManualDecoratorStates(){for(const r of this.manualDecorators)r.value=this._getDecoratorStateFromModel(r.id)}refresh(){const r=this.editor.model,c=r.document.selection,u=c.getSelectedElement()||os(c.getSelectedBlocks());r6(u,r.schema)?(this.value=u.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttribute(u,"linkHref")):(this.value=c.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttributeInSelection(c,"linkHref"));for(const _ of this.manualDecorators)_.value=this._getDecoratorStateFromModel(_.id)}execute(r,c={}){const u=this.editor.model,_=u.document.selection,C=[],M=[];for(const E in c)c[E]?C.push(E):M.push(E);u.change(E=>{if(_.isCollapsed){const N=_.getFirstPosition();if(_.hasAttribute("linkHref")){const j=DC(_);let K=gc(N,"linkHref",_.getAttribute("linkHref"),u);_.getAttribute("linkHref")===j&&(K=this._updateLinkContent(u,E,K,r)),E.setAttribute("linkHref",r,K),C.forEach(dt=>{E.setAttribute(dt,!0,K)}),M.forEach(dt=>{E.removeAttribute(dt,K)}),E.setSelection(E.createPositionAfter(K.end.nodeBefore))}else if(""!==r){const j=Kc(_.getAttributes());j.set("linkHref",r),C.forEach(dt=>{j.set(dt,!0)});const{end:K}=u.insertContent(E.createText(r,j),N);E.setSelection(K)}["linkHref",...C,...M].forEach(j=>{E.removeSelectionAttribute(j)})}else{const N=u.schema.getValidRanges(_.getRanges(),"linkHref"),j=[];for(const dt of _.getSelectedBlocks())u.schema.checkAttribute(dt,"linkHref")&&j.push(E.createRangeOn(dt));const K=j.slice();for(const dt of N)this._isRangeToUpdate(dt,j)&&K.push(dt);for(const dt of K){let Dt=dt;if(1===K.length){const me=DC(_);_.getAttribute("linkHref")===me&&(Dt=this._updateLinkContent(u,E,dt,r),E.setSelection(E.createSelection(Dt)))}E.setAttribute("linkHref",r,Dt),C.forEach(me=>{E.setAttribute(me,!0,Dt)}),M.forEach(me=>{E.removeAttribute(me,Dt)})}}})}_getDecoratorStateFromModel(r){const c=this.editor.model,u=c.document.selection,_=u.getSelectedElement();return r6(_,c.schema)?_.getAttribute(r):u.getAttribute(r)}_isRangeToUpdate(r,c){for(const u of c)if(u.containsRange(r))return!1;return!0}_updateLinkContent(r,c,u,_){const C=c.createText(_,{linkHref:_});return r.insertContent(C,u)}}function DC(m){if(m.isCollapsed){const r=m.getFirstPosition();return r.textNode&&r.textNode.data}{const r=Array.from(m.getFirstRange().getItems());if(r.length>1)return null;const c=r[0];return c.is("$text")||c.is("$textProxy")?c.data:null}}class Fb extends Ua{refresh(){const r=this.editor.model,c=r.document.selection,u=c.getSelectedElement();this.isEnabled=r6(u,r.schema)?r.schema.checkAttribute(u,"linkHref"):r.schema.checkAttributeInSelection(c,"linkHref")}execute(){const c=this.editor.model,u=c.document.selection,_=this.editor.commands.get("link");c.change(C=>{const M=u.isCollapsed?[gc(u.getFirstPosition(),"linkHref",u.getAttribute("linkHref"),c)]:c.schema.getValidRanges(u.getRanges(),"linkHref");for(const E of M)if(C.removeAttribute("linkHref",E),_)for(const N of _.manualDecorators)C.removeAttribute(N.id,E)})}}class PC extends(Ze()){constructor({id:r,label:c,attributes:u,classes:_,styles:C,defaultValue:M}){super(),this.id=r,this.set("value",void 0),this.defaultValue=M,this.label=c,this.attributes=u,this.classes=_,this.styles=C}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var Nb=v(9773);Fo()(Nb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var SC=Object.defineProperty,Rb=Object.getOwnPropertySymbols,LC=Object.prototype.hasOwnProperty,OC=Object.prototype.propertyIsEnumerable,EC=(m,r,c)=>r in m?SC(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,c6=(m,r)=>{for(var c in r||(r={}))LC.call(r,c)&&EC(m,c,r[c]);if(Rb)for(var c of Rb(r))OC.call(r,c)&&EC(m,c,r[c]);return m};const l_="automatic",Hb=/^(https?:)?\/\//;class zb extends lo{static get pluginName(){return"LinkEditing"}static get requires(){return[M5,Jv,Np]}constructor(r){super(r),r.config.define("link",{addTargetToExternalLinks:!1})}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"linkHref"}),r.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:kC}),r.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(u,_)=>kC(u3(u),_)}),r.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:u=>u.getAttribute("href")}}),r.commands.add("link",new Ib(r)),r.commands.add("unlink",new Fb(r));const c=function(u,_){const C={"Open in a new tab":u("Open in a new tab"),Downloadable:u("Downloadable")};return _.forEach(M=>("label"in M&&C[M.label]&&(M.label=C[M.label]),M)),_}(r.t,function(u){const _=[];if(u)for(const[C,M]of Object.entries(u)){const E=Object.assign({},M,{id:`link${dy(C)}`});_.push(E)}return _}(r.config.get("link.decorators")));this._enableAutomaticDecorators(c.filter(u=>u.mode===l_)),this._enableManualDecorators(c.filter(u=>"manual"===u.mode)),r.plugins.get(M5).registerAttribute("linkHref"),function(u,_,C,M){const E=u.editing.view,N=new Set;E.document.registerPostFixer(j=>{const K=u.model.document.selection;let dt=!1;if(K.hasAttribute(_)){const Dt=gc(K.getFirstPosition(),_,K.getAttribute(_),u.model),me=u.editing.mapper.toViewRange(Dt);for(const Ue of me.getItems())Ue.is("element","a")&&!Ue.hasClass(M)&&(j.addClass(M,Ue),N.add(Ue),dt=!0)}return dt}),u.conversion.for("editingDowncast").add(j=>{function K(){E.change(dt=>{for(const Dt of N.values())dt.removeClass(M,Dt),N.delete(Dt)})}j.on("insert",K,{priority:"highest"}),j.on("remove",K,{priority:"highest"}),j.on("attribute",K,{priority:"highest"}),j.on("selection",K,{priority:"highest"})})}(r,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink(),this._enableClipboardIntegration()}_enableAutomaticDecorators(r){const c=this.editor,u=c.commands.get("link").automaticDecorators;c.config.get("link.addTargetToExternalLinks")&&u.add({id:"linkIsExternal",mode:l_,callback:_=>!!_&&Hb.test(_),attributes:{target:"_blank",rel:"noopener noreferrer"}}),u.add(r),u.length&&c.conversion.for("downcast").add(u.getDispatcher())}_enableManualDecorators(r){if(!r.length)return;const c=this.editor,u=c.commands.get("link").manualDecorators;r.forEach(_=>{c.model.schema.extend("$text",{allowAttributes:_.id});const C=new PC(_);u.add(C),c.conversion.for("downcast").attributeToElement({model:C.id,view:(M,{writer:E,schema:N},{item:j})=>{if((j.is("selection")||N.isInline(j))&&M){const K=E.createAttributeElement("a",C.attributes,{priority:5});C.classes&&E.addClass(C.classes,K);for(const dt in C.styles)E.setStyle(dt,C.styles[dt],K);return E.setCustomProperty("link",!0,K),K}}}),c.conversion.for("upcast").elementToAttribute({view:c6({name:"a"},C._createPattern()),model:{key:C.id}})})}_enableLinkOpen(){const r=this.editor,c=r.editing.view.document;this.listenTo(c,"click",(u,_)=>{if(!(D_isMac?_.domEvent.metaKey:_.domEvent.ctrlKey))return;let C=_.domTarget;if("a"!=C.tagName.toLowerCase()&&(C=C.closest("a")),!C)return;const M=C.getAttribute("href");M&&(u.stop(),_.preventDefault(),s6(M))},{context:"$capture"}),this.listenTo(c,"keydown",(u,_)=>{const C=r.commands.get("link").value;C&&_.keyCode===Ka.enter&&_.altKey&&(u.stop(),s6(C))})}_enableInsertContentSelectionAttributesFixer(){const r=this.editor.model,c=r.document.selection;this.listenTo(r,"insertContent",()=>{const u=c.anchor.nodeBefore,_=c.anchor.nodeAfter;c.hasAttribute("linkHref")&&u&&u.hasAttribute("linkHref")&&(_&&_.hasAttribute("linkHref")||r.change(C=>{op(C,FC(r.schema))}))},{priority:"low"})}_enableClickingAfterLink(){const r=this.editor,c=r.model;r.editing.view.addObserver(A0);let u=!1;this.listenTo(r.editing.view.document,"mousedown",()=>{u=!0}),this.listenTo(r.editing.view.document,"selectionChange",()=>{if(!u)return;u=!1;const _=c.document.selection;if(!_.isCollapsed||!_.hasAttribute("linkHref"))return;const C=_.getFirstPosition(),M=gc(C,"linkHref",_.getAttribute("linkHref"),c);(C.isTouching(M.start)||C.isTouching(M.end))&&c.change(E=>{op(E,FC(c.schema))})})}_enableTypingOverLink(){const r=this.editor;let u=null,_=!1;this.listenTo(r.editing.view.document,"delete",()=>{_=!0},{priority:"high"}),this.listenTo(r.model,"deleteContent",()=>{const C=r.model.document.selection;C.isCollapsed||(_?_=!1:IC(r)&&function(M){const E=M.document.selection,N=E.getFirstPosition(),j=E.getLastPosition(),K=N.nodeAfter;return!!(K&&K.is("$text")&&K.hasAttribute("linkHref"))&&(K===(j.textNode||j.nodeBefore)||gc(N,"linkHref",K.getAttribute("linkHref"),M).containsRange(M.createRange(N,j),!0))}(r.model)&&(u=C.getAttributes()))},{priority:"high"}),this.listenTo(r.model,"insertContent",(C,[M])=>{_=!1,IC(r)&&u&&(r.model.change(E=>{for(const[N,j]of u)E.setAttribute(N,j,M)}),u=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const r=this.editor,c=r.model,u=c.document.selection;let C=!1,M=!1;this.listenTo(r.editing.view.document,"delete",(E,N)=>{M="backward"===N.direction},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{C=!1;const E=u.getFirstPosition(),N=u.getAttribute("linkHref");if(!N)return;const j=gc(E,"linkHref",N,c);C=j.containsPosition(E)||j.end.isEqual(E)},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{M&&(M=!1,C||r.model.enqueueChange(E=>{op(E,FC(c.schema))}))},{priority:"low"})}_enableClipboardIntegration(){const r=this.editor,c=r.model,u=this.editor.config.get("link.defaultProtocol");u&&this.listenTo(r.plugins.get("ClipboardPipeline"),"contentInsertion",(_,C)=>{c.change(M=>{const E=M.createRangeIn(C.content);for(const N of E.getItems())if(N.hasAttribute("linkHref")){const j=r1(N.getAttribute("linkHref"),u);M.setAttribute("linkHref",j,N)}})})}}function op(m,r){m.removeSelectionAttribute("linkHref");for(const c of r)m.removeSelectionAttribute(c)}function IC(m){return m.model.change(r=>r.batch).isTyping}function FC(m){return m.getDefinition("$text").allowAttributes.filter(r=>r.startsWith("link"))}var p3=v(7754);Fo()(p3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class NA extends oa{constructor(r,c){super(r),this.focusTracker=new as,this.keystrokes=new $c,this._focusables=new Ia;const u=r.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),hs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(u("Cancel"),hs.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(c),this.children=this._createFormChildren(c.manualDecorators),this._focusCycler=new dl({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const _=["ck","ck-link-form","ck-responsive-form"];c.manualDecorators.length&&_.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:_,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((r,c)=>(r[c.name]=c.isOn,r),{})}render(){super.render(),x({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const r=this.locale.t,c=new Sr(this.locale,uf);return c.label=r("Link URL"),c}_createButton(r,c,u,_){const C=new $o(this.locale);return C.set({label:r,icon:c,tooltip:!0}),C.extendTemplate({attributes:{class:u}}),_&&C.delegate("execute").to(this,_),C}_createManualDecoratorSwitches(r){const c=this.createCollection();for(const u of r.manualDecorators){const _=new As(this.locale);_.set({name:u.id,label:u.label,withText:!0}),_.bind("isOn").toMany([u,r],"value",(C,M)=>void 0===M&&void 0===C?!!u.defaultValue:!!C),_.on("execute",()=>{u.set("value",!_.isOn)}),c.add(_)}return c}_createFormChildren(r){const c=this.createCollection();if(c.add(this.urlInputView),r.length){const u=new oa;u.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(_=>({tag:"li",children:[_],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),c.add(u)}return c.add(this.saveButtonView),c.add(this.cancelButtonView),c}}var qC=v(2347);Fo()(qC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class my extends oa{constructor(r){super(r),this.focusTracker=new as,this.keystrokes=new $c,this._focusables=new Ia;const c=r.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(c("Unlink"),'',"unlink"),this.editButtonView=this._createButton(c("Edit link"),hs.pencil,"edit"),this.set("href",void 0),this._focusCycler=new dl({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(r,c,u){const _=new $o(this.locale);return _.set({label:r,icon:c,tooltip:!0}),_.delegate("execute").to(this,u),_}_createPreviewButton(){const r=new $o(this.locale),c=this.bindTemplate,u=this.t;return r.set({withText:!0,tooltip:u("Open link in new tab")}),r.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:c.to("href",_=>_&&u3(_)),target:"_blank",rel:"noopener noreferrer"}}),r.bind("label").to(this,"href",_=>_||u("This link has no URL")),r.bind("isEnabled").to(this,"href",_=>!!_),r.template.tag="a",r.template.eventListeners={},r}}const ap="link-ui";class qA extends lo{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[q0]}static get pluginName(){return"LinkUI"}init(){const r=this.editor;r.editing.view.addObserver(c4),this._balloon=r.plugins.get(q0),this._createToolbarLinkButton(),this._enableBalloonActivators(),r.conversion.for("editingDowncast").markerToHighlight({model:ap,view:{classes:["ck-fake-link-selection"]}}),r.conversion.for("editingDowncast").markerToElement({model:ap,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const r=this.editor,c=new my(r.locale),u=r.commands.get("link"),_=r.commands.get("unlink");return c.bind("href").to(u,"value"),c.editButtonView.bind("isEnabled").to(u),c.unlinkButtonView.bind("isEnabled").to(_),this.listenTo(c,"edit",()=>{this._addFormView()}),this.listenTo(c,"unlink",()=>{r.execute("unlink"),this._hideUI()}),c.keystrokes.set("Esc",(C,M)=>{this._hideUI(),M()}),c.keystrokes.set(k1,(C,M)=>{this._addFormView(),M()}),c}_createFormView(){const r=this.editor,c=r.commands.get("link"),u=r.config.get("link.defaultProtocol"),_=new(A(NA))(r.locale,c);return _.urlInputView.fieldView.bind("value").to(c,"value"),_.urlInputView.bind("isEnabled").to(c,"isEnabled"),_.saveButtonView.bind("isEnabled").to(c),this.listenTo(_,"submit",()=>{const{value:C}=_.urlInputView.fieldView.element,M=r1(C,u);r.execute("link",M,_.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(_,"cancel",()=>{this._closeFormView()}),_.keystrokes.set("Esc",(C,M)=>{this._closeFormView(),M()}),_}_createToolbarLinkButton(){const r=this.editor,c=r.commands.get("link"),u=r.t;r.ui.componentFactory.add("link",_=>{const C=new $o(_);return C.isEnabled=!0,C.label=u("Link"),C.icon='',C.keystroke=k1,C.tooltip=!0,C.isToggleable=!0,C.bind("isEnabled").to(c,"isEnabled"),C.bind("isOn").to(c,"value",M=>!!M),this.listenTo(C,"execute",()=>this._showUI(!0)),C})}_enableBalloonActivators(){const r=this.editor;this.listenTo(r.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),r.keystrokes.set(k1,(u,_)=>{_(),r.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(r,c)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),c())},{priority:"high"}),this.editor.keystrokes.set("Esc",(r,c)=>{this._isUIVisible&&(this._hideUI(),c())}),t({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const r=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=r.value||""}_closeFormView(){const r=this.editor.commands.get("link");r.restoreManualDecoratorStates(),void 0!==r.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(r=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),r&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),r&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const r=this.editor;this.stopListening(r.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),r.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const r=this.editor,c=r.editing.view.document;let u=this._getSelectedLinkElement(),_=M();const C=()=>{const E=this._getSelectedLinkElement(),N=M();u&&!E||!u&&N!==_?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),u=E,_=N};function M(){return c.selection.focus.getAncestors().reverse().find(E=>E.is("element"))}this.listenTo(r.ui,"update",C),this.listenTo(this._balloon,"change:visibleView",C)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return!!this.formView&&this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const r=this.editor.editing.view,u=r.document;let _;if(this.editor.model.markers.has(ap)){const C=Array.from(this.editor.editing.mapper.markerNameToElements(ap)),M=r.createRange(r.createPositionBefore(C[0]),r.createPositionAfter(C[C.length-1]));_=r.domConverter.viewRangeToDom(M)}else _=()=>{const C=this._getSelectedLinkElement();return C?r.domConverter.mapViewToDom(C):r.domConverter.viewRangeToDom(u.selection.getFirstRange())};return{target:_}}_getSelectedLinkElement(){const r=this.editor.editing.view,c=r.document.selection,u=c.getSelectedElement();if(c.isCollapsed||u&&El(u))return l6(c.getFirstPosition());{const _=c.getFirstRange().getTrimmed(),C=l6(_.start),M=l6(_.end);return C&&C==M&&r.createRangeIn(C).getTrimmed().isEqual(_)?C:null}}_showFakeVisualSelection(){const r=this.editor.model;r.change(c=>{const u=r.document.selection.getFirstRange();if(r.markers.has(ap))c.updateMarker(ap,{range:u});else if(u.start.isAtEnd){const _=u.start.getLastMatchingPosition(({item:C})=>!r.schema.isContent(C),{boundaries:u});c.addMarker(ap,{usingOperation:!1,affectsData:!1,range:c.createRange(_,u.end)})}else c.addMarker(ap,{usingOperation:!1,affectsData:!1,range:u})})}_hideFakeVisualSelection(){const r=this.editor.model;r.markers.has(ap)&&r.change(c=>{c.removeMarker(ap)})}}function l6(m){return m.getAncestors().find(r=>{return(c=r).is("attributeElement")&&!!c.getCustomProperty("link");var c})||null}const _y=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class u6 extends lo{static get requires(){return[r_]}static get pluginName(){return"AutoLink"}init(){const r=this.editor.model.document.selection;r.on("change:range",()=>{this.isEnabled=!r.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const r=this.editor,c=new Kv(r.model,u=>{if(!((C=u).length>4&&" "===C[C.length-1]&&" "!==C[C.length-2]))return;var C;const _=d6(u.substr(0,u.length-1));return _?{url:_}:void 0});c.on("matched:data",(u,_)=>{const{batch:C,range:M,url:E}=_;if(!C.isTyping)return;const N=M.end.getShiftedBy(-1),j=N.getShiftedBy(-E.length),K=r.model.createRange(j,N);this._applyAutoLink(E,K)}),c.bind("isEnabled").to(this)}_enableEnterHandling(){const r=this.editor,c=r.model,u=r.commands.get("enter");u&&u.on("execute",()=>{const _=c.document.selection.getFirstPosition();if(!_.parent.previousSibling)return;const C=c.createRangeIn(_.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(C)})}_enableShiftEnterHandling(){const r=this.editor,c=r.model,u=r.commands.get("shiftEnter");u&&u.on("execute",()=>{const _=c.document.selection.getFirstPosition(),C=c.createRange(c.createPositionAt(_.parent,0),_.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(C)})}_checkAndApplyAutoLinkOnRange(r){const c=this.editor.model,{text:u,range:_}=L4(r,c),C=d6(u);if(C){const M=c.createRange(_.end.getShiftedBy(-C.length),_.end);this._applyAutoLink(C,M)}}_applyAutoLink(r,c){const u=this.editor.model,_=r1(r,this.editor.config.get("link.defaultProtocol"));var M;this.isEnabled&&(M=u).schema.checkAttributeInSelection(M.createSelection(c),"linkHref")&&Eb(_)&&!function(C){const M=C.start.nodeAfter;return!!M&&M.hasAttribute("linkHref")}(c)&&this._persistAutoLink(_,c)}_persistAutoLink(r,c){const u=this.editor.model,_=this.editor.plugins.get("Delete");u.enqueueChange(C=>{C.setAttribute("linkHref",r,c),u.enqueueChange(()=>{_.requestUndoOnBackspace()})})}}function d6(m){const r=_y.exec(m);return r?r[2]:null}var m3=v(111);Fo()(m3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Bb=v(5730);Fo()(Bb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var _3=v(4564);function BC(m,r,c,u){const _=r.parent,C=c.mapper,M=c.writer;let E=C.toViewPosition(u.createPositionBefore(m));const N=YC(m.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:m.getAttribute("listIndent")}),j=m.previousSibling;if(N&&N.getAttribute("listIndent")==m.getAttribute("listIndent")){const K=C.toViewElement(N);E=M.breakContainer(M.createPositionAfter(K))}else if(j&&"listItem"==j.name){E=C.toViewPosition(u.createPositionAt(j,"end"));const K=C.findMappedViewAncestor(E),dt=function(Dt){for(const me of Dt.getChildren())if("ul"==me.name||"ol"==me.name)return me;return null}(K);E=dt?M.createPositionBefore(dt):M.createPositionAt(K,"end")}else E=C.toViewPosition(u.createPositionBefore(m));if(E=Vb(E),M.insert(E,_),j&&"listItem"==j.name){const K=C.toViewElement(j),dt=M.createRange(M.createPositionAt(K,0),E).getWalker({ignoreElementEnd:!0});for(const Dt of dt)if(Dt.item.is("element","li")){const me=M.breakContainer(M.createPositionBefore(Dt.item)),Ue=Dt.item.parent,qe=M.createPositionAt(r,"end");D1(M,qe.nodeBefore,qe.nodeAfter),M.move(M.createRangeOn(Ue),qe),dt._position=me}}else{const K=_.nextSibling;if(K&&(K.is("element","ul")||K.is("element","ol"))){let dt=null;for(const Dt of K.getChildren()){const me=C.toModelElement(Dt);if(!(me&&me.getAttribute("listIndent")>m.getAttribute("listIndent")))break;dt=Dt}dt&&(M.breakContainer(M.createPositionAfter(dt)),M.move(M.createRangeOn(dt.parent),M.createPositionAt(r,"end")))}}D1(M,_,_.nextSibling),D1(M,_.previousSibling,_)}function D1(m,r,c){return!r||!c||"ul"!=r.name&&"ol"!=r.name||r.name!=c.name||r.getAttribute("class")!==c.getAttribute("class")?null:m.mergeContainers(m.createPositionAfter(r))}function Vb(m){return m.getLastMatchingPosition(r=>r.item.is("uiElement"))}function YC(m,r){const c=!!r.sameIndent,u=!!r.smallerIndent,_=r.listIndent;let C=m;for(;C&&"listItem"==C.name;){const M=C.getAttribute("listIndent");if(c&&_==M||u&&_>M)return C;C="forward"===r.direction?C.nextSibling:C.previousSibling}return null}function VC(m,r,c,u){m.ui.componentFactory.add(r,_=>{const C=m.commands.get(r),M=new $o(_);return M.set({label:c,icon:u,tooltip:!0,isToggleable:!0}),M.bind("isOn","isEnabled").to(C,"value","isEnabled"),M.on("execute",()=>{m.execute(r),m.editing.view.focus()}),M})}function jC(m,r){const c=[],u=m.parent,_={ignoreElementEnd:!1,startPosition:m,shallow:!0,direction:r},C=u.getAttribute("listIndent"),M=[...new Gd(_)].filter(E=>E.item.is("element")).map(E=>E.item);for(const E of M){if(!E.is("element","listItem")||E.getAttribute("listIndent")C)){if(E.getAttribute("listType")!==u.getAttribute("listType")||E.getAttribute("listStyle")!==u.getAttribute("listStyle")||E.getAttribute("listReversed")!==u.getAttribute("listReversed")||E.getAttribute("listStart")!==u.getAttribute("listStart"))break;"backward"===r?c.unshift(E):c.push(E)}}return c}Fo()(_3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const RA=["disc","circle","square"],JC=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function GC(){const m=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||m?0:Bf.call(this)}class HA extends lo{static get pluginName(){return"ListUI"}init(){const r=this.editor.t;VC(this.editor,"numberedList",r("Numbered List"),''),VC(this.editor,"bulletedList",r("Bulleted List"),'')}}const QC={},fy={},hy={},gy=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:m,typeAttribute:r,listType:c}of gy)QC[m]=c,fy[m]=r,r&&(hy[r]=m);var zA=v(4721);Fo()(zA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var jb=v(6082);Fo()(jb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var WC=v(2417);Fo()(WC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Gb extends Ua{constructor(r,c){super(r),this._indentBy="forward"==c?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model;let u=Array.from(r.document.selection.getSelectedBlocks());r.change(_=>{const C=u[u.length-1];let M=C.nextSibling;for(;M&&"listItem"==M.name&&M.getAttribute("listIndent")>C.getAttribute("listIndent");)u.push(M),M=M.nextSibling;this._indentBy<0&&(u=u.reverse());for(const E of u){const N=E.getAttribute("listIndent")+this._indentBy;N<0?_.rename(E,"paragraph"):_.setAttribute("listIndent",N,E)}this.fire("_executeCleanup",u)})}_checkEnabled(){const r=os(this.editor.model.document.selection.getSelectedBlocks());if(!r||!r.is("element","listItem"))return!1;if(this._indentBy>0){const c=r.getAttribute("listIndent"),u=r.getAttribute("listType");let _=r.previousSibling;for(;_&&_.is("element","listItem")&&_.getAttribute("listIndent")>=c;){if(_.getAttribute("listIndent")==c)return _.getAttribute("listType")==u;_=_.previousSibling}return!1}return!0}}class g2 extends Ua{constructor(r,c){super(r),this.type=c}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const c=this.editor.model,_=Array.from(c.document.selection.getSelectedBlocks()).filter(M=>m6(M,c.schema)),C=void 0!==r.forceValue?!r.forceValue:this.value;c.change(M=>{if(C){let E=_[_.length-1].nextSibling,N=Number.POSITIVE_INFINITY,j=[];for(;E&&"listItem"==E.name&&0!==E.getAttribute("listIndent");){const K=E.getAttribute("listIndent");K=c;)C>_.getAttribute("listIndent")&&(C=_.getAttribute("listIndent")),_.getAttribute("listIndent")==C&&m[r?"unshift":"push"](_),_=_[r?"previousSibling":"nextSibling"]}}function m6(m,r){return r.checkChild(m.parent,"listItem")&&!r.isObject(m)}class Wb extends lo{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(r){return RA.includes(c=r)?"bulleted":JC.includes(c)?"numbered":null;var c}getSelectedListItems(r){return function(c){let u=[...c.document.selection.getSelectedBlocks()].filter(_=>_.is("element","listItem")).map(_=>{const C=c.change(M=>M.createPositionAt(_,0));return[...jC(C,"backward"),...jC(C,"forward")]}).flat();return u=[...new Set(u)],u}(r)}getSiblingNodes(r,c){return jC(r,c)}}function $C(m){return(r,c,u)=>{const _=u.consumable;if(!_.test(c.item,"insert")||!_.test(c.item,"attribute:listType")||!_.test(c.item,"attribute:listIndent"))return;_.consume(c.item,"insert"),_.consume(c.item,"attribute:listType"),_.consume(c.item,"attribute:listIndent");const C=c.item;BC(C,function zC(m,r){const c=r.mapper,u=r.writer,_="numbered"==m.getAttribute("listType")?"ol":"ul",C=function(E){const N=E.createContainerElement("li");return N.getFillerOffset=GC,N}(u),M=u.createContainerElement(_,null);return u.insert(u.createPositionAt(M,0),C),c.bindElements(m,C),C}(C,u),u,m)}}const $b=(m,r,c)=>{if(!c.consumable.test(r.item,m.name))return;const u=c.mapper.toViewElement(r.item),_=c.writer;_.breakContainer(_.createPositionBefore(u)),_.breakContainer(_.createPositionAfter(u)),_.rename("numbered"==r.attributeNewValue?"ol":"ul",u.parent)},Tf=(m,r,c)=>{c.consumable.consume(r.item,m.name);const u=c.mapper.toViewElement(r.item).parent,_=c.writer;D1(_,u,u.nextSibling),D1(_,u.previousSibling,u)},h3=(m,r,c)=>{if(c.consumable.test(r.item,m.name)&&"listItem"!=r.item.name){let u=c.mapper.toViewPosition(r.range.start);const _=c.writer,C=[];for(;("ul"==u.parent.name||"ol"==u.parent.name)&&(u=_.breakContainer(u),"li"==u.parent.name);){const M=u,E=_.createPositionAt(u.parent,"end");if(!M.isEqual(E)){const N=_.remove(_.createRange(M,E));C.push(N)}u=_.createPositionAfter(u.parent)}if(C.length>0){for(let M=0;M0){const N=D1(_,E,E.nextSibling);N&&N.parent==E&&u.offset--}}D1(_,u.nodeBefore,u.nodeAfter)}}},by=(m,r,c)=>{const u=c.mapper.toViewPosition(r.position);D1(c.writer,u.nodeBefore,u.nodeAfter)},vy=(m,r,c)=>{if(c.consumable.consume(r.viewItem,{name:!0})){const u=c.writer,_=u.createElement("listItem"),C=function(N){let j=0,K=N.parent;for(;K;){if(K.is("element","li"))j++;else{const dt=K.previousSibling;dt&&dt.is("element","li")&&j++}K=K.parent}return j}(r.viewItem);if(u.setAttribute("listIndent",C,_),u.setAttribute("listType",r.viewItem.parent&&"ol"==r.viewItem.parent.name?"numbered":"bulleted",_),!c.safeInsert(_,r.modelCursor))return;const E=function(N,j,K){const{writer:dt,schema:Dt}=K;let me=dt.createPositionAfter(N);for(const Ue of j)if("ul"==Ue.name||"ol"==Ue.name)me=K.convertItem(Ue,me).modelCursor;else{const qe=K.convertItem(Ue,dt.createPositionAt(N,"end")),pn=qe.modelRange.start.nodeAfter;pn&&pn.is("element")&&!Dt.checkChild(N,pn.name)&&(N=qe.modelCursor.parent.is("element","listItem")?qe.modelCursor.parent:jA(qe.modelCursor),me=dt.createPositionAfter(N))}return me}(_,r.viewItem.getChildren(),c);r.modelRange=u.createRange(r.modelCursor,E),c.updateConversionResult(_,r)}},YA=(m,r,c)=>{if(c.consumable.test(r.viewItem,{name:!0})){const u=Array.from(r.viewItem.getChildren());for(const _ of u)!_.is("element","li")&&!eg(_)&&_._remove()}},Kb=(m,r,c)=>{if(c.consumable.test(r.viewItem,{name:!0})){if(0===r.viewItem.childCount)return;const u=[...r.viewItem.getChildren()];let _=!1;for(const C of u)_&&!eg(C)&&C._remove(),eg(C)&&(_=!0)}};function Xb(m){return(r,c)=>{if(c.isPhantom)return;const u=c.modelPosition.nodeBefore;if(u&&u.is("element","listItem")){const _=c.mapper.toViewElement(u),C=_.getAncestors().find(eg),M=m.createPositionAt(_,0).getWalker();for(const E of M){if("elementStart"==E.type&&E.item.is("element","li")){c.viewPosition=E.previousPosition;break}if("elementEnd"==E.type&&E.item==C){c.viewPosition=E.nextPosition;break}}}}}const VA=function(m,[r,c]){let _,C=r.is("documentFragment")?r.getChild(0):r;if(_=c?this.createSelection(c):this.document.selection,C&&C.is("element","listItem")){const M=_.getFirstPosition();let E=null;if(M.parent.is("element","listItem")?E=M.parent:M.nodeBefore&&M.nodeBefore.is("element","listItem")&&(E=M.nodeBefore),E){const N=E.getAttribute("listIndent");if(N>0)for(;C&&C.is("element","listItem");)C._setAttribute("listIndent",C.getAttribute("listIndent")+N),C=C.nextSibling}}};function jA(m){const r=new Gd({startPosition:m});let c;do{c=r.next()}while(!c.value.item.is("element","listItem"));return c.value.item}function KC(m,r,c,u,_,C){const M=YC(r.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:m}),E=_.mapper,N=_.writer,j=M?M.getAttribute("listIndent"):null;let K;if(M)if(j==m){const dt=E.toViewElement(M).parent;K=N.createPositionAfter(dt)}else{const dt=C.createPositionAt(M,"end");K=E.toViewPosition(dt)}else K=c;K=Vb(K);for(const dt of[...u.getChildren()])eg(dt)&&(K=N.move(N.createRangeOn(dt),K).end,D1(N,dt,dt.nextSibling),D1(N,dt.previousSibling,dt))}function eg(m){return m.is("element","ol")||m.is("element","ul")}class tv extends lo{static get pluginName(){return"ListEditing"}static get requires(){return[Tm,r_,Wb]}init(){const r=this.editor;r.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const c=r.data,u=r.editing;var _;r.model.document.registerPostFixer(M=>function(E,N){const j=E.document.differ.getChanges(),K=new Map;let dt=!1;for(const qe of j)if("insert"==qe.type&&"listItem"==qe.name)Dt(qe.position);else if("insert"==qe.type&&"listItem"!=qe.name){if("$text"!=qe.name){const pn=qe.position.nodeAfter;pn.hasAttribute("listIndent")&&(N.removeAttribute("listIndent",pn),dt=!0),pn.hasAttribute("listType")&&(N.removeAttribute("listType",pn),dt=!0),pn.hasAttribute("listStyle")&&(N.removeAttribute("listStyle",pn),dt=!0),pn.hasAttribute("listReversed")&&(N.removeAttribute("listReversed",pn),dt=!0),pn.hasAttribute("listStart")&&(N.removeAttribute("listStart",pn),dt=!0);for(const Ln of Array.from(E.createRangeIn(pn)).filter(pi=>pi.item.is("element","listItem")))Dt(Ln.previousPosition)}Dt(qe.position.getShiftedBy(qe.length))}else"remove"==qe.type&&"listItem"==qe.name?Dt(qe.position):("attribute"==qe.type&&"listIndent"==qe.attributeKey||"attribute"==qe.type&&"listType"==qe.attributeKey)&&Dt(qe.range.start);for(const qe of K.values())me(qe),Ue(qe);return dt;function Dt(qe){const pn=qe.nodeBefore;if(pn&&pn.is("element","listItem")){let Ln=pn;if(K.has(Ln))return;for(let pi=Ln.previousSibling;pi&&pi.is("element","listItem");pi=Ln.previousSibling)if(Ln=pi,K.has(Ln))return;K.set(pn,Ln)}else{const Ln=qe.nodeAfter;Ln&&Ln.is("element","listItem")&&K.set(Ln,Ln)}}function me(qe){let pn=0,Ln=null;for(;qe&&qe.is("element","listItem");){const pi=qe.getAttribute("listIndent");if(pi>pn){let Ri;null===Ln?(Ln=pi-pn,Ri=pn):(Ln>pi&&(Ln=pi),Ri=pi-Ln),N.setAttribute("listIndent",Ri,qe),dt=!0}else Ln=null,pn=qe.getAttribute("listIndent")+1;qe=qe.nextSibling}}function Ue(qe){let pn=[],Ln=null;for(;qe&&qe.is("element","listItem");){const pi=qe.getAttribute("listIndent");if(Ln&&Ln.getAttribute("listIndent")>pi&&(pn=pn.slice(0,pi+1)),0!=pi)if(pn[pi]){const Ri=pn[pi];qe.getAttribute("listType")!=Ri&&(N.setAttribute("listType",Ri,qe),dt=!0)}else pn[pi]=qe.getAttribute("listType");Ln=qe,qe=qe.nextSibling}}}(r.model,M)),u.mapper.registerViewToModelLength("li",_6),c.mapper.registerViewToModelLength("li",_6),u.mapper.on("modelToViewPosition",Xb(u.view)),u.mapper.on("viewToModelPosition",(_=r.model,(M,E)=>{const N=E.viewPosition,j=N.parent,K=E.mapper;if("ul"==j.name||"ol"==j.name){if(N.isAtEnd){const dt=K.toModelElement(N.nodeBefore),Dt=K.getModelLength(N.nodeBefore);E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Dt)}else{const dt=K.toModelElement(N.nodeAfter);E.modelPosition=_.createPositionBefore(dt)}M.stop()}else if("li"==j.name&&N.nodeBefore&&("ul"==N.nodeBefore.name||"ol"==N.nodeBefore.name)){const dt=K.toModelElement(j);let Dt=1,me=N.nodeBefore;for(;me&&eg(me);)Dt+=K.getModelLength(me),me=me.previousSibling;E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Dt),M.stop()}})),c.mapper.on("modelToViewPosition",Xb(u.view)),r.conversion.for("editingDowncast").add(M=>{var E;M.on("insert",h3,{priority:"high"}),M.on("insert:listItem",$C(r.model)),M.on("attribute:listType:listItem",$b,{priority:"high"}),M.on("attribute:listType:listItem",Tf,{priority:"low"}),M.on("attribute:listIndent:listItem",(E=r.model,(N,j,K)=>{if(!K.consumable.consume(j.item,"attribute:listIndent"))return;const dt=K.mapper.toViewElement(j.item),Dt=K.writer;Dt.breakContainer(Dt.createPositionBefore(dt)),Dt.breakContainer(Dt.createPositionAfter(dt));const me=dt.parent,Ue=me.previousSibling,qe=Dt.createRangeOn(me);Dt.remove(qe),Ue&&Ue.nextSibling&&D1(Dt,Ue,Ue.nextSibling),KC(j.attributeOldValue+1,j.range.start,qe.start,dt,K,E),BC(j.item,dt,K,E);for(const pn of j.item.getChildren())K.consumable.consume(pn,"insert")})),M.on("remove:listItem",function(E){return(N,j,K)=>{const dt=K.mapper.toViewPosition(j.position).getLastMatchingPosition(Ln=>!Ln.item.is("element","li")).nodeAfter,Dt=K.writer;Dt.breakContainer(Dt.createPositionBefore(dt)),Dt.breakContainer(Dt.createPositionAfter(dt));const me=dt.parent,Ue=me.previousSibling,qe=Dt.createRangeOn(me),pn=Dt.remove(qe);Ue&&Ue.nextSibling&&D1(Dt,Ue,Ue.nextSibling),KC(K.mapper.toModelElement(dt).getAttribute("listIndent")+1,j.position,qe.start,dt,K,E);for(const Ln of Dt.createRangeIn(pn).getItems())K.mapper.unbindViewElement(Ln);N.stop()}}(r.model)),M.on("remove",by,{priority:"low"})}),r.conversion.for("dataDowncast").add(M=>{M.on("insert",h3,{priority:"high"}),M.on("insert:listItem",$C(r.model))}),r.conversion.for("upcast").add(M=>{M.on("element:ul",YA,{priority:"high"}),M.on("element:ol",YA,{priority:"high"}),M.on("element:li",Kb,{priority:"high"}),M.on("element:li",vy)}),r.model.on("insertContent",VA,{priority:"high"}),r.commands.add("numberedList",new g2(r,"numbered")),r.commands.add("bulletedList",new g2(r,"bulleted")),r.commands.add("indentList",new Gb(r,"forward")),r.commands.add("outdentList",new Gb(r,"backward"));const C=u.view.document;this.listenTo(C,"enter",(M,E)=>{const N=this.editor.model.document,j=N.selection.getLastPosition().parent;N.selection.isCollapsed&&"listItem"==j.name&&j.isEmpty&&(this.editor.execute("outdentList"),E.preventDefault(),M.stop())},{context:"li"}),this.listenTo(C,"delete",(M,E)=>{if("backward"!==E.direction)return;const N=this.editor.model.document.selection;if(!N.isCollapsed)return;const j=N.getFirstPosition();if(!j.isAtStart)return;const K=j.parent;"listItem"===K.name&&(K.previousSibling&&"listItem"===K.previousSibling.name||(this.editor.execute("outdentList"),E.preventDefault(),M.stop()))},{context:"li"}),this.listenTo(r.editing.view.document,"tab",(M,E)=>{const N=E.shiftKey?"outdentList":"indentList";this.editor.commands.get(N).isEnabled&&(r.execute(N),E.stopPropagation(),E.preventDefault(),M.stop())},{context:"li"})}afterInit(){const r=this.editor.commands,c=r.get("indent"),u=r.get("outdent");c&&c.registerChildCommand(r.get("indentList")),u&&u.registerChildCommand(r.get("outdentList"))}}function _6(m){let r=1;for(const c of m.getChildren())if("ul"==c.name||"ol"==c.name)for(const u of c.getChildren())r+=_6(u);return r}tc("Ctrl+Enter");var ev=v(1199);function XC(m,r){const c=(u,_,C)=>{if(!C.consumable.consume(_.item,u.name))return;const M=_.attributeNewValue,E=C.writer,N=C.mapper.toViewElement(_.item),j=[...N.getChildren()].find(dt=>dt.getCustomProperty("media-content"));E.remove(j);const K=m.getMediaViewElement(E,M,r);E.insert(E.createPositionAt(N,0),K)};return u=>{u.on("attribute:url:media",c)}}function f6(m,r,c,u){return m.createContainerElement("figure",{class:"media"},[r.getMediaViewElement(m,c,u),m.createSlot()])}function h6(m){const r=m.getSelectedElement();return r&&r.is("element","media")?r:null}function GA(m,r,c,u){m.change(_=>{const C=_.createElement("media",{url:r});m.insertObject(C,c,null,{setSelection:"on",findOptimalPosition:u?"auto":void 0})})}Fo()(ev.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),tc("Ctrl+Enter");class t8 extends Ua{refresh(){const r=this.editor.model,c=r.document.selection,u=h6(c);this.value=u?u.getAttribute("url"):void 0,this.isEnabled=function(_){const C=_.getSelectedElement();return!!C&&"media"===C.name}(c)||function(_,C){let E=q4(_,C).start.parent;return E.isEmpty&&!C.schema.isLimit(E)&&(E=E.parent),C.schema.checkChild(E,"media")}(c,r)}execute(r){const c=this.editor.model,u=c.document.selection,_=h6(u);_?c.change(C=>{C.setAttribute("url",r,_)}):GA(c,r,u,!0)}}class ng{constructor(r,c){const u=c.providers,_=c.extraProviders||[],C=new Set(c.removeProviders),M=u.concat(_).filter(E=>{const N=E.name;return N?!C.has(N):(Zt("media-embed-no-provider-name",{provider:E}),!1)});this.locale=r,this.providerDefinitions=M}hasMedia(r){return!!this._getMedia(r)}getMediaViewElement(r,c,u){return this._getMedia(c).getViewElement(r,u)}_getMedia(r){if(!r)return new e8(this.locale);r=r.trim();for(const c of this.providerDefinitions){const u=c.html,_=Ss(c.url);for(const C of _){const M=this._getUrlMatches(r,C);if(M)return new e8(this.locale,r,M,u)}}return null}_getUrlMatches(r,c){let u=r.match(c);if(u)return u;let _=r.replace(/^https?:\/\//,"");return u=_.match(c),u||(_=_.replace(/^www\./,""),u=_.match(c),u||null)}}class e8{constructor(r,c,u,_){this.url=this._getValidUrl(c),this._locale=r,this._match=u,this._previewRenderer=_}getViewElement(r,c){const u={};let _;if(c.renderForEditingView||c.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(u["data-oembed-url"]=this.url),c.renderForEditingView&&(u.class="ck-media__wrapper");const C=this._getPreviewHtml(c);_=r.createRawElement("div",u,(M,E)=>{E.setContentOf(M,C)})}else this.url&&(u.url=this.url),_=r.createEmptyElement(c.elementName,u);return r.setCustomProperty("media-content",!0,_),_}_getPreviewHtml(r){return this._previewRenderer?this._previewRenderer(this._match):this.url&&r.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const r=new zs,c=this._locale.t;return r.content='',r.viewBox="0 0 64 42",new Ur({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[r]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":c("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(r){return r?r.match(/^https?/)?r:"https://"+r:null}}var n8=v(7442);Fo()(n8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class nv extends lo{constructor(r){super(r),r.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:c=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:c=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:c=>{const _=c[2];return`
`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:c=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new ng(r.locale,r.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}init(){const r=this.editor,c=r.model.schema,u=r.t,_=r.conversion,C=r.config.get("mediaEmbed.previewsInData"),M=r.config.get("mediaEmbed.elementName"),E=this.registry;r.commands.add("mediaEmbed",new t8(r)),c.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),_.for("dataDowncast").elementToStructure({model:"media",view:(N,{writer:j})=>{const K=N.getAttribute("url");return f6(j,E,K,{elementName:M,renderMediaPreview:!!K&&C})}}),_.for("dataDowncast").add(XC(E,{elementName:M,renderMediaPreview:C})),_.for("editingDowncast").elementToStructure({model:"media",view:(N,{writer:j})=>{const K=N.getAttribute("url");return dt=f6(j,E,K,{elementName:M,renderForEditingView:!0}),Dt=j,me=u("media widget"),Dt.setCustomProperty("media",!0,dt),ep(dt,Dt,{label:me});var dt,Dt,me}}),_.for("editingDowncast").add(XC(E,{elementName:M,renderForEditingView:!0})),_.for("upcast").elementToElement({view:N=>["oembed",M].includes(N.name)&&N.getAttribute("url")?{name:!0}:null,model:(N,{writer:j})=>{const K=N.getAttribute("url");return E.hasMedia(K)?j.createElement("media",{url:K}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(N,{writer:j})=>{const K=N.getAttribute("data-oembed-url");return E.hasMedia(K)?j.createElement("media",{url:K}):null}}).add(N=>{N.on("element:figure",(j,K,dt)=>{if(!dt.consumable.consume(K.viewItem,{name:!0,classes:"media"}))return;const{modelRange:Dt,modelCursor:me}=dt.convertChildren(K.viewItem,K.modelCursor);K.modelRange=Dt,K.modelCursor=me,os(Dt.getItems())||dt.consumable.revert(K.viewItem,{name:!0,classes:"media"})})})}}const QA=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class WA extends lo{constructor(r){super(r),this._timeoutId=null,this._positionToInsert=null}static get requires(){return[Ax,r_,Sx]}static get pluginName(){return"AutoMediaEmbed"}init(){const r=this.editor,c=r.model.document,u=r.plugins.get("ClipboardPipeline");this.listenTo(u,"inputTransformation",()=>{const _=c.selection.getFirstRange(),C=el.fromPosition(_.start);C.stickiness="toPrevious";const M=el.fromPosition(_.end);M.stickiness="toNext",c.once("change:data",()=>{this._embedMediaBetweenPositions(C,M),C.detach(),M.detach()},{priority:"high"})}),r.commands.get("undo").on("execute",()=>{this._timeoutId&&(Lt.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(r,c){const u=this.editor,_=u.plugins.get(nv).registry,C=new Xu(r,c),M=C.getWalker({ignoreElementEnd:!0});let E="";for(const N of M)N.item.is("$textProxy")&&(E+=N.item.data);E=E.trim(),E.match(QA)&&_.hasMedia(E)&&u.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=el.fromPosition(r),this._timeoutId=Lt.window.setTimeout(()=>{u.model.change(N=>{this._timeoutId=null,N.remove(C),C.detach();let j=null;"$graveyard"!==this._positionToInsert.root.rootName&&(j=this._positionToInsert),GA(u.model,E,j,!1),this._positionToInsert.detach(),this._positionToInsert=null}),u.plugins.get(r_).requestUndoOnBackspace()},100)):C.detach()}}var i8=v(9292);Fo()(i8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ay extends oa{constructor(r,c){super(c);const u=c.t;this.focusTracker=new as,this.keystrokes=new $c,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),hs.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",_=>!!_),this.cancelButtonView=this._createButton(u("Cancel"),hs.cancel,"ck-button-cancel","cancel"),this._focusables=new Ia,this._focusCycler=new dl({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=r,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),x({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(c=>{this._focusables.add(c),this.focusTracker.add(c.element)}),this.keystrokes.listenTo(this.element);const r=c=>c.stopPropagation();this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(r){this.urlInputView.fieldView.element.value=r.trim()}isValid(){this.resetFormStatus();for(const r of this._validators){const c=r(this);if(c)return this.urlInputView.errorText=c,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const r=this.locale.t,c=new Sr(this.locale,uf),u=c.fieldView;return this._urlInputViewInfoDefault=r("Paste the media URL in the input."),this._urlInputViewInfoTip=r("Tip: Paste the URL into the content to embed faster."),c.label=r("Media URL"),c.infoText=this._urlInputViewInfoDefault,u.on("input",()=>{c.infoText=u.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=u.element.value.trim()}),c}_createButton(r,c,u,_){const C=new $o(this.locale);return C.set({label:r,icon:c,tooltip:!0}),C.extendTemplate({attributes:{class:u}}),_&&C.delegate("execute").to(this,_),C}}class $A extends lo{static get requires(){return[nv]}static get pluginName(){return"MediaEmbedUI"}init(){const r=this.editor,c=r.commands.get("mediaEmbed");r.ui.componentFactory.add("mediaEmbed",u=>{const _=Op(u);return this._setUpDropdown(_,c),_})}_setUpDropdown(r,c){const u=this.editor,_=u.t,C=r.buttonView,M=u.plugins.get(nv).registry;r.once("change:isOpen",()=>{const E=new(A(Ay))((N=u.t,j=M,[K=>{if(!K.url.length)return N("The URL must not be empty.")},K=>{if(!j.hasMedia(K.url))return N("This media URL is not supported.")}]),u.locale);var N,j;r.panelView.children.add(E),C.on("open",()=>{E.disableCssTransitions(),E.url=c.value||"",E.urlInputView.fieldView.select(),E.enableCssTransitions()},{priority:"low"}),r.on("submit",()=>{E.isValid()&&(u.execute("mediaEmbed",E.url),u.editing.view.focus())}),r.on("change:isOpen",()=>E.resetFormStatus()),r.on("cancel",()=>{u.editing.view.focus()}),E.delegate("submit","cancel").to(r),E.urlInputView.fieldView.bind("value").to(c,"value"),E.urlInputView.bind("isEnabled").to(c,"isEnabled")}),r.bind("isEnabled").to(c),C.set({label:_("Insert media"),icon:'',tooltip:!0})}}var KA=v(4652);function Ty(m){if(m.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(m){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return m;default:return null}}function XA(m,r,c){const u=r.parent,_=c.createElement(m.type),C=u.getChildIndex(r)+1;return c.insertChild(C,_,u),m.style&&c.setStyle("list-style-type",m.style,_),m.startIndex&&m.startIndex>1&&c.setAttribute("start",m.startIndex,_),_}function t7(m){const r={},c=m.getStyle("mso-list");if(c){const u=c.match(/(^|\s{1,100})l(\d+)/i),_=c.match(/\s{0,100}lfo(\d+)/i),C=c.match(/\s{0,100}level(\d+)/i);u&&_&&C&&(r.id=u[2],r.order=_[1],r.indent=parseInt(C[1]))}return r}function Uy(m){return btoa(m.match(/\w{2}/g).map(r=>String.fromCharCode(parseInt(r,16))).join(""))}Fo()(KA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Zy=//i,h=/xmlns:o="urn:schemas-microsoft-com/i;class g{constructor(r){this.document=r}isActive(r){return Zy.test(r)||h.test(r)}execute(r){const{body:c,stylesString:u}=r._parsedData;(function o8(m,r){if(!m.childCount)return;const c=new W1(m.document),u=function(M,E){const N=E.createRangeIn(M),j=new ds({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),K=[];for(const dt of N)if("elementStart"===dt.type&&j.match(dt.item)){const Dt=t7(dt.item);K.push({element:dt.item,id:Dt.id,order:Dt.order,indent:Dt.indent})}return K}(m,c);if(!u.length)return;let _=null,C=1;u.forEach((M,E)=>{const N=function(Ue,qe){if(!Ue)return!0;if(Ue.id!==qe.id)return qe.indent-Ue.indent!=1;const pn=qe.element.previousSibling;return!pn||!((Ln=pn).is("element","ol")||Ln.is("element","ul"));var Ln}(u[E-1],M),K=(Dt=M,(dt=N?null:u[E-1])?Dt.indent-dt.indent:Dt.indent-1);var dt,Dt;if(N&&(_=null,C=1),!_||0!==K){const Ue=function(qe,pn){const pi=/mso-level-number-format:([^;]{0,100});/gi,Ri=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,Go=new RegExp(`@list l${qe.id}:level${qe.indent}\\s*({[^}]*)`,"gi").exec(pn);let ka="decimal",Ts="ol",$r=null;if(Go&&Go[1]){const Il=pi.exec(Go[1]);if(Il&&Il[1]&&(ka=Il[1].trim(),Ts="bullet"!==ka&&"image"!==ka?"ol":"ul"),"bullet"===ka){const hl=function(T6){const v2=function(Uf){if(Uf.getChild(0).is("$text"))return null;for(const x2 of Uf.getChildren()){if(!x2.is("element","span"))continue;const C3=x2.getChild(0);if(C3)return C3.is("$text")?C3:C3.getChild(0)}return null}(T6);if(!v2)return null;const Rp=v2._data;return"o"===Rp?"circle":"\xb7"===Rp?"disc":"\xa7"===Rp?"square":null}(qe.element);hl&&(ka=hl)}else{const hl=Ri.exec(Go[1]);hl&&hl[1]&&($r=parseInt(hl[1]))}}return{type:Ts,startIndex:$r,style:Ty(ka)}}(M,r);if(_)if(M.indent>C){const qe=_.getChild(_.childCount-1),pn=qe.getChild(qe.childCount-1);_=XA(Ue,pn,c),C+=1}else M.indentC.indexOf(Ue)>-1)?K.push(Dt):Dt.getAttribute("src")||K.push(Dt)}for(const dt of K)E.remove(dt)})(u,m,c),function(C,M,E){const N=E.createRangeIn(M),j=[];for(const Dt of N)if("elementStart"==Dt.type&&Dt.item.is("element","v:shape")){const me=Dt.item.getAttribute("id");if(C.includes(me))continue;K(Dt.item.parent.getChildren(),me)||j.push(Dt.item)}for(const Dt of j){const me={src:dt(Dt)};Dt.hasAttribute("alt")&&(me.alt=Dt.getAttribute("alt"));const Ue=E.createElement("img",me);E.insertChild(Dt.index+1,Ue,Dt.parent)}function K(Dt,me){for(const Ue of Dt)if(Ue.is("element")&&("img"==Ue.name&&Ue.getAttribute("v:shapes")==me||K(Ue.getChildren(),me)))return!0;return!1}function dt(Dt){for(const me of Dt.getChildren())if(me.is("element")&&me.getAttribute("src"))return me.getAttribute("src")}}(u,m,c),function(C,M){const E=M.createRangeIn(C),N=new ds({name:/v:(.+)/}),j=[];for(const K of E)"elementStart"==K.type&&N.match(K.item)&&j.push(K.item);for(const K of j)M.remove(K)}(m,c);const _=function(C,M){const E=M.createRangeIn(C),N=new ds({name:"img"}),j=[];for(const K of E)K.item.is("element")&&N.match(K.item)&&K.item.getAttribute("src").startsWith("file://")&&j.push(K.item);return j}(m,c);_.length&&function(C,M,E){if(C.length===M.length)for(let N=0;NM.is("element")&&!u.includes(M.name)&&!_.includes(M.name),{direction:r}),"forward"==r?C.nodeAfter:C.nodeBefore}function O(m,r){return!!m&&m.is("element")&&r.includes(m.name)}const q=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class V{constructor(r){this.document=r}isActive(r){return q.test(r)}execute(r){const c=new W1(this.document),{body:u}=r._parsedData;(function(_,C){for(const M of _.getChildren())if(M.is("element","b")&&"normal"===M.getStyle("font-weight")){const E=_.getChildIndex(M);C.remove(M),C.insertChild(E,M.getChildren(),_)}})(u,c),function(_,C){for(const M of C.createRangeIn(_)){const E=M.item;if(E.is("element","li")){const N=E.getChild(0);N&&N.is("element","p")&&C.unwrapElement(N)}}}(u,c),function(_,C){const M=new Xp(C.document.stylesProcessor),E=new N_(M,{renderingMode:"data"}),N=E.blockElements,j=E.inlineObjectElements,K=[];for(const dt of C.createRangeIn(_)){const Dt=dt.item;if(Dt.is("element","br")){const me=U(Dt,"forward",C,{blockElements:N,inlineObjectElements:j}),Ue=U(Dt,"backward",C,{blockElements:N,inlineObjectElements:j}),qe=O(me,N);(O(Ue,N)||qe)&&K.push(Dt)}}for(const dt of K)dt.hasClass("Apple-interchange-newline")?C.remove(dt):C.replace(dt,C.createElement("p"))}(u,c),r.content=u}}const ut=/(\s+)<\/span>/g,(r,c)=>1===c.length?" ":Array(c.length+1).join("\xa0 ").substr(0,c.length))}function Qe(m,r,c,u,_=1){null!=r&&null!=_&&r>_?u.setAttribute(m,r,c):u.removeAttribute(m,c)}function An(m,r,c={}){const u=m.createElement("tableCell",c);return m.insertElement("paragraph",u),m.insert(u,r),u}function si(m,r){const u=parseInt(r.parent.parent.getAttribute("headingColumns")||"0"),{column:_}=m.getCellLocation(r);return!!u&&_{r.on(`element:${m}`,(c,u,{writer:_})=>{if(!u.modelRange)return;const C=u.modelRange.start.nodeAfter,M=_.createPositionAt(C,0);if(u.viewItem.isEmpty)return void _.insertElement("paragraph",M);const E=Array.from(C.getChildren());if(E.every(N=>N.is("element","$marker"))){const N=_.createElement("paragraph");_.insert(N,_.createPositionAt(C,0));for(const j of E)_.move(_.createRangeOn(j),_.createPositionAt(N,"end"))}},{priority:"low"})}}function Ao(m){let r=0,c=0;const u=Array.from(m.getChildren()).filter(_=>"th"===_.name||"td"===_.name);for(;c1||M>1)&&this._recordSpans(_,M,C),this._shouldSkipSlot()||(c=this._formatOutValue(_)),this._nextCellAtColumn=this._column+C}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,c||this.next()}skipRow(r){this._skipRows.add(r)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(r,c=this._row,u=this._column){return{done:!1,value:new pa(this,r,c,u)}}_shouldSkipSlot(){return this._skipRows.has(this._row)||this._rowthis._endColumn}_getSpanned(){const r=this._spannedCells.get(this._row);return r&&r.get(this._column)||null}_recordSpans(r,c,u){const _={cell:r,row:this._row,column:this._column};for(let C=this._row;C0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const r=this._getRowLength(0);for(let c=this._startRow;!this._jumpedToStartRow;c--)r===this._getRowLength(c)&&(this._row=c,this._rowIndex=c,this._jumpedToStartRow=!0)}_getRowLength(r){return[...this._table.getChild(r).getChildren()].reduce((c,u)=>c+parseInt(u.getAttribute("colspan")||"1"),0)}}class pa{constructor(r,c,u,_){this.cell=c,this.row=r._row,this.column=r._column,this.cellAnchorRow=u,this.cellAnchorColumn=_,this._cellIndex=r._cellIndex,this._rowIndex=r._rowIndex,this._table=r._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function Ta(m,r){return(c,{writer:u})=>{const _=c.getAttribute("headingRows")||0,C=u.createContainerElement("table",null,[]),M=u.createContainerElement("figure",{class:"table"},C);_>0&&u.insert(u.createPositionAt(C,"end"),u.createContainerElement("thead",null,u.createSlot(E=>E.is("element","tableRow")&&E.index<_))),_E.is("element","tableRow")&&E.index>=_)));for(const{positionOffset:E,filter:N}of r.additionalSlots)u.insert(u.createPositionAt(C,E),u.createSlot(N));return u.insert(u.createPositionAt(C,"after"),u.createSlot(E=>!E.is("element","tableRow")&&!r.additionalSlots.some(({filter:N})=>N(E)))),r.asWidget?((N=u).setCustomProperty("table",!0,E=M),ep(E,N,{hasSelectionHandle:!0})):M;var E,N}}function oo(m={}){return(r,{writer:c})=>{const u=r.parent,_=u.parent,C=_.getChildIndex(u),M=new ro(_,{row:C}),E=_.getAttribute("headingRows")||0,N=_.getAttribute("headingColumns")||0;let j=null;for(const K of M)if(K.cell==r){const dt=K.row{if(!r.parent.is("element","tableCell")||!zr(r))return null;if(m.asWidget)return c.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const u=c.createContainerElement("p");return c.setCustomProperty("dataPipeline:transparentRendering",!0,u),u}}}function zr(m){return 1==m.parent.childCount&&!!m.getAttributeKeys().next().done}class Mc extends Ua{refresh(){const r=this.editor.model;this.isEnabled=function(_,C){const M=_.getFirstPosition().parent;return C.checkChild(M===M.root?M:M.parent,"table")}(r.document.selection,r.schema)}execute(r={}){const c=this.editor,u=c.model,_=c.plugins.get("TableUtils"),C=c.config.get("table.defaultHeadings.rows"),M=c.config.get("table.defaultHeadings.columns");void 0===r.headingRows&&C&&(r.headingRows=C),void 0===r.headingColumns&&M&&(r.headingColumns=M),u.change(E=>{const N=_.createTable(E,r);u.insertObject(N,null,null,{findOptimalPosition:"auto"}),E.setSelection(E.createPositionAt(N.getNodeByPath([0,0,0]),0))})}}class b2 extends Ua{constructor(r,c={}){super(r),this.order=c.order||"below"}refresh(){const r=this.editor.model.document.selection,c=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(r).length;this.isEnabled=c}execute(){const r=this.editor,c=r.model.document.selection,u=r.plugins.get("TableUtils"),_="above"===this.order,C=u.getSelectionAffectedTableCells(c),M=u.getRowIndexes(C),E=_?M.first:M.last,N=C[0].findAncestor("table");u.insertRows(N,{at:_?E:E+1,copyStructureFromAbove:!_})}}class g6 extends Ua{constructor(r,c={}){super(r),this.order=c.order||"right"}refresh(){const r=this.editor.model.document.selection,c=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(r).length;this.isEnabled=c}execute(){const r=this.editor,c=r.model.document.selection,u=r.plugins.get("TableUtils"),_="left"===this.order,C=u.getSelectionAffectedTableCells(c),M=u.getColumnIndexes(C),E=_?M.first:M.last,N=C[0].findAncestor("table");u.insertColumns(N,{columns:1,at:_?E:E+1})}}class g3 extends Ua{constructor(r,c={}){super(r),this.direction=c.direction||"horizontally"}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===r.length}execute(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?r.splitCellHorizontally(c,2):r.splitCellVertically(c,2)}}function b6(m,r,c){const{startRow:u,startColumn:_,endRow:C,endColumn:M}=r,E=c.createElement("table"),N=C-u+1;for(let K=0;K0&&Qe("headingRows",qe-Dt,K,Ue,0);const pn=parseInt(dt.getAttribute("headingColumns")||"0");pn>0&&Qe("headingColumns",pn-me,K,Ue,0)}(E,m,u,_,c),E}function v6(m,r,c=0){const u=[],_=new ro(m,{startRow:c,endRow:r-1});for(const C of _){const{row:M,cellHeight:E}=C;M1&&(E.rowspan=N);const j=parseInt(m.getAttribute("colspan")||"1");j>1&&(E.colspan=j);const K=C+M,dt=[...new ro(_,{startRow:C,endRow:K,includeAllSlots:!0})];let Dt,me=null;for(const Ue of dt){const{row:qe,column:pn,cell:Ln}=Ue;Ln===m&&void 0===Dt&&(Dt=pn),void 0!==Dt&&Dt===pn&&qe===K&&(me=An(c,Ue.getPositionBefore(),E))}return Qe("rowspan",M,m,c),me}function C6(m,r){const c=[],u=new ro(m);for(const _ of u){const{column:C,cellWidth:M}=_;C1&&(C.colspan=M);const E=parseInt(m.getAttribute("rowspan")||"1");E>1&&(C.rowspan=E);const N=An(u,u.createPositionAfter(m),C);return Qe("colspan",_,m,u),N}function b3(m,r,c,u,_,C){const M=parseInt(m.getAttribute("colspan")||"1"),E=parseInt(m.getAttribute("rowspan")||"1");c+M-1>_&&Qe("colspan",_-c+1,m,C,1),r+E-1>u&&Qe("rowspan",u-r+1,m,C,1)}function v3(m,r){const c=r.getColumns(m),u=new Array(c).fill(0);for(const{column:C}of new ro(m))u[C]++;const _=u.reduce((C,M,E)=>M?C:[...C,E],[]);return _.length>0&&(r.removeColumns(m,{at:_[_.length-1]}),!0)}function a8(m,r){const c=[],u=r.getRows(m);for(let _=0;_0&&(r.removeRows(m,{at:c[c.length-1]}),!0)}function e7(m,r){v3(m,r)||a8(m,r)}function n7(m,r){const c=Array.from(new ro(m,{startColumn:r.firstColumn,endColumn:r.lastColumn,row:r.lastRow}));return c.every(({cellHeight:_})=>1===_)?r.lastRow:r.lastRow+(c[0].cellHeight-1)}function My(m,r){const c=Array.from(new ro(m,{startRow:r.firstRow,endRow:r.lastRow,column:r.lastColumn}));return c.every(({cellWidth:_})=>1===_)?r.lastColumn:r.lastColumn+(c[0].cellWidth-1)}class iv extends Ua{constructor(r,c){super(r),this.direction=c.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const r=this._getMergeableCell();this.value=r,this.isEnabled=!!r}execute(){const r=this.editor.model,c=r.document,u=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(c.selection)[0],_=this.value,C=this.direction;r.change(M=>{const E="right"==C||"down"==C,N=E?u:_,j=E?_:u,K=j.parent;var qe,pn,Ln;pn=N,Ln=M,ky(qe=j)||(ky(pn)&&Ln.remove(Ln.createRangeIn(pn)),Ln.move(Ln.createRangeIn(qe),Ln.createPositionAt(pn,"end"))),Ln.remove(qe);const dt=this.isHorizontal?"colspan":"rowspan",Dt=parseInt(u.getAttribute(dt)||"1"),me=parseInt(_.getAttribute(dt)||"1");M.setAttribute(dt,Dt+me,N),M.setSelection(M.createRangeIn(N));const Ue=this.editor.plugins.get("TableUtils");e7(K.findAncestor("table"),Ue)})}_getMergeableCell(){const r=this.editor.model.document,c=this.editor.plugins.get("TableUtils"),u=c.getTableCellsContainingSelection(r.selection)[0];if(!u)return;const _=this.isHorizontal?function(E,N,j){const Dt="right"==N?E.nextSibling:E.previousSibling,me=(E.parent.parent.getAttribute("headingColumns")||0)>0;if(!Dt)return;const Ue="right"==N?E:Dt,qe="right"==N?Dt:E,{column:pn}=j.getCellLocation(Ue),{column:Ln}=j.getCellLocation(qe),pi=parseInt(Ue.getAttribute("colspan")||"1"),Ri=si(j,Ue),Go=si(j,qe);return me&&Ri!=Go?void 0:pn+pi===Ln?Dt:void 0}(u,this.direction,c):function(E,N,j){const K=E.parent,dt=K.parent,Dt=dt.getChildIndex(K);if("down"==N&&Dt===j.getRows(dt)-1||"up"==N&&0===Dt)return null;const me=parseInt(E.getAttribute("rowspan")||"1"),Ue=dt.getAttribute("headingRows")||0;if(Ue&&("down"==N&&Dt+me===Ue||"up"==N&&Dt===Ue))return null;const Ln=parseInt(E.getAttribute("rowspan")||"1"),pi="down"==N?Dt+Ln:Dt,Ri=[...new ro(dt,{endRow:pi})],ka=Ri.find($r=>$r.cell===E).column,Ts=Ri.find(({row:$r,cellHeight:Il,column:hl})=>hl===ka&&("down"==N?$r===pi:pi===$r+Il));return Ts&&Ts.cell?Ts.cell:null}(u,this.direction,c);if(!_)return;const C=this.isHorizontal?"rowspan":"colspan",M=parseInt(u.getAttribute(C)||"1");return parseInt(_.getAttribute(C)||"1")===M?_:void 0}}function ky(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}class Dy extends Ua{refresh(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection),u=c[0];if(u){const _=u.findAncestor("table"),C=r.getRows(_)-1,M=r.getRowIndexes(c);this.isEnabled=!(0===M.first&&M.last===C)}else this.isEnabled=!1}execute(){const r=this.editor.model,c=this.editor.plugins.get("TableUtils"),u=c.getSelectionAffectedTableCells(r.document.selection),_=c.getRowIndexes(u),C=u[0],M=C.findAncestor("table"),E=c.getCellLocation(C).column;r.change(N=>{c.removeRows(M,{at:_.first,rows:_.last-_.first+1});const K=function(dt,Dt,me,Ue){const qe=dt.getChild(Math.min(Dt,Ue-1));let pn=qe.getChild(0),Ln=0;for(const pi of qe.getChildren()){if(Ln>me)return pn;pn=pi,Ln+=parseInt(pi.getAttribute("colspan")||"1")}return pn}(M,_.first,E,c.getRows(M));N.setSelection(N.createPositionAt(K,0))})}}class Py extends Ua{refresh(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection),u=c[0];if(u){const _=u.findAncestor("table"),C=r.getColumns(_),{first:M,last:E}=r.getColumnIndexes(c);this.isEnabled=E-MN.cell===c).column,last:C.find(N=>N.cell===u).column},E=(N=C,j=c,K=u,dt=M,parseInt(K.getAttribute("colspan")||"1")>1?K:j.previousSibling||K.nextSibling?K.nextSibling||j.previousSibling:dt.first?N.reverse().find(({column:me})=>meme>dt.last).cell);var N,j,K,dt;this.editor.model.change(N=>{r.removeColumns(_,{at:M.first,columns:M.last-M.first+1}),N.setSelection(N.createPositionAt(E,0))})}}class GT extends Ua{refresh(){const u=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection),_=u.length>0;this.isEnabled=_,this.value=_&&u.every(C=>this._isInHeading(C,C.parent.parent))}execute(r={}){if(r.forceValue===this.value)return;const c=this.editor.plugins.get("TableUtils"),u=this.editor.model,_=c.getSelectionAffectedTableCells(u.document.selection),C=_[0].findAncestor("table"),{first:M,last:E}=c.getRowIndexes(_),N=this.value?M:E+1,j=C.getAttribute("headingRows")||0;u.change(K=>{if(N){const dt=v6(C,N,N>j?j:0);for(const{cell:Dt}of dt)x6(Dt,N,K)}Qe("headingRows",N,C,K,0)})}_isInHeading(r,c){const u=parseInt(c.getAttribute("headingRows")||"0");return!!u&&r.parent.index0;this.isEnabled=_,this.value=_&&u.every(C=>si(c,C))}execute(r={}){if(r.forceValue===this.value)return;const c=this.editor.plugins.get("TableUtils"),u=this.editor.model,_=c.getSelectionAffectedTableCells(u.document.selection),C=_[0].findAncestor("table"),{first:M,last:E}=c.getColumnIndexes(_),N=this.value?M:E+1;u.change(j=>{if(N){const K=C6(C,N);for(const{cell:dt,column:Dt}of K)A6(dt,Dt,N,j)}Qe("headingColumns",N,C,j,0)})}}class s1 extends lo{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(r){const c=r.parent,u=c.parent,_=u.getChildIndex(c),C=new ro(u,{row:_});for(const{cell:M,row:E,column:N}of C)if(M===r)return{row:E,column:N}}createTable(r,c){const u=r.createElement("table"),_=c.rows||2,C=c.columns||2;return i7(r,u,0,_,C),c.headingRows&&Qe("headingRows",Math.min(c.headingRows,_),u,r,0),c.headingColumns&&Qe("headingColumns",Math.min(c.headingColumns,C),u,r,0),u}insertRows(r,c={}){const u=this.editor.model,_=c.at||0,C=c.rows||1,M=void 0!==c.copyStructureFromAbove,E=c.copyStructureFromAbove?_-1:_,N=this.getRows(r),j=this.getColumns(r);if(_>N)throw new at("tableutils-insertrows-insert-out-of-range",this,{options:c});u.change(K=>{const dt=r.getAttribute("headingRows")||0;if(dt>_&&Qe("headingRows",dt+C,r,K,0),!M&&(0===_||_===N))return void i7(K,r,_,C,j);const Dt=M?Math.max(_,E):_,me=new ro(r,{endRow:Dt}),Ue=new Array(j).fill(1);for(const{row:qe,column:pn,cellHeight:Ln,cellWidth:pi,cell:Ri}of me){const Go=qe+Ln-1,ka=qe<=E&&E<=Go;qe<_&&_<=Go?(K.setAttribute("rowspan",Ln+C,Ri),Ue[pn]=-pi):M&&ka&&(Ue[pn]=pi)}for(let qe=0;qe0&&An(K,Ri,pi>1?{colspan:pi}:void 0),Ln+=Math.abs(pi)-1}}})}insertColumns(r,c={}){const _=c.at||0,C=c.columns||1;this.editor.model.change(M=>{const E=r.getAttribute("headingColumns");_C-1)throw new at("tableutils-removerows-row-index-out-of-range",this,{table:r,options:c});u.change(N=>{const j={first:M,last:E},{cellsToMove:K,cellsToTrim:dt}=function(Dt,{first:me,last:Ue}){const qe=new Map,pn=[];for(const{row:Ln,column:pi,cellHeight:Ri,cell:Go}of new ro(Dt,{endRow:Ue})){const ka=Ln+Ri-1;if(Ln>=me&&Ln<=Ue&&ka>Ue&&qe.set(pi,{cell:Go,rowspan:Ri-(Ue-Ln+1)}),Ln=me){let Ts;Ts=ka>=Ue?Ue-me+1:ka-me+1,pn.push({cell:Go,rowspan:Ri-Ts})}}return{cellsToMove:qe,cellsToTrim:pn}}(r,j);K.size&&function(Dt,me,Ue,qe){const Ln=[...new ro(Dt,{includeAllSlots:!0,row:me})],pi=Dt.getChild(me);let Ri;for(const{column:Go,cell:ka,isAnchor:Ts}of Ln)if(Ue.has(Go)){const{cell:$r,rowspan:Il}=Ue.get(Go),hl=Ri?qe.createPositionAfter(Ri):qe.createPositionAt(pi,0);qe.move(qe.createRangeOn($r),hl),Qe("rowspan",Il,$r,qe),Ri=$r}else Ts&&(Ri=ka)}(r,E+1,K,N);for(let Dt=E;Dt>=M;Dt--)N.remove(r.getChild(Dt));for(const{rowspan:Dt,cell:me}of dt)Qe("rowspan",Dt,me,N);(function(Dt,{first:me,last:Ue},qe){const pn=Dt.getAttribute("headingRows")||0;me{!function(j,K,dt){const Dt=j.getAttribute("headingColumns")||0;if(Dt&&K.firstc.is("element","tableColumnGroup"))}(m);return r?Array.from(r.getChildren()):[]}(r);for(let j=M;j>=_;j--){for(const{cell:K,column:dt,cellWidth:Dt}of[...new ro(r)])dt<=j&&Dt>1&&dt+Dt>j?Qe("colspan",Dt-1,K,E):dt===j&&E.remove(K);if(N[j]){const K=0===j?N[1]:N[j-1],dt=parseFloat(N[j].getAttribute("columnWidth")),Dt=parseFloat(K.getAttribute("columnWidth"));E.remove(N[j]),E.setAttribute("columnWidth",dt+Dt+"%",K)}}a8(r,this)||v3(r,this)})}splitCellVertically(r,c=2){const u=this.editor.model,_=r.parent.parent,C=parseInt(r.getAttribute("rowspan")||"1"),M=parseInt(r.getAttribute("colspan")||"1");u.change(E=>{if(M>1){const{newCellsSpan:N,updatedSpan:j}=Sy(M,c);Qe("colspan",j,r,E);const K={};N>1&&(K.colspan=N),C>1&&(K.rowspan=C),y6(M>c?c-1:M-1,E,E.createPositionAfter(r),K)}if(MUe===r),dt=j.filter(({cell:Ue,cellWidth:qe,column:pn})=>Ue!==r&&pn===K||pnK);for(const{cell:Ue,cellWidth:qe}of dt)E.setAttribute("colspan",qe+N,Ue);const Dt={};C>1&&(Dt.rowspan=C),y6(N,E,E.createPositionAfter(r),Dt);const me=_.getAttribute("headingColumns")||0;me>K&&Qe("headingColumns",me+N,_,E)}})}splitCellHorizontally(r,c=2){const u=this.editor.model,_=r.parent,C=_.parent,M=C.getChildIndex(_),E=parseInt(r.getAttribute("rowspan")||"1"),N=parseInt(r.getAttribute("colspan")||"1");u.change(j=>{if(E>1){const K=[...new ro(C,{startRow:M,endRow:M+E-1,includeAllSlots:!0})],{newCellsSpan:dt,updatedSpan:Dt}=Sy(E,c);Qe("rowspan",Dt,r,j);const{column:me}=K.find(({cell:qe})=>qe===r),Ue={};dt>1&&(Ue.rowspan=dt),N>1&&(Ue.colspan=N);for(const qe of K){const{column:pn,row:Ln}=qe;Ln>=M+Dt&&pn===me&&(Ln+M+Dt)%dt==0&&y6(1,j,qe.getPositionBefore(),Ue)}}if(EM&&j.setAttribute("rowspan",qe+K,Ue);const Dt={};N>1&&(Dt.colspan=N),i7(j,C,M+1,K,1,Dt);const me=C.getAttribute("headingRows")||0;me>M&&Qe("headingRows",me+K,C,j)}})}getColumns(r){return[...r.getChild(0).getChildren()].reduce((c,u)=>c+parseInt(u.getAttribute("colspan")||"1"),0)}getRows(r){return Array.from(r.getChildren()).reduce((c,u)=>u.is("element","tableRow")?c+1:c,0)}createTableWalker(r,c={}){return new ro(r,c)}getSelectedTableCells(r){const c=[];for(const u of this.sortRanges(r.getRanges())){const _=u.getContainedElement();_&&_.is("element","tableCell")&&c.push(_)}return c}getTableCellsContainingSelection(r){const c=[];for(const u of r.getRanges()){const _=u.start.findAncestor("tableCell");_&&c.push(_)}return c}getSelectionAffectedTableCells(r){const c=this.getSelectedTableCells(r);return c.length?c:this.getTableCellsContainingSelection(r)}getRowIndexes(r){const c=r.map(u=>u.parent.index);return this._getFirstLastIndexesObject(c)}getColumnIndexes(r){const c=r[0].findAncestor("table"),u=[...new ro(c)].filter(_=>r.includes(_.cell)).map(_=>_.column);return this._getFirstLastIndexesObject(u)}isSelectionRectangular(r){if(r.length<2||!this._areCellInTheSameTableSection(r))return!1;const c=new Set,u=new Set;let _=0;for(const M of r){const{row:E,column:N}=this.getCellLocation(M),j=parseInt(M.getAttribute("rowspan"))||1,K=parseInt(M.getAttribute("colspan"))||1;c.add(E),u.add(N),j>1&&c.add(E+j-1),K>1&&u.add(N+K-1),_+=j*K}return function(M,E){const N=Array.from(M.values()),j=Array.from(E.values());return(Math.max(...N)-Math.min(...N)+1)*(Math.max(...j)-Math.min(...j)+1)}(c,u)==_}sortRanges(r){return Array.from(r).sort(Ly)}_getFirstLastIndexesObject(r){const c=r.sort((u,_)=>u-_);return{first:c[0],last:c[c.length-1]}}_areCellInTheSameTableSection(r){const c=r[0].findAncestor("table"),u=this.getRowIndexes(r),_=parseInt(c.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(u,_))return!1;const C=this.getColumnIndexes(r),M=parseInt(c.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(C,M)}_areIndexesInSameSection({first:r,last:c},u){return r{const _=c.getSelectedTableCells(r.document.selection),C=_.shift(),{mergeWidth:M,mergeHeight:E}=function(N,j,K){let dt=0,Dt=0;for(const Ln of j){const{row:pi,column:Ri}=K.getCellLocation(Ln);dt=Ey(Ln,Ri,dt,"colspan"),Dt=Ey(Ln,pi,Dt,"rowspan")}const{row:me,column:Ue}=K.getCellLocation(N);return{mergeWidth:dt-Ue,mergeHeight:Dt-me}}(C,_,c);Qe("colspan",M,C,u),Qe("rowspan",E,C,u);for(const N of _)KT(N,C,u);e7(C.findAncestor("table"),c),u.setSelection(C,"in")})}}function KT(m,r,c){Oy(m)||(Oy(r)&&c.remove(c.createRangeIn(r)),c.move(c.createRangeIn(m),c.createPositionAt(r,"end"))),c.remove(m)}function Oy(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}function Ey(m,r,c,u){const _=parseInt(m.getAttribute(u)||"1");return Math.max(c,r+_)}class Xn extends Ua{constructor(r){super(r),this.affectsData=!1}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=r.length>0}execute(){const r=this.editor.model,c=this.editor.plugins.get("TableUtils"),u=c.getSelectionAffectedTableCells(r.document.selection),_=c.getRowIndexes(u),C=u[0].findAncestor("table"),M=[];for(let E=_.first;E<=_.last;E++)for(const N of C.getChild(E).getChildren())M.push(r.createRangeOn(N));r.change(E=>{E.setSelection(M)})}}class Ya extends Ua{constructor(r){super(r),this.affectsData=!1}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=r.length>0}execute(){const r=this.editor.plugins.get("TableUtils"),c=this.editor.model,u=r.getSelectionAffectedTableCells(c.document.selection),_=u[0],C=u.pop(),M=_.findAncestor("table"),E=r.getCellLocation(_),N=r.getCellLocation(C),j=Math.min(E.column,N.column),K=Math.max(E.column,N.column),dt=[];for(const Dt of new ro(M,{startColumn:j,endColumn:K}))dt.push(c.createRangeOn(Dt.cell));c.change(Dt=>{Dt.setSelection(dt)})}}function tw(m,r){let c=!1;const u=function(_){const C=parseInt(_.getAttribute("headingRows")||"0"),M=Array.from(_.getChildren()).reduce((N,j)=>j.is("element","tableRow")?N+1:N,0),E=[];for(const{row:N,cell:j,cellHeight:K}of new ro(_)){if(K<2)continue;const dt=Ndt&&E.push({cell:j,rowspan:dt-N})}return E}(m);if(u.length){c=!0;for(const _ of u)Qe("rowspan",_.rowspan,_.cell,r,1)}return c}function o7(m,r){let c=!1;const u=function(E){const N=new Array(E.childCount).fill(0);for(const{rowIndex:j}of new ro(E,{includeAllSlots:!0}))N[j]++;return N}(m),_=[];for(const[E,N]of u.entries())!N&&m.getChild(E).is("element","tableRow")&&_.push(E);if(_.length){c=!0;for(const E of _.reverse())r.remove(m.getChild(E)),u.splice(E,1)}const C=u.filter((E,N)=>m.getChild(N).is("element","tableRow")),M=C[0];if(!C.every(E=>E===M)){const E=C.reduce((N,j)=>j>N?j:N,0);for(const[N,j]of C.entries()){const K=E-j;if(K){for(let dt=0;dtu.is("$text"));for(const u of c)r.wrap(r.createRangeOn(u),"paragraph");return!!c.length}function ow(m){return!!m.position.parent.is("element","tableCell")&&("insert"==m.type&&"$text"==m.name||"remove"==m.type)}function aw(m,r){if(!m.is("element","paragraph"))return!1;const c=r.toViewElement(m);return!!c&&zr(m)!==c.is("element","span")}var Fy=v(3881);Fo()(Fy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ny extends lo{constructor(r){super(r),this._additionalSlots=[]}static get pluginName(){return"TableEditing"}static get requires(){return[s1]}init(){const r=this.editor,c=r.model,u=c.schema,_=r.conversion,C=r.plugins.get(s1);u.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),u.register("tableRow",{allowIn:"table",isLimit:!0}),u.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),_.for("upcast").add(M=>{M.on("element:figure",(E,N,j)=>{if(!j.consumable.test(N.viewItem,{name:!0,classes:"table"}))return;const K=function(Dt){for(const me of Dt.getChildren())if(me.is("element","table"))return me}(N.viewItem);if(!K||!j.consumable.test(K,{name:!0}))return;j.consumable.consume(N.viewItem,{name:!0,classes:"table"});const dt=os(j.convertItem(K,N.modelCursor).modelRange.getItems());dt?(j.convertChildren(N.viewItem,j.writer.createPositionAt(dt,"end")),j.updateConversionResult(dt,N)):j.consumable.revert(N.viewItem,{name:!0,classes:"table"})})}),_.for("upcast").add(function Ai(){return m=>{m.on("element:table",(r,c,u)=>{const _=c.viewItem;if(!u.consumable.test(_,{name:!0}))return;const{rows:C,headingRows:M,headingColumns:E}=function(K){let dt,Dt=0;const me=[],Ue=[];let qe;for(const pn of Array.from(K.getChildren())){if("tbody"!==pn.name&&"thead"!==pn.name&&"tfoot"!==pn.name)continue;"thead"!==pn.name||qe||(qe=pn);const Ln=Array.from(pn.getChildren()).filter(pi=>pi.is("element","tr"));for(const pi of Ln)if(qe&&pn===qe||"tbody"===pn.name&&Array.from(pi.getChildren()).length&&Array.from(pi.getChildren()).every(Ri=>Ri.is("element","th")))Dt++,me.push(pi);else{Ue.push(pi);const Ri=Ao(pi);(!dt||Riu.convertItem(K,u.writer.createPositionAt(j,"end"))),u.convertChildren(_,u.writer.createPositionAt(j,"end")),j.isEmpty){const K=u.writer.createElement("tableRow");u.writer.insert(K,u.writer.createPositionAt(j,"end")),An(u.writer,u.writer.createPositionAt(K,"end"))}u.updateConversionResult(j,c)}})}}()),_.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Ta(C,{asWidget:!0,additionalSlots:this._additionalSlots})}),_.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Ta(C,{additionalSlots:this._additionalSlots})}),_.for("upcast").elementToElement({model:"tableRow",view:"tr"}),_.for("upcast").add(M=>{M.on("element:tr",(E,N)=>{N.viewItem.isEmpty&&0==N.modelCursor.index&&E.stop()},{priority:"high"})}),_.for("downcast").elementToElement({model:"tableRow",view:(M,{writer:E})=>M.isEmpty?E.createEmptyElement("tr"):E.createContainerElement("tr")}),_.for("upcast").elementToElement({model:"tableCell",view:"td"}),_.for("upcast").elementToElement({model:"tableCell",view:"th"}),_.for("upcast").add(Vi("td")),_.for("upcast").add(Vi("th")),_.for("editingDowncast").elementToElement({model:"tableCell",view:oo({asWidget:!0})}),_.for("dataDowncast").elementToElement({model:"tableCell",view:oo()}),_.for("editingDowncast").elementToElement({model:"paragraph",view:Oa({asWidget:!0}),converterPriority:"high"}),_.for("dataDowncast").elementToElement({model:"paragraph",view:Oa(),converterPriority:"high"}),_.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),_.for("upcast").attributeToAttribute({model:{key:"colspan",value:qy("colspan")},view:"colspan"}),_.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),_.for("upcast").attributeToAttribute({model:{key:"rowspan",value:qy("rowspan")},view:"rowspan"}),r.config.define("table.defaultHeadings.rows",0),r.config.define("table.defaultHeadings.columns",0),r.commands.add("insertTable",new Mc(r)),r.commands.add("insertTableRowAbove",new b2(r,{order:"above"})),r.commands.add("insertTableRowBelow",new b2(r,{order:"below"})),r.commands.add("insertTableColumnLeft",new g6(r,{order:"left"})),r.commands.add("insertTableColumnRight",new g6(r,{order:"right"})),r.commands.add("removeTableRow",new Dy(r)),r.commands.add("removeTableColumn",new Py(r)),r.commands.add("splitTableCellVertically",new g3(r,{direction:"vertically"})),r.commands.add("splitTableCellHorizontally",new g3(r,{direction:"horizontally"})),r.commands.add("mergeTableCells",new $T(r)),r.commands.add("mergeTableCellRight",new iv(r,{direction:"right"})),r.commands.add("mergeTableCellLeft",new iv(r,{direction:"left"})),r.commands.add("mergeTableCellDown",new iv(r,{direction:"down"})),r.commands.add("mergeTableCellUp",new iv(r,{direction:"up"})),r.commands.add("setTableColumnHeader",new QT(r)),r.commands.add("setTableRowHeader",new GT(r)),r.commands.add("selectTableRow",new Xn(r)),r.commands.add("selectTableColumn",new Ya(r)),function XT(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let C=!1;const M=new Set;for(const E of _){let N=null;"insert"==E.type&&"table"==E.name&&(N=E.position.nodeAfter),"insert"!=E.type&&"remove"!=E.type||"tableRow"!=E.name&&"tableCell"!=E.name||(N=E.position.findAncestor("table")),ew(E)&&(N=E.range.start.findAncestor("table")),N&&!M.has(N)&&(C=tw(N,c)||C,C=o7(N,c)||C,M.add(N))}return C}(r,m))}(c),function nw(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let C=!1;for(const M of _)"insert"==M.type&&"table"==M.name&&(C=iw(M.position.nodeAfter,c)||C),"insert"==M.type&&"tableRow"==M.name&&(C=Iy(M.position.nodeAfter,c)||C),"insert"==M.type&&"tableCell"==M.name&&(C=ov(M.position.nodeAfter,c)||C),"remove"!=M.type&&"insert"!=M.type||!ow(M)||(C=ov(M.position.parent,c)||C);return C}(r,m))}(c),this.listenTo(c.document,"change:data",()=>{(function(M,E){const N=M.document.differ;for(const j of N.getChanges()){let K,dt=!1;if("attribute"==j.type){const qe=j.range.start.nodeAfter;if(!qe||!qe.is("element","table")||"headingRows"!=j.attributeKey&&"headingColumns"!=j.attributeKey)continue;K=qe,dt="headingRows"==j.attributeKey}else"tableRow"!=j.name&&"tableCell"!=j.name||(K=j.position.findAncestor("table"),dt="tableRow"==j.name);if(!K)continue;const Dt=K.getAttribute("headingRows")||0,me=K.getAttribute("headingColumns")||0,Ue=new ro(K);for(const qe of Ue){const pn=qe.rowaw(Dt,E.mapper));for(const Dt of dt)E.reconvertItem(Dt)}}(c,r.editing)})}registerAdditionalSlot(r){this._additionalSlots.push(r)}}function qy(m){return r=>{const c=parseInt(r.getAttribute(m));return Number.isNaN(c)||c<=0?null:c}}var Ry=v(1613);Fo()(Ry.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class cw extends oa{constructor(r){super(r);const c=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new $c,this.focusTracker=new as,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(u,_)=>`${_} \xd7 ${u}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":c.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:c.to("label")}]}],on:{mousedown:c.to(u=>{u.preventDefault()}),click:c.to(()=>{this.fire("execute")})}}),this.on("boxover",(u,_)=>{const{row:C,column:M}=_.target.dataset;this.items.get(10*(parseInt(C,10)-1)+(parseInt(M,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(u,_,C)=>{if(!C)return;const{row:M,column:E}=C.dataset;this.set({rows:parseInt(M),columns:parseInt(E)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),function({keystrokeHandler:r,focusTracker:c,gridItems:u,numberOfColumns:_,uiLanguageDirection:C}){const M="number"==typeof _?()=>_:_;function E(K){return dt=>{const Dt=u.find(qe=>qe.element===c.focusedElement),me=u.getIndex(Dt),Ue=K(me,u);u.get(Ue).focus(),dt.stopPropagation(),dt.preventDefault()}}function N(K,dt){return K===dt-1?0:K+1}function j(K,dt){return 0===K?dt-1:K-1}r.set("arrowright",E((K,dt)=>"rtl"===C?j(K,dt.length):N(K,dt.length))),r.set("arrowleft",E((K,dt)=>"rtl"===C?N(K,dt.length):j(K,dt.length))),r.set("arrowup",E((K,dt)=>{let Dt=K-M();return Dt<0&&(Dt=K+M()*Math.floor(dt.length/M()),Dt>dt.length-1&&(Dt-=M())),Dt})),r.set("arrowdown",E((K,dt)=>{let Dt=K+M();return Dt>dt.length-1&&(Dt=K%M()),Dt}))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const r of this.items)this.focusTracker.add(r.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const r=this.rows,c=this.columns;this.items.map((u,_)=>{const C=Math.floor(_/10){const C=r.commands.get("insertTable"),M=Op(_);let E;return M.bind("isEnabled").to(C),M.buttonView.set({icon:'',label:c("Insert table"),tooltip:!0}),M.on("change:isOpen",()=>{E||(E=new cw(_),M.panelView.children.add(E),E.delegate("execute").to(M),M.on("execute",()=>{r.execute("insertTable",{rows:E.rows,columns:E.columns}),r.editing.view.focus()}))}),M}),r.ui.componentFactory.add("tableColumn",_=>{const C=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:c("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:u?"insertTableColumnLeft":"insertTableColumnRight",label:c("Insert column left")}},{type:"button",model:{commandName:u?"insertTableColumnRight":"insertTableColumnLeft",label:c("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:c("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:c("Select column")}}];return this._prepareDropdown(c("Column"),'',C,_)}),r.ui.componentFactory.add("tableRow",_=>{const C=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:c("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:c("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:c("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:c("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:c("Select row")}}];return this._prepareDropdown(c("Row"),'',C,_)}),r.ui.componentFactory.add("mergeTableCells",_=>{const C=[{type:"button",model:{commandName:"mergeTableCellUp",label:c("Merge cell up")}},{type:"button",model:{commandName:u?"mergeTableCellRight":"mergeTableCellLeft",label:c("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:c("Merge cell down")}},{type:"button",model:{commandName:u?"mergeTableCellLeft":"mergeTableCellRight",label:c("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:c("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:c("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(c("Merge cells"),'',C,_)})}_prepareDropdown(r,c,u,_){const C=this.editor,M=Op(_),E=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0}),M.bind("isEnabled").toMany(E,"isEnabled",(...N)=>N.some(j=>j)),this.listenTo(M,"execute",N=>{C.execute(N.source.commandName),N.source instanceof As||C.editing.view.focus()}),M}_prepareMergeSplitButtonDropdown(r,c,u,_){const C=this.editor,M=Op(_,m4),E="mergeTableCells",N=C.commands.get(E),j=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0,isEnabled:!0}),M.bind("isEnabled").toMany([N,...j],"isEnabled",(...K)=>K.some(dt=>dt)),this.listenTo(M.buttonView,"execute",()=>{C.execute(E),C.editing.view.focus()}),this.listenTo(M,"execute",K=>{C.execute(K.source.commandName),C.editing.view.focus()}),M}_fillDropdownWithListOptions(r,c){const u=this.editor,_=[],C=new ec;for(const M of c)uw(M,u,_,C);return t1(r,C),_}}function uw(m,r,c,u){if("button"===m.type||"switchbutton"===m.type){const _=m.model=new M4(m.model),{commandName:C,bindIsOn:M}=m.model,E=r.commands.get(C);c.push(E),_.set({commandName:C}),_.bind("isEnabled").to(E),M&&_.bind("isOn").to(E,"value"),_.set({withText:!0})}u.add(m)}var a7=v(6945);Fo()(a7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class x3 extends lo{static get pluginName(){return"TableSelection"}static get requires(){return[s1,s1]}init(){const r=this.editor,u=r.editing.view;this.listenTo(r.model,"deleteContent",(_,C)=>this._handleDeleteContent(_,C),{priority:"high"}),this.listenTo(u.document,"insertText",(_,C)=>this._handleInsertTextEvent(_,C),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const u=this.editor.plugins.get(s1).getSelectedTableCells(this.editor.model.document.selection);return 0==u.length?null:u}getSelectionAsFragment(){const r=this.editor.plugins.get(s1),c=this.getSelectedTableCells();return c?this.editor.model.change(u=>{const _=u.createDocumentFragment(),{first:C,last:M}=r.getColumnIndexes(c),{first:E,last:N}=r.getRowIndexes(c),j=c[0].findAncestor("table");let K=N,dt=M;if(r.isSelectionRectangular(c)){const me={firstColumn:C,lastColumn:M,firstRow:E,lastRow:N};K=n7(j,me),dt=My(j,me)}const Dt=b6(j,{startRow:E,startColumn:C,endRow:K,endColumn:dt},u);return u.insert(Dt,_,0),_}):null}setCellSelection(r,c){const u=this._getCellsToSelect(r,c);this.editor.model.change(_=>{_.setSelection(u.cells.map(C=>_.createRangeOn(C)),{backward:u.backward})})}getFocusCell(){const r=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return r&&r.is("element","tableCell")?r:null}getAnchorCell(){const r=os(this.editor.model.document.selection.getRanges()).getContainedElement();return r&&r.is("element","tableCell")?r:null}_defineSelectionConverter(){const r=this.editor,c=new Set;r.conversion.for("editingDowncast").add(u=>u.on("selection",(_,C,M)=>{const E=M.writer;!function(K){for(const dt of c)K.removeClass("ck-editor__editable_selected",dt);c.clear()}(E);const N=this.getSelectedTableCells();if(!N)return;for(const K of N){const dt=M.mapper.toViewElement(K);E.addClass("ck-editor__editable_selected",dt),c.add(dt)}const j=M.mapper.toViewElement(N[N.length-1]);E.setSelection(j,0)},{priority:"lowest"}))}_enablePluginDisabling(){const r=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const c=this.getSelectedTableCells();if(!c)return;r.model.change(u=>{const _=u.createPositionAt(c[0],0),C=r.model.schema.getNearestSelectionRange(_);u.setSelection(C)})}})}_handleDeleteContent(r,c){const u=this.editor.plugins.get(s1),_=c[0],C=c[1],M=this.editor.model,E=!C||"backward"==C.direction,N=u.getSelectedTableCells(_);N.length&&(r.stop(),M.change(j=>{const K=N[E?N.length-1:0];M.change(Dt=>{for(const me of N)M.deleteContent(Dt.createSelection(me,"in"))});const dt=M.schema.getNearestSelectionRange(j.createPositionAt(K,0));_.is("documentSelection")?j.setSelection(dt):_.setTo(dt)}))}_handleInsertTextEvent(r,c){const u=this.editor,_=this.getSelectedTableCells();if(!_)return;const C=u.editing.view,M=u.editing.mapper,E=_.map(N=>C.createRangeOn(M.toViewElement(N)));c.selection=C.createSelection(E)}_getCellsToSelect(r,c){const u=this.editor.plugins.get("TableUtils"),_=u.getCellLocation(r),C=u.getCellLocation(c),M=Math.min(_.row,C.row),E=Math.max(_.row,C.row),N=Math.min(_.column,C.column),j=Math.max(_.column,C.column),K=new Array(E-M+1).fill(null).map(()=>[]),dt={startRow:M,endRow:E,startColumn:N,endColumn:j};for(const{row:Ue,cell:qe}of new ro(r.findAncestor("table"),dt))K[Ue-M].push(qe);const Dt=C.row<_.row,me=C.column<_.column;return Dt&&K.reverse(),me&&K.forEach(Ue=>Ue.reverse()),{cells:K.flat(),backward:Dt||me}}}class r7 extends lo{static get pluginName(){return"TableClipboard"}static get requires(){return[x3,s1]}init(){const r=this.editor,c=r.editing.view.document;this.listenTo(c,"copy",(u,_)=>this._onCopyCut(u,_)),this.listenTo(c,"cut",(u,_)=>this._onCopyCut(u,_)),this.listenTo(r.model,"insertContent",(u,[_,C])=>this._onInsertContent(u,_,C),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(r,c){const u=this.editor.plugins.get(x3);if(!u.getSelectedTableCells()||"cut"==r.name&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;c.preventDefault(),r.stop();const C=this.editor.editing.view.document,M=this.editor.data.toView(u.getSelectionAsFragment());C.fire("clipboardOutput",{dataTransfer:c.dataTransfer,content:M,method:r.name})}_onInsertContent(r,c,u){if(u&&!u.is("documentSelection"))return;const _=this.editor.model,C=this.editor.plugins.get(s1);let M=this.getTableIfOnlyTableInContent(c,_);if(!M)return;const E=C.getSelectionAffectedTableCells(_.document.selection);E.length?(r.stop(),_.change(N=>{const j={width:C.getColumns(M),height:C.getRows(M)},K=function(pn,Ln,pi,Ri){const Go=pn[0].findAncestor("table"),ka=Ri.getColumnIndexes(pn),Ts=Ri.getRowIndexes(pn),$r={firstColumn:ka.first,lastColumn:ka.last,firstRow:Ts.first,lastRow:Ts.last},Il=1===pn.length;return Il&&($r.lastRow+=Ln.height-1,$r.lastColumn+=Ln.width-1,function(hl,T6,v2,Rp){const Uf=Rp.getColumns(hl),x2=Rp.getRows(hl);v2>Uf&&Rp.insertColumns(hl,{at:Uf,columns:v2-Uf}),T6>x2&&Rp.insertRows(hl,{at:x2,rows:T6-x2})}(Go,$r.lastRow+1,$r.lastColumn+1,Ri)),Il||!Ri.isSelectionRectangular(pn)?function(hl,T6,v2){const{firstRow:Rp,lastRow:Uf,firstColumn:x2,lastColumn:C3}=T6,iT={first:Rp,last:Uf},f7={first:x2,last:C3};qa(hl,x2,iT,v2),qa(hl,C3+1,iT,v2),s7(hl,Rp,f7,v2),s7(hl,Uf+1,f7,v2,Rp)}(Go,$r,pi):($r.lastRow=n7(Go,$r),$r.lastColumn=My(Go,$r)),$r}(E,j,N,C),Dt=K.lastColumn-K.firstColumn+1,me={startRow:0,startColumn:0,endRow:Math.min(K.lastRow-K.firstRow+1,j.height)-1,endColumn:Math.min(Dt,j.width)-1};M=b6(M,me,N);const Ue=E[0].findAncestor("table"),qe=this._replaceSelectedCellsWithPasted(M,j,Ue,K,N);if(this.editor.plugins.get("TableSelection").isEnabled){const pn=C.sortRanges(qe.map(Ln=>N.createRangeOn(Ln)));N.setSelection(pn)}else N.setSelection(qe[0],0)})):e7(M,C)}_replaceSelectedCellsWithPasted(r,c,u,_,C){const{width:M,height:E}=c,N=function(pn,Ln,pi){const Ri=new Array(pi).fill(null).map(()=>new Array(Ln).fill(null));for(const{column:Go,row:ka,cell:Ts}of new ro(pn))Ri[ka][Go]=Ts;return Ri}(r,M,E),j=[...new ro(u,{startRow:_.firstRow,endRow:_.lastRow,startColumn:_.firstColumn,endColumn:_.lastColumn,includeAllSlots:!0})],K=[];let dt;for(const pn of j){const{row:Ln,column:pi}=pn;pi===_.firstColumn&&(dt=pn.getPositionBefore());const ka=N[(Ln-_.firstRow)%E][(pi-_.firstColumn)%M],Ts=ka?C.cloneElement(ka):null,$r=this._replaceTableSlotCell(pn,Ts,dt,C);$r&&(b3($r,Ln,pi,_.lastRow,_.lastColumn,C),K.push($r),dt=C.createPositionAfter($r))}const Dt=parseInt(u.getAttribute("headingRows")||"0"),me=parseInt(u.getAttribute("headingColumns")||"0"),qe=_.firstColumnCa(C,M,c)).map(({cell:C})=>x6(C,r,u))}function qa(m,r,c,u){if(!(r<1))return C6(m,r).filter(({row:_,cellHeight:C})=>Ca(_,C,c)).map(({cell:_,column:C})=>A6(_,C,r,u))}function Ca(m,r,c){const u=m+r-1,{first:_,last:C}=c;return m>=_&&m<=C||m<_&&u>=_}class lr extends lo{static get pluginName(){return"TableKeyboard"}static get requires(){return[x3,s1]}init(){const r=this.editor.editing.view.document;this.listenTo(r,"arrowKey",(...c)=>this._onArrowKey(...c),{context:"table"}),this.listenTo(r,"tab",(...c)=>this._handleTabOnSelectedTable(...c),{context:"figure"}),this.listenTo(r,"tab",(...c)=>this._handleTab(...c),{context:["th","td"]})}_handleTabOnSelectedTable(r,c){const u=this.editor,_=u.model.document.selection.getSelectedElement();_&&_.is("element","table")&&(c.preventDefault(),c.stopPropagation(),r.stop(),u.model.change(C=>{C.setSelection(C.createRangeIn(_.getChild(0).getChild(0)))}))}_handleTab(r,c){const u=this.editor,_=this.editor.plugins.get(s1),C=this.editor.plugins.get("TableSelection"),E=!c.shiftKey;let N=_.getTableCellsContainingSelection(u.model.document.selection)[0];if(N||(N=C.getFocusCell()),!N)return;c.preventDefault(),c.stopPropagation(),r.stop();const j=N.parent,K=j.parent,dt=K.getChildIndex(j),Dt=j.getChildIndex(N),me=0===Dt;if(!E&&me&&0===dt)return void u.model.change(Ln=>{Ln.setSelection(Ln.createRangeOn(K))});const Ue=Dt===j.childCount-1,qe=dt===_.getRows(K)-1;if(E&&qe&&Ue&&(u.execute("insertTableRowBelow"),dt===_.getRows(K)-1))return void u.model.change(Ln=>{Ln.setSelection(Ln.createRangeOn(K))});let pn;if(E&&Ue)pn=K.getChild(dt+1).getChild(0);else if(!E&&me){const Ln=K.getChild(dt-1);pn=Ln.getChild(Ln.childCount-1)}else pn=j.getChild(Dt+(E?1:-1));u.model.change(Ln=>{Ln.setSelection(Ln.createRangeIn(pn))})}_onArrowKey(r,c){const _=b1(c.keyCode,this.editor.locale.contentLanguageDirection);this._handleArrowKeys(_,c.shiftKey)&&(c.preventDefault(),c.stopPropagation(),r.stop())}_handleArrowKeys(r,c){const u=this.editor.plugins.get(s1),_=this.editor.plugins.get("TableSelection"),C=this.editor.model,M=C.document.selection,E=["right","down"].includes(r),N=u.getSelectedTableCells(M);if(N.length){let K;return K=c?_.getFocusCell():E?N[N.length-1]:N[0],this._navigateFromCellInDirection(K,r,c),!0}const j=M.focus.findAncestor("tableCell");if(!j)return!1;if(!M.isCollapsed)if(c){if(M.isBackward==E&&!M.containsEntireContent(j))return!1}else{const K=M.getSelectedElement();if(!K||!C.schema.isObject(K))return!1}return!!this._isSelectionAtCellEdge(M,j,E)&&(this._navigateFromCellInDirection(j,r,c),!0)}_isSelectionAtCellEdge(r,c,u){const _=this.editor.model,C=this.editor.model.schema,M=u?r.getLastPosition():r.getFirstPosition();if(!C.getLimitElement(M).is("element","tableCell"))return _.createPositionAt(c,u?"end":0).isTouching(M);const E=_.createSelection(M);return _.modifySelection(E,{direction:u?"forward":"backward"}),M.isEqual(E.focus)}_navigateFromCellInDirection(r,c,u=!1){const _=this.editor.model,C=r.findAncestor("table"),M=[...new ro(C,{includeAllSlots:!0})],{row:E,column:N}=M[M.length-1],j=M.find(({cell:qe})=>qe==r);let{row:K,column:dt}=j;switch(c){case"left":dt--;break;case"up":K--;break;case"right":dt+=j.cellWidth;break;case"down":K+=j.cellHeight}if(K<0||K>E||dt<0&&K<=0||dt>N&&K>=E)return void _.change(qe=>{qe.setSelection(qe.createRangeOn(C))});dt<0?(dt=u?0:N,K--):dt>N&&(dt=u?N:0,K++);const Dt=M.find(qe=>qe.row==K&&qe.column==dt).cell,me=["right","down"].includes(c),Ue=this.editor.plugins.get("TableSelection");if(u&&Ue.isEnabled){const qe=Ue.getAnchorCell()||r;Ue.setCellSelection(qe,Dt)}else{const qe=_.createPositionAt(Dt,me?0:"end");_.change(pn=>{pn.setSelection(qe)})}}}class Hy extends Wu{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(r){this.fire(r.type,r)}}class pw extends lo{static get pluginName(){return"TableMouse"}static get requires(){return[x3,s1]}init(){this.editor.editing.view.addObserver(Hy),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const r=this.editor,c=r.plugins.get(s1);let u=!1;const _=r.plugins.get(x3);this.listenTo(r.editing.view.document,"mousedown",(C,M)=>{const E=r.model.document.selection;if(!this.isEnabled||!_.isEnabled||!M.domEvent.shiftKey)return;const N=_.getAnchorCell()||c.getTableCellsContainingSelection(E)[0];if(!N)return;const j=this._getModelTableCellFromDomEvent(M);j&&zy(N,j)&&(u=!0,_.setCellSelection(N,j),M.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{u=!1}),this.listenTo(r.editing.view.document,"selectionChange",C=>{u&&C.stop()},{priority:"highest"})}_enableMouseDragSelection(){const r=this.editor;let c,u,_=!1,C=!1;const M=r.plugins.get(x3);this.listenTo(r.editing.view.document,"mousedown",(E,N)=>{this.isEnabled&&M.isEnabled&&(N.domEvent.shiftKey||N.domEvent.ctrlKey||N.domEvent.altKey||(c=this._getModelTableCellFromDomEvent(N)))}),this.listenTo(r.editing.view.document,"mousemove",(E,N)=>{if(!N.domEvent.buttons||!c)return;const j=this._getModelTableCellFromDomEvent(N);j&&zy(c,j)&&(u=j,_||u==c||(_=!0)),_&&(C=!0,M.setCellSelection(c,u),N.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{_=!1,C=!1,c=null,u=null}),this.listenTo(r.editing.view.document,"selectionChange",E=>{C&&E.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(r){const u=this.editor.editing.view.createPositionAt(r.target,0);return this.editor.editing.mapper.toModelPosition(u).parent.findAncestor("tableCell",{includeSelf:!0})}}function zy(m,r){return m.parent.parent==r.parent.parent}var c7=v(6306);function _w(m){const r=m.getSelectedElement();return r&&l7(r)?r:null}function By(m){const r=m.getFirstPosition();if(!r)return null;let c=r.parent;for(;c;){if(c.is("element")&&l7(c))return c;c=c.parent}return null}function l7(m){return!!m.getCustomProperty("table")&&El(m)}Fo()(c7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var s8=v(7368);Fo()(s8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Yy=v(9247);Fo()(Yy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var jy=v(4070);Fo()(jy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Gy=v(6237);Fo()(Gy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Qy=v(5087);Fo()(Qy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Wy=v(7341);Fo()(Wy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var c8=v(2128);Fo()(c8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Ky=v(4101);Fo()(Ky.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var vw=Object.defineProperty,u7=Object.getOwnPropertySymbols,d7=Object.prototype.hasOwnProperty,wf=Object.prototype.propertyIsEnumerable,tT=(m,r,c)=>r in m?vw(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,av=(m,r)=>{for(var c in r||(r={}))d7.call(r,c)&&tT(m,c,r[c]);if(u7)for(var c of u7(r))wf.call(r,c)&&tT(m,c,r[c]);return m};const xw={autoRefresh:!0};class p7 extends(Ze()){constructor(r,c={}){if(super(),!r)throw new at("token-missing-token-url",this);c.initValue&&this._validateTokenValue(c.initValue),this.set("value",c.initValue),this._refresh="function"==typeof r?r:()=>{return u=r,new Promise((_,C)=>{const M=new XMLHttpRequest;M.open("GET",u),M.addEventListener("load",()=>{const E=M.status,N=M.response;return E<200||E>299?C(new at("token-cannot-download-new-token",null)):_(N)}),M.addEventListener("error",()=>C(new Error("Network Error"))),M.addEventListener("abort",()=>C(new Error("Abort"))),M.send()});var u},this._options=av(av({},xw),c)}init(){return new Promise((r,c)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),r(this)):this.refreshToken().then(r).catch(c)})}refreshToken(){return this._refresh().then(r=>(this._validateTokenValue(r),this.set("value",r),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(r){const c="string"==typeof r,u=!/^".*"$/.test(r),_=c&&3===r.split(".").length;if(!u||!_)throw new at("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const r=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},r)}_getTokenRefreshTimeoutTime(){try{const[,r]=this.value.split("."),{exp:c}=JSON.parse(atob(r));return c?Math.floor((1e3*c-Date.now())/2):36e5}catch{return 36e5}}static create(r,c={}){return new p7(r,c).init()}}const m7=/^data:(\S*?);base64,/;class Cw extends(Ne()){constructor(r,c,u){if(super(),!r)throw new at("fileuploader-missing-file",null);if(!c)throw new at("fileuploader-missing-token",null);if(!u)throw new at("fileuploader-missing-api-address",null);this.file=function(_){if("string"!=typeof _)return!1;const C=_.match(m7);return!(!C||!C.length)}(r)?function(_,C=512){try{const M=_.match(m7)[1],E=atob(_.replace(m7,"")),N=[];for(let j=0;jr(u)),this}onError(r){return this.once("error",(c,u)=>r(u)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const r=new XMLHttpRequest;r.open("POST",this._apiAddress),r.setRequestHeader("Authorization",this._token.value),r.responseType="json",this.xhr=r}_attachXHRListeners(){const r=this.xhr,c=u=>()=>this.fire("error",u);r.addEventListener("error",c("Network Error")),r.addEventListener("abort",c("Abort")),r.upload&&r.upload.addEventListener("progress",u=>{u.lengthComputable&&this.fire("progress",{total:u.total,uploaded:u.loaded})}),r.addEventListener("load",()=>{const u=r.status,_=r.response;if(u<200||u>299)return this.fire("error",_.message||_.error)})}_sendRequest(){const r=new FormData,c=this.xhr;return r.append("file",this.file),new Promise((u,_)=>{c.addEventListener("load",()=>{const C=c.status,M=c.response;return C<200||C>299?_(M.message?new at("fileuploader-uploading-data-failed",this,{message:M.message}):M.error):u(M)}),c.addEventListener("error",()=>_(new Error("Network Error"))),c.addEventListener("abort",()=>_(new Error("Abort"))),c.send(r)})}}class eT{constructor(r,c){if(!r)throw new at("uploadgateway-missing-token",null);if(!c)throw new at("uploadgateway-missing-api-address",null);this._token=r,this._apiAddress=c}upload(r){return new Cw(r,this._token,this._apiAddress)}}class Aw extends w_{static get pluginName(){return"CloudServicesCore"}createToken(r,c){return new p7(r,c)}createUploadGateway(r,c){return new eT(r,c)}}var nT=(m,r,c)=>new Promise((u,_)=>{var C=N=>{try{E(c.next(N))}catch(j){_(j)}},M=N=>{try{E(c.throw(N))}catch(j){_(j)}},E=N=>N.done?u(N.value):Promise.resolve(N.value).then(C,M);E((c=c.apply(m,r)).next())});class _7 extends Y0{}_7.builtinPlugins=[class extends lo{static get requires(){return[Ax,Tm,G8,N8,Ba,Sx]}static get pluginName(){return"Essentials"}},class extends lo{static get requires(){return[ip]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const m=this.editor.config.get("ckfinder.uploadUrl");m&&(this.editor.plugins.get(ip).createUploadAdapter=r=>new tA(r,m,this.editor.t))}},class extends lo{static get requires(){return[r_]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const m=this.editor.commands;m.get("bulletedList")&&qp(this.editor,this,/^[*-]\s$/,"bulletedList"),m.get("numberedList")&&qp(this.editor,this,/^1[.|)]\s$/,"numberedList"),m.get("todoList")&&qp(this.editor,this,/^\[\s?\]\s$/,"todoList"),m.get("checkTodoList")&&qp(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const m=this.editor.commands;if(m.get("bold")){const r=jh(this.editor,"bold");f2(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,r),f2(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,r)}if(m.get("italic")){const r=jh(this.editor,"italic");f2(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,r),f2(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,r)}if(m.get("code")){const r=jh(this.editor,"code");f2(this.editor,this,/(`)([^`]+)(`)$/g,r)}if(m.get("strikethrough")){const r=jh(this.editor,"strikethrough");f2(this.editor,this,/(~~)([^~]+)(~~)$/g,r)}}_addHeadingAutoformats(){const m=this.editor.commands.get("heading");m&&m.modelElements.filter(r=>r.match(/^heading[1-6]$/)).forEach(r=>{const u=new RegExp(`^(#{${r[7]}})\\s$`);qp(this.editor,this,u,()=>{if(!m.isEnabled||m.value===r)return!1;this.editor.execute("heading",{value:r})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&qp(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const m=this.editor,r=m.model.document.selection;m.commands.get("codeBlock")&&qp(m,this,/^```$/,()=>{if(r.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&qp(this.editor,this,/^---$/,"horizontalLine")}},class extends lo{static get requires(){return[j5,G5]}static get pluginName(){return"Bold"}},class extends lo{static get requires(){return[oy,V4]}static get pluginName(){return"Italic"}},class extends lo{static get requires(){return[W5,Fx]}static get pluginName(){return"BlockQuote"}},class extends lo{static get pluginName(){return"CKBox"}static get requires(){return[K5,Nx]}},class extends lo{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",Yx,zx]}},class extends w_{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[Aw]}init(){return nT(this,null,function*(){const m=this.context.config.get("cloudServices")||{};for(const[c,u]of Object.entries(m))this[c]=u;if(!this.tokenUrl)return void(this.token=null);const r=this.context.plugins.get("CloudServicesCore");this.token=yield r.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)})}registerTokenUrl(m){return nT(this,null,function*(){if(this._tokens.has(m))return this.getTokenFor(m);const r=this.context.plugins.get("CloudServicesCore"),c=yield r.createToken(m).init();return this._tokens.set(m,c),c})}getTokenFor(m){const r=this._tokens.get(m);if(!r)throw new at("cloudservices-token-not-registered",this);return r}destroy(){super.destroy();for(const m of this._tokens.values())m.destroy()}},class extends lo{static get pluginName(){return"EasyImage"}static get requires(){return[cA,"ImageUpload"]}init(){const m=this.editor;m.plugins.has("ImageBlockEditing")||m.plugins.has("ImageInlineEditing")||Zt("easy-image-image-feature-missing",m)}},class extends lo{static get requires(){return[ob,Jx]}static get pluginName(){return"Heading"}},class extends lo{static get requires(){return[tC,gA]}static get pluginName(){return"Image"}},class extends lo{static get requires(){return[bA,hb]}static get pluginName(){return"ImageCaption"}},class extends lo{static get requires(){return[fC,cy]}static get pluginName(){return"ImageStyle"}},class extends lo{static get requires(){return[J0,Sd]}static get pluginName(){return"ImageToolbar"}afterInit(){const m=this.editor,r=m.t,c=m.plugins.get(J0),u=m.plugins.get("ImageUtils");var _;c.register("image",{ariaLabel:r("Image toolbar"),items:(_=m.config.get("image.toolbar")||[],_.map(C=>Kt(C)?C.name:C)),getRelatedElement:C=>u.getClosestSelectedImageWidget(C)})}},class extends lo{static get pluginName(){return"ImageUpload"}static get requires(){return[yf,bb,CA]}},class extends lo{static get pluginName(){return"Indent"}static get requires(){return[a6,s3]}},class extends lo{static get requires(){return[zb,qA,u6]}static get pluginName(){return"Link"}},class extends lo{static get requires(){return[tv,HA]}static get pluginName(){return"List"}},class extends lo{static get requires(){return[nv,$A,WA,j0]}static get pluginName(){return"MediaEmbed"}},nb,class extends lo{static get pluginName(){return"PasteFromOffice"}static get requires(){return[Np]}init(){const m=this.editor,r=m.plugins.get("ClipboardPipeline"),c=m.editing.view.document,u=[];u.push(new g(c)),u.push(new V(c)),u.push(new kt(c)),r.on("inputTransformation",(_,C)=>{if(C._isTransformedWithPasteFromOffice||m.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const M=C.dataTransfer.getData("text/html"),E=u.find(N=>N.isActive(M));E&&(C._parsedData||(C._parsedData=function ye(m,r){const c=new DOMParser,u=jt(jt(function(N){const j="",dt=N.indexOf(j);if(dt<0)return N;const Dt=N.indexOf("",dt+j.length);return N.substring(0,dt+j.length)+(Dt>=0?N.substring(Dt):"")}(m=m.replace(//)>-1||t[D].search(/\]>/)>-1||t[D].search(/!DOCTYPE/)>-1)&&(x=!1)):t[D].search(/-->/)>-1||t[D].search(/\]>/)>-1?(k+=t[D],x=!1):/^<\w/.exec(t[D-1])&&/^<\/\w/.exec(t[D])&&/^<[\w:\-\.\,]+/.exec(t[D-1])==/^<\/[\w:\-\.\,]+/.exec(t[D])[0].replace("/","")?(k+=t[D],x||w--):t[D].search(/<\w/)>-1&&-1==t[D].search(/<\//)&&-1==t[D].search(/\/>/)?k=k+=x?t[D]:P[w++]+t[D]:t[D].search(/<\w/)>-1&&t[D].search(/<\//)>-1?k=k+=x?t[D]:P[w]+t[D]:t[D].search(/<\//)>-1?k=k+=x?t[D]:P[--w]+t[D]:t[D].search(/\/>/)>-1?k=k+=x?t[D]:P[w]+t[D]:t[D].search(/<\?/)>-1||t[D].search(/xmlns\:/)>-1||t[D].search(/xmlns\=/)>-1?k+=P[w]+t[D]:k+=t[D];return"\n"==k[0]?k.slice(1):k},b.prototype.json=function(v,t){return t=t||this.step,typeof JSON>"u"?v:"string"==typeof v?JSON.stringify(JSON.parse(v),null,t):"object"==typeof v?JSON.stringify(v,null,t):v},b.prototype.css=function(v,T){var t=v.replace(/\s{1,}/g," ").replace(/\{/g,"{~::~").replace(/\}/g,"~::~}~::~").replace(/\;/g,";~::~").replace(/\/\*/g,"~::~/*").replace(/\*\//g,"*/~::~").replace(/~::~\s{0,}~::~/g,"~::~").split("~::~"),A=t.length,x=0,w="",k=0,D=T?it(T):this.shift;for(k=0;k/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns")).replace(/>\s{0,}<")},b.prototype.jsonmin=function(v){return typeof JSON>"u"?v:JSON.stringify(JSON.parse(v),null,0)},b.prototype.cssmin=function(v,T){return(T?v:v.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g,"")).replace(/\s{1,}/g," ").replace(/\{\s{1,}/g,"{").replace(/\}\s{1,}/g,"}").replace(/\;\s{1,}/g,";").replace(/\/\*\s{1,}/g,"/*").replace(/\*\/\s{1,}/g,"*/")},b.prototype.sqlmin=function(v){return v.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")},rt.exports=new b},67824:(rt,it,b)=>{"use strict";function d(p){for(var v in p)it.hasOwnProperty(v)||(it[v]=p[v])}Object.defineProperty(it,"__esModule",{value:!0}),d(b(95085)),d(b(26243)),d(b(91786)),d(b(30225)),d(b(76767)),d(b(30345)),d(b(15675)),d(b(86461)),d(b(58802)),d(b(33900)),d(b(88866)),d(b(94655)),d(b(4068)),d(b(33858)),d(b(98237)),d(b(83292))},95085:function(rt,it,b){"use strict";var t,d=this&&this.__extends||(t=function(A,x){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,k){w.__proto__=k}||function(w,k){for(var D in k)k.hasOwnProperty(D)&&(w[D]=k[D])})(A,x)},function(A,x){function w(){this.constructor=A}t(A,x),A.prototype=null===x?Object.create(x):(w.prototype=x.prototype,new w)});Object.defineProperty(it,"__esModule",{value:!0});var p=b(15675),v=function(t){function A(x){var w=t.call(this)||this,D=x;return D.trigger&&(w.trigger=D.trigger),D.kick&&(w.kick=D.kick),D.drag&&(w.drag=D.drag),D.on&&(w.on=D.on),w.dragstart=w.dragStart=p.Layout.dragStart,w.dragend=w.dragEnd=p.Layout.dragEnd,w}return d(A,t),A.prototype.trigger=function(x){},A.prototype.kick=function(){},A.prototype.drag=function(){},A.prototype.on=function(x,w){return this},A}(p.Layout);it.LayoutAdaptor=v,it.adaptor=function T(t){return new v(t)}},83292:(rt,it,b)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var d=b(15675),p=b(76767);it.gridify=function v(A,x,w,k){A.cola.start(0,0,0,10,!1);var D=function T(A,x,w,k){A.forEach(function(P){P.routerNode={name:P.name,bounds:P.bounds.inflate(-w)}}),x.forEach(function(P){P.routerNode={bounds:P.bounds.inflate(-k),children:(typeof P.groups<"u"?P.groups.map(function(I){return A.length+I.id}):[]).concat(typeof P.leaves<"u"?P.leaves.map(function(I){return I.index}):[])}});var D=A.concat(x).map(function(P,I){return P.routerNode.id=I,P.routerNode});return new p.GridRouter(D,{getChildren:function(P){return P.children},getBounds:function(P){return P.bounds}},w-k)}(A.cola.nodes(),A.cola.groups(),w,k);return D.routeEdges(A.powerGraph.powerEdges,x,function(P){return P.source.routerNode.id},function(P){return P.target.routerNode.id})},it.powerGraphGridLayout=function t(A,x,w){var k;A.nodes.forEach(function(z,G){return z.index=G}),(new d.Layout).avoidOverlaps(!1).nodes(A.nodes).links(A.links).powerGraphGroups(function(z){(k=z).groups.forEach(function(G){return G.padding=w})});var D=A.nodes.length,P=[],I=A.nodes.slice(0);return I.forEach(function(z,G){return z.index=G}),k.groups.forEach(function(z){var G=z.index=z.id+D;I.push(z),typeof z.leaves<"u"&&z.leaves.forEach(function(W){return P.push({source:G,target:W.index})}),typeof z.groups<"u"&&z.groups.forEach(function(W){return P.push({source:G,target:W.id+D})})}),k.powerEdges.forEach(function(z){P.push({source:z.source.index,target:z.target.index})}),(new d.Layout).size(x).nodes(I).links(P).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new d.Layout).convergenceThreshold(.001).size(x).avoidOverlaps(!0).nodes(A.nodes).links(A.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(z){(k=z).groups.forEach(function(G){G.padding=w})}).start(50,0,100,0,!1),powerGraph:k}}},26243:(rt,it,b)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var d=b(49346),p=b(22487);it.d3adaptor=function v(t){return!t||function T(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new d.D3StyleLayoutAdaptor:new p.D3StyleLayoutAdaptor(t)}},49346:function(rt,it,b){"use strict";var t,d=this&&this.__extends||(t=function(A,x){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,k){w.__proto__=k}||function(w,k){for(var D in k)k.hasOwnProperty(D)&&(w[D]=k[D])})(A,x)},function(A,x){function w(){this.constructor=A}t(A,x),A.prototype=null===x?Object.create(x):(w.prototype=x.prototype,new w)});Object.defineProperty(it,"__esModule",{value:!0});var p=b(15675),v=function(t){function A(){var x=t.call(this)||this;x.event=d3.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var w=x;return x.drag=function(){if(!D)var D=d3.behavior.drag().origin(p.Layout.dragOrigin).on("dragstart.d3adaptor",p.Layout.dragStart).on("drag.d3adaptor",function(P){p.Layout.drag(P,d3.event),w.resume()}).on("dragend.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return D;this.call(D)},x}return d(A,t),A.prototype.trigger=function(x){var w={type:p.EventType[x.type],alpha:x.alpha,stress:x.stress};this.event[w.type](w)},A.prototype.kick=function(){var x=this;d3.timer(function(){return t.prototype.tick.call(x)})},A.prototype.on=function(x,w){return this.event.on("string"==typeof x?x:p.EventType[x],w),this},A}(p.Layout);it.D3StyleLayoutAdaptor=v,it.d3adaptor=function T(){return new v}},22487:function(rt,it,b){"use strict";var T,d=this&&this.__extends||(T=function(t,A){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,w){x.__proto__=w}||function(x,w){for(var k in w)w.hasOwnProperty(k)&&(x[k]=w[k])})(t,A)},function(t,A){function x(){this.constructor=t}T(t,A),t.prototype=null===A?Object.create(A):(x.prototype=A.prototype,new x)});Object.defineProperty(it,"__esModule",{value:!0});var p=b(15675),v=function(T){function t(A){var x=T.call(this)||this;x.d3Context=A,x.event=A.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var w=x;return x.drag=function(){if(!D)var D=A.drag().subject(p.Layout.dragOrigin).on("start.d3adaptor",p.Layout.dragStart).on("drag.d3adaptor",function(P){p.Layout.drag(P,A.event),w.resume()}).on("end.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return D;arguments[0].call(D)},x}return d(t,T),t.prototype.trigger=function(A){var x={type:p.EventType[A.type],alpha:A.alpha,stress:A.stress};this.event.call(x.type,x)},t.prototype.kick=function(){var A=this,x=this.d3Context.timer(function(){return T.prototype.tick.call(A)&&x.stop()})},t.prototype.on=function(A,x){return this.event.on("string"==typeof A?A:p.EventType[A],x),this},t}(p.Layout);it.D3StyleLayoutAdaptor=v},91786:(rt,it)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var b=function(){function v(){this.locks={}}return v.prototype.add=function(T,t){this.locks[T]=t},v.prototype.clear=function(){this.locks={}},v.prototype.isEmpty=function(){for(var T in this.locks)return!1;return!0},v.prototype.apply=function(T){for(var t in this.locks)T(Number(t),this.locks[t])},v}();it.Locks=b;var d=function(){function v(T,t,A){void 0===A&&(A=null),this.D=t,this.G=A,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new p,this.project=null,this.x=T,this.k=T.length;var x=this.n=T[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new b,this.minD=Number.MAX_VALUE;for(var k,w=x;w--;)for(k=x;--k>w;){var D=t[w][k];D>0&&D1e-9)break;var ct=this.offsetDir();for(x=0;x1&>>Pt||!isFinite(Pt)){for(x=0;x1&&(St=1);var Ht=Pt*Pt,Jt=2*St*(gt-Pt)/(Ht*gt),at=gt*gt*gt,Zt=2*-St/(Ht*at);for(isFinite(Jt)||console.log(Jt),x=0;x0?le-(Ae+1)*_t:le-(Ae-1)*_t)&&ot<=wt&&(this.scaleSnapByMaxH?(this.g[x][I]+=P*Qt*ot,this.H[x][I][I]+=P*Qt):(this.g[x][I]+=Qt*ot,this.H[x][I][I]+=Qt))}this.locks.isEmpty()||this.locks.apply(function(ze,Xe){for(x=0;x0;)for(var w=t;w-- >0;)A(x,w)},v.prototype.matrixApply=function(T){v.mApply(this.k,this.n,T)},v.prototype.computeNextPosition=function(T,t){var A=this;this.computeDerivatives(T);var x=this.computeStepSize(this.g);if(this.stepAndProject(T,t,this.g,x),this.project){this.matrixApply(function(k,D){return A.e[k][D]=T[k][D]-t[k][D]});var w=this.computeStepSize(this.e);w=Math.max(.2,Math.min(w,1)),this.stepAndProject(T,t,this.e,w)}},v.prototype.run=function(T){for(var t=Number.MAX_VALUE,A=!1;!A&&T-- >0;){var x=this.rungeKutta();A=Math.abs(t/x-1)>16)/this.range},v.prototype.getNextBetween=function(T,t){return T+this.getNext()*(t-T)},v}();it.PseudoRandom=p},30225:function(rt,it,b){"use strict";var Ce,d=this&&this.__extends||(Ce=function(Ae,Ne){return(Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Xe){ze.__proto__=Xe}||function(ze,Xe){for(var ie in Xe)Xe.hasOwnProperty(ie)&&(ze[ie]=Xe[ie])})(Ae,Ne)},function(Ae,Ne){function ze(){this.constructor=Ae}Ce(Ae,Ne),Ae.prototype=null===Ne?Object.create(Ne):(ze.prototype=Ne.prototype,new ze)});Object.defineProperty(it,"__esModule",{value:!0});var p=b(4068),v=function Ce(){};it.Point=v;var T=function Ce(Ae,Ne,ze,Xe){this.x1=Ae,this.y1=Ne,this.x2=ze,this.y2=Xe};it.LineSegment=T;var t=function(Ce){function Ae(){return null!==Ce&&Ce.apply(this,arguments)||this}return d(Ae,Ce),Ae}(v);function A(Ce,Ae,Ne){return(Ae.x-Ce.x)*(Ne.y-Ce.y)-(Ne.x-Ce.x)*(Ae.y-Ce.y)}function x(Ce,Ae,Ne){return A(Ce,Ae,Ne)>0}function w(Ce,Ae,Ne){return A(Ce,Ae,Ne)<0}function z(Ce,Ae){var Ne=Ae.slice(0);return Ne.push(Ae[0]),{rtan:G(Ce,Ne),ltan:W(Ce,Ne)}}function G(Ce,Ae){var ze,Xe,ie,re,Ne=Ae.length-1;if(w(Ce,Ae[1],Ae[0])&&!x(Ce,Ae[Ne-1],Ae[0]))return 0;for(ze=0,Xe=Ne;;){if(Xe-ze==1)return x(Ce,Ae[ze],Ae[Xe])?ze:Xe;if((re=w(Ce,Ae[(ie=Math.floor((ze+Xe)/2))+1],Ae[ie]))&&!x(Ce,Ae[ie-1],Ae[ie]))return ie;x(Ce,Ae[ze+1],Ae[ze])?re||x(Ce,Ae[ze],Ae[ie])?Xe=ie:ze=ie:re&&w(Ce,Ae[ze],Ae[ie])?Xe=ie:ze=ie}}function W(Ce,Ae){var ze,Xe,ie,re,Ne=Ae.length-1;if(x(Ce,Ae[Ne-1],Ae[0])&&!w(Ce,Ae[1],Ae[0]))return 0;for(ze=0,Xe=Ne;;){if(Xe-ze==1)return w(Ce,Ae[ze],Ae[Xe])?ze:Xe;if(re=w(Ce,Ae[(ie=Math.floor((ze+Xe)/2))+1],Ae[ie]),x(Ce,Ae[ie-1],Ae[ie])&&!re)return ie;w(Ce,Ae[ze+1],Ae[ze])?re?w(Ce,Ae[ze],Ae[ie])?Xe=ie:ze=ie:Xe=ie:re?ze=ie:x(Ce,Ae[ze],Ae[ie])?Xe=ie:ze=ie}}function ot(Ce,Ae,Ne,ze,Xe,ie){var Te,re;re=ze(Ce[Te=Ne(Ae[0],Ce)],Ae);for(var ee=!1;!ee;){for(ee=!0;Te===Ce.length-1&&(Te=0),!Xe(Ae[re],Ce[Te],Ce[Te+1]);)++Te;for(;0===re&&(re=Ae.length-1),!ie(Ce[Te],Ae[re],Ae[re-1]);)--re,ee=!1}return{t1:Te,t2:re}}function gt(Ce,Ae){return ot(Ce,Ae,G,W,x,w)}it.PolyPoint=t,it.isLeft=A,it.ConvexHull=function k(Ce){var ze,Ae=Ce.slice(0).sort(function(Le,on){return Le.x!==on.x?on.x-Le.x:on.y-Le.y}),Ne=Ce.length,ie=Ae[0].x;for(ze=1;ze=0&&Ae[ze].x===Kt;ze--);for(ee=ze+1,ze=Te;++ze<=ee;)if(!(A(Ae[0],Ae[ee],Ae[ze])>=0&&ze1&&!(A(re[re.length-2],re[re.length-1],Ae[ze])>0);)re.length-=1;0!=ze&&re.push(Ae[ze])}ue!=ee&&re.push(Ae[ue]);var ce=re.length;for(ze=ee;--ze>=Te;)if(!(A(Ae[ue],Ae[Te],Ae[ze])>=0&&ze>Te)){for(;re.length>ce&&!(A(re[re.length-2],re[re.length-1],Ae[ze])>0);)re.length-=1;0!=ze&&re.push(Ae[ze])}}return re},it.clockwiseRadialSweep=function D(Ce,Ae,Ne){Ae.slice(0).sort(function(ze,Xe){return Math.atan2(ze.y-Ce.y,ze.x-Ce.x)-Math.atan2(Xe.y-Ce.y,Xe.x-Ce.x)}).forEach(Ne)},it.tangent_PolyPolyC=ot,it.LRtangent_PolyPolyC=function ct(Ce,Ae){var Ne=gt(Ae,Ce);return{t1:Ne.t2,t2:Ne.t1}},it.RLtangent_PolyPolyC=gt,it.LLtangent_PolyPolyC=function Pt(Ce,Ae){return ot(Ce,Ae,W,W,w,w)},it.RRtangent_PolyPolyC=function St(Ce,Ae){return ot(Ce,Ae,G,G,x,x)};var Ht=function Ce(Ae,Ne){this.t1=Ae,this.t2=Ne};it.BiTangent=Ht;var Jt=function Ce(){};it.BiTangents=Jt;var at=function(Ce){function Ae(){return null!==Ce&&Ce.apply(this,arguments)||this}return d(Ae,Ce),Ae}(v);it.TVGPoint=at;var Zt=function Ce(Ae,Ne,ze,Xe){this.id=Ae,this.polyid=Ne,this.polyvertid=ze,this.p=Xe,Xe.vv=this};it.VisibilityVertex=Zt;var wt=function(){function Ce(Ae,Ne){this.source=Ae,this.target=Ne}return Ce.prototype.length=function(){var Ae=this.source.p.x-this.target.p.x,Ne=this.source.p.y-this.target.p.y;return Math.sqrt(Ae*Ae+Ne*Ne)},Ce}();it.VisibilityEdge=wt;var _t=function(){function Ce(Ae,Ne){if(this.P=Ae,this.V=[],this.E=[],Ne)this.V=Ne.V.slice(0),this.E=Ne.E.slice(0);else{for(var ze=Ae.length,Xe=0;Xe0&&this.E.push(new wt(ie[Te-1].vv,ee))}ie.length>1&&this.E.push(new wt(ie[0].vv,ie[ie.length-1].vv))}for(Xe=0;Xe0)return!0;return!1},Ce}();function Nt(Ce,Ae){for(var Ne=[],ze=1,Xe=Ae.length;ze=0&&hn>=0&&we<0&&bn>=0&&Ze>=0&&dn<0?Xe.ll=new Ht(ie,Te):on<=0&&hn<=0&&we>0&&bn<=0&&Ze<=0&&dn>0?Xe.rr=new Ht(ie,Te):on<=0&&hn>0&&we<=0&&bn>=0&&Ze<0&&dn>=0?Xe.rl=new Ht(ie,Te):on>=0&&hn<0&&we>=0&&bn<=0&&Ze>0&&dn<=0&&(Xe.lr=new Ht(ie,Te))}return Xe}function le(Ce,Ae){return!Ce.every(function(Ne){return!function qt(Ce,Ae){for(var Ne=1,ze=Ae.length;Ne0)return!0}return!1}},76767:(rt,it,b)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var d=b(4068),p=b(98237),v=b(33858),T=function w(k,D,P){this.id=k,this.rect=D,this.children=P,this.leaf=typeof P>"u"||0===P.length};it.NodeWrapper=T;var t=function w(k,D,P,I,z){void 0===I&&(I=null),void 0===z&&(z=null),this.id=k,this.x=D,this.y=P,this.node=I,this.line=z};it.Vert=t;var A=function(){function w(k,D){this.s=k,this.t=D;var P=w.findMatch(k,D),I=D.slice(0).reverse(),z=w.findMatch(k,I);P.length>=z.length?(this.length=P.length,this.si=P.si,this.ti=P.ti,this.reversed=!1):(this.length=z.length,this.si=z.si,this.ti=D.length-z.ti-z.length,this.reversed=!0)}return w.findMatch=function(k,D){for(var P=k.length,I=D.length,z={length:0,si:-1,ti:-1},G=new Array(P),W=0;Wz.length&&(z.length=ct,z.si=W-ct+1,z.ti=ot-ct+1)}else G[W][ot]=0}return z},w.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},w}();it.LongestCommonSubsequence=A;var x=function(){function w(k,D,P){var I=this;void 0===P&&(P=12),this.originalnodes=k,this.groupPadding=P,this.leaves=null,this.nodes=k.map(function(at,Zt){return new T(Zt,D.getBounds(at),D.getChildren(at))}),this.leaves=this.nodes.filter(function(at){return at.leaf}),this.groups=this.nodes.filter(function(at){return!at.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(at){return at.children.forEach(function(Zt){return I.nodes[Zt].parent=at})}),this.root={children:[]},this.nodes.forEach(function(at){typeof at.parent>"u"&&(at.parent=I.root,I.root.children.push(at.id)),at.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(at,Zt){return I.getDepth(at)-I.getDepth(Zt)}),this.backToFront.slice(0).reverse().filter(function(at){return!at.leaf}).forEach(function(at){var Zt=d.Rectangle.empty();at.children.forEach(function(wt){return Zt=Zt.union(I.nodes[wt].rect)}),at.rect=Zt.inflate(I.groupPadding)});var G=this.midPoints(this.cols.map(function(at){return at.pos})),W=this.midPoints(this.rows.map(function(at){return at.pos})),ot=G[0],ct=G[G.length-1],gt=W[0],Pt=W[W.length-1],St=this.rows.map(function(at){return{x1:ot,x2:ct,y1:at.pos,y2:at.pos}}).concat(W.map(function(at){return{x1:ot,x2:ct,y1:at,y2:at}})),Ht=this.cols.map(function(at){return{x1:at.pos,x2:at.pos,y1:gt,y2:Pt}}).concat(G.map(function(at){return{x1:at,x2:at,y1:gt,y2:Pt}})),Jt=St.concat(Ht);Jt.forEach(function(at){return at.verts=[]}),this.verts=[],this.edges=[],St.forEach(function(at){return Ht.forEach(function(Zt){var wt=new t(I.verts.length,Zt.x1,at.y1);at.verts.push(wt),Zt.verts.push(wt),I.verts.push(wt);for(var _t=I.backToFront.length;_t-- >0;){var Nt=I.backToFront[_t],Qt=Nt.rect,qt=Math.abs(wt.x-Qt.cx()),le=Math.abs(wt.y-Qt.cy());if(qt0;){var I=P.filter(function(G){return G.rect["overlap"+k.toUpperCase()](P[0].rect)}),z={nodes:I,pos:this.avg(I.map(function(G){return G.rect["c"+k]()}))};D.push(z),z.nodes.forEach(function(G){return P.splice(P.indexOf(G),1)})}return D.sort(function(G,W){return G.pos-W.pos}),D},w.prototype.getDepth=function(k){for(var D=0;k.parent!==this.root;)D++,k=k.parent;return D},w.prototype.midPoints=function(k){for(var D=k[1]-k[0],P=[k[0]-D/2],I=1;I.1)&>.push(Pt={pos:ot[0][D],segments:[]}),Pt.segments.push(ot)}return gt},w.nudgeSegs=function(k,D,P,I,z,G){var W=I.length;if(!(W<=1)){for(var ot=I.map(function(Nt){return new p.Variable(Nt[0][k])}),ct=[],gt=0;gt=0&&ct.push(new p.Constraint(ot[Zt],ot[wt],G))}new p.Solver(ot,ct).solve(),ot.forEach(function(Nt,Qt){var qt=I[Qt],le=Nt.position();qt[0][k]=qt[1][k]=le;var Wt=P[qt.edgeid];qt.i>0&&(Wt[qt.i-1][1][k]=le),qt.iMath.PI||z<-Math.PI)&&(z=I-P),z},w.isLeft=function(k,D,P){return(D.x-k.x)*(P.y-k.y)-(D.y-k.y)*(P.x-k.x)<=0},w.getOrder=function(k){for(var D={},P=0;P"u"&&(D[I.l]={}),D[I.l][I.r]=!0}return function(z,G){return typeof D[z]<"u"&&D[z][G]}},w.orderEdges=function(k){for(var D=[],P=0;P=z.length||W.ti+W.length>=G.length)){D.push({l:P,r:I});continue}W.si+W.length>=z.length||W.ti+W.length>=G.length?(ot=z[W.si+1],gt=z[W.si-1],ct=G[W.ti-1]):(ot=z[W.si+W.length-2],ct=z[W.si+W.length],gt=G[W.ti+W.length]),w.isLeft(ot,ct,gt)?D.push({l:I,r:P}):D.push({l:P,r:I})}}return w.getOrder(D)},w.makeSegments=function(k){function D(ct){return{x:ct.x,y:ct.y}}for(var I=[],z=D(k[0]),G=1;G1&&Ce>1?1e3:0}).reverse().map(function(wt){return P.verts[wt]});return Zt.push(this.nodes[z.id].ports[0]),Zt.filter(function(wt,_t){return!(_t0&&wt.node===z&&Zt[_t-1].node===z)})},w.getRoutePath=function(k,D,P,I){var W,ot,ct,Wt,Ce,z={routepath:"M "+k[0][0].x+" "+k[0][0].y+" ",arrowpath:""};if(k.length>1)for(var G=0;G0?ot-=gt/Math.abs(gt)*D:ct-=Pt/Math.abs(Pt)*D,z.routepath+="L "+ot+" "+ct+" ";var St=k[G+1],Ht=St[0].x,Jt=St[0].y;gt=St[1].x-Ht,Pt=St[1].y-Jt;var _t,Nt,wt=w.angleBetween2Lines(W,St)<0?1:0;Math.abs(gt)>0?(_t=Ht+gt/Math.abs(gt)*D,Nt=Jt):(_t=Ht,Nt=Jt+Pt/Math.abs(Pt)*D);var Qt=Math.abs(_t-ot),qt=Math.abs(Nt-ct);z.routepath+="A "+Qt+" "+qt+" 0 0 "+wt+" "+_t+" "+Nt+" "}else{var le=[ot,ct];Math.abs(gt)>0?(Wt=[ot-=gt/Math.abs(gt)*I,ct+P],Ce=[ot,ct-P]):(Wt=[ot+P,ct-=Pt/Math.abs(Pt)*I],Ce=[ot-P,ct]),z.routepath+="L "+ot+" "+ct+" ",I>0&&(z.arrowpath="M "+le[0]+" "+le[1]+" L "+Wt[0]+" "+Wt[1]+" L "+Ce[0]+" "+Ce[1])}}else gt=(ot=(W=k[0])[1].x)-W[0].x,Pt=(ct=W[1].y)-W[0].y,le=[ot,ct],Math.abs(gt)>0?(Wt=[ot-=gt/Math.abs(gt)*I,ct+P],Ce=[ot,ct-P]):(Wt=[ot+P,ct-=Pt/Math.abs(Pt)*I],Ce=[ot-P,ct]),z.routepath+="L "+ot+" "+ct+" ",I>0&&(z.arrowpath="M "+le[0]+" "+le[1]+" L "+Wt[0]+" "+Wt[1]+" L "+Ce[0]+" "+Ce[1]);return z},w}();it.GridRouter=x},30345:(rt,it)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var b_GOLDEN_SECTION=(1+Math.sqrt(5))/2;it.applyPacking=function d(v,T,t,G,z,w){void 0===z&&(z=1),void 0===w&&(w=!0);var P=T,I=t,W=(z=typeof z<"u"?z:1,G=typeof G<"u"?G:0,0),ot=0,ct=0,gt=0,Pt=[];function at(Nt,Qt){Pt=[],W=0,ot=0,gt=0;for(var qt=0;qt=Nt.height&&Pt[le].x+Pt[le].width+Nt.width+10-Qt<=1e-4){qt=Pt[le];break}Pt.push(Nt),void 0!==qt?(Nt.x=qt.x+qt.width+10,Nt.y=qt.bottom,Nt.space_left=Nt.height,Nt.bottom=Nt.y,qt.space_left-=Nt.height+10,qt.bottom+=Nt.height+10):(Nt.y=gt,gt+=Nt.height+10,Nt.x=0,Nt.bottom=Nt.y,Nt.space_left=Nt.height),Nt.y+Nt.height-ot>-1e-4&&(ot=Nt.y+Nt.height-0),Nt.x+Nt.width-W>-1e-4&&(W=Nt.x+Nt.width-0)}0!=v.length&&(function St(Nt){Nt.forEach(function(qt){!function Qt(qt){var le=Number.MAX_VALUE,Wt=Number.MAX_VALUE,Ce=0,Ae=0;qt.array.forEach(function(Ne){var ze=typeof Ne.width<"u"?Ne.width:G,Xe=typeof Ne.height<"u"?Ne.height:G;ze/=2,Xe/=2,Ce=Math.max(Ne.x+ze,Ce),le=Math.min(Ne.x-ze,le),Ae=Math.max(Ne.y+Xe,Ae),Wt=Math.min(Ne.y-Xe,Wt)}),qt.width=Ce-le,qt.height=Ae-Wt}(qt)})}(v),function Jt(Nt,Qt){var qt=Number.POSITIVE_INFINITY,le=0;Nt.sort(function(ue,Kt){return Kt.height-ue.height});for(var Wt=re=ct=Nt.reduce(function(ue,Kt){return ue.widthct||Te>1e-4;){if(1!=Xe){var re=Ce-(Ce-Wt)/b_GOLDEN_SECTION;Ne=at(Nt,re)}if(0!=Xe){var ee=Wt+(Ce-Wt)/b_GOLDEN_SECTION;ze=at(Nt,ee)}if(ie=Math.abs(re-ee),Te=Math.abs(Ne-ze),Neze?(Wt=re,re=ee,Ne=ze,Xe=1):(Ce=ee,ee=re,ze=Ne,Xe=0),Ae++>100)break}at(Nt,le)}(v),w&&function Ht(Nt){Nt.forEach(function(Qt){var qt={x:0,y:0};Qt.array.forEach(function(Ce){qt.x+=Ce.x,qt.y+=Ce.y}),qt.x/=Qt.array.length,qt.y/=Qt.array.length;var Wt_x=Qt.x-(qt.x-Qt.width/2)+P/2-W/2,Wt_y=Qt.y-(qt.y-Qt.height/2)+I/2-ot/2;Qt.array.forEach(function(Ce){Ce.x+=Wt_x,Ce.y+=Wt_y})})}(v))},it.separateGraphs=function p(v,T){for(var t={},A={},x=[],w=0,k=0;k{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var w,P,d=b(33900),p=b(58802),v=b(91786),T=b(4068),t=b(33858),A=b(30225),x=b(30345);function k(P){return typeof P.leaves<"u"||typeof P.groups<"u"}(P=w=it.EventType||(it.EventType={}))[P.start=0]="start",P[P.tick=1]="tick",P[P.end=2]="end";var D=function(){function P(){var I=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:P.getSourceIndex,getTargetIndex:P.getTargetIndex,setLength:P.setLinkLength,getType:function(z){return"function"==typeof I._linkType?I._linkType(z):0}}}return P.prototype.on=function(I,z){return this.event||(this.event={}),"string"==typeof I?this.event[w[I]]=z:this.event[I]=z,this},P.prototype.trigger=function(I){this.event&&typeof this.event[I.type]<"u"&&this.event[I.type](I)},P.prototype.kick=function(){for(;!this.tick(););},P.prototype.tick=function(){if(this._alpha"u"||typeof G.py>"u")&&(G.px=G.x,G.py=G.y),this._descent.locks.add(W,[G.px,G.py]));var ct=this._descent.rungeKutta();return 0===ct?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=ct),this._lastStress=ct,this.updateNodePositions(),this.trigger({type:w.tick,alpha:this._alpha,stress:this._lastStress}),!1},P.prototype.updateNodePositions=function(){for(var G,I=this._descent.x[0],z=this._descent.x[1],W=this._nodes.length;W--;)(G=this._nodes[W]).x=I[W],G.y=z[W]},P.prototype.nodes=function(I){if(!I){if(0===this._nodes.length&&this._links.length>0){var z=0;this._links.forEach(function(W){z=Math.max(z,W.source,W.target)}),this._nodes=new Array(++z);for(var G=0;G"u"&&(G.padding=1),typeof G.leaves<"u"&&G.leaves.forEach(function(W,ot){"number"==typeof W&&((G.leaves[ot]=z._nodes[W]).parent=G)}),typeof G.groups<"u"&&G.groups.forEach(function(W,ot){"number"==typeof W&&((G.groups[ot]=z._groups[W]).parent=G)})}),this._rootGroup.leaves=this._nodes.filter(function(G){return typeof G.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(G){return typeof G.parent>"u"}),this):this._groups},P.prototype.powerGraphGroups=function(I){var z=d.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(z.groups),I(z),this},P.prototype.avoidOverlaps=function(I){return arguments.length?(this._avoidOverlaps=I,this):this._avoidOverlaps},P.prototype.handleDisconnected=function(I){return arguments.length?(this._handleDisconnected=I,this):this._handleDisconnected},P.prototype.flowLayout=function(I,z){return arguments.length||(I="y"),this._directedLinkConstraints={axis:I,getMinSeparation:"number"==typeof z?function(){return z}:z},this},P.prototype.links=function(I){return arguments.length?(this._links=I,this):this._links},P.prototype.constraints=function(I){return arguments.length?(this._constraints=I,this):this._constraints},P.prototype.distanceMatrix=function(I){return arguments.length?(this._distanceMatrix=I,this):this._distanceMatrix},P.prototype.size=function(I){return I?(this._canvasSize=I,this):this._canvasSize},P.prototype.defaultNodeSize=function(I){return I?(this._defaultNodeSize=I,this):this._defaultNodeSize},P.prototype.groupCompactness=function(I){return I?(this._groupCompactness=I,this):this._groupCompactness},P.prototype.linkDistance=function(I){return I?(this._linkDistance="function"==typeof I?I:+I,this._linkLengthCalculator=null,this):this._linkDistance},P.prototype.linkType=function(I){return this._linkType=I,this},P.prototype.convergenceThreshold=function(I){return I?(this._threshold="function"==typeof I?I:+I,this):this._threshold},P.prototype.alpha=function(I){return arguments.length?(I=+I,this._alpha?this._alpha=I>0?I:0:I>0&&(this._running||(this._running=!0,this.trigger({type:w.start,alpha:this._alpha=I}),this.kick())),this):this._alpha},P.prototype.getLinkLength=function(I){return"function"==typeof this._linkDistance?+this._linkDistance(I):this._linkDistance},P.setLinkLength=function(I,z){I.length=z},P.prototype.getLinkType=function(I){return"function"==typeof this._linkType?this._linkType(I):0},P.prototype.symmetricDiffLinkLengths=function(I,z){var G=this;return void 0===z&&(z=1),this.linkDistance(function(W){return I*W.length}),this._linkLengthCalculator=function(){return p.symmetricDiffLinkLengths(G._links,G.linkAccessor,z)},this},P.prototype.jaccardLinkLengths=function(I,z){var G=this;return void 0===z&&(z=1),this.linkDistance(function(W){return I*W.length}),this._linkLengthCalculator=function(){return p.jaccardLinkLengths(G._links,G.linkAccessor,z)},this},P.prototype.start=function(I,z,G,W,ot,ct){var gt=this;void 0===I&&(I=0),void 0===z&&(z=0),void 0===G&&(G=0),void 0===W&&(W=0),void 0===ot&&(ot=!0),void 0===ct&&(ct=!0);var le,Ht=this.nodes().length,Jt=Ht+2*this._groups.length,Zt=this._canvasSize[0],wt=this._canvasSize[1],_t=new Array(Jt),Nt=new Array(Jt),Qt=null,qt=this._avoidOverlaps;this._nodes.forEach(function(ie,Te){ie.index=Te,typeof ie.x>"u"&&(ie.x=Zt/2,ie.y=wt/2),_t[Te]=ie.x,Nt[Te]=ie.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?le=this._distanceMatrix:(le=new t.Calculator(Jt,this._links,P.getSourceIndex,P.getTargetIndex,function(ie){return gt.getLinkLength(ie)}).DistanceMatrix(),Qt=v.Descent.createSquareMatrix(Jt,function(){return 2}),this._links.forEach(function(ie){"number"==typeof ie.source&&(ie.source=gt._nodes[ie.source]),"number"==typeof ie.target&&(ie.target=gt._nodes[ie.target])}),this._links.forEach(function(ie){var Te=P.getSourceIndex(ie),re=P.getTargetIndex(ie);Qt[Te][re]=Qt[re][Te]=ie.weight||1}));var Wt=v.Descent.createSquareMatrix(Jt,function(ie,Te){return le[ie][Te]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Pt=Ht;this._groups.forEach(function(Te){(function(Te,re,ee,ue){Qt[Te][re]=Qt[re][Te]=ee,Wt[Te][re]=Wt[re][Te]=.1})(Pt,Pt+1,gt._groupCompactness),_t[Pt]=0,Nt[Pt++]=0,_t[Pt]=0,Nt[Pt++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var Ae=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,Ae=Ae.concat(p.generateDirectedEdgeConstraints(Ht,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new v.Descent([_t,Nt],Wt),this._descent.locks.clear(),Pt=0;Pt0&&(this._descent.project=new T.Projection(this._nodes,this._groups,this._rootGroup,Ae).projectFunctions()),this._descent.run(z),this.separateOverlappingComponents(Zt,wt,ct),this.avoidOverlaps(qt),qt&&(this._nodes.forEach(function(ie,Te){ie.x=_t[Te],ie.y=Nt[Te]}),this._descent.project=new T.Projection(this._nodes,this._groups,this._rootGroup,Ae,!0).projectFunctions(),this._nodes.forEach(function(ie,Te){_t[Te]=ie.x,Nt[Te]=ie.y})),this._descent.G=Qt,this._descent.run(G),W){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=Ht,this._descent.scaleSnapByMaxH=Ht!=Jt;var Xe=v.Descent.createSquareMatrix(Jt,function(ie,Te){return ie>=Ht||Te>=Ht?Qt[ie][Te]:0});this._descent.G=Xe,this._descent.run(W)}return this.updateNodePositions(),this.separateOverlappingComponents(Zt,wt,ct),ot?this.resume():this},P.prototype.initialLayout=function(I,z,G){if(this._groups.length>0&&I>0){var W=this._nodes.length,ot=this._links.map(function(gt){return{source:gt.source.index,target:gt.target.index}}),ct=this._nodes.map(function(gt){return{index:gt.index}});this._groups.forEach(function(gt,Pt){ct.push({index:gt.index=W+Pt})}),this._groups.forEach(function(gt,Pt){typeof gt.leaves<"u"&>.leaves.forEach(function(St){return ot.push({source:gt.index,target:St.index})}),typeof gt.groups<"u"&>.groups.forEach(function(St){return ot.push({source:gt.index,target:St.index})})}),(new P).size(this.size()).nodes(ct).links(ot).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(I,0,0,0,!1),this._nodes.forEach(function(gt){z[gt.index]=ct[gt.index].x,G[gt.index]=ct[gt.index].y})}else this._descent.run(I)},P.prototype.separateOverlappingComponents=function(I,z,G){var W=this;if(void 0===G&&(G=!0),!this._distanceMatrix&&this._handleDisconnected){var ot=this._descent.x[0],ct=this._descent.x[1];this._nodes.forEach(function(Pt,St){Pt.x=ot[St],Pt.y=ct[St]});var gt=x.separateGraphs(this._nodes,this._links);x.applyPacking(gt,I,z,this._defaultNodeSize,1,G),this._nodes.forEach(function(Pt,St){W._descent.x[0][St]=Pt.x,W._descent.x[1][St]=Pt.y,Pt.bounds&&(Pt.bounds.setXCentre(Pt.x),Pt.bounds.setYCentre(Pt.y))})}},P.prototype.resume=function(){return this.alpha(.1)},P.prototype.stop=function(){return this.alpha(0)},P.prototype.prepareEdgeRouting=function(I){void 0===I&&(I=0),this._visibilityGraph=new A.TangentVisibilityGraph(this._nodes.map(function(z){return z.bounds.inflate(-I).vertices()}))},P.prototype.routeEdge=function(I,z,G){void 0===z&&(z=5);var W=[],ot=new A.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),ct={x:I.source.x,y:I.source.y},gt={x:I.target.x,y:I.target.y},Pt=ot.addPoint(ct,I.source.index),St=ot.addPoint(gt,I.target.index);ot.addEdgeIfVisible(ct,gt,I.source.index,I.target.index),typeof G<"u"&&G(ot);var wt=new t.Calculator(ot.V.length,ot.E,function(Wt){return Wt.source.id},function(Wt){return Wt.target.id},function(Wt){return Wt.length()}).PathFromNodeToNode(Pt.id,St.id);if(1===wt.length||wt.length===ot.V.length){var _t=T.makeEdgeBetween(I.source.innerBounds,I.target.innerBounds,z);W=[_t.sourceIntersection,_t.arrowStart]}else{for(var Nt=wt.length-2,Qt=ot.V[wt[Nt]].p,qt=ot.V[wt[0]].p,le=(W=[I.source.innerBounds.rayIntersection(Qt.x,Qt.y)],Nt);le>=0;--le)W.push(ot.V[wt[le]].p);W.push(T.makeEdgeTo(qt,I.target.innerBounds,z))}return W},P.getSourceIndex=function(I){return"number"==typeof I.source?I.source:I.source.index},P.getTargetIndex=function(I){return"number"==typeof I.target?I.target:I.target.index},P.linkId=function(I){return P.getSourceIndex(I)+"-"+P.getTargetIndex(I)},P.dragStart=function(I){k(I)?P.storeOffset(I,P.dragOrigin(I)):(P.stopNode(I),I.fixed|=2)},P.stopNode=function(I){I.px=I.x,I.py=I.y},P.storeOffset=function(I,z){typeof I.leaves<"u"&&I.leaves.forEach(function(G){G.fixed|=2,P.stopNode(G),G._dragGroupOffsetX=G.x-z.x,G._dragGroupOffsetY=G.y-z.y}),typeof I.groups<"u"&&I.groups.forEach(function(G){return P.storeOffset(G,z)})},P.dragOrigin=function(I){return k(I)?{x:I.bounds.cx(),y:I.bounds.cy()}:I},P.drag=function(I,z){k(I)?(typeof I.leaves<"u"&&I.leaves.forEach(function(G){I.bounds.setXCentre(z.x),I.bounds.setYCentre(z.y),G.px=G._dragGroupOffsetX+z.x,G.py=G._dragGroupOffsetY+z.y}),typeof I.groups<"u"&&I.groups.forEach(function(G){return P.drag(G,z)})):(I.px=z.x,I.py=z.y)},P.dragEnd=function(I){k(I)?(typeof I.leaves<"u"&&I.leaves.forEach(function(z){P.dragEnd(z),delete z._dragGroupOffsetX,delete z._dragGroupOffsetY}),typeof I.groups<"u"&&I.groups.forEach(P.dragEnd)):I.fixed&=-7},P.mouseOver=function(I){I.fixed|=4,I.px=I.x,I.py=I.y},P.mouseOut=function(I){I.fixed&=-5},P}();it.Layout=D},86461:(rt,it,b)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var d=b(33858),p=b(91786),v=b(4068),T=b(58802),t=function(){function k(D,P){this.source=D,this.target=P}return k.prototype.actualLength=function(D){var P=this;return Math.sqrt(D.reduce(function(I,z){var G=z[P.target]-z[P.source];return I+G*G},0))},k}();it.Link3D=t,it.Node3D=function k(D,P,I){void 0===D&&(D=0),void 0===P&&(P=0),void 0===I&&(I=0),this.x=D,this.y=P,this.z=I};var x=function(){function k(D,P,I){var z=this;void 0===I&&(I=1),this.nodes=D,this.links=P,this.idealLinkLength=I,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(k.k);for(var G=0;G"u"&&(W[Pt]=Math.random())}z.result[0][ot]=W.x,z.result[1][ot]=W.y,z.result[2][ot]=W.z})}return k.prototype.linkLength=function(D){return D.actualLength(this.result)},k.prototype.start=function(D){var P=this;void 0===D&&(D=100);var I=this.nodes.length,z=new w;this.useJaccardLinkLengths&&T.jaccardLinkLengths(this.links,z,1.5),this.links.forEach(function(Pt){return Pt.length*=P.idealLinkLength});var G=new d.Calculator(I,this.links,function(Pt){return Pt.source},function(Pt){return Pt.target},function(Pt){return Pt.length}).DistanceMatrix(),W=p.Descent.createSquareMatrix(I,function(Pt,St){return G[Pt][St]}),ot=p.Descent.createSquareMatrix(I,function(){return 2});this.links.forEach(function(Pt){var St=Pt.source,Ht=Pt.target;return ot[St][Ht]=ot[Ht][St]=1}),this.descent=new p.Descent(this.result,W),this.descent.threshold=.001,this.descent.G=ot,this.constraints&&(this.descent.project=new v.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var ct=0;ct{"use strict";function b(w,k){var D={};for(var P in w)D[P]={};for(var P in k)D[P]={};return Object.keys(D).length}function d(w,k){var D=0;for(var P in w)typeof k[P]<"u"&&++D;return D}function v(w,k,D,P){var I=function p(w,k){var D={},P=function(I,z){typeof D[I]>"u"&&(D[I]={}),D[I][z]={}};return w.forEach(function(I){var z=k.getSourceIndex(I),G=k.getTargetIndex(I);P(z,G),P(G,z)}),D}(w,P);w.forEach(function(z){var G=I[P.getSourceIndex(z)],W=I[P.getTargetIndex(z)];P.setLength(z,1+k*D(G,W))})}function x(w,k,D){var P=[],I=0,z=[],G=[];function W(wt){wt.index=wt.lowlink=I++,z.push(wt),wt.onStack=!0;for(var _t=0,Nt=wt.out;_t"u"?(W(Qt),wt.lowlink=Math.min(wt.lowlink,Qt.lowlink)):Qt.onStack&&(wt.lowlink=Math.min(wt.lowlink,Qt.index))}if(wt.lowlink===wt.index){for(var qt=[];z.length&&((Qt=z.pop()).onStack=!1,qt.push(Qt),Qt!==wt););G.push(qt.map(function(le){return le.id}))}}for(var ot=0;ot"u"&&W(Zt)}return G}Object.defineProperty(it,"__esModule",{value:!0}),it.symmetricDiffLinkLengths=function T(w,k,D){void 0===D&&(D=1),v(w,D,function(P,I){return Math.sqrt(b(P,I)-d(P,I))},k)},it.jaccardLinkLengths=function t(w,k,D){void 0===D&&(D=1),v(w,D,function(P,I){return Math.min(Object.keys(P).length,Object.keys(I).length)<1.1?0:d(P,I)/b(P,I)},k)},it.generateDirectedEdgeConstraints=function A(w,k,D,P){var I=x(w,k,P),z={};I.forEach(function(W,ot){return W.forEach(function(ct){return z[ct]=ot})});var G=[];return k.forEach(function(W){var ot=P.getSourceIndex(W),ct=P.getTargetIndex(W);z[ot]!==z[ct]&&G.push({axis:D,left:ot,right:ct,gap:P.getMinSeparation(W)})}),G},it.stronglyConnectedComponents=x},33900:(rt,it)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var b=function k(D,P,I){this.source=D,this.target=P,this.type=I};it.PowerEdge=b;var d=function(){function k(D,P,I,z){var G=this;if(this.linkAccessor=I,this.modules=new Array(D),this.roots=[],z)this.initModulesFromGroup(z);else{this.roots.push(new t);for(var W=0;W=this.R))return this.merge(I.a,I.b,D),!0}},k.prototype.nEdges=function(D,P){var I=D.incoming.intersection(P.incoming),z=D.outgoing.intersection(P.outgoing);return this.R-I.count()-z.count()},k.prototype.getGroupHierarchy=function(D){var P=this,I=[];return p(this.roots[0],{},I),this.allEdges().forEach(function(W){var ot=P.modules[W.source],ct=P.modules[W.target];D.push(new b(typeof ot.gid>"u"?W.source:I[ot.gid],typeof ct.gid>"u"?W.target:I[ct.gid],W.type))}),I},k.prototype.allEdges=function(){var D=[];return k.getEdges(this.roots[0],D),D},k.getEdges=function(D,P){D.forAll(function(I){I.getEdges(P),k.getEdges(I.children,P)})},k}();function p(k,D,P){k.forAll(function(I){if(I.isLeaf())D.leaves||(D.leaves=[]),D.leaves.push(I.id);else{var z=D;if(I.gid=P.length,!I.isIsland()||I.isPredefined()){if(z={id:I.gid},I.isPredefined())for(var G in I.definition)z[G]=I.definition[G];D.groups||(D.groups=[]),D.groups.push(I.gid),P.push(z)}p(I.children,z,P)}})}it.Configuration=d;var v=function(){function k(D,P,I,z,G){void 0===P&&(P=new A),void 0===I&&(I=new A),void 0===z&&(z=new t),this.id=D,this.outgoing=P,this.incoming=I,this.children=z,this.definition=G}return k.prototype.getEdges=function(D){var P=this;this.outgoing.forAll(function(I,z){I.forAll(function(G){D.push(new b(P.id,G.id,z))})})},k.prototype.isLeaf=function(){return 0===this.children.count()},k.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},k.prototype.isPredefined=function(){return typeof this.definition<"u"},k}();it.Module=v;var t=function(){function k(){this.table={}}return k.prototype.count=function(){return Object.keys(this.table).length},k.prototype.intersection=function(D){var P=new k;return P.table=function T(k,D){var P={};for(var I in k)I in D&&(P[I]=k[I]);return P}(this.table,D.table),P},k.prototype.intersectionCount=function(D){return this.intersection(D).count()},k.prototype.contains=function(D){return D in this.table},k.prototype.add=function(D){this.table[D.id]=D},k.prototype.remove=function(D){delete this.table[D.id]},k.prototype.forAll=function(D){for(var P in this.table)D(this.table[P])},k.prototype.modules=function(){var D=[];return this.forAll(function(P){P.isPredefined()||D.push(P)}),D},k}();it.ModuleSet=t;var A=function(){function k(){this.sets={},this.n=0}return k.prototype.count=function(){return this.n},k.prototype.contains=function(D){var P=!1;return this.forAllModules(function(I){!P&&I.id==D&&(P=!0)}),P},k.prototype.add=function(D,P){(D in this.sets?this.sets[D]:this.sets[D]=new t).add(P),++this.n},k.prototype.remove=function(D,P){var I=this.sets[D];I.remove(P),0===I.count()&&delete this.sets[D],--this.n},k.prototype.forAll=function(D){for(var P in this.sets)D(this.sets[P],Number(P))},k.prototype.forAllModules=function(D){this.forAll(function(P,I){return P.forAll(D)})},k.prototype.intersection=function(D){var P=new k;return this.forAll(function(I,z){if(z in D.sets){var G=I.intersection(D.sets[z]),W=G.count();W>0&&(P.sets[z]=G,P.n+=W)}}),P},k}();it.LinkSets=A,it.getGroups=function w(k,D,P,I){for(var G=new d(k.length,D,P,I);G.greedyMerge(););var W=[],ot=G.getGroupHierarchy(W);return W.forEach(function(ct){var gt=function(Pt){var St=ct[Pt];"number"==typeof St&&(ct[Pt]=k[St])};gt("source"),gt("target")}),{groups:ot,powerEdges:W}}},88866:(rt,it)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var b=function(){function p(v){this.elem=v,this.subheaps=[]}return p.prototype.toString=function(v){for(var T="",t=!1,A=0;A0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(A){for(var x=this._root;null!==x;){var w=this._comparator(A,x.data);if(0===w)return x.data;x=x.get_child(w>0)}return null},t.prototype.lowerBound=function(A){return this._bound(A,this._comparator)},t.prototype.upperBound=function(A){var x=this._comparator;return this._bound(A,function w(k,D){return x(D,k)})},t.prototype.min=function(){var A=this._root;if(null===A)return null;for(;null!==A.left;)A=A.left;return A.data},t.prototype.max=function(){var A=this._root;if(null===A)return null;for(;null!==A.right;)A=A.right;return A.data},t.prototype.iterator=function(){return new p(this)},t.prototype.each=function(A){for(var w,x=this.iterator();null!==(w=x.next());)A(w)},t.prototype.reach=function(A){for(var w,x=this.iterator();null!==(w=x.prev());)A(w)},t.prototype._bound=function(A,x){for(var w=this._root,k=this.iterator();null!==w;){var D=this._comparator(A,w.data);if(0===D)return k._cursor=w,k;k._ancestors.push(w),w=w.get_child(D>0)}for(var P=k._ancestors.length-1;P>=0;--P)if(x(A,(w=k._ancestors[P]).data)>0)return k._cursor=w,k._ancestors.length=P,k;return k._ancestors.length=0,k},t}();it.TreeBase=d;var p=function(){function t(A){this._tree=A,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var A=this._tree._root;null!==A&&this._minNode(A)}else if(null===this._cursor.right){var x;do{if(x=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===x)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var A=this._tree._root;null!==A&&this._maxNode(A)}else if(null===this._cursor.left){var x;do{if(x=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===x)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(A){for(;null!==A.left;)this._ancestors.push(A),A=A.left;this._cursor=A},t.prototype._maxNode=function(A){for(;null!==A.right;)this._ancestors.push(A),A=A.right;this._cursor=A},t}();it.Iterator=p;var v=function(){function t(A){this.data=A,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(A){return A?this.right:this.left},t.prototype.set_child=function(A,x){A?this.right=x:this.left=x},t}(),T=function(t){function A(x){var w=t.call(this)||this;return w._root=null,w._comparator=x,w.size=0,w}return b(A,t),A.prototype.insert=function(x){var w=!1;if(null===this._root)this._root=new v(x),w=!0,this.size++;else{var k=new v(void 0),D=!1,P=!1,I=null,z=k,G=null,W=this._root;for(z.right=this._root;;){if(null===W?(W=new v(x),G.set_child(D,W),w=!0,this.size++):A.is_red(W.left)&&A.is_red(W.right)&&(W.red=!0,W.left.red=!1,W.right.red=!1),A.is_red(W)&&A.is_red(G)){var ot=z.right===I;W===G.get_child(P)?z.set_child(ot,A.single_rotate(I,!P)):z.set_child(ot,A.double_rotate(I,!P))}var ct=this._comparator(W.data,x);if(0===ct)break;P=D,null!==I&&(z=I),I=G,G=W,W=W.get_child(D=ct<0)}this._root=k.right}return this._root.red=!1,w},A.prototype.remove=function(x){if(null===this._root)return!1;var w=new v(void 0),k=w;k.right=this._root;for(var D=null,P=null,I=null,z=!0;null!==k.get_child(z);){var G=z;P=D,D=k,k=k.get_child(z);var W=this._comparator(x,k.data);if(z=W>0,0===W&&(I=k),!A.is_red(k)&&!A.is_red(k.get_child(z)))if(A.is_red(k.get_child(!z))){var ot=A.single_rotate(k,z);D.set_child(G,ot),D=ot}else if(!A.is_red(k.get_child(!z))){var ct=D.get_child(!G);if(null!==ct)if(A.is_red(ct.get_child(!G))||A.is_red(ct.get_child(G))){var gt=P.right===D;A.is_red(ct.get_child(G))?P.set_child(gt,A.double_rotate(D,G)):A.is_red(ct.get_child(!G))&&P.set_child(gt,A.single_rotate(D,G));var Pt=P.get_child(gt);Pt.red=!0,k.red=!0,Pt.left.red=!1,Pt.right.red=!1}else D.red=!1,ct.red=!0,k.red=!0}}return null!==I&&(I.data=k.data,D.set_child(D.right===k,k.get_child(null===k.left)),this.size--),this._root=w.right,null!==this._root&&(this._root.red=!1),null!==I},A.is_red=function(x){return null!==x&&x.red},A.single_rotate=function(x,w){var k=x.get_child(!w);return x.set_child(!w,k.get_child(w)),k.set_child(w,x),x.red=!0,k.red=!1,k},A.double_rotate=function(x,w){return x.set_child(!w,A.single_rotate(x.get_child(!w),!w)),A.single_rotate(x,w)},A}(d);it.RBTree=T},4068:function(rt,it,b){"use strict";var wt,d=this&&this.__extends||(wt=function(_t,Nt){return(wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qt,qt){Qt.__proto__=qt}||function(Qt,qt){for(var le in qt)qt.hasOwnProperty(le)&&(Qt[le]=qt[le])})(_t,Nt)},function(_t,Nt){function Qt(){this.constructor=_t}wt(_t,Nt),_t.prototype=null===Nt?Object.create(Nt):(Qt.prototype=Nt.prototype,new Qt)});Object.defineProperty(it,"__esModule",{value:!0});var p=b(98237),v=b(94655);function T(wt){return wt.bounds=typeof wt.leaves<"u"?wt.leaves.reduce(function(_t,Nt){return Nt.bounds.union(_t)},t.empty()):t.empty(),typeof wt.groups<"u"&&(wt.bounds=wt.groups.reduce(function(_t,Nt){return T(Nt).union(_t)},wt.bounds)),wt.bounds=wt.bounds.inflate(wt.padding),wt.bounds}it.computeGroupBounds=T;var t=function(){function wt(_t,Nt,Qt,qt){this.x=_t,this.X=Nt,this.y=Qt,this.Y=qt}return wt.empty=function(){return new wt(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},wt.prototype.cx=function(){return(this.x+this.X)/2},wt.prototype.cy=function(){return(this.y+this.Y)/2},wt.prototype.overlapX=function(_t){var Nt=this.cx(),Qt=_t.cx();return Nt<=Qt&&_t.x0?Qt[0]:null},wt.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},wt.lineIntersection=function(_t,Nt,Qt,qt,le,Wt,Ce,Ae){var Ne=Qt-_t,ze=Ce-le,Xe=qt-Nt,ie=Ae-Wt,Te=ie*Ne-ze*Xe;if(0==Te)return null;var re=_t-le,ee=Nt-Wt,Kt=(ze*ee-ie*re)/Te,Le=(Ne*ee-Xe*re)/Te;return Kt>=0&&Kt<=1&&Le>=0&&Le<=1?{x:_t+Kt*Ne,y:Nt+Kt*Xe}:null},wt.prototype.inflate=function(_t){return new wt(this.x-_t,this.X+_t,this.y-_t,this.Y+_t)},wt}();it.Rectangle=t,it.makeEdgeBetween=function A(wt,_t,Nt){var Qt=wt.rayIntersection(_t.cx(),_t.cy())||{x:wt.cx(),y:wt.cy()},qt=_t.rayIntersection(wt.cx(),wt.cy())||{x:_t.cx(),y:_t.cy()},le=qt.x-Qt.x,Wt=qt.y-Qt.y,Ce=Math.sqrt(le*le+Wt*Wt),Ae=Ce-Nt;return{sourceIntersection:Qt,targetIntersection:qt,arrowStart:{x:Qt.x+Ae*le/Ce,y:Qt.y+Ae*Wt/Ce}}},it.makeEdgeTo=function x(wt,_t,Nt){var Qt=_t.rayIntersection(wt.x,wt.y);Qt||(Qt={x:_t.cx(),y:_t.cy()});var qt=Qt.x-wt.x,le=Qt.y-wt.y,Wt=Math.sqrt(qt*qt+le*le);return{x:Qt.x-Nt*qt/Wt,y:Qt.y-Nt*le/Wt}};var w=function wt(_t,Nt,Qt){this.v=_t,this.r=Nt,this.pos=Qt,this.prev=P(),this.next=P()},k=function wt(_t,Nt,Qt){this.isOpen=_t,this.v=Nt,this.pos=Qt};function D(wt,_t){return wt.pos>_t.pos?1:wt.pos<_t.pos||wt.isOpen?-1:_t.isOpen?1:0}function P(){return new v.RBTree(function(wt,_t){return wt.pos-_t.pos})}var I={getCentre:function(wt){return wt.cx()},getOpen:function(wt){return wt.y},getClose:function(wt){return wt.Y},getSize:function(wt){return wt.width()},makeRect:function(wt,_t,Nt,Qt){return new t(Nt-Qt/2,Nt+Qt/2,wt,_t)},findNeighbours:function ot(wt,_t){var Nt=function(Qt,qt){for(var Wt,le=_t.findIter(wt);null!==(Wt=le[Qt]());){var Ce=Wt.r.overlapX(wt.r);if((Ce<=0||Ce<=Wt.r.overlapY(wt.r))&&(wt[Qt].insert(Wt),Wt[qt].insert(wt)),Ce<=0)break}};Nt("next","prev"),Nt("prev","next")}},z={getCentre:function(wt){return wt.cy()},getOpen:function(wt){return wt.x},getClose:function(wt){return wt.X},getSize:function(wt){return wt.height()},makeRect:function(wt,_t,Nt,Qt){return new t(wt,_t,Nt-Qt/2,Nt+Qt/2)},findNeighbours:function ct(wt,_t){var Nt=function(Qt,qt){var le=_t.findIter(wt)[Qt]();null!==le&&le.r.overlapX(wt.r)>0&&(wt[Qt].insert(le),le[qt].insert(wt))};Nt("next","prev"),Nt("prev","next")}};function G(wt,_t,Nt,Qt){void 0===Qt&&(Qt=!1);var qt=wt.padding,le=typeof wt.groups<"u"?wt.groups.length:0,Wt=typeof wt.leaves<"u"?wt.leaves.length:0,Ce=le?wt.groups.reduce(function(hn,we){return hn.concat(G(we,_t,Nt,!0))},[]):[],Ae=(Qt?2:0)+Wt+le,Ne=new Array(Ae),ze=new Array(Ae),Xe=0,ie=function(hn,we){ze[Xe]=hn,Ne[Xe++]=we};if(Qt){var Te=wt.bounds,re=_t.getCentre(Te),ee=_t.getSize(Te)/2,ue=_t.getOpen(Te),Kt=_t.getClose(Te),ce=re-ee+qt/2,Le=re+ee-qt/2;wt.minVar.desiredPosition=ce,ie(_t.makeRect(ue,Kt,ce,qt),wt.minVar),wt.maxVar.desiredPosition=Le,ie(_t.makeRect(ue,Kt,Le,qt),wt.maxVar)}Wt&&wt.leaves.forEach(function(hn){return ie(hn.bounds,hn.variable)}),le&&wt.groups.forEach(function(hn){var we=hn.bounds;ie(_t.makeRect(_t.getOpen(we),_t.getClose(we),_t.getCentre(we),_t.getSize(we)),hn.minVar)});var on=W(ze,Ne,_t,Nt);return le&&(Ne.forEach(function(hn){hn.cOut=[],hn.cIn=[]}),on.forEach(function(hn){hn.left.cOut.push(hn),hn.right.cIn.push(hn)}),wt.groups.forEach(function(hn){var we=(hn.padding-_t.getSize(hn.bounds))/2;hn.minVar.cIn.forEach(function(bn){return bn.gap+=we}),hn.minVar.cOut.forEach(function(bn){bn.left=hn.maxVar,bn.gap+=we})})),Ce.concat(on)}function W(wt,_t,Nt,Qt){var qt,le=wt.length,Wt=2*le;console.assert(_t.length>=le);var Ce=new Array(Wt);for(qt=0;qtCe[Qt]&&(Ce[Qt]=Ae)}Wt=Ce})}},wt.prototype.createAlignment=function(_t){var Nt=this,Qt=this.nodes[_t.offsets[0].node].variable;this.makeFeasible(_t);var qt="x"===_t.axis?this.xConstraints:this.yConstraints;_t.offsets.slice(1).forEach(function(le){qt.push(new p.Constraint(Qt,Nt.nodes[le.node].variable,le.offset,!0))})},wt.prototype.createConstraints=function(_t){var Nt=this,Qt=function(qt){return typeof qt.type>"u"||"separation"===qt.type};this.xConstraints=_t.filter(function(qt){return"x"===qt.axis&&Qt(qt)}).map(function(qt){return Nt.createSeparation(qt)}),this.yConstraints=_t.filter(function(qt){return"y"===qt.axis&&Qt(qt)}).map(function(qt){return Nt.createSeparation(qt)}),_t.filter(function(qt){return"alignment"===qt.type}).forEach(function(qt){return Nt.createAlignment(qt)})},wt.prototype.setupVariablesAndBounds=function(_t,Nt,Qt,qt){this.nodes.forEach(function(le,Wt){le.fixed?(le.variable.weight=le.fixedWeight?le.fixedWeight:1e3,Qt[Wt]=qt(le)):le.variable.weight=1;var Ce=(le.width||0)/2,Ae=(le.height||0)/2,Ne=_t[Wt],ze=Nt[Wt];le.bounds=new t(Ne-Ce,Ne+Ce,ze-Ae,ze+Ae)})},wt.prototype.xProject=function(_t,Nt,Qt){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(_t,Nt,_t,Qt,function(qt){return qt.px},this.xConstraints,St,function(qt){return qt.bounds.setXCentre(Qt[qt.variable.index]=qt.variable.position())},function(qt){var le=Qt[qt.minVar.index]=qt.minVar.position(),Wt=Qt[qt.maxVar.index]=qt.maxVar.position(),Ce=qt.padding/2;qt.bounds.x=le-Ce,qt.bounds.X=Wt+Ce})},wt.prototype.yProject=function(_t,Nt,Qt){!this.rootGroup&&!this.yConstraints||this.project(_t,Nt,Nt,Qt,function(qt){return qt.py},this.yConstraints,Ht,function(qt){return qt.bounds.setYCentre(Qt[qt.variable.index]=qt.variable.position())},function(qt){var le=Qt[qt.minVar.index]=qt.minVar.position(),Wt=Qt[qt.maxVar.index]=qt.maxVar.position(),Ce=qt.padding/2;qt.bounds.y=le-Ce,qt.bounds.Y=Wt+Ce})},wt.prototype.projectFunctions=function(){var _t=this;return[function(Nt,Qt,qt){return _t.xProject(Nt,Qt,qt)},function(Nt,Qt,qt){return _t.yProject(Nt,Qt,qt)}]},wt.prototype.project=function(_t,Nt,Qt,qt,le,Wt,Ce,Ae,Ne){this.setupVariablesAndBounds(_t,Nt,qt,le),this.rootGroup&&this.avoidOverlaps&&(T(this.rootGroup),Wt=Wt.concat(Ce(this.rootGroup))),this.solve(this.variables,Wt,Qt,qt),this.nodes.forEach(Ae),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(Ne),T(this.rootGroup))},wt.prototype.solve=function(_t,Nt,Qt,qt){var le=new p.Solver(_t,Nt);le.setStartingPositions(Qt),le.setDesiredPositions(qt),le.solve()},wt}();it.Projection=Zt},33858:(rt,it,b)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var d=b(88866),p=function A(x,w){this.id=x,this.distance=w},v=function A(x){this.id=x,this.neighbours=[]},T=function A(x,w,k){this.node=x,this.prev=w,this.d=k},t=function(){function A(x,w,k,D,P){this.n=x,this.es=w,this.neighbours=new Array(this.n);for(var I=this.n;I--;)this.neighbours[I]=new v(I);for(I=this.es.length;I--;){var z=this.es[I],G=k(z),W=D(z),ot=P(z);this.neighbours[G].neighbours.push(new p(W,ot)),this.neighbours[W].neighbours.push(new p(G,ot))}}return A.prototype.DistanceMatrix=function(){for(var x=new Array(this.n),w=0;wct&&(W.d=ct,W.prev=z,k.reduceKey(W.q,W,function(Pt,St){return Pt.q=St}))}}return P},A}();it.Calculator=t},98237:(rt,it)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var b=function(){function x(w){this.scale=w,this.AB=0,this.AD=0,this.A2=0}return x.prototype.addVariable=function(w){var k=this.scale/w.scale,P=w.weight;this.AB+=P*k*(w.offset/w.scale),this.AD+=P*k*w.desiredPosition,this.A2+=P*k*k},x.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},x}();it.PositionStats=b;var d=function(){function x(w,k,D,P){void 0===P&&(P=!1),this.left=w,this.right=k,this.gap=D,this.equality=P,this.active=!1,this.unsatisfiable=!1,this.left=w,this.right=k,this.gap=D,this.equality=P}return x.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},x}();it.Constraint=d;var p=function(){function x(w,k,D){void 0===k&&(k=1),void 0===D&&(D=1),this.desiredPosition=w,this.weight=k,this.scale=D,this.offset=0}return x.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},x.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},x.prototype.visitNeighbours=function(w,k){var D=function(P,I){return P.active&&w!==I&&k(P,I)};this.cOut.forEach(function(P){return D(P,P.right)}),this.cIn.forEach(function(P){return D(P,P.left)})},x}();it.Variable=p;var v=function(){function x(w){this.vars=[],w.offset=0,this.ps=new b(w.scale),this.addVariable(w)}return x.prototype.addVariable=function(w){w.block=this,this.vars.push(w),this.ps.addVariable(w),this.posn=this.ps.getPosn()},x.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var w=0,k=this.vars.length;w=0?this.inactive.push(w):this.bs.merge(w)}}},x.prototype.solve=function(){this.satisfy();for(var w=Number.MAX_VALUE,k=this.bs.cost();Math.abs(w-k)>1e-4;)this.satisfy(),w=k,k=this.bs.cost();return k},x.LAGRANGIAN_TOLERANCE=-1e-4,x.ZERO_UPPERBOUND=-1e-10,x}();it.Solver=t,it.removeOverlapInOneDimension=function A(x,w,k){for(var D=x.map(function(at){return new p(at.desiredCenter)}),P=[],I=x.length,z=0;z{var d={"./af":27088,"./af.js":27088,"./ar":17038,"./ar-dz":52502,"./ar-dz.js":52502,"./ar-kw":30128,"./ar-kw.js":30128,"./ar-ly":84519,"./ar-ly.js":84519,"./ar-ma":65443,"./ar-ma.js":65443,"./ar-ps":14523,"./ar-ps.js":14523,"./ar-sa":17642,"./ar-sa.js":17642,"./ar-tn":68592,"./ar-tn.js":68592,"./ar.js":17038,"./az":51213,"./az.js":51213,"./be":69191,"./be.js":69191,"./bg":90322,"./bg.js":90322,"./bm":28042,"./bm.js":28042,"./bn":59620,"./bn-bd":65903,"./bn-bd.js":65903,"./bn.js":59620,"./bo":69645,"./bo.js":69645,"./br":45020,"./br.js":45020,"./bs":64792,"./bs.js":64792,"./ca":47980,"./ca.js":47980,"./cs":47322,"./cs.js":47322,"./cv":90365,"./cv.js":90365,"./cy":32092,"./cy.js":32092,"./da":77387,"./da.js":77387,"./de":54307,"./de-at":29459,"./de-at.js":29459,"./de-ch":73694,"./de-ch.js":73694,"./de.js":54307,"./dv":39659,"./dv.js":39659,"./el":3460,"./el.js":3460,"./en-au":94369,"./en-au.js":94369,"./en-ca":60530,"./en-ca.js":60530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":13391,"./en-ie.js":13391,"./en-il":75414,"./en-il.js":75414,"./en-in":19615,"./en-in.js":19615,"./en-nz":21248,"./en-nz.js":21248,"./en-sg":13767,"./en-sg.js":13767,"./eo":84530,"./eo.js":84530,"./es":86866,"./es-do":18944,"./es-do.js":18944,"./es-mx":29116,"./es-mx.js":29116,"./es-us":83609,"./es-us.js":83609,"./es.js":86866,"./et":96725,"./et.js":96725,"./eu":67931,"./eu.js":67931,"./fa":56417,"./fa.js":56417,"./fi":20944,"./fi.js":20944,"./fil":61766,"./fil.js":61766,"./fo":95867,"./fo.js":95867,"./fr":1636,"./fr-ca":16848,"./fr-ca.js":16848,"./fr-ch":77773,"./fr-ch.js":77773,"./fr.js":1636,"./fy":14940,"./fy.js":14940,"./ga":91402,"./ga.js":91402,"./gd":46924,"./gd.js":46924,"./gl":16398,"./gl.js":16398,"./gom-deva":72457,"./gom-deva.js":72457,"./gom-latn":52545,"./gom-latn.js":52545,"./gu":42641,"./gu.js":42641,"./he":7536,"./he.js":7536,"./hi":96335,"./hi.js":96335,"./hr":7458,"./hr.js":7458,"./hu":56540,"./hu.js":56540,"./hy-am":65283,"./hy-am.js":65283,"./id":98780,"./id.js":98780,"./is":14205,"./is.js":14205,"./it":34211,"./it-ch":29985,"./it-ch.js":29985,"./it.js":34211,"./ja":31003,"./ja.js":31003,"./jv":60420,"./jv.js":60420,"./ka":40851,"./ka.js":40851,"./kk":16074,"./kk.js":16074,"./km":53343,"./km.js":53343,"./kn":44799,"./kn.js":44799,"./ko":13549,"./ko.js":13549,"./ku":91037,"./ku-kmr":63775,"./ku-kmr.js":63775,"./ku.js":91037,"./ky":93125,"./ky.js":93125,"./lb":69586,"./lb.js":69586,"./lo":32349,"./lo.js":32349,"./lt":92400,"./lt.js":92400,"./lv":39991,"./lv.js":39991,"./me":28477,"./me.js":28477,"./mi":55118,"./mi.js":55118,"./mk":15943,"./mk.js":15943,"./ml":13849,"./ml.js":13849,"./mn":31977,"./mn.js":31977,"./mr":66184,"./mr.js":66184,"./ms":70485,"./ms-my":64524,"./ms-my.js":64524,"./ms.js":70485,"./mt":36681,"./mt.js":36681,"./my":52024,"./my.js":52024,"./nb":42688,"./nb.js":42688,"./ne":68914,"./ne.js":68914,"./nl":11758,"./nl-be":52272,"./nl-be.js":52272,"./nl.js":11758,"./nn":41510,"./nn.js":41510,"./oc-lnc":52797,"./oc-lnc.js":52797,"./pa-in":37944,"./pa-in.js":37944,"./pl":1605,"./pl.js":1605,"./pt":54225,"./pt-br":73840,"./pt-br.js":73840,"./pt.js":54225,"./ro":45128,"./ro.js":45128,"./ru":35127,"./ru.js":35127,"./sd":32525,"./sd.js":32525,"./se":59893,"./se.js":59893,"./si":33123,"./si.js":33123,"./sk":59635,"./sk.js":59635,"./sl":78106,"./sl.js":78106,"./sq":88799,"./sq.js":88799,"./sr":97949,"./sr-cyrl":52872,"./sr-cyrl.js":52872,"./sr.js":97949,"./ss":86167,"./ss.js":86167,"./sv":39713,"./sv.js":39713,"./sw":41982,"./sw.js":41982,"./ta":22732,"./ta.js":22732,"./te":43636,"./te.js":43636,"./tet":2115,"./tet.js":2115,"./tg":69801,"./tg.js":69801,"./th":2868,"./th.js":2868,"./tk":31310,"./tk.js":31310,"./tl-ph":22360,"./tl-ph.js":22360,"./tlh":66645,"./tlh.js":66645,"./tr":98374,"./tr.js":98374,"./tzl":256,"./tzl.js":256,"./tzm":61595,"./tzm-latn":61631,"./tzm-latn.js":61631,"./tzm.js":61595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":65610,"./uk.js":65610,"./ur":86077,"./ur.js":86077,"./uz":22862,"./uz-latn":12207,"./uz-latn.js":12207,"./uz.js":22862,"./vi":48093,"./vi.js":48093,"./x-pseudo":25590,"./x-pseudo.js":25590,"./yo":9058,"./yo.js":9058,"./zh-cn":77908,"./zh-cn.js":77908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":31133,"./zh-mo.js":31133,"./zh-tw":83291,"./zh-tw.js":83291};function p(T){var t=v(T);return b(t)}function v(T){if(!b.o(d,T)){var t=new Error("Cannot find module '"+T+"'");throw t.code="MODULE_NOT_FOUND",t}return d[T]}p.keys=function(){return Object.keys(d)},p.resolve=v,rt.exports=p,p.id=46700},7100:(rt,it,b)=>{"use strict";b.d(it,{AB:()=>bi,EC:()=>ii,K:()=>mn,g2:()=>wn});var d=b(84080),p=b(94650),v=b(42654),T=b(8929),t=b(36787),A=b(29521),x=b(72986),w=b(1059),k=b(7625),D=b(80013),P=b(92198),I=b(99602),z=b(36895),G=b(3238),W=b(40445),ot=b(4859),ct=b(21281),gt=b(98184),Pt=b(24006),St=b(59549),Ht=b(284),Jt=b(97392),at=b(65412),Zt=b(83353);const wt=["ngx-mat-calendar-body",""];function _t(nt,Vt){if(1&nt&&(p.TgZ(0,"tr",2)(1,"td",3),p._uU(2),p.qZA()()),2&nt){const Q=p.oxw();p.xp6(1),p.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),p.uIk("colspan",Q.numCols),p.xp6(1),p.hij(" ",Q.label," ")}}function Nt(nt,Vt){if(1&nt&&(p.TgZ(0,"td",7),p._uU(1),p.qZA()),2&nt){const Q=p.oxw(2);p.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),p.uIk("colspan",Q._firstRowOffset),p.xp6(1),p.hij(" ",Q._firstRowOffset>=Q.labelMinRequiredCells?Q.label:""," ")}}function Qt(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"td",8),p.NdJ("click",function(Je){const Gi=p.CHM(Q).$implicit,Co=p.oxw(2);return p.KtG(Co._cellClicked(Gi,Je))}),p.TgZ(1,"div",9),p._uU(2),p.qZA(),p._UZ(3,"div",10),p.qZA()}if(2&nt){const Q=Vt.$implicit,zt=Vt.index,Je=p.oxw().index,zn=p.oxw();p.Udp("width",zn._cellWidth)("padding-top",zn._cellPadding)("padding-bottom",zn._cellPadding),p.ekj("mat-calendar-body-disabled",!Q.enabled)("mat-calendar-body-active",zn._isActiveCell(Je,zt))("mat-calendar-body-range-start",zn._isRangeStart(Q.compareValue))("mat-calendar-body-range-end",zn._isRangeEnd(Q.compareValue))("mat-calendar-body-in-range",zn._isInRange(Q.compareValue))("mat-calendar-body-comparison-bridge-start",zn._isComparisonBridgeStart(Q.compareValue,Je,zt))("mat-calendar-body-comparison-bridge-end",zn._isComparisonBridgeEnd(Q.compareValue,Je,zt))("mat-calendar-body-comparison-start",zn._isComparisonStart(Q.compareValue))("mat-calendar-body-comparison-end",zn._isComparisonEnd(Q.compareValue))("mat-calendar-body-in-comparison-range",zn._isInComparisonRange(Q.compareValue))("mat-calendar-body-preview-start",zn._isPreviewStart(Q.compareValue))("mat-calendar-body-preview-end",zn._isPreviewEnd(Q.compareValue))("mat-calendar-body-in-preview",zn._isInPreview(Q.compareValue)),p.Q6J("ngClass",Q.cssClasses)("tabindex",zn._isActiveCell(Je,zt)?0:-1),p.uIk("data-mat-row",Je)("data-mat-col",zt)("aria-label",Q.ariaLabel)("aria-disabled",!Q.enabled||null)("aria-selected",zn._isSelected(Q)),p.xp6(1),p.ekj("mat-calendar-body-selected",zn._isSelected(Q))("mat-calendar-body-today",zn.todayValue===Q.compareValue),p.xp6(1),p.hij(" ",Q.displayValue," ")}}function qt(nt,Vt){if(1&nt&&(p.TgZ(0,"tr",4),p.YNc(1,Nt,2,6,"td",5),p.YNc(2,Qt,4,44,"td",6),p.qZA()),2&nt){const Q=Vt.$implicit,zt=Vt.index,Je=p.oxw();p.xp6(1),p.Q6J("ngIf",0===zt&&Je._firstRowOffset),p.xp6(1),p.Q6J("ngForOf",Q)}}function le(nt,Vt){if(1&nt&&(p.TgZ(0,"th",5),p._uU(1),p.qZA()),2&nt){const Q=Vt.$implicit;p.uIk("aria-label",Q.long),p.xp6(1),p.Oqu(Q.narrow)}}const Wt=["*"];function Ce(nt,Vt){}function Ae(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"ngx-mat-month-view",5),p.NdJ("activeDateChange",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn.activeDate=Je)})("selectedChange",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn._dateSelected(Je))})("_userSelection",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je._userSelected())}),p.qZA()}if(2&nt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)("dateClass",Q.dateClass)}}function Ne(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"ngx-mat-year-view",6),p.NdJ("activeDateChange",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn.activeDate=Je)})("monthSelected",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn._monthSelectedInYearView(Je))})("selectedChange",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn._goToDateInView(Je,"month"))}),p.qZA()}if(2&nt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)}}function ze(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"ngx-mat-multi-year-view",7),p.NdJ("activeDateChange",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn.activeDate=Je)})("yearSelected",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn._yearSelectedInMultiYearView(Je))})("selectedChange",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn._goToDateInView(Je,"year"))}),p.qZA()}if(2&nt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)}}function Xe(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"td")(1,"button",10),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw(2);return p.KtG(Je.change("second",!0))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_less"),p.qZA()()()}if(2&nt){const Q=p.oxw(2);p.xp6(1),p.Q6J("disabled",Q.disabled||Q.disableMinute)}}function ie(nt,Vt){1&nt&&p._UZ(0,"td",6)}function Te(nt,Vt){1&nt&&p._UZ(0,"td")}function re(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",10),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.change("hour",!0))}),p.TgZ(3,"mat-icon"),p._uU(4,"expand_less"),p.qZA()()(),p._UZ(5,"td"),p.TgZ(6,"td")(7,"button",10),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.change("minute",!0))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_less"),p.qZA()()(),p._UZ(10,"td"),p.YNc(11,Xe,4,1,"td",3),p.YNc(12,ie,1,0,"td",8),p.YNc(13,Te,1,0,"td",3),p.qZA()}if(2&nt){const Q=p.oxw();p.xp6(2),p.Q6J("disabled",Q.disabled),p.xp6(5),p.Q6J("disabled",Q.disabled||Q.disableMinute),p.xp6(4),p.Q6J("ngIf",Q.showSeconds),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian)}}function ee(nt,Vt){1&nt&&(p.TgZ(0,"td",6),p._uU(1,":"),p.qZA())}function ue(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"td")(1,"mat-form-field",4)(2,"input",11),p.NdJ("input",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn.formatInput(Je.target))})("keydown.ArrowUp",function(Je){return p.CHM(Q),p.oxw().change("second",!0),p.KtG(Je.preventDefault())})("keydown.ArrowDown",function(Je){return p.CHM(Q),p.oxw().change("second",!1),p.KtG(Je.preventDefault())})("blur",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.change("second"))}),p.qZA()()()}}function Kt(nt,Vt){1&nt&&p._UZ(0,"td",6)}function ce(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"td",12)(1,"button",13),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.toggleMeridian())}),p._uU(2),p.qZA()()}if(2&nt){const Q=p.oxw();p.xp6(1),p.Q6J("color",Q.color)("disabled",Q.disabled),p.xp6(1),p.hij(" ",Q.meridian," ")}}function Le(nt,Vt){1&nt&&p._UZ(0,"td")}function on(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"td")(1,"button",14),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw(2);return p.KtG(Je.change("second",!1))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_more"),p.qZA()()()}if(2&nt){const Q=p.oxw(2);p.xp6(1),p.Q6J("disabled",Q.disabled||Q.disableMinute)}}function hn(nt,Vt){1&nt&&p._UZ(0,"td",6)}function we(nt,Vt){1&nt&&p._UZ(0,"td")}function bn(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",14),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.change("hour",!1))}),p.TgZ(3,"mat-icon"),p._uU(4,"expand_more"),p.qZA()()(),p._UZ(5,"td"),p.TgZ(6,"td")(7,"button",14),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.change("minute",!1))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_more"),p.qZA()()(),p.YNc(10,Le,1,0,"td",3),p.YNc(11,on,4,1,"td",3),p.YNc(12,hn,1,0,"td",8),p.YNc(13,we,1,0,"td",3),p.qZA()}if(2&nt){const Q=p.oxw();p.xp6(2),p.Q6J("disabled",Q.disabled),p.xp6(5),p.Q6J("disabled",Q.disabled||Q.disableMinute),p.xp6(3),p.Q6J("ngIf",Q.showSeconds),p.xp6(1),p.Q6J("ngIf",Q.showSeconds),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian)}}function Ze(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"div",6)(1,"ngx-mat-timepicker",7),p.NdJ("ngModelChange",function(Je){p.CHM(Q);const zn=p.oxw(2);return p.KtG(zn.datepicker._selected=Je)}),p.qZA()()}if(2&nt){const Q=p.oxw(2);p.ekj("disable-seconds",!Q.datepicker._showSeconds),p.xp6(1),p.Q6J("showSpinners",Q.datepicker._showSpinners)("showSeconds",Q.datepicker._showSeconds)("disabled",Q.datepicker._disabled)("stepHour",Q.datepicker._stepHour)("stepMinute",Q.datepicker._stepMinute)("stepSecond",Q.datepicker._stepSecond)("ngModel",Q.datepicker._selected)("color",Q.datepicker._color)("enableMeridian",Q.datepicker._enableMeridian)("disableMinute",Q.datepicker._disableMinute)}}function dn(nt,Vt){1&nt&&(p.TgZ(0,"mat-icon"),p._uU(1,"done"),p.qZA())}function kn(nt,Vt){}function ri(nt,Vt){if(1&nt){const Q=p.EpF();p.ynx(0),p.YNc(1,Ze,2,12,"div",2),p.TgZ(2,"div",3)(3,"button",4),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.datepicker.ok())}),p.YNc(4,dn,2,0,"mat-icon",1),p.YNc(5,kn,0,0,"ng-template",5),p.qZA()(),p.BQk()}if(2&nt){const Q=p.oxw();p.xp6(1),p.Q6J("ngIf",!Q.datepicker._hideTime),p.xp6(2),p.Q6J("color",Q.datepicker._color)("disabled",!Q.valid),p.xp6(1),p.Q6J("ngIf",!Q.datepicker._customIcon),p.xp6(1),p.Q6J("cdkPortalOutlet",Q._templateCustomIconPortal)}}const Ee=new p.OlP("ngx-mat-date-formats");class Ft{constructor(Vt,Q,zt,Je,zn={},Gi=Vt,Co){this.value=Vt,this.displayValue=Q,this.ariaLabel=zt,this.enabled=Je,this.cssClasses=zn,this.compareValue=Gi,this.rawValue=Co}}let vt=(()=>{class nt{constructor(Q,zt){this._elementRef=Q,this._ngZone=zt,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new p.vpe,this.previewChange=new p.vpe,this._enterHandler=Je=>{if(this._skipNextFocus&&"focus"===Je.type)this._skipNextFocus=!1;else if(Je.target&&this.isRange){const zn=this._getCellFromElement(Je.target);zn&&this._ngZone.run(()=>this.previewChange.emit({value:zn.enabled?zn:null,event:Je}))}},this._leaveHandler=Je=>{null!==this.previewEnd&&this.isRange&&Je.target&&xt(Je.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Je}))},zt.runOutsideAngular(()=>{const Je=Q.nativeElement;Je.addEventListener("mouseenter",this._enterHandler,!0),Je.addEventListener("focus",this._enterHandler,!0),Je.addEventListener("mouseleave",this._leaveHandler,!0),Je.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(Q,zt){Q.enabled&&this.selectedValueChange.emit({value:Q.value,event:zt})}_isSelected(Q){return this.startValue===Q.compareValue||this.endValue===Q.compareValue}ngOnChanges(Q){const zt=Q.numCols,{rows:Je,numCols:zn}=this;(Q.rows||zt)&&(this._firstRowOffset=Je&&Je.length&&Je[0].length?zn-Je[0].length:0),(Q.cellAspectRatio||zt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/zn+"%"),(zt||!this._cellWidth)&&(this._cellWidth=100/zn+"%")}ngOnDestroy(){const Q=this._elementRef.nativeElement;Q.removeEventListener("mouseenter",this._enterHandler,!0),Q.removeEventListener("focus",this._enterHandler,!0),Q.removeEventListener("mouseleave",this._leaveHandler,!0),Q.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(Q,zt){let Je=Q*this.numCols+zt;return Q&&(Je-=this._firstRowOffset),Je==this.activeCell}_focusActiveCell(Q=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe((0,x.q)(1)).subscribe(()=>{const zt=this._elementRef.nativeElement.querySelector(".ngx-mat-calendar-body-active");zt&&(Q||(this._skipNextFocus=!0),zt.focus())})})}_isRangeStart(Q){return tt(Q,this.startValue,this.endValue)}_isRangeEnd(Q){return et(Q,this.startValue,this.endValue)}_isInRange(Q){return Ct(Q,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Q){return tt(Q,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Q,zt,Je){if(!this._isComparisonStart(Q)||this._isRangeStart(Q)||!this._isInRange(Q))return!1;let zn=this.rows[zt][Je-1];if(!zn){const Gi=this.rows[zt-1];zn=Gi&&Gi[Gi.length-1]}return zn&&!this._isRangeEnd(zn.compareValue)}_isComparisonBridgeEnd(Q,zt,Je){if(!this._isComparisonEnd(Q)||this._isRangeEnd(Q)||!this._isInRange(Q))return!1;let zn=this.rows[zt][Je+1];if(!zn){const Gi=this.rows[zt+1];zn=Gi&&Gi[0]}return zn&&!this._isRangeStart(zn.compareValue)}_isComparisonEnd(Q){return et(Q,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Q){return Ct(Q,this.comparisonStart,this.comparisonEnd,this.isRange)}_isPreviewStart(Q){return tt(Q,this.previewStart,this.previewEnd)}_isPreviewEnd(Q){return et(Q,this.previewStart,this.previewEnd)}_isInPreview(Q){return Ct(Q,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(Q){let zt;if(xt(Q)?zt=Q:xt(Q.parentNode)&&(zt=Q.parentNode),zt){const Je=zt.getAttribute("data-ngx-mat-row"),zn=zt.getAttribute("data-ngx-mat-col");if(Je&&zn)return this.rows[parseInt(Je)][parseInt(zn)]}return null}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(p.SBq),p.Y36(p.R0b))},nt.\u0275cmp=p.Xpm({type:nt,selectors:[["","ngx-mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"ngx-mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["NgxMatCalendarBody"],features:[p.TTD],attrs:wt,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(Q,zt){1&Q&&(p.YNc(0,_t,3,6,"tr",0),p.YNc(1,qt,3,2,"tr",1)),2&Q&&(p.Q6J("ngIf",zt._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media (hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),nt})();function xt(nt){return"TD"===nt.nodeName}function tt(nt,Vt,Q){return null!==Q&&Vt!==Q&&nt=Vt&&nt===Q}function Ct(nt,Vt,Q,zt){return zt&&null!==Vt&&null!==Q&&Vt!==Q&&nt>=Vt&&nt<=Q}class Bt extends G._A{isSameTime(Vt,Q){return null==Vt||null==Q||this.getHour(Vt)===this.getHour(Q)&&this.getMinute(Vt)===this.getMinute(Q)&&this.getSecond(Vt)===this.getSecond(Q)}copyTime(Vt,Q){this.setHour(Vt,this.getHour(Q)),this.setMinute(Vt,this.getMinute(Q)),this.setSecond(Vt,this.getSecond(Q))}compareDateWithTime(Vt,Q,zt){let Je=super.compareDate(Vt,Q)||this.getHour(Vt)-this.getHour(Q)||this.getMinute(Vt)-this.getMinute(Q);return zt&&(Je=Je||this.getSecond(Vt)-this.getSecond(Q)),Je}setTimeByDefaultValues(Vt,Q){if(!Array.isArray(Q))throw Error("@Input DefaultTime should be an array");this.setHour(Vt,Q[0]||0),this.setMinute(Vt,Q[1]||0),this.setSecond(Vt,Q[2]||0)}}const ne=new p.OlP("NGX_MAT_DATE_RANGE_SELECTION_STRATEGY");let he=(()=>{class nt{constructor(Q){this._dateAdapter=Q}selectionFinished(Q,zt){let{start:Je,end:zn}=zt;return null==Je?Je=Q:null==zn&&Q&&this._dateAdapter.compareDate(Q,Je)>=0?zn=Q:(Je=Q,zn=null),new I.C0(Je,zn)}createPreview(Q,zt){let Je=null,zn=null;return zt.start&&!zt.end&&Q&&(Je=zt.start,zn=Q),new I.C0(Je,zn)}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.LFG(Bt))},nt.\u0275prov=p.Yz7({token:nt,factory:nt.\u0275fac}),nt})();const Oe={minHour:0,maxHour:24,minMinute:0,maxMinute:60,minSecond:0,maxSecond:60,meridian:12},_i=/[^0-9]/g,Si=/^(2[0-3]|[0-1][0-9]|[0-9])$/,ho=/^([0-5][0-9]|[0-9])$/,hi=/^([0-5][0-9]|[0-9])$/;function Vn(nt){const Vt=nt.toString();return Vt.length>1?Vt:`0${Vt}`}function Gn(nt){return Error(`NgxMatDatepicker: No provider found for ${nt}. You must import one of the following modules at your application root: NgxMatNativeDateModule, NgxMatMomentModule, or provide a custom implementation.`)}let Ve=(()=>{class nt{constructor(Q,zt,Je,zn,Gi){if(this._changeDetectorRef=Q,this._dateFormats=zt,this._dateAdapter=Je,this._dir=zn,this._rangeStrategy=Gi,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new p.vpe,this._userSelection=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Gn("NgxMatDateAdapter");if(!this._dateFormats)throw Gn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){const zt=this._activeDate,Je=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Je,this.minDate,this.maxDate),this._hasSameMonthAndYear(zt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof I.C0?Q:this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Q){const zt=Q.value,Je=this._dateAdapter.getYear(this.activeDate),zn=this._dateAdapter.getMonth(this.activeDate),Gi=this._dateAdapter.createDate(Je,zn,zt);let Co,gr;this._selected instanceof I.C0?(Co=this._getDateInCurrentMonth(this._selected.start),gr=this._getDateInCurrentMonth(this._selected.end)):Co=gr=this._getDateInCurrentMonth(this._selected),(Co!==zt||gr!==zt)&&this.selectedChange.emit(Gi),this._userSelection.emit({value:Gi,event:Q.event})}_handleCalendarBodyKeydown(Q){const zt=this._activeDate,Je=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Je?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Je?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case A.Ku:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case A.VM:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case A.K5:case A.L_:return void((!this.dateFilter||this.dateFilter(this._activeDate))&&(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Q}),Q.preventDefault()));case A.hY:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Q}),Q.preventDefault(),Q.stopPropagation()));default:return}this._dateAdapter.compareDate(zt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(Q)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Q){this._matCalendarBody._focusActiveCell(Q)}_previewChanged({event:Q,value:zt}){if(this._rangeStrategy){const zn=this._rangeStrategy.createPreview(zt?zt.rawValue:null,this.selected,Q);this._previewStart=this._getCellCompareValue(zn.start),this._previewEnd=this._getCellCompareValue(zn.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const Q=this._dateAdapter.getFirstDayOfWeek(),zt=this._dateAdapter.getDayOfWeekNames("narrow");let zn=this._dateAdapter.getDayOfWeekNames("long").map((Gi,Co)=>({long:Gi,narrow:zt[Co]}));this._weekdays=zn.slice(Q).concat(zn.slice(0,Q))}_createWeekCells(){const Q=this._dateAdapter.getNumDaysInMonth(this.activeDate),zt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Je=0,zn=this._firstWeekOffset;Je=0)&&(!this.maxDate||this._dateAdapter.compareDate(Q,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Q))}_getDateInCurrentMonth(Q){return Q&&this._hasSameMonthAndYear(Q,this.activeDate)?this._dateAdapter.getDate(Q):null}_hasSameMonthAndYear(Q,zt){return!(!Q||!zt||this._dateAdapter.getMonth(Q)!=this._dateAdapter.getMonth(zt)||this._dateAdapter.getYear(Q)!=this._dateAdapter.getYear(zt))}_getCellCompareValue(Q){if(Q){const zt=this._dateAdapter.getYear(Q),Je=this._dateAdapter.getMonth(Q),zn=this._dateAdapter.getDate(Q);return new Date(zt,Je,zn).getTime()}return null}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Q){Q instanceof I.C0?(this._rangeStart=this._getCellCompareValue(Q.start),this._rangeEnd=this._getCellCompareValue(Q.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(Q),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(p.sBO),p.Y36(Ee,8),p.Y36(Bt,8),p.Y36(W.Is,8),p.Y36(ne,8))},nt.\u0275cmp=p.Xpm({type:nt,selectors:[["ngx-mat-month-view"]],viewQuery:function(Q,zt){if(1&Q&&p.Gf(vt,5),2&Q){let Je;p.iGM(Je=p.CRH())&&(zt._matCalendarBody=Je.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["ngxMatMonthView"],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["ngx-mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(Q,zt){1&Q&&(p.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),p.YNc(3,le,2,2,"th",2),p.qZA(),p.TgZ(4,"tr"),p._UZ(5,"th",3),p.qZA()(),p.TgZ(6,"tbody",4),p.NdJ("selectedValueChange",function(zn){return zt._dateSelected(zn)})("previewChange",function(zn){return zt._previewChanged(zn)})("keydown",function(zn){return zt._handleCalendarBodyKeydown(zn)}),p.qZA()()),2&Q&&(p.xp6(3),p.Q6J("ngForOf",zt._weekdays),p.xp6(3),p.Q6J("label",zt._monthLabel)("rows",zt._weeks)("todayValue",zt._todayDate)("startValue",zt._rangeStart)("endValue",zt._rangeEnd)("comparisonStart",zt._comparisonRangeStart)("comparisonEnd",zt._comparisonRangeEnd)("previewStart",zt._previewStart)("previewEnd",zt._previewEnd)("isRange",zt._isRange)("labelMinRequiredCells",3)("activeCell",zt._dateAdapter.getDate(zt.activeDate)-1))},dependencies:[z.sg,vt],encapsulation:2,changeDetection:0}),nt})(),pe=(()=>{class nt{constructor(Q,zt,Je){if(this._changeDetectorRef=Q,this._dateAdapter=zt,this._dir=Je,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Gn("NgxMatDateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let zt=this._activeDate;const Je=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Je,this.minDate,this.maxDate),We(this._dateAdapter,zt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof I.C0?Q:this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedYear(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const zt=this._dateAdapter.getYear(this._activeDate)-Et(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Je=0,zn=[];Je<24;Je++)zn.push(zt+Je),4==zn.length&&(this._years.push(zn.map(Gi=>this._createCellForYear(Gi))),zn=[]);this._changeDetectorRef.markForCheck()}_yearSelected(Q){const zt=Q.value;this.yearSelected.emit(this._dateAdapter.createDate(zt,0,1));let Je=this._dateAdapter.getMonth(this.activeDate),zn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(zt,Je,1));this.selectedChange.emit(this._dateAdapter.createDate(zt,Je,Math.min(this._dateAdapter.getDate(this.activeDate),zn)))}_handleCalendarBodyKeydown(Q){const zt=this._activeDate,Je=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Je?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Je?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Et(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Et(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case A.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?-240:-24);break;case A.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?240:24);break;case A.K5:case A.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Q});break;default:return}this._dateAdapter.compareDate(zt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_getActiveCell(){return Et(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(Q){let zt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Q,0,1));return new Ft(Q,zt,zt,this._shouldEnableYear(Q))}_shouldEnableYear(Q){if(null==Q||this.maxDate&&Q>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Q{class nt{constructor(Q,zt,Je,zn){if(this._changeDetectorRef=Q,this._dateFormats=zt,this._dateAdapter=Je,this._dir=zn,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new p.vpe,this.monthSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Gn("NgxMatDateAdapter");if(!this._dateFormats)throw Gn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let zt=this._activeDate;const Je=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Je,this.minDate,this.maxDate),this._dateAdapter.getYear(zt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof I.C0?Q:this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedMonth(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Q){const zt=Q.value,Je=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),zt,1);this.monthSelected.emit(Je);const zn=this._dateAdapter.getNumDaysInMonth(Je);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),zt,Math.min(this._dateAdapter.getDate(this.activeDate),zn)))}_handleCalendarBodyKeydown(Q){const zt=this._activeDate,Je=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Je?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Je?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case A.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?-10:-1);break;case A.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?10:1);break;case A.K5:case A.L_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Q});break;default:return}this._dateAdapter.compareDate(zt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let Q=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(zt=>zt.map(Je=>this._createCellForMonth(Je,Q[Je]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(Q){return Q&&this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Q):null}_createCellForMonth(Q,zt){let Je=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,1),this._dateFormats.display.monthYearA11yLabel);return new Ft(Q,zt.toLocaleUpperCase(),Je,this._shouldEnableMonth(Q))}_shouldEnableMonth(Q){const zt=this._dateAdapter.getYear(this.activeDate);if(null==Q||this._isYearAndMonthAfterMaxDate(zt,Q)||this._isYearAndMonthBeforeMinDate(zt,Q))return!1;if(!this.dateFilter)return!0;for(let zn=this._dateAdapter.createDate(zt,Q,1);this._dateAdapter.getMonth(zn)==Q;zn=this._dateAdapter.addCalendarDays(zn,1))if(this.dateFilter(zn))return!0;return!1}_isYearAndMonthAfterMaxDate(Q,zt){if(this.maxDate){const Je=this._dateAdapter.getYear(this.maxDate),zn=this._dateAdapter.getMonth(this.maxDate);return Q>Je||Q===Je&&zt>zn}return!1}_isYearAndMonthBeforeMinDate(Q,zt){if(this.minDate){const Je=this._dateAdapter.getYear(this.minDate),zn=this._dateAdapter.getMonth(this.minDate);return Q{class nt{constructor(Q,zt,Je,zn,Gi){this._intl=Q,this.calendar=zt,this._dateAdapter=Je,this._dateFormats=zn,this.calendar.stateChanges.subscribe(()=>Gi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const zt=this._dateAdapter.getYear(this.calendar.activeDate)-Et(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Je=zt+24-1;return function je(nt,Vt){return`${nt} \u2013 ${Vt}`}(this._dateAdapter.getYearName(this._dateAdapter.createDate(zt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Je,0,1)))}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(Q,zt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(zt)&&this._dateAdapter.getMonth(Q)==this._dateAdapter.getMonth(zt):"year"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(zt):We(this._dateAdapter,Q,zt,this.calendar.minDate,this.calendar.maxDate)}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(I.S8),p.Y36((0,p.Gpc)(()=>He)),p.Y36(Bt,8),p.Y36(Ee,8),p.Y36(p.sBO))},nt.\u0275cmp=p.Xpm({type:nt,selectors:[["ngx-mat-calendar-header"]],exportAs:["ngxMatCalendarHeader"],ngContentSelectors:Wt,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(Q,zt){1&Q&&(p.F$t(),p.TgZ(0,"div",0)(1,"div",1)(2,"button",2),p.NdJ("click",function(){return zt.currentPeriodClicked()}),p._uU(3),p._UZ(4,"div",3),p.qZA(),p._UZ(5,"div",4),p.Hsn(6),p.TgZ(7,"button",5),p.NdJ("click",function(){return zt.previousClicked()}),p.qZA(),p.TgZ(8,"button",6),p.NdJ("click",function(){return zt.nextClicked()}),p.qZA()()()),2&Q&&(p.xp6(2),p.uIk("aria-label",zt.periodButtonLabel),p.xp6(1),p.hij(" ",zt.periodButtonText," "),p.xp6(1),p.ekj("mat-calendar-invert","month"!=zt.calendar.currentView),p.xp6(3),p.Q6J("disabled",!zt.previousEnabled()),p.uIk("aria-label",zt.prevButtonLabel),p.xp6(1),p.Q6J("disabled",!zt.nextEnabled()),p.uIk("aria-label",zt.nextButtonLabel))},dependencies:[ot.lW],encapsulation:2,changeDetection:0}),nt})(),He=(()=>{class nt{constructor(Q,zt,Je,zn){if(this._dateAdapter=zt,this._dateFormats=Je,this._changeDetectorRef=zn,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this._userSelection=new p.vpe,this.stateChanges=new T.xQ,!this._dateAdapter)throw Gn("NgxDateAdapter");if(!this._dateFormats)throw Gn("NGX_MAT_DATE_FORMATS");this._intlChanges=Q.changes.subscribe(()=>{zn.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(Q){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get selected(){return this._selected}set selected(Q){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get activeDate(){return this._clampedActiveDate}set activeDate(Q){this._clampedActiveDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(Q){this._currentView=Q,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new d.C5(this.headerComponent||en),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(Q){const zt=Q.minDate||Q.maxDate||Q.dateFilter;if(zt&&!zt.firstChange){const Je=this._getCurrentViewComponent();Je&&(this._changeDetectorRef.detectChanges(),Je._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){("month"==this.currentView?this.monthView:"year"==this.currentView?this.yearView:this.multiYearView).ngAfterContentInit()}_dateSelected(Q){Q&&!this._dateAdapter.sameDate(Q,this.selected)&&this.selectedChange.emit(Q)}_yearSelectedInMultiYearView(Q){this.yearSelected.emit(Q)}_monthSelectedInYearView(Q){this.monthSelected.emit(Q)}_userSelected(){this._userSelection.emit()}_goToDateInView(Q,zt){this.activeDate=Q,this.currentView=zt}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(I.S8),p.Y36(Bt,8),p.Y36(Ee,8),p.Y36(p.sBO))},nt.\u0275cmp=p.Xpm({type:nt,selectors:[["ngx-mat-calendar"]],viewQuery:function(Q,zt){if(1&Q&&(p.Gf(Ve,5),p.Gf(Me,5),p.Gf(pe,5)),2&Q){let Je;p.iGM(Je=p.CRH())&&(zt.monthView=Je.first),p.iGM(Je=p.CRH())&&(zt.yearView=Je.first),p.iGM(Je=p.CRH())&&(zt.multiYearView=Je.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["ngxMatCalendar"],features:[p.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(Q,zt){1&Q&&(p.YNc(0,Ce,0,0,"ng-template",0),p.TgZ(1,"div",1),p.YNc(2,Ae,1,6,"ngx-mat-month-view",2),p.YNc(3,Ne,1,5,"ngx-mat-year-view",3),p.YNc(4,ze,1,5,"ngx-mat-multi-year-view",4),p.qZA()),2&Q&&(p.Q6J("cdkPortalOutlet",zt._calendarHeaderPortal),p.xp6(1),p.Q6J("ngSwitch",zt.currentView),p.xp6(1),p.Q6J("ngSwitchCase","month"),p.xp6(1),p.Q6J("ngSwitchCase","year"),p.xp6(1),p.Q6J("ngSwitchCase","multi-year"))},dependencies:[z.RF,z.n9,d.Pl,Ve,Me,pe],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0}.mat-calendar-content{padding:0 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.71429% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button:after,.mat-calendar-next-button:after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button:after{border-left-width:2px;transform:translate(2px) rotate(-45deg)}.mat-calendar-next-button:after{border-right-width:2px;transform:translate(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider:after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),nt})(),Zn=(()=>{class nt{constructor(Q,zt,Je){if(this._dateAdapter=Q,this.cd=zt,this.formBuilder=Je,this.disabled=!1,this.showSpinners=!0,this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.disableMinute=!1,this.enableMeridian=!1,this.color="primary",this.meridian="AM",this._onChange=()=>{},this._onTouched=()=>{},this._destroyed=new T.xQ,this.pattern=Si,!this._dateAdapter)throw Gn("NgxMatDateAdapter");this.form=this.formBuilder.group({hour:[{value:null,disabled:this.disabled},[Pt.kI.required,Pt.kI.pattern(Si)]],minute:[{value:null,disabled:this.disabled},[Pt.kI.required,Pt.kI.pattern(ho)]],second:[{value:null,disabled:this.disabled},[Pt.kI.required,Pt.kI.pattern(hi)]]})}get hour(){let Q=Number(this.form.controls.hour.value);return isNaN(Q)?0:Q}get minute(){let Q=Number(this.form.controls.minute.value);return isNaN(Q)?0:Q}get second(){let Q=Number(this.form.controls.second.value);return isNaN(Q)?0:Q}get valid(){return this.form.valid}ngOnInit(){this.form.valueChanges.pipe((0,k.R)(this._destroyed),(0,D.b)(400)).subscribe(Q=>{this._updateModel()})}ngOnChanges(Q){(Q.disabled||Q.disableMinute)&&this._setDisableStates()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}writeValue(Q){null!=Q?this._model=Q:(this._model=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._model,this.defaultTime)),this._updateHourMinuteSecond()}registerOnChange(Q){this._onChange=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this._disabled=Q,this.cd.markForCheck()}formatInput(Q){Q.value=Q.value.replace(_i,"")}toggleMeridian(){this.meridian="AM"===this.meridian?"PM":"AM",this.change("hour")}change(Q,zt){const Je=this._getNextValueByProp(Q,zt);this.form.controls[Q].setValue(Vn(Je),{onlySelf:!1,emitEvent:!1}),this._updateModel()}_updateHourMinuteSecond(){let Q=this._dateAdapter.getHour(this._model);const zt=this._dateAdapter.getMinute(this._model),Je=this._dateAdapter.getSecond(this._model);this.enableMeridian&&(Q>=Oe.meridian?(Q-=Oe.meridian,this.meridian="PM"):this.meridian="AM",0===Q&&(Q=Oe.meridian)),this.form.controls.hour.setValue(Vn(Q)),this.form.controls.minute.setValue(Vn(zt)),this.form.controls.second.setValue(Vn(Je))}_updateModel(){let Q=this.hour;this.enableMeridian&&("AM"===this.meridian&&Q===Oe.meridian?Q=0:"PM"===this.meridian&&Q!==Oe.meridian&&(Q+=Oe.meridian)),this._dateAdapter.setHour(this._model,Q),this._dateAdapter.setMinute(this._model,this.minute),this._dateAdapter.setSecond(this._model,this.second),this._onChange(this._model)}_getNextValueByProp(Q,zt){const Je=Q[0].toUpperCase()+Q.slice(1),zn=Oe[`min${Je}`];let Co,Gi=Oe[`max${Je}`];return"hour"===Q&&this.enableMeridian&&(Gi=Oe.meridian),null==zt?(Co=this[Q]%Gi,"hour"===Q&&this.enableMeridian&&0===Co&&(Co=Gi)):(Co=zt?this[Q]+this[`step${Je}`]:this[Q]-this[`step${Je}`],"hour"===Q&&this.enableMeridian?(Co%=Gi+1,0===Co&&(Co=zt?1:Gi)):Co%=Gi,Co=zt?Co>Gi?Co-Gi+zn:Co:Cont),multi:!0}]),p.TTD],decls:18,vars:7,consts:[[3,"formGroup"],[1,"ngx-mat-timepicker-table"],[1,"ngx-mat-timepicker-tbody"],[4,"ngIf"],["appearance","legacy"],["type","text","matInput","","maxlength","2","formControlName","hour",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-spacer"],["type","text","matInput","","maxlength","2","formControlName","minute",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],["class","ngx-mat-timepicker-spacer",4,"ngIf"],["class","ngx-mat-timepicker-meridian",4,"ngIf"],["type","button","mat-icon-button","","aria-label","expand_less icon",3,"disabled","click"],["type","text","matInput","","maxlength","2","formControlName","second",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-meridian"],["mat-button","","mat-stroked-button","",3,"color","disabled","click"],["type","button","mat-icon-button","","aria-label","expand_more icon",3,"disabled","click"]],template:function(Q,zt){1&Q&&(p.TgZ(0,"form",0)(1,"table",1)(2,"tbody",2),p.YNc(3,re,14,5,"tr",3),p.TgZ(4,"tr")(5,"td")(6,"mat-form-field",4)(7,"input",5),p.NdJ("input",function(zn){return zt.formatInput(zn.target)})("keydown.ArrowUp",function(zn){return zt.change("hour",!0),zn.preventDefault()})("keydown.ArrowDown",function(zn){return zt.change("hour",!1),zn.preventDefault()})("blur",function(){return zt.change("hour")}),p.qZA()()(),p.TgZ(8,"td",6),p._uU(9,":"),p.qZA(),p.TgZ(10,"td")(11,"mat-form-field",4)(12,"input",7),p.NdJ("input",function(zn){return zt.formatInput(zn.target)})("keydown.ArrowUp",function(zn){return zt.change("minute",!0),zn.preventDefault()})("keydown.ArrowDown",function(zn){return zt.change("minute",!1),zn.preventDefault()})("blur",function(){return zt.change("minute")}),p.qZA()()(),p.YNc(13,ee,2,0,"td",8),p.YNc(14,ue,3,0,"td",3),p.YNc(15,Kt,1,0,"td",8),p.YNc(16,ce,3,3,"td",9),p.qZA(),p.YNc(17,bn,14,6,"tr",3),p.qZA()()()),2&Q&&(p.Q6J("formGroup",zt.form),p.xp6(3),p.Q6J("ngIf",zt.showSpinners),p.xp6(10),p.Q6J("ngIf",zt.showSeconds),p.xp6(1),p.Q6J("ngIf",zt.showSeconds),p.xp6(1),p.Q6J("ngIf",zt.enableMeridian),p.xp6(1),p.Q6J("ngIf",zt.enableMeridian),p.xp6(1),p.Q6J("ngIf",zt.showSpinners))},dependencies:[z.O5,St.KE,Ht.Nt,Pt._Y,Pt.Fj,Pt.JJ,Pt.JL,Pt.nD,Pt.sg,Pt.u,Jt.Hw,ot.lW],styles:[".ngx-mat-timepicker{font-size:13px}.ngx-mat-timepicker form{min-width:90px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td{text-align:center}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-spacer{font-weight:bold}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-meridian .mat-button{min-width:64px;line-height:36px;min-width:0;border-radius:50%;width:36px;height:36px;padding:0;flex-shrink:0}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button{height:24px;width:24px;line-height:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button .mat-icon{font-size:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-form-field{width:20px;max-width:20px;text-align:center}\n"],encapsulation:2}),nt})(),ve=0;const Be=(0,G.pj)(class{constructor(nt){this._elementRef=nt}});let Fn=(()=>{class nt extends Be{constructor(Q,zt,Je){super(Q),this.cd=zt,this._viewContainerRef=Je}get valid(){return(this.datepicker.hideTime||this._timePicker&&this._timePicker.valid)&&this.datepicker.valid}get isViewMonth(){return!this._calendar||null==this._calendar.currentView||"month"==this._calendar.currentView}ngAfterViewInit(){this._calendar.focusActiveCell(),this.datepicker._customIcon&&(this._templateCustomIconPortal=new d.UE(this.datepicker._customIcon,this._viewContainerRef),this.cd.detectChanges())}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(p.s_b))},nt.\u0275cmp=p.Xpm({type:nt,selectors:[["ngx-mat-datetime-content"]],viewQuery:function(Q,zt){if(1&Q&&(p.Gf(He,5),p.Gf(Zn,5)),2&Q){let Je;p.iGM(Je=p.CRH())&&(zt._calendar=Je.first),p.iGM(Je=p.CRH())&&(zt._timePicker=Je.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Q,zt){2&Q&&(p.d8E("@transformPanel","enter"),p.ekj("mat-datepicker-content-touch",zt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["ngxMatDatetimeContent"],features:[p.qOj],decls:2,vars:12,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected"],[4,"ngIf"],["class","time-container",3,"disable-seconds",4,"ngIf"],[1,"actions"],["mat-button","","mat-stroked-button","","cdkFocusInitial","",3,"color","disabled","click"],[3,"cdkPortalOutlet"],[1,"time-container"],[3,"showSpinners","showSeconds","disabled","stepHour","stepMinute","stepSecond","ngModel","color","enableMeridian","disableMinute","ngModelChange"]],template:function(Q,zt){1&Q&&(p.TgZ(0,"ngx-mat-calendar",0),p.NdJ("selectedChange",function(zn){return zt.datepicker.select(zn)})("yearSelected",function(zn){return zt.datepicker._selectYear(zn)})("monthSelected",function(zn){return zt.datepicker._selectMonth(zn)}),p.qZA(),p.YNc(1,ri,6,5,"ng-container",1)),2&Q&&(p.Q6J("id",zt.datepicker.id)("ngClass",zt.datepicker.panelClass)("startAt",zt.datepicker.startAt)("startView",zt.datepicker.startView)("minDate",zt.datepicker._minDate)("maxDate",zt.datepicker._maxDate)("dateFilter",zt.datepicker._dateFilter)("headerComponent",zt.datepicker.calendarHeaderComponent)("selected",zt.datepicker._selected)("dateClass",zt.datepicker.dateClass)("@fadeInCalendar","enter"),p.xp6(1),p.Q6J("ngIf",zt.isViewMonth))},dependencies:[z.mk,z.O5,d.Pl,Pt.JJ,Pt.On,Jt.Hw,ot.lW,Zn,He],styles:['.mat-datepicker-content{display:block;border-radius:4px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-datepicker-content .mat-calendar{width:296px}.mat-datepicker-content .time-container{display:flex;position:relative;padding-top:5px;justify-content:center}.mat-datepicker-content .time-container.disable-seconds .ngx-mat-timepicker .table{margin-left:9px}.mat-datepicker-content .time-container:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#0000001f}.mat-datepicker-content .actions{display:flex;padding:5px 15px 10px;justify-content:flex-end}\n'],encapsulation:2,data:{animation:[I.E2.transformPanel,I.E2.fadeInCalendar]},changeDetection:0}),nt})(),bi=(()=>{class nt{constructor(Q,zt,Je,zn,Gi,Co,gr,br){if(this._dialog=Q,this._overlay=zt,this._ngZone=Je,this._viewContainerRef=zn,this._dateAdapter=Co,this._dir=gr,this._document=br,this.startView="month",this._defaultColor="primary",this._touchUi=!1,this._hideTime=!1,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this.openedStream=new p.vpe,this.closedStream=new p.vpe,this._opened=!1,this._showSpinners=!0,this._showSeconds=!1,this._stepHour=1,this._stepMinute=1,this._stepSecond=1,this._enableMeridian=!1,this._hasBackdrop=!0,this.id="mat-datepicker-"+ve++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=v.w.EMPTY,this.stateChanges=new T.xQ,this._selectedChanged=new T.xQ,this._minValidator=()=>!this._minDate||!this._selected||this._dateAdapter.compareDateWithTime(this._minDate,this._selected,this.showSeconds)<=0?null:{matDatetimePickerMin:{min:this._minDate,actual:this._selected}},this._maxValidator=()=>!this._maxDate||!this._selected||this._dateAdapter.compareDateWithTime(this._maxDate,this._selected,this.showSeconds)>=0?null:{matDatetimePickerMax:{max:this._maxDate,actual:this._selected}},!this._dateAdapter)throw Gn("NgxMatDateAdapter");this._scrollStrategy=Gi}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.value:null)}set startAt(Q){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get defaultColor(){return this._defaultColor}set defaultColor(Q){this._defaultColor=Q}get color(){return this._color||(this.datepickerInput?this.datepickerInput._getThemePalette():"primary")}set color(Q){this._color=Q}get touchUi(){return this._touchUi}set touchUi(Q){this._touchUi=(0,ct.Ig)(Q)}get hideTime(){return this._hideTime}set hideTime(Q){this._hideTime=(0,ct.Ig)(Q)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Q){const zt=(0,ct.Ig)(Q);zt!==this._disabled&&(this._disabled=zt,this.stateChanges.next(zt))}get opened(){return this._opened}set opened(Q){Q?this.open():this.close()}get showSpinners(){return this._showSpinners}set showSpinners(Q){this._showSpinners=Q}get showSeconds(){return this._showSeconds}set showSeconds(Q){this._showSeconds=Q}get stepHour(){return this._stepHour}set stepHour(Q){this._stepHour=Q}get stepMinute(){return this._stepMinute}set stepMinute(Q){this._stepMinute=Q}get stepSecond(){return this._stepSecond}set stepSecond(Q){this._stepSecond=Q}get enableMeridian(){return this._enableMeridian}set enableMeridian(Q){this._enableMeridian=Q}get disableMinute(){return this._disableMinute}set disableMinute(Q){this._disableMinute=Q}get defaultTime(){return this._defaultTime}set defaultTime(Q){this._defaultTime=Q}get _selected(){return this._validSelected}set _selected(Q){this._validSelected=Q}get _minDate(){return this.datepickerInput&&this.datepickerInput.min}get _maxDate(){return this.datepickerInput&&this.datepickerInput.max}get valid(){const Q=this._minValidator(),zt=this._maxValidator();return null==Q&&null==zt}get _dateFilter(){return this.datepickerInput&&this.datepickerInput._dateFilter}ngOnDestroy(){this.close(),this._popupRef&&(this._popupRef.dispose(),this._popupComponentRef=null),this._inputSubscription.unsubscribe(),this.stateChanges.complete()}select(Q){this._dateAdapter.copyTime(Q,this._selected),this._selected=Q}_selectYear(Q){this.yearSelected.emit(Q)}_selectMonth(Q){this.monthSelected.emit(Q)}ok(){const Q=this._dateAdapter.clone(this._selected);this._selectedChanged.next(Q),this.close()}cancel(){this._selected=this._rawValue,this.close()}_registerInput(Q){if(this.datepickerInput)throw Error("A NgxMatDatepicker can only be associated with a single input.");this.datepickerInput=Q,this._inputSubscription=this.datepickerInput._valueChange.subscribe(zt=>this._selected=zt)}open(){if(this._rawValue=null!=this._selected?this._dateAdapter.clone(this._selected):null,null==this._selected&&(this._selected=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._selected,this.defaultTime)),!this._opened&&!this.disabled){if(!this.datepickerInput)throw Error("Attempted to open an NgxMatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();const Q=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(Q)):Q()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(Fn,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:this._hasBackdrop}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datepicker=this,this._setColor()}_openAsPopup(){this._calendarPortal||(this._calendarPortal=new d.C5(Fn,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupComponentRef=this._popupRef.attach(this._calendarPortal),this._popupComponentRef.instance.datepicker=this,this._setColor(),this._ngZone.onStable.asObservable().pipe((0,x.q)(1)).subscribe(()=>{this._popupRef.updatePosition()}))}_createPopup(){const Q=new gt.X_({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:this._hasBackdrop,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(Q),this._popupRef.overlayElement.setAttribute("role","dialog"),(0,t.T)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe((0,P.h)(zt=>zt.keyCode===A.hY||this.datepickerInput&&zt.altKey&&zt.keyCode===A.LH))).subscribe(zt=>{zt&&zt.preventDefault(),this._hasBackdrop&&zt?this.cancel():this.close()})}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_setColor(){const Q=this.color;this._popupComponentRef&&(this._popupComponentRef.instance.color=Q),this._dialogRef&&(this._dialogRef.componentInstance.color=Q)}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(at.uw),p.Y36(gt.aV),p.Y36(p.R0b),p.Y36(p.s_b),p.Y36(I.Uu),p.Y36(Bt,8),p.Y36(W.Is,8),p.Y36(z.K0,8))},nt.\u0275cmp=p.Xpm({type:nt,selectors:[["ngx-mat-datetime-picker"]],contentQueries:function(Q,zt,Je){if(1&Q&&p.Suo(Je,p.Rgc,5),2&Q){let zn;p.iGM(zn=p.CRH())&&(zt._customIcon=zn.first)}},inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",defaultColor:"defaultColor",color:"color",touchUi:"touchUi",hideTime:"hideTime",disabled:"disabled",panelClass:"panelClass",dateClass:"dateClass",opened:"opened",showSpinners:"showSpinners",showSeconds:"showSeconds",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",enableMeridian:"enableMeridian",disableMinute:"disableMinute",defaultTime:"defaultTime"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["ngxMatDatetimePicker"],decls:0,vars:0,template:function(Q,zt){},encapsulation:2,changeDetection:0}),nt})();const go={provide:Pt.JU,useExisting:(0,p.Gpc)(()=>wn),multi:!0},_o={provide:Pt.Cf,useExisting:(0,p.Gpc)(()=>wn),multi:!0};class fn{constructor(Vt,Q){this.target=Vt,this.targetElement=Q,this.value=this.target.value}}let Zi,wn=(()=>{class nt{constructor(Q,zt,Je,zn){if(this._elementRef=Q,this._dateAdapter=zt,this._dateFormats=Je,this._formField=zn,this.dateChange=new p.vpe,this.dateInput=new p.vpe,this._valueChange=new p.vpe,this.stateChanges=new p.vpe,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=v.w.EMPTY,this._localeSubscription=v.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatetimePickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=Gi=>{const Co=this._getValidDateOrNull(this._dateAdapter.deserialize(Gi.value));return!this.min||!Co||this._dateAdapter.compareDateWithTime(this.min,Co,this._datepicker.showSeconds)<=0?null:{matDatetimePickerMin:{min:this.min,actual:Co}}},this._maxValidator=Gi=>{const Co=this._getValidDateOrNull(this._dateAdapter.deserialize(Gi.value));return!this.max||!Co||this._dateAdapter.compareDateWithTime(this.max,Co,this._datepicker.showSeconds)>=0?null:{matDatetimePickerMax:{max:this.max,actual:Co}}},this._filterValidator=Gi=>{const Co=this._getValidDateOrNull(this._dateAdapter.deserialize(Gi.value));return this._dateFilter&&Co&&!this._dateFilter(Co)?{matDatetimePickerFilter:!0}:null},this._validator=Pt.kI.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw Gn("NgxMatDateAdapter");if(!this._dateFormats)throw Gn("NGX_MAT_DATE_FORMATS");this._localeSubscription=zt.localeChanges.subscribe(()=>{this.value=this.value})}set ngxMatDatetimePicker(Q){!Q||(this._datepicker=Q,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe(zt=>{this.value=zt,this._cvaOnChange(zt),this._onTouched(),this.dateInput.emit(new fn(this,this._elementRef.nativeElement)),this.dateChange.emit(new fn(this,this._elementRef.nativeElement))}))}set ngxMatDatetimePickerFilter(Q){this._dateFilter=Q,this._validatorOnChange()}get value(){return this._value}set value(Q){Q=this._dateAdapter.deserialize(Q),this._lastValueValid=!Q||this._dateAdapter.isValid(Q),Q=this._getValidDateOrNull(Q);const zt=this.value;this._value=Q,this._formatValue(Q),this._dateAdapter.sameDate(zt,Q)||this._valueChange.emit(Q)}get min(){return this._min}set min(Q){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._validatorOnChange()}get max(){return this._max}set max(Q){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(Q){const zt=null!=Q&&"false"!=`${Q}`,Je=this._elementRef.nativeElement;this._disabled!==zt&&(this._disabled=zt,this.stateChanges.emit(void 0)),zt&&Je.blur&&Je.blur()}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this.stateChanges.complete()}registerOnValidatorChange(Q){this._validatorOnChange=Q}validate(Q){return this._validator?this._validator(Q):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(Q){this.value=Q}registerOnChange(Q){this._cvaOnChange=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this.disabled=Q}_onKeydown(Q){this._datepicker&&Q.altKey&&Q.keyCode===A.JH&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),Q.preventDefault())}_onInput(Q){const zt=this._lastValueValid;let Je=this._dateAdapter.parse(Q,this._dateFormats.parse.dateInput);this._lastValueValid=!Je||this._dateAdapter.isValid(Je),Je=this._getValidDateOrNull(Je);const zn=this._dateAdapter.isSameTime(Je,this._value);null!=Je&&(!zn||!this._dateAdapter.sameDate(Je,this._value))||null==Je&&null!=this._value?(this._value=Je,this._cvaOnChange(Je),this._valueChange.emit(Je),this.dateInput.emit(new fn(this,this._elementRef.nativeElement))):zt!==this._lastValueValid&&this._validatorOnChange()}_onChange(){this.dateChange.emit(new fn(this,this._elementRef.nativeElement))}_getThemePalette(){return this._formField?this._formField.color:void 0}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_onFocus(){this._datepicker&&this._datepicker.opened&&this._datepicker.cancel()}_formatValue(Q){this._elementRef.nativeElement.value=Q?this._dateAdapter.format(Q,this._dateFormats.display.dateInput):""}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(p.SBq),p.Y36(Bt,8),p.Y36(Ee,8),p.Y36(St.KE,8))},nt.\u0275dir=p.lG2({type:nt,selectors:[["input","ngxMatDatetimePicker",""]],hostVars:5,hostBindings:function(Q,zt){1&Q&&p.NdJ("input",function(zn){return zt._onInput(zn.target.value)})("change",function(){return zt._onChange()})("blur",function(){return zt._onBlur()})("focus",function(){return zt._onFocus()})("keydown",function(zn){return zt._onKeydown(zn)}),2&Q&&(p.Ikx("disabled",zt.disabled),p.uIk("aria-haspopup",zt._datepicker?"dialog":null)("aria-owns",(null==zt._datepicker?null:zt._datepicker.opened)&&zt._datepicker.id||null)("min",zt.min?zt._dateAdapter.toIso8601(zt.min):null)("max",zt.max?zt._dateAdapter.toIso8601(zt.max):null))},inputs:{ngxMatDatetimePicker:"ngxMatDatetimePicker",ngxMatDatetimePickerFilter:"ngxMatDatetimePickerFilter",value:"value",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["ngxMatDatetimePickerInput"],features:[p._Bn([go,_o,{provide:Ht.Jk,useExisting:nt}])]}),nt})(),ln=(()=>{class nt{}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275mod=p.oAB({type:nt}),nt.\u0275inj=p.cJS({imports:[z.ez,Ht.c,Pt.UX,Pt.u5,Jt.Ps,ot.ot]}),nt})(),ii=(()=>{class nt{}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275mod=p.oAB({type:nt}),nt.\u0275inj=p.cJS({providers:[I.Lv,{provide:ne,useClass:he}],imports:[z.ez,I.FA,at.Is,d.eL,Pt.u5,Jt.Ps,ot.ot,Ht.c,ln]}),nt})();try{Zi=typeof Intl<"u"}catch{Zi=!1}const vo={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},No=fr(31,nt=>String(nt+1)),la={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Ea=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function fr(nt,Vt){const Q=Array(nt);for(let zt=0;zt{class nt extends Bt{constructor(Q,zt){super(),this.useUtcForDisplay=!0,super.setLocale(Q),this.useUtcForDisplay=!zt.TRIDENT,this._clampDate=zt.TRIDENT||zt.EDGE}getYear(Q){return Q.getFullYear()}getMonth(Q){return Q.getMonth()}getDate(Q){return Q.getDate()}getDayOfWeek(Q){return Q.getDay()}getMonthNames(Q){if(Zi){const zt=new Intl.DateTimeFormat(this.locale,{month:Q,timeZone:"utc"});return fr(12,Je=>this._stripDirectionalityCharacters(this._format(zt,new Date(2017,Je,1))))}return vo[Q]}getDateNames(){if(Zi){const Q=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return fr(31,zt=>this._stripDirectionalityCharacters(this._format(Q,new Date(2017,0,zt+1))))}return No}getDayOfWeekNames(Q){if(Zi){const zt=new Intl.DateTimeFormat(this.locale,{weekday:Q,timeZone:"utc"});return fr(7,Je=>this._stripDirectionalityCharacters(this._format(zt,new Date(2017,0,Je+1))))}return la[Q]}getYearName(Q){if(Zi){const zt=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(zt,Q))}return String(this.getYear(Q))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Q){return this.getDate(this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q)+1,0))}clone(Q){return new Date(Q.getTime())}createDate(Q,zt,Je){if(zt<0||zt>11)throw Error(`Invalid month index "${zt}". Month index has to be between 0 and 11.`);if(Je<1)throw Error(`Invalid date "${Je}". Date has to be greater than 0.`);let zn=this._createDateWithOverflow(Q,zt,Je);if(zn.getMonth()!=zt)throw Error(`Invalid date "${Je}" for month with index "${zt}".`);return zn}today(){return new Date}parse(Q){return"number"==typeof Q?new Date(Q):Q?new Date(Date.parse(Q)):null}format(Q,zt){if(!this.isValid(Q))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Zi){this._clampDate&&(Q.getFullYear()<1||Q.getFullYear()>9999)&&(Q=this.clone(Q)).setFullYear(Math.max(1,Math.min(9999,Q.getFullYear()))),zt={...zt,timeZone:"utc"};const Je=new Intl.DateTimeFormat(this.locale,zt);return this._stripDirectionalityCharacters(this._format(Je,Q))}return this._stripDirectionalityCharacters(Q.toDateString())}addCalendarYears(Q,zt){return this.addCalendarMonths(Q,12*zt)}addCalendarMonths(Q,zt){let Je=this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q)+zt,this.getDate(Q));return this.getMonth(Je)!=((this.getMonth(Q)+zt)%12+12)%12&&(Je=this._createDateWithOverflow(this.getYear(Je),this.getMonth(Je),0)),Je}addCalendarDays(Q,zt){return this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q),this.getDate(Q)+zt)}toIso8601(Q){return[Q.getUTCFullYear(),this._2digit(Q.getUTCMonth()+1),this._2digit(Q.getUTCDate())].join("-")}deserialize(Q){if("string"==typeof Q){if(!Q)return null;if(Ea.test(Q)){let zt=new Date(Q);if(this.isValid(zt))return zt}}return super.deserialize(Q)}isDateInstance(Q){return Q instanceof Date}isValid(Q){return!isNaN(Q.getTime())}invalid(){return new Date(NaN)}getHour(Q){return Q.getHours()}getMinute(Q){return Q.getMinutes()}getSecond(Q){return Q.getSeconds()}setHour(Q,zt){Q.setHours(zt)}setMinute(Q,zt){Q.setMinutes(zt)}setSecond(Q,zt){Q.setSeconds(zt)}_createDateWithOverflow(Q,zt,Je){const zn=new Date(Q,zt,Je);return Q>=0&&Q<100&&zn.setFullYear(this.getYear(zn)-1900),zn}_2digit(Q){return("00"+Q).slice(-2)}_stripDirectionalityCharacters(Q){return Q.replace(/[\u200e\u200f]/g,"")}_format(Q,zt){const Je=new Date;return Je.setUTCFullYear(zt.getFullYear(),zt.getMonth(),zt.getDate()),Je.setUTCHours(zt.getHours(),zt.getMinutes(),zt.getSeconds(),zt.getMilliseconds()),Q.format(Je)}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.LFG(G.Ad,8),p.LFG(Zt.t4))},nt.\u0275prov=p.Yz7({token:nt,factory:nt.\u0275fac}),nt})();const Nn={year:"numeric",month:"numeric",day:"numeric",hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"},Ye={parse:{dateInput:Nn},display:{dateInput:Nn,monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Pe=(()=>{class nt{}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275mod=p.oAB({type:nt}),nt.\u0275inj=p.cJS({providers:[{provide:Bt,useClass:$e}],imports:[Zt.ud]}),nt})(),mn=(()=>{class nt{}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275mod=p.oAB({type:nt}),nt.\u0275inj=p.cJS({providers:[{provide:Ee,useValue:Ye}],imports:[Pe]}),nt})()},37340:(rt,it,b)=>{"use strict";b.d(it,{F4:()=>D,IO:()=>W,LC:()=>p,SB:()=>k,X$:()=>T,ZE:()=>Pt,ZN:()=>gt,_j:()=>d,eR:()=>P,jt:()=>t,k1:()=>St,l3:()=>v,oB:()=>w,pV:()=>z,ru:()=>A,vP:()=>x});class d{}class p{}const v="*";function T(Ht,Jt){return{type:7,name:Ht,definitions:Jt,options:{}}}function t(Ht,Jt=null){return{type:4,styles:Jt,timings:Ht}}function A(Ht,Jt=null){return{type:3,steps:Ht,options:Jt}}function x(Ht,Jt=null){return{type:2,steps:Ht,options:Jt}}function w(Ht){return{type:6,styles:Ht,offset:null}}function k(Ht,Jt,at){return{type:0,name:Ht,styles:Jt,options:at}}function D(Ht){return{type:5,steps:Ht}}function P(Ht,Jt,at=null){return{type:1,expr:Ht,animation:Jt,options:at}}function z(Ht=null){return{type:9,options:Ht}}function W(Ht,Jt,at=null){return{type:11,selector:Ht,animation:Jt,options:at}}function ct(Ht){Promise.resolve().then(Ht)}class gt{constructor(Jt=0,at=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Jt+at}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Jt=>Jt()),this._onDoneFns=[])}onStart(Jt){this._originalOnStartFns.push(Jt),this._onStartFns.push(Jt)}onDone(Jt){this._originalOnDoneFns.push(Jt),this._onDoneFns.push(Jt)}onDestroy(Jt){this._onDestroyFns.push(Jt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ct(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Jt=>Jt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Jt=>Jt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Jt){this._position=this.totalTime?Jt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Jt){const at="start"==Jt?this._onStartFns:this._onDoneFns;at.forEach(Zt=>Zt()),at.length=0}}class Pt{constructor(Jt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Jt;let at=0,Zt=0,wt=0;const _t=this.players.length;0==_t?ct(()=>this._onFinish()):this.players.forEach(Nt=>{Nt.onDone(()=>{++at==_t&&this._onFinish()}),Nt.onDestroy(()=>{++Zt==_t&&this._onDestroy()}),Nt.onStart(()=>{++wt==_t&&this._onStart()})}),this.totalTime=this.players.reduce((Nt,Qt)=>Math.max(Nt,Qt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Jt=>Jt()),this._onDoneFns=[])}init(){this.players.forEach(Jt=>Jt.init())}onStart(Jt){this._onStartFns.push(Jt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Jt=>Jt()),this._onStartFns=[])}onDone(Jt){this._onDoneFns.push(Jt)}onDestroy(Jt){this._onDestroyFns.push(Jt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Jt=>Jt.play())}pause(){this.players.forEach(Jt=>Jt.pause())}restart(){this.players.forEach(Jt=>Jt.restart())}finish(){this._onFinish(),this.players.forEach(Jt=>Jt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Jt=>Jt.destroy()),this._onDestroyFns.forEach(Jt=>Jt()),this._onDestroyFns=[])}reset(){this.players.forEach(Jt=>Jt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Jt){const at=Jt*this.totalTime;this.players.forEach(Zt=>{const wt=Zt.totalTime?Math.min(1,at/Zt.totalTime):1;Zt.setPosition(wt)})}getPosition(){const Jt=this.players.reduce((at,Zt)=>null===at||Zt.totalTime>at.totalTime?Zt:at,null);return null!=Jt?Jt.getPosition():0}beforeDestroy(){this.players.forEach(Jt=>{Jt.beforeDestroy&&Jt.beforeDestroy()})}triggerCallback(Jt){const at="start"==Jt?this._onStartFns:this._onDoneFns;at.forEach(Zt=>Zt()),at.length=0}}const St="!"},12687:(rt,it,b)=>{"use strict";b.d(it,{$s:()=>Qt,Em:()=>Ae,Kd:()=>_i,X6:()=>xt,ic:()=>ze,kH:()=>Gn,mK:()=>dn,qV:()=>Ze,qm:()=>tn,rt:()=>an,s1:()=>Ce,tE:()=>Vn,yG:()=>tt});var d=b(36895),p=b(94650),v=b(83353),T=b(8929),t=b(42654),A=b(591),x=b(21086),w=b(29521),k=b(22868),D=b(80013),P=b(92198),I=b(24850),z=b(72986),G=b(31307),W=b(75778),ot=b(7625),ct=b(21281),gt=b(49643),Pt=b(62289);function at(pe,We){return(pe.getAttribute(We)||"").match(/\S+/g)||[]}const wt="cdk-describedby-message",_t="cdk-describedby-host";let Nt=0,Qt=(()=>{class pe{constructor(Et,Mt){this._platform=Mt,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Nt++,this._document=Et,this._id=(0,p.f3M)(p.AFp)+"-"+Nt++}describe(Et,Mt,It){if(!this._canBeDescribed(Et,Mt))return;const Me=qt(Mt,It);"string"!=typeof Mt?(le(Mt,this._id),this._messageRegistry.set(Me,{messageElement:Mt,referenceCount:0})):this._messageRegistry.has(Me)||this._createMessageElement(Mt,It),this._isElementDescribedByMessage(Et,Me)||this._addMessageReference(Et,Me)}removeDescription(Et,Mt,It){if(!Mt||!this._isElementNode(Et))return;const Me=qt(Mt,It);if(this._isElementDescribedByMessage(Et,Me)&&this._removeMessageReference(Et,Me),"string"==typeof Mt){const en=this._messageRegistry.get(Me);en&&0===en.referenceCount&&this._deleteMessageElement(Me)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Et=this._document.querySelectorAll(`[${_t}="${this._id}"]`);for(let Mt=0;Mt0!=It.indexOf(wt));Et.setAttribute("aria-describedby",Mt.join(" "))}_addMessageReference(Et,Mt){const It=this._messageRegistry.get(Mt);(function Ht(pe,We,Et){const Mt=at(pe,We);Mt.some(It=>It.trim()==Et.trim())||(Mt.push(Et.trim()),pe.setAttribute(We,Mt.join(" ")))})(Et,"aria-describedby",It.messageElement.id),Et.setAttribute(_t,this._id),It.referenceCount++}_removeMessageReference(Et,Mt){const It=this._messageRegistry.get(Mt);It.referenceCount--,function Jt(pe,We,Et){const It=at(pe,We).filter(Me=>Me!=Et.trim());It.length?pe.setAttribute(We,It.join(" ")):pe.removeAttribute(We)}(Et,"aria-describedby",It.messageElement.id),Et.removeAttribute(_t)}_isElementDescribedByMessage(Et,Mt){const It=at(Et,"aria-describedby"),Me=this._messageRegistry.get(Mt),en=Me&&Me.messageElement.id;return!!en&&-1!=It.indexOf(en)}_canBeDescribed(Et,Mt){if(!this._isElementNode(Et))return!1;if(Mt&&"object"==typeof Mt)return!0;const It=null==Mt?"":`${Mt}`.trim(),Me=Et.getAttribute("aria-label");return!(!It||Me&&Me.trim()===It)}_isElementNode(Et){return Et.nodeType===this._document.ELEMENT_NODE}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.LFG(d.K0),p.LFG(v.t4))},pe.\u0275prov=p.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();function qt(pe,We){return"string"==typeof pe?`${We||""}/${pe}`:pe}function le(pe,We){pe.id||(pe.id=`${wt}-${We}-${Nt++}`)}class Wt{constructor(We){this._items=We,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new T.xQ,this._typeaheadSubscription=t.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Et=>Et.disabled,this._pressedLetters=[],this.tabOut=new T.xQ,this.change=new T.xQ,We instanceof p.n_E&&We.changes.subscribe(Et=>{if(this._activeItem){const It=Et.toArray().indexOf(this._activeItem);It>-1&&It!==this._activeItemIndex&&(this._activeItemIndex=It)}})}skipPredicate(We){return this._skipPredicateFn=We,this}withWrap(We=!0){return this._wrap=We,this}withVerticalOrientation(We=!0){return this._vertical=We,this}withHorizontalOrientation(We){return this._horizontal=We,this}withAllowedModifierKeys(We){return this._allowedModifierKeys=We,this}withTypeAhead(We=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,k.b)(Et=>this._pressedLetters.push(Et)),(0,D.b)(We),(0,P.h)(()=>this._pressedLetters.length>0),(0,I.U)(()=>this._pressedLetters.join(""))).subscribe(Et=>{const Mt=this._getItemsArray();for(let It=1;It!We[Me]||this._allowedModifierKeys.indexOf(Me)>-1);switch(Et){case w.Mf:return void this.tabOut.next();case w.JH:if(this._vertical&&It){this.setNextItemActive();break}return;case w.LH:if(this._vertical&&It){this.setPreviousItemActive();break}return;case w.SV:if(this._horizontal&&It){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.oh:if(this._horizontal&&It){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.Sd:if(this._homeAndEnd&&It){this.setFirstItemActive();break}return;case w.uR:if(this._homeAndEnd&&It){this.setLastItemActive();break}return;default:return void((It||(0,w.Vb)(We,"shiftKey"))&&(We.key&&1===We.key.length?this._letterKeyStream.next(We.key.toLocaleUpperCase()):(Et>=w.A&&Et<=w.Z||Et>=w.xE&&Et<=w.aO)&&this._letterKeyStream.next(String.fromCharCode(Et))))}this._pressedLetters=[],We.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(We){const Et=this._getItemsArray(),Mt="number"==typeof We?We:Et.indexOf(We);this._activeItem=Et[Mt]??null,this._activeItemIndex=Mt}_setActiveItemByDelta(We){this._wrap?this._setActiveInWrapMode(We):this._setActiveInDefaultMode(We)}_setActiveInWrapMode(We){const Et=this._getItemsArray();for(let Mt=1;Mt<=Et.length;Mt++){const It=(this._activeItemIndex+We*Mt+Et.length)%Et.length;if(!this._skipPredicateFn(Et[It]))return void this.setActiveItem(It)}}_setActiveInDefaultMode(We){this._setActiveItemByIndex(this._activeItemIndex+We,We)}_setActiveItemByIndex(We,Et){const Mt=this._getItemsArray();if(Mt[We]){for(;this._skipPredicateFn(Mt[We]);)if(!Mt[We+=Et])return;this.setActiveItem(We)}}_getItemsArray(){return this._items instanceof p.n_E?this._items.toArray():this._items}}class Ce extends Wt{setActiveItem(We){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(We),this.activeItem&&this.activeItem.setActiveStyles()}}class Ae extends Wt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(We){return this._origin=We,this}setActiveItem(We){super.setActiveItem(We),this.activeItem&&this.activeItem.focus(this._origin)}}let ze=(()=>{class pe{constructor(Et){this._platform=Et}isDisabled(Et){return Et.hasAttribute("disabled")}isVisible(Et){return function ie(pe){return!!(pe.offsetWidth||pe.offsetHeight||"function"==typeof pe.getClientRects&&pe.getClientRects().length)}(Et)&&"visible"===getComputedStyle(Et).visibility}isTabbable(Et){if(!this._platform.isBrowser)return!1;const Mt=function Xe(pe){try{return pe.frameElement}catch{return null}}(function we(pe){return pe.ownerDocument&&pe.ownerDocument.defaultView||window}(Et));if(Mt&&(-1===Le(Mt)||!this.isVisible(Mt)))return!1;let It=Et.nodeName.toLowerCase(),Me=Le(Et);return Et.hasAttribute("contenteditable")?-1!==Me:!("iframe"===It||"object"===It||this._platform.WEBKIT&&this._platform.IOS&&!function on(pe){let We=pe.nodeName.toLowerCase(),Et="input"===We&&pe.type;return"text"===Et||"password"===Et||"select"===We||"textarea"===We}(Et))&&("audio"===It?!!Et.hasAttribute("controls")&&-1!==Me:"video"===It?-1!==Me&&(null!==Me||this._platform.FIREFOX||Et.hasAttribute("controls")):Et.tabIndex>=0)}isFocusable(Et,Mt){return function hn(pe){return!function re(pe){return function ue(pe){return"input"==pe.nodeName.toLowerCase()}(pe)&&"hidden"==pe.type}(pe)&&(function Te(pe){let We=pe.nodeName.toLowerCase();return"input"===We||"select"===We||"button"===We||"textarea"===We}(pe)||function ee(pe){return function Kt(pe){return"a"==pe.nodeName.toLowerCase()}(pe)&&pe.hasAttribute("href")}(pe)||pe.hasAttribute("contenteditable")||ce(pe))}(Et)&&!this.isDisabled(Et)&&(Mt?.ignoreVisibility||this.isVisible(Et))}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.LFG(v.t4))},pe.\u0275prov=p.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();function ce(pe){if(!pe.hasAttribute("tabindex")||void 0===pe.tabIndex)return!1;let We=pe.getAttribute("tabindex");return!(!We||isNaN(parseInt(We,10)))}function Le(pe){if(!ce(pe))return null;const We=parseInt(pe.getAttribute("tabindex")||"",10);return isNaN(We)?-1:We}class bn{constructor(We,Et,Mt,It,Me=!1){this._element=We,this._checker=Et,this._ngZone=Mt,this._document=It,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Me||this.attachAnchors()}get enabled(){return this._enabled}set enabled(We){this._enabled=We,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(We,this._startAnchor),this._toggleAnchorTabIndex(We,this._endAnchor))}destroy(){const We=this._startAnchor,Et=this._endAnchor;We&&(We.removeEventListener("focus",this.startAnchorListener),We.remove()),Et&&(Et.removeEventListener("focus",this.endAnchorListener),Et.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(We){return new Promise(Et=>{this._executeOnStable(()=>Et(this.focusInitialElement(We)))})}focusFirstTabbableElementWhenReady(We){return new Promise(Et=>{this._executeOnStable(()=>Et(this.focusFirstTabbableElement(We)))})}focusLastTabbableElementWhenReady(We){return new Promise(Et=>{this._executeOnStable(()=>Et(this.focusLastTabbableElement(We)))})}_getRegionBoundary(We){const Et=this._element.querySelectorAll(`[cdk-focus-region-${We}], [cdkFocusRegion${We}], [cdk-focus-${We}]`);return"start"==We?Et.length?Et[0]:this._getFirstTabbableElement(this._element):Et.length?Et[Et.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(We){const Et=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Et){if(!this._checker.isFocusable(Et)){const Mt=this._getFirstTabbableElement(Et);return Mt?.focus(We),!!Mt}return Et.focus(We),!0}return this.focusFirstTabbableElement(We)}focusFirstTabbableElement(We){const Et=this._getRegionBoundary("start");return Et&&Et.focus(We),!!Et}focusLastTabbableElement(We){const Et=this._getRegionBoundary("end");return Et&&Et.focus(We),!!Et}hasAttached(){return this._hasAttached}_getFirstTabbableElement(We){if(this._checker.isFocusable(We)&&this._checker.isTabbable(We))return We;const Et=We.children;for(let Mt=0;Mt=0;Mt--){const It=Et[Mt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Et[Mt]):null;if(It)return It}return null}_createAnchor(){const We=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,We),We.classList.add("cdk-visually-hidden"),We.classList.add("cdk-focus-trap-anchor"),We.setAttribute("aria-hidden","true"),We}_toggleAnchorTabIndex(We,Et){We?Et.setAttribute("tabindex","0"):Et.removeAttribute("tabindex")}toggleAnchors(We){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(We,this._startAnchor),this._toggleAnchorTabIndex(We,this._endAnchor))}_executeOnStable(We){this._ngZone.isStable?We():this._ngZone.onStable.pipe((0,z.q)(1)).subscribe(We)}}let Ze=(()=>{class pe{constructor(Et,Mt,It){this._checker=Et,this._ngZone=Mt,this._document=It}create(Et,Mt=!1){return new bn(Et,this._checker,this._ngZone,this._document,Mt)}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.LFG(ze),p.LFG(p.R0b),p.LFG(d.K0))},pe.\u0275prov=p.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})(),dn=(()=>{class pe{constructor(Et,Mt,It){this._elementRef=Et,this._focusTrapFactory=Mt,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(Et){this.focusTrap.enabled=(0,ct.Ig)(Et)}get autoCapture(){return this._autoCapture}set autoCapture(Et){this._autoCapture=(0,ct.Ig)(Et)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(Et){const Mt=Et.autoCapture;Mt&&!Mt.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,v.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.Y36(p.SBq),p.Y36(Ze),p.Y36(d.K0))},pe.\u0275dir=p.lG2({type:pe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[p.TTD]}),pe})();function xt(pe){return 0===pe.buttons||0===pe.offsetX&&0===pe.offsetY}function tt(pe){const We=pe.touches&&pe.touches[0]||pe.changedTouches&&pe.changedTouches[0];return!(!We||-1!==We.identifier||null!=We.radiusX&&1!==We.radiusX||null!=We.radiusY&&1!==We.radiusY)}const et=new p.OlP("cdk-input-modality-detector-options"),Ct={ignoreKeys:[w.zL,w.jx,w.b2,w.MW,w.JU]},ne=(0,v.i$)({passive:!0,capture:!0});let he=(()=>{class pe{constructor(Et,Mt,It,Me){this._platform=Et,this._mostRecentTarget=null,this._modality=new A.X(null),this._lastTouchMs=0,this._onKeydown=en=>{this._options?.ignoreKeys?.some(He=>He===en.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,v.sA)(en))},this._onMousedown=en=>{Date.now()-this._lastTouchMs<650||(this._modality.next(xt(en)?"keyboard":"mouse"),this._mostRecentTarget=(0,v.sA)(en))},this._onTouchstart=en=>{tt(en)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,v.sA)(en))},this._options={...Ct,...Me},this.modalityDetected=this._modality.pipe((0,G.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,W.x)()),Et.isBrowser&&Mt.runOutsideAngular(()=>{It.addEventListener("keydown",this._onKeydown,ne),It.addEventListener("mousedown",this._onMousedown,ne),It.addEventListener("touchstart",this._onTouchstart,ne)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ne),document.removeEventListener("mousedown",this._onMousedown,ne),document.removeEventListener("touchstart",this._onTouchstart,ne))}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.LFG(v.t4),p.LFG(p.R0b),p.LFG(d.K0),p.LFG(et,8))},pe.\u0275prov=p.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const Oe=new p.OlP("liveAnnouncerElement",{providedIn:"root",factory:function yn(){return null}}),On=new p.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let _i=(()=>{class pe{constructor(Et,Mt,It,Me){this._ngZone=Mt,this._defaultOptions=Me,this._document=It,this._liveElement=Et||this._createLiveElement()}announce(Et,...Mt){const It=this._defaultOptions;let Me,en;return 1===Mt.length&&"number"==typeof Mt[0]?en=Mt[0]:[Me,en]=Mt,this.clear(),clearTimeout(this._previousTimeout),Me||(Me=It&&It.politeness?It.politeness:"polite"),null==en&&It&&(en=It.duration),this._liveElement.setAttribute("aria-live",Me),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(He=>this._currentResolve=He)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Et,"number"==typeof en&&(this._previousTimeout=setTimeout(()=>this.clear(),en)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Et="cdk-live-announcer-element",Mt=this._document.getElementsByClassName(Et),It=this._document.createElement("div");for(let Me=0;Me{class pe{constructor(Et,Mt,It,Me,en){this._ngZone=Et,this._platform=Mt,this._inputModalityDetector=It,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new T.xQ,this._rootNodeFocusAndBlurListener=He=>{for(let ve=(0,v.sA)(He);ve;ve=ve.parentElement)"focus"===He.type?this._onFocus(He,ve):this._onBlur(He,ve)},this._document=Me,this._detectionMode=en?.detectionMode||0}monitor(Et,Mt=!1){const It=(0,ct.fI)(Et);if(!this._platform.isBrowser||1!==It.nodeType)return(0,x.of)(null);const Me=(0,v.kV)(It)||this._getDocument(),en=this._elementInfo.get(It);if(en)return Mt&&(en.checkChildren=!0),en.subject;const He={checkChildren:Mt,subject:new T.xQ,rootNode:Me};return this._elementInfo.set(It,He),this._registerGlobalListeners(He),He.subject}stopMonitoring(Et){const Mt=(0,ct.fI)(Et),It=this._elementInfo.get(Mt);It&&(It.subject.complete(),this._setClasses(Mt),this._elementInfo.delete(Mt),this._removeGlobalListeners(It))}focusVia(Et,Mt,It){const Me=(0,ct.fI)(Et);Me===this._getDocument().activeElement?this._getClosestElementsInfo(Me).forEach(([He,Zn])=>this._originChanged(He,Mt,Zn)):(this._setOrigin(Mt),"function"==typeof Me.focus&&Me.focus(It))}ngOnDestroy(){this._elementInfo.forEach((Et,Mt)=>this.stopMonitoring(Mt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Et){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Et)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Et&&this._isLastInteractionFromInputLabel(Et)?"mouse":"program"}_shouldBeAttributedToTouch(Et){return 1===this._detectionMode||!!Et?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Et,Mt){Et.classList.toggle("cdk-focused",!!Mt),Et.classList.toggle("cdk-touch-focused","touch"===Mt),Et.classList.toggle("cdk-keyboard-focused","keyboard"===Mt),Et.classList.toggle("cdk-mouse-focused","mouse"===Mt),Et.classList.toggle("cdk-program-focused","program"===Mt)}_setOrigin(Et,Mt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Et,this._originFromTouchInteraction="touch"===Et&&Mt,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Et,Mt){const It=this._elementInfo.get(Mt),Me=(0,v.sA)(Et);!It||!It.checkChildren&&Mt!==Me||this._originChanged(Mt,this._getFocusOrigin(Me),It)}_onBlur(Et,Mt){const It=this._elementInfo.get(Mt);!It||It.checkChildren&&Et.relatedTarget instanceof Node&&Mt.contains(Et.relatedTarget)||(this._setClasses(Mt),this._emitOrigin(It,null))}_emitOrigin(Et,Mt){Et.subject.observers.length&&this._ngZone.run(()=>Et.subject.next(Mt))}_registerGlobalListeners(Et){if(!this._platform.isBrowser)return;const Mt=Et.rootNode,It=this._rootNodeFocusListenerCount.get(Mt)||0;It||this._ngZone.runOutsideAngular(()=>{Mt.addEventListener("focus",this._rootNodeFocusAndBlurListener,hi),Mt.addEventListener("blur",this._rootNodeFocusAndBlurListener,hi)}),this._rootNodeFocusListenerCount.set(Mt,It+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ot.R)(this._stopInputModalityDetector)).subscribe(Me=>{this._setOrigin(Me,!0)}))}_removeGlobalListeners(Et){const Mt=Et.rootNode;if(this._rootNodeFocusListenerCount.has(Mt)){const It=this._rootNodeFocusListenerCount.get(Mt);It>1?this._rootNodeFocusListenerCount.set(Mt,It-1):(Mt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,hi),Mt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,hi),this._rootNodeFocusListenerCount.delete(Mt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Et,Mt,It){this._setClasses(Et,Mt),this._emitOrigin(It,Mt),this._lastFocusOrigin=Mt}_getClosestElementsInfo(Et){const Mt=[];return this._elementInfo.forEach((It,Me)=>{(Me===Et||It.checkChildren&&Me.contains(Et))&&Mt.push([Me,It])}),Mt}_isLastInteractionFromInputLabel(Et){const{_mostRecentTarget:Mt,mostRecentModality:It}=this._inputModalityDetector;if("mouse"!==It||!Mt||Mt===Et||"INPUT"!==Et.nodeName&&"TEXTAREA"!==Et.nodeName||Et.disabled)return!1;const Me=Et.labels;if(Me)for(let en=0;en{class pe{constructor(Et,Mt){this._elementRef=Et,this._focusMonitor=Mt,this._focusOrigin=null,this.cdkFocusChange=new p.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const Et=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Et,1===Et.nodeType&&Et.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Mt=>{this._focusOrigin=Mt,this.cdkFocusChange.emit(Mt)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.Y36(p.SBq),p.Y36(Vn))},pe.\u0275dir=p.lG2({type:pe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),pe})();const je="cdk-high-contrast-black-on-white",gn="cdk-high-contrast-white-on-black",Ve="cdk-high-contrast-active";let tn=(()=>{class pe{constructor(Et,Mt){this._platform=Et,this._document=Mt,this._breakpointSubscription=(0,p.f3M)(Pt.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Et=this._document.createElement("div");Et.style.backgroundColor="rgb(1,2,3)",Et.style.position="absolute",this._document.body.appendChild(Et);const Mt=this._document.defaultView||window,It=Mt&&Mt.getComputedStyle?Mt.getComputedStyle(Et):null,Me=(It&&It.backgroundColor||"").replace(/ /g,"");switch(Et.remove(),Me){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Et=this._document.body.classList;Et.remove(Ve,je,gn),this._hasCheckedHighContrastMode=!0;const Mt=this.getHighContrastMode();1===Mt?Et.add(Ve,je):2===Mt&&Et.add(Ve,gn)}}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.LFG(v.t4),p.LFG(d.K0))},pe.\u0275prov=p.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})(),an=(()=>{class pe{constructor(Et){Et._applyBodyHighContrastModeCssClasses()}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.LFG(tn))},pe.\u0275mod=p.oAB({type:pe}),pe.\u0275inj=p.cJS({imports:[gt.Q8]}),pe})()},40445:(rt,it,b)=>{"use strict";b.d(it,{Is:()=>x,vT:()=>k});var d=b(94650),p=b(36895);const v=new d.OlP("cdk-dir-doc",{providedIn:"root",factory:function T(){return(0,d.f3M)(p.K0)}}),t=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let x=(()=>{class D{constructor(I){if(this.value="ltr",this.change=new d.vpe,I){const G=I.documentElement?I.documentElement.dir:null;this.value=function A(D){const P=D?.toLowerCase()||"";return"auto"===P&&typeof navigator<"u"&&navigator?.language?t.test(navigator.language)?"rtl":"ltr":"rtl"===P?"rtl":"ltr"}((I.body?I.body.dir:null)||G||"ltr")}}ngOnDestroy(){this.change.complete()}}return D.\u0275fac=function(I){return new(I||D)(d.LFG(v,8))},D.\u0275prov=d.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),k=(()=>{class D{}return D.\u0275fac=function(I){return new(I||D)},D.\u0275mod=d.oAB({type:D}),D.\u0275inj=d.cJS({}),D})()},64425:(rt,it,b)=>{"use strict";b.d(it,{TU:()=>T});var d=b(36895),p=b(94650);class v{constructor(k,D){this._document=D;const P=this._textarea=this._document.createElement("textarea"),I=P.style;I.position="fixed",I.top=I.opacity="0",I.left="-999em",P.setAttribute("aria-hidden","true"),P.value=k,P.readOnly=!0,this._document.body.appendChild(P)}copy(){const k=this._textarea;let D=!1;try{if(k){const P=this._document.activeElement;k.select(),k.setSelectionRange(0,k.value.length),D=this._document.execCommand("copy"),P&&P.focus()}}catch{}return D}destroy(){const k=this._textarea;k&&(k.remove(),this._textarea=void 0)}}let T=(()=>{class w{constructor(D){this._document=D}copy(D){const P=this.beginCopy(D),I=P.copy();return P.destroy(),I}beginCopy(D){return new v(D,this._document)}}return w.\u0275fac=function(D){return new(D||w)(p.LFG(d.K0))},w.\u0275prov=p.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},21281:(rt,it,b)=>{"use strict";b.d(it,{Eq:()=>t,HM:()=>A,Ig:()=>p,du:()=>w,fI:()=>x,su:()=>v,t6:()=>T});var d=b(94650);function p(k){return null!=k&&"false"!=`${k}`}function v(k,D=0){return T(k)?Number(k):D}function T(k){return!isNaN(parseFloat(k))&&!isNaN(Number(k))}function t(k){return Array.isArray(k)?k:[k]}function A(k){return null==k?"":"string"==typeof k?k:`${k}px`}function x(k){return k instanceof d.SBq?k.nativeElement:k}function w(k,D=/\s+/){const P=[];if(null!=k){const I=Array.isArray(k)?k:`${k}`.split(D);for(const z of I){const G=`${z}`.trim();G&&P.push(G)}}return P}},95017:(rt,it,b)=>{"use strict";b.d(it,{A8:()=>P,Ov:()=>k,Z9:()=>t,eX:()=>w,k:()=>I,o2:()=>T,yy:()=>x});var d=b(71762),p=b(8929),v=b(94650);class T{}function t(z){return z&&"function"==typeof z.connect&&!(z instanceof d.c)}class x{applyChanges(G,W,ot,ct,gt){G.forEachOperation((Pt,St,Ht)=>{let Jt,at;if(null==Pt.previousIndex){const Zt=ot(Pt,St,Ht);Jt=W.createEmbeddedView(Zt.templateRef,Zt.context,Zt.index),at=1}else null==Ht?(W.remove(St),at=3):(Jt=W.get(St),W.move(Jt,Ht),at=2);gt&>({context:Jt?.context,operation:at,record:Pt})})}detach(){}}class w{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(G,W,ot,ct,gt){G.forEachOperation((Pt,St,Ht)=>{let Jt,at;null==Pt.previousIndex?(Jt=this._insertView(()=>ot(Pt,St,Ht),Ht,W,ct(Pt)),at=Jt?1:0):null==Ht?(this._detachAndCacheView(St,W),at=3):(Jt=this._moveView(St,Ht,W,ct(Pt)),at=2),gt&>({context:Jt?.context,operation:at,record:Pt})})}detach(){for(const G of this._viewCache)G.destroy();this._viewCache=[]}_insertView(G,W,ot,ct){const gt=this._insertViewFromCache(W,ot);if(gt)return void(gt.context.$implicit=ct);const Pt=G();return ot.createEmbeddedView(Pt.templateRef,Pt.context,Pt.index)}_detachAndCacheView(G,W){const ot=W.detach(G);this._maybeCacheView(ot,W)}_moveView(G,W,ot,ct){const gt=ot.get(G);return ot.move(gt,W),gt.context.$implicit=ct,gt}_maybeCacheView(G,W){if(this._viewCache.lengththis._markSelected(gt)):this._markSelected(W[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...G){this._verifyValueAssignment(G),G.forEach(ot=>this._markSelected(ot));const W=this._hasQueuedChanges();return this._emitChangeEvent(),W}deselect(...G){this._verifyValueAssignment(G),G.forEach(ot=>this._unmarkSelected(ot));const W=this._hasQueuedChanges();return this._emitChangeEvent(),W}setSelection(...G){this._verifyValueAssignment(G);const W=this.selected,ot=new Set(G);G.forEach(gt=>this._markSelected(gt)),W.filter(gt=>!ot.has(gt)).forEach(gt=>this._unmarkSelected(gt));const ct=this._hasQueuedChanges();return this._emitChangeEvent(),ct}toggle(G){return this.isSelected(G)?this.deselect(G):this.select(G)}clear(G=!0){this._unmarkAll();const W=this._hasQueuedChanges();return G&&this._emitChangeEvent(),W}isSelected(G){if(this.compareWith){for(const W of this._selection)if(this.compareWith(W,G))return!0;return!1}return this._selection.has(G)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(G){this._multiple&&this.selected&&this._selected.sort(G)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(G){this.isSelected(G)||(this._multiple||this._unmarkAll(),this.isSelected(G)||this._selection.add(G),this._emitChanges&&this._selectedToEmit.push(G))}_unmarkSelected(G){this.isSelected(G)&&(this._selection.delete(G),this._emitChanges&&this._deselectedToEmit.push(G))}_unmarkAll(){this.isEmpty()||this._selection.forEach(G=>this._unmarkSelected(G))}_verifyValueAssignment(G){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let P=(()=>{class z{constructor(){this._listeners=[]}notify(W,ot){for(let ct of this._listeners)ct(W,ot)}listen(W){return this._listeners.push(W),()=>{this._listeners=this._listeners.filter(ot=>W!==ot)}}ngOnDestroy(){this._listeners=[]}}return z.\u0275fac=function(W){return new(W||z)},z.\u0275prov=v.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();const I=new v.OlP("_ViewRepeater")},73555:(rt,it,b)=>{"use strict";b.d(it,{Wj:()=>hi,Zt:()=>pe,_t:()=>We,bA:()=>we});var d=b(94650),p=b(36895),v=b(67376),T=b(83353),t=b(21281),A=b(12687),x=b(8929),w=b(42654),k=b(61715),D=b(90352),P=b(56498),I=b(36787),z=b(7625),G=b(1059),W=b(24850),ot=b(72986),ct=b(22868),gt=b(87545),Pt=b(40445);function St(Et,Mt,It){for(let Me in Mt)if(Mt.hasOwnProperty(Me)){const en=Mt[Me];en?Et.setProperty(Me,en,It?.has(Me)?"important":""):Et.removeProperty(Me)}return Et}function Ht(Et,Mt){const It=Mt?"":"none";St(Et.style,{"touch-action":Mt?"":"none","-webkit-user-drag":Mt?"":"none","-webkit-tap-highlight-color":Mt?"":"transparent","user-select":It,"-ms-user-select":It,"-webkit-user-select":It,"-moz-user-select":It})}function Jt(Et,Mt,It){St(Et.style,{position:Mt?"":"fixed",top:Mt?"":"0",opacity:Mt?"":"0",left:Mt?"":"-999em"},It)}function at(Et,Mt){return Mt&&"none"!=Mt?Et+" "+Mt:Et}function Zt(Et){const Mt=Et.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Et)*Mt}function _t(Et,Mt){return Et.getPropertyValue(Mt).split(",").map(Me=>Me.trim())}function Nt(Et){const Mt=Et.getBoundingClientRect();return{top:Mt.top,right:Mt.right,bottom:Mt.bottom,left:Mt.left,width:Mt.width,height:Mt.height,x:Mt.x,y:Mt.y}}function Qt(Et,Mt,It){const{top:Me,bottom:en,left:He,right:Zn}=Et;return It>=Me&&It<=en&&Mt>=He&&Mt<=Zn}function qt(Et,Mt,It){Et.top+=Mt,Et.bottom=Et.top+Et.height,Et.left+=It,Et.right=Et.left+Et.width}function le(Et,Mt,It,Me){const{top:en,right:He,bottom:Zn,left:ve,width:Be,height:Fn}=Et,bi=Be*Mt,go=Fn*Mt;return Me>en-go&&Meve-bi&&It{this.positions.set(It,{scrollPosition:{top:It.scrollTop,left:It.scrollLeft},clientRect:Nt(It)})})}handleScroll(Mt){const It=(0,T.sA)(Mt),Me=this.positions.get(It);if(!Me)return null;const en=Me.scrollPosition;let He,Zn;if(It===this._document){const Fn=this.getViewportScrollPosition();He=Fn.top,Zn=Fn.left}else He=It.scrollTop,Zn=It.scrollLeft;const ve=en.top-He,Be=en.left-Zn;return this.positions.forEach((Fn,bi)=>{Fn.clientRect&&It!==bi&&It.contains(bi)&&qt(Fn.clientRect,ve,Be)}),en.top=He,en.left=Zn,{top:ve,left:Be}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Ce(Et){const Mt=Et.cloneNode(!0),It=Mt.querySelectorAll("[id]"),Me=Et.nodeName.toLowerCase();Mt.removeAttribute("id");for(let en=0;en{if(this.beforeStarted.next(),this._handles.length){const Be=this._getTargetHandle(ve);Be&&!this._disabledHandles.has(Be)&&!this.disabled&&this._initializeDragSequence(Be,ve)}else this.disabled||this._initializeDragSequence(this._rootElement,ve)},this._pointerMove=ve=>{const Be=this._getPointerPositionOnPage(ve);if(!this._hasStartedDragging){if(Math.abs(Be.x-this._pickupPositionOnPage.x)+Math.abs(Be.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const fn=Date.now()>=this._dragStartTime+this._getDragStartDelay(ve),wn=this._dropContainer;if(!fn)return void this._endDragSequence(ve);(!wn||!wn.isDragging()&&!wn.isReceiving())&&(ve.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(ve)))}return}ve.preventDefault();const Fn=this._getConstrainedPointerPosition(Be);if(this._hasMoved=!0,this._lastKnownPointerPosition=Be,this._updatePointerDirectionDelta(Fn),this._dropContainer)this._updateActiveDropContainer(Fn,Be);else{const bi=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,go=this._activeTransform;go.x=Fn.x-bi.x+this._passiveTransform.x,go.y=Fn.y-bi.y+this._passiveTransform.y,this._applyRootElementTransform(go.x,go.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Fn,event:ve,distance:this._getDragDistance(Fn),delta:this._pointerDirectionDelta})})},this._pointerUp=ve=>{this._endDragSequence(ve)},this._nativeDragStart=ve=>{if(this._handles.length){const Be=this._getTargetHandle(ve);Be&&!this._disabledHandles.has(Be)&&!this.disabled&&ve.preventDefault()}else this.disabled||ve.preventDefault()},this.withRootElement(Mt).withParent(It.parentDragRef||null),this._parentPositions=new Wt(Me),Zn.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(Mt){const It=(0,t.Ig)(Mt);It!==this._disabled&&(this._disabled=It,this._toggleNativeDragInteractions(),this._handles.forEach(Me=>Ht(Me,It)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(Mt){this._handles=Mt.map(Me=>(0,t.fI)(Me)),this._handles.forEach(Me=>Ht(Me,this.disabled)),this._toggleNativeDragInteractions();const It=new Set;return this._disabledHandles.forEach(Me=>{this._handles.indexOf(Me)>-1&&It.add(Me)}),this._disabledHandles=It,this}withPreviewTemplate(Mt){return this._previewTemplate=Mt,this}withPlaceholderTemplate(Mt){return this._placeholderTemplate=Mt,this}withRootElement(Mt){const It=(0,t.fI)(Mt);return It!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{It.addEventListener("mousedown",this._pointerDown,Te),It.addEventListener("touchstart",this._pointerDown,ie),It.addEventListener("dragstart",this._nativeDragStart,Te)}),this._initialTransform=void 0,this._rootElement=It),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(Mt){return this._boundaryElement=Mt?(0,t.fI)(Mt):null,this._resizeSubscription.unsubscribe(),Mt&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(Mt){return this._parentDragRef=Mt,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(Mt){!this._disabledHandles.has(Mt)&&this._handles.indexOf(Mt)>-1&&(this._disabledHandles.add(Mt),Ht(Mt,!0))}enableHandle(Mt){this._disabledHandles.has(Mt)&&(this._disabledHandles.delete(Mt),Ht(Mt,this.disabled))}withDirection(Mt){return this._direction=Mt,this}_withDropContainer(Mt){this._dropContainer=Mt}getFreeDragPosition(){const Mt=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:Mt.x,y:Mt.y}}setFreeDragPosition(Mt){return this._activeTransform={x:0,y:0},this._passiveTransform.x=Mt.x,this._passiveTransform.y=Mt.y,this._dropContainer||this._applyRootElementTransform(Mt.x,Mt.y),this}withPreviewContainer(Mt){return this._previewContainer=Mt,this}_sortFromLastPointerPosition(){const Mt=this._lastKnownPointerPosition;Mt&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(Mt),Mt)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(Mt){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:Mt}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(Mt),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const It=this._getPointerPositionOnPage(Mt);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(It),dropPoint:It,event:Mt})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(Mt){Le(Mt)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const It=this._dropContainer;if(It){const Me=this._rootElement,en=Me.parentNode,He=this._placeholder=this._createPlaceholderElement(),Zn=this._anchor=this._anchor||this._document.createComment(""),ve=this._getShadowRoot();en.insertBefore(Zn,Me),this._initialTransform=Me.style.transform||"",this._preview=this._createPreviewElement(),Jt(Me,!1,ee),this._document.body.appendChild(en.replaceChild(He,Me)),this._getPreviewInsertionPoint(en,ve).appendChild(this._preview),this.started.next({source:this,event:Mt}),It.start(),this._initialContainer=It,this._initialIndex=It.getItemIndex(this)}else this.started.next({source:this,event:Mt}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(It?It.getScrollableParents():[])}_initializeDragSequence(Mt,It){this._parentDragRef&&It.stopPropagation();const Me=this.isDragging(),en=Le(It),He=!en&&0!==It.button,Zn=this._rootElement,ve=(0,T.sA)(It),Be=!en&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Fn=en?(0,A.yG)(It):(0,A.X6)(It);if(ve&&ve.draggable&&"mousedown"===It.type&&It.preventDefault(),Me||He||Be||Fn)return;if(this._handles.length){const _o=Zn.style;this._rootElementTapHighlight=_o.webkitTapHighlightColor||"",_o.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(_o=>this._updateOnScroll(_o)),this._boundaryElement&&(this._boundaryRect=Nt(this._boundaryElement));const bi=this._previewTemplate;this._pickupPositionInElement=bi&&bi.template&&!bi.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,Mt,It);const go=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(It);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:go.x,y:go.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,It)}_cleanupDragArtifacts(Mt){Jt(this._rootElement,!0,ee),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const It=this._dropContainer,Me=It.getItemIndex(this),en=this._getPointerPositionOnPage(Mt),He=this._getDragDistance(en),Zn=It._isOverContainer(en.x,en.y);this.ended.next({source:this,distance:He,dropPoint:en,event:Mt}),this.dropped.next({item:this,currentIndex:Me,previousIndex:this._initialIndex,container:It,previousContainer:this._initialContainer,isPointerOverContainer:Zn,distance:He,dropPoint:en,event:Mt}),It.drop(this,Me,this._initialIndex,this._initialContainer,Zn,He,en,Mt),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:Mt,y:It},{x:Me,y:en}){let He=this._initialContainer._getSiblingContainerFromPosition(this,Mt,It);!He&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(Mt,It)&&(He=this._initialContainer),He&&He!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=He,this._dropContainer.enter(this,Mt,It,He===this._initialContainer&&He.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:He,currentIndex:He.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Me,en),this._dropContainer._sortItem(this,Mt,It,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(Mt,It):this._applyPreviewTransform(Mt-this._pickupPositionInElement.x,It-this._pickupPositionInElement.y))}_createPreviewElement(){const Mt=this._previewTemplate,It=this.previewClass,Me=Mt?Mt.template:null;let en;if(Me&&Mt){const He=Mt.matchSize?this._initialClientRect:null,Zn=Mt.viewContainer.createEmbeddedView(Me,Mt.context);Zn.detectChanges(),en=on(Zn,this._document),this._previewRef=Zn,Mt.matchSize?hn(en,He):en.style.transform=Kt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else en=Ce(this._rootElement),hn(en,this._initialClientRect),this._initialTransform&&(en.style.transform=this._initialTransform);return St(en.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ee),Ht(en,!1),en.classList.add("cdk-drag-preview"),en.setAttribute("dir",this._direction),It&&(Array.isArray(It)?It.forEach(He=>en.classList.add(He)):en.classList.add(It)),en}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const Mt=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(Mt.left,Mt.top);const It=function wt(Et){const Mt=getComputedStyle(Et),It=_t(Mt,"transition-property"),Me=It.find(ve=>"transform"===ve||"all"===ve);if(!Me)return 0;const en=It.indexOf(Me),He=_t(Mt,"transition-duration"),Zn=_t(Mt,"transition-delay");return Zt(He[en])+Zt(Zn[en])}(this._preview);return 0===It?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Me=>{const en=Zn=>{(!Zn||(0,T.sA)(Zn)===this._preview&&"transform"===Zn.propertyName)&&(this._preview?.removeEventListener("transitionend",en),Me(),clearTimeout(He))},He=setTimeout(en,1.5*It);this._preview.addEventListener("transitionend",en)}))}_createPlaceholderElement(){const Mt=this._placeholderTemplate,It=Mt?Mt.template:null;let Me;return It?(this._placeholderRef=Mt.viewContainer.createEmbeddedView(It,Mt.context),this._placeholderRef.detectChanges(),Me=on(this._placeholderRef,this._document)):Me=Ce(this._rootElement),Me.style.pointerEvents="none",Me.classList.add("cdk-drag-placeholder"),Me}_getPointerPositionInElement(Mt,It,Me){const en=It===this._rootElement?null:It,He=en?en.getBoundingClientRect():Mt,Zn=Le(Me)?Me.targetTouches[0]:Me,ve=this._getViewportScrollPosition();return{x:He.left-Mt.left+(Zn.pageX-He.left-ve.left),y:He.top-Mt.top+(Zn.pageY-He.top-ve.top)}}_getPointerPositionOnPage(Mt){const It=this._getViewportScrollPosition(),Me=Le(Mt)?Mt.touches[0]||Mt.changedTouches[0]||{pageX:0,pageY:0}:Mt,en=Me.pageX-It.left,He=Me.pageY-It.top;if(this._ownerSVGElement){const Zn=this._ownerSVGElement.getScreenCTM();if(Zn){const ve=this._ownerSVGElement.createSVGPoint();return ve.x=en,ve.y=He,ve.matrixTransform(Zn.inverse())}}return{x:en,y:He}}_getConstrainedPointerPosition(Mt){const It=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Me,y:en}=this.constrainPosition?this.constrainPosition(Mt,this,this._initialClientRect,this._pickupPositionInElement):Mt;if("x"===this.lockAxis||"x"===It?en=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===It)&&(Me=this._pickupPositionOnPage.x),this._boundaryRect){const{x:He,y:Zn}=this._pickupPositionInElement,ve=this._boundaryRect,{width:Be,height:Fn}=this._getPreviewRect(),bi=ve.top+Zn,go=ve.bottom-(Fn-Zn);Me=ce(Me,ve.left+He,ve.right-(Be-He)),en=ce(en,bi,go)}return{x:Me,y:en}}_updatePointerDirectionDelta(Mt){const{x:It,y:Me}=Mt,en=this._pointerDirectionDelta,He=this._pointerPositionAtLastDirectionChange,Zn=Math.abs(It-He.x),ve=Math.abs(Me-He.y);return Zn>this._config.pointerDirectionChangeThreshold&&(en.x=It>He.x?1:-1,He.x=It),ve>this._config.pointerDirectionChangeThreshold&&(en.y=Me>He.y?1:-1,He.y=Me),en}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const Mt=this._handles.length>0||!this.isDragging();Mt!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=Mt,Ht(this._rootElement,Mt))}_removeRootElementListeners(Mt){Mt.removeEventListener("mousedown",this._pointerDown,Te),Mt.removeEventListener("touchstart",this._pointerDown,ie),Mt.removeEventListener("dragstart",this._nativeDragStart,Te)}_applyRootElementTransform(Mt,It){const Me=Kt(Mt,It),en=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=en.transform&&"none"!=en.transform?en.transform:""),en.transform=at(Me,this._initialTransform)}_applyPreviewTransform(Mt,It){const Me=this._previewTemplate?.template?void 0:this._initialTransform,en=Kt(Mt,It);this._preview.style.transform=at(en,Me)}_getDragDistance(Mt){const It=this._pickupPositionOnPage;return It?{x:Mt.x-It.x,y:Mt.y-It.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:Mt,y:It}=this._passiveTransform;if(0===Mt&&0===It||this.isDragging()||!this._boundaryElement)return;const Me=this._rootElement.getBoundingClientRect(),en=this._boundaryElement.getBoundingClientRect();if(0===en.width&&0===en.height||0===Me.width&&0===Me.height)return;const He=en.left-Me.left,Zn=Me.right-en.right,ve=en.top-Me.top,Be=Me.bottom-en.bottom;en.width>Me.width?(He>0&&(Mt+=He),Zn>0&&(Mt-=Zn)):Mt=0,en.height>Me.height?(ve>0&&(It+=ve),Be>0&&(It-=Be)):It=0,(Mt!==this._passiveTransform.x||It!==this._passiveTransform.y)&&this.setFreeDragPosition({y:It,x:Mt})}_getDragStartDelay(Mt){const It=this.dragStartDelay;return"number"==typeof It?It:Le(Mt)?It.touch:It?It.mouse:0}_updateOnScroll(Mt){const It=this._parentPositions.handleScroll(Mt);if(It){const Me=(0,T.sA)(Mt);this._boundaryRect&&Me!==this._boundaryElement&&Me.contains(this._boundaryElement)&&qt(this._boundaryRect,It.top,It.left),this._pickupPositionOnPage.x+=It.left,this._pickupPositionOnPage.y+=It.top,this._dropContainer||(this._activeTransform.x-=It.left,this._activeTransform.y-=It.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,T.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(Mt,It){const Me=this._previewContainer||"global";if("parent"===Me)return Mt;if("global"===Me){const en=this._document;return It||en.fullscreenElement||en.webkitFullscreenElement||en.mozFullScreenElement||en.msFullscreenElement||en.body}return(0,t.fI)(Me)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(Mt){return this._handles.find(It=>Mt.target&&(Mt.target===It||It.contains(Mt.target)))}}function Kt(Et,Mt){return`translate3d(${Math.round(Et)}px, ${Math.round(Mt)}px, 0)`}function ce(Et,Mt,It){return Math.max(Mt,Math.min(It,Et))}function Le(Et){return"t"===Et.type[0]}function on(Et,Mt){const It=Et.rootNodes;if(1===It.length&&It[0].nodeType===Mt.ELEMENT_NODE)return It[0];const Me=Mt.createElement("div");return It.forEach(en=>Me.appendChild(en)),Me}function hn(Et,Mt){Et.style.width=`${Mt.width}px`,Et.style.height=`${Mt.height}px`,Et.style.transform=Kt(Mt.left,Mt.top)}function we(Et,Mt,It){const Me=dn(Mt,Et.length-1),en=dn(It,Et.length-1);if(Me===en)return;const He=Et[Me],Zn=en0)return null;const ve="horizontal"===this.orientation,Be=He.findIndex(ii=>ii.drag===Mt),Fn=He[Zn],go=Fn.clientRect,_o=Be>Zn?1:-1,fn=this._getItemOffsetPx(He[Be].clientRect,go,_o),wn=this._getSiblingOffsetPx(Be,He,_o),ln=He.slice();return we(He,Be,Zn),He.forEach((ii,Zi)=>{if(ln[Zi]===ii)return;const vo=ii.drag===Mt,No=vo?fn:wn,la=vo?Mt.getPlaceholderElement():ii.drag.getRootElement();ii.offset+=No,ve?(la.style.transform=at(`translate3d(${Math.round(ii.offset)}px, 0, 0)`,ii.initialTransform),qt(ii.clientRect,0,No)):(la.style.transform=at(`translate3d(0, ${Math.round(ii.offset)}px, 0)`,ii.initialTransform),qt(ii.clientRect,No,0))}),this._previousSwap.overlaps=Qt(go,It,Me),this._previousSwap.drag=Fn.drag,this._previousSwap.delta=ve?en.x:en.y,{previousIndex:Be,currentIndex:Zn}}enter(Mt,It,Me,en){const He=null==en||en<0?this._getItemIndexFromPointerPosition(Mt,It,Me):en,Zn=this._activeDraggables,ve=Zn.indexOf(Mt),Be=Mt.getPlaceholderElement();let Fn=Zn[He];if(Fn===Mt&&(Fn=Zn[He+1]),!Fn&&(null==He||-1===He||He-1&&Zn.splice(ve,1),Fn&&!this._dragDropRegistry.isDragging(Fn)){const bi=Fn.getRootElement();bi.parentElement.insertBefore(Be,bi),Zn.splice(He,0,Mt)}else(0,t.fI)(this._element).appendChild(Be),Zn.push(Mt);Be.style.transform="",this._cacheItemPositions()}withItems(Mt){this._activeDraggables=Mt.slice(),this._cacheItemPositions()}withSortPredicate(Mt){this._sortPredicate=Mt}reset(){this._activeDraggables.forEach(Mt=>{const It=Mt.getRootElement();if(It){const Me=this._itemPositions.find(en=>en.drag===Mt)?.initialTransform;It.style.transform=Me||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(Mt){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Me=>Me.drag===Mt)}updateOnScroll(Mt,It){this._itemPositions.forEach(({clientRect:Me})=>{qt(Me,Mt,It)}),this._itemPositions.forEach(({drag:Me})=>{this._dragDropRegistry.isDragging(Me)&&Me._sortFromLastPointerPosition()})}_cacheItemPositions(){const Mt="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(It=>{const Me=It.getVisibleElement();return{drag:It,offset:0,initialTransform:Me.style.transform||"",clientRect:Nt(Me)}}).sort((It,Me)=>Mt?It.clientRect.left-Me.clientRect.left:It.clientRect.top-Me.clientRect.top)}_getItemOffsetPx(Mt,It,Me){const en="horizontal"===this.orientation;let He=en?It.left-Mt.left:It.top-Mt.top;return-1===Me&&(He+=en?It.width-Mt.width:It.height-Mt.height),He}_getSiblingOffsetPx(Mt,It,Me){const en="horizontal"===this.orientation,He=It[Mt].clientRect,Zn=It[Mt+-1*Me];let ve=He[en?"width":"height"]*Me;if(Zn){const Be=en?"left":"top",Fn=en?"right":"bottom";-1===Me?ve-=Zn.clientRect[Be]-He[Fn]:ve+=He[Be]-Zn.clientRect[Fn]}return ve}_shouldEnterAsFirstChild(Mt,It){if(!this._activeDraggables.length)return!1;const Me=this._itemPositions,en="horizontal"===this.orientation;if(Me[0].drag!==this._activeDraggables[0]){const Zn=Me[Me.length-1].clientRect;return en?Mt>=Zn.right:It>=Zn.bottom}{const Zn=Me[0].clientRect;return en?Mt<=Zn.left:It<=Zn.top}}_getItemIndexFromPointerPosition(Mt,It,Me,en){const He="horizontal"===this.orientation,Zn=this._itemPositions.findIndex(({drag:ve,clientRect:Be})=>{if(ve===Mt)return!1;if(en){const Fn=He?en.x:en.y;if(ve===this._previousSwap.drag&&this._previousSwap.overlaps&&Fn===this._previousSwap.delta)return!1}return He?It>=Math.floor(Be.left)&&It=Math.floor(Be.top)&&Me!0,this.sortPredicate=()=>!0,this.beforeStarted=new x.xQ,this.entered=new x.xQ,this.exited=new x.xQ,this.dropped=new x.xQ,this.sorted=new x.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=w.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new x.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,k.F)(0,D.Z).pipe((0,z.R)(this._stopScrollTimers)).subscribe(()=>{const Zn=this._scrollNode,ve=this.autoScrollStep;1===this._verticalScrollDirection?Zn.scrollBy(0,-ve):2===this._verticalScrollDirection&&Zn.scrollBy(0,ve),1===this._horizontalScrollDirection?Zn.scrollBy(-ve,0):2===this._horizontalScrollDirection&&Zn.scrollBy(ve,0)})},this.element=(0,t.fI)(Mt),this._document=Me,this.withScrollableParents([this.element]),It.registerDropContainer(this),this._parentPositions=new Wt(Me),this._sortStrategy=new kn(this.element,It),this._sortStrategy.withSortPredicate((Zn,ve)=>this.sortPredicate(Zn,ve,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(Mt,It,Me,en){this._draggingStarted(),null==en&&this.sortingDisabled&&(en=this._draggables.indexOf(Mt)),this._sortStrategy.enter(Mt,It,Me,en),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:Mt,container:this,currentIndex:this.getItemIndex(Mt)})}exit(Mt){this._reset(),this.exited.next({item:Mt,container:this})}drop(Mt,It,Me,en,He,Zn,ve,Be={}){this._reset(),this.dropped.next({item:Mt,currentIndex:It,previousIndex:Me,container:this,previousContainer:en,isPointerOverContainer:He,distance:Zn,dropPoint:ve,event:Be})}withItems(Mt){const It=this._draggables;return this._draggables=Mt,Mt.forEach(Me=>Me._withDropContainer(this)),this.isDragging()&&(It.filter(en=>en.isDragging()).every(en=>-1===Mt.indexOf(en))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(Mt){return this._sortStrategy.direction=Mt,this}connectedTo(Mt){return this._siblings=Mt.slice(),this}withOrientation(Mt){return this._sortStrategy.orientation=Mt,this}withScrollableParents(Mt){const It=(0,t.fI)(this.element);return this._scrollableElements=-1===Mt.indexOf(It)?[It,...Mt]:Mt.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(Mt){return this._isDragging?this._sortStrategy.getItemIndex(Mt):this._draggables.indexOf(Mt)}isReceiving(){return this._activeSiblings.size>0}_sortItem(Mt,It,Me,en){if(this.sortingDisabled||!this._clientRect||!le(this._clientRect,.05,It,Me))return;const He=this._sortStrategy.sort(Mt,It,Me,en);He&&this.sorted.next({previousIndex:He.previousIndex,currentIndex:He.currentIndex,container:this,item:Mt})}_startScrollingIfNecessary(Mt,It){if(this.autoScrollDisabled)return;let Me,en=0,He=0;if(this._parentPositions.positions.forEach((Zn,ve)=>{ve===this._document||!Zn.clientRect||Me||le(Zn.clientRect,.05,Mt,It)&&([en,He]=function tt(Et,Mt,It,Me){const en=vt(Mt,Me),He=xt(Mt,It);let Zn=0,ve=0;if(en){const Be=Et.scrollTop;1===en?Be>0&&(Zn=1):Et.scrollHeight-Be>Et.clientHeight&&(Zn=2)}if(He){const Be=Et.scrollLeft;1===He?Be>0&&(ve=1):Et.scrollWidth-Be>Et.clientWidth&&(ve=2)}return[Zn,ve]}(ve,Zn.clientRect,Mt,It),(en||He)&&(Me=ve))}),!en&&!He){const{width:Zn,height:ve}=this._viewportRuler.getViewportSize(),Be={width:Zn,height:ve,top:0,right:Zn,bottom:ve,left:0};en=vt(Be,It),He=xt(Be,Mt),Me=window}Me&&(en!==this._verticalScrollDirection||He!==this._horizontalScrollDirection||Me!==this._scrollNode)&&(this._verticalScrollDirection=en,this._horizontalScrollDirection=He,this._scrollNode=Me,(en||He)&&Me?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const Mt=(0,t.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=Mt.msScrollSnapType||Mt.scrollSnapType||"",Mt.scrollSnapType=Mt.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const Mt=(0,t.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(Mt).clientRect}_reset(){this._isDragging=!1;const Mt=(0,t.fI)(this.element).style;Mt.scrollSnapType=Mt.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(It=>It._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(Mt,It){return null!=this._clientRect&&Qt(this._clientRect,Mt,It)}_getSiblingContainerFromPosition(Mt,It,Me){return this._siblings.find(en=>en._canReceive(Mt,It,Me))}_canReceive(Mt,It,Me){if(!this._clientRect||!Qt(this._clientRect,It,Me)||!this.enterPredicate(Mt,this))return!1;const en=this._getShadowRoot().elementFromPoint(It,Me);if(!en)return!1;const He=(0,t.fI)(this.element);return en===He||He.contains(en)}_startReceiving(Mt,It){const Me=this._activeSiblings;!Me.has(Mt)&&It.every(en=>this.enterPredicate(en,this)||this._draggables.indexOf(en)>-1)&&(Me.add(Mt),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(Mt){this._activeSiblings.delete(Mt),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Mt=>{if(this.isDragging()){const It=this._parentPositions.handleScroll(Mt);It&&this._sortStrategy.updateOnScroll(It.top,It.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const Mt=(0,T.kV)((0,t.fI)(this.element));this._cachedShadowRoot=Mt||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const Mt=this._sortStrategy.getActiveItemsSnapshot().filter(It=>It.isDragging());this._siblings.forEach(It=>It._startReceiving(this,Mt))}}function vt(Et,Mt){const{top:It,bottom:Me,height:en}=Et,He=.05*en;return Mt>=It-He&&Mt<=It+He?1:Mt>=Me-He&&Mt<=Me+He?2:0}function xt(Et,Mt){const{left:It,right:Me,width:en}=Et,He=.05*en;return Mt>=It-He&&Mt<=It+He?1:Mt>=Me-He&&Mt<=Me+He?2:0}const et=(0,T.i$)({passive:!1,capture:!0});let Ct=(()=>{class Et{constructor(It,Me){this._ngZone=It,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=en=>en.isDragging(),this.pointerMove=new x.xQ,this.pointerUp=new x.xQ,this.scroll=new x.xQ,this._preventDefaultWhileDragging=en=>{this._activeDragInstances.length>0&&en.preventDefault()},this._persistentTouchmoveListener=en=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&en.preventDefault(),this.pointerMove.next(en))},this._document=Me}registerDropContainer(It){this._dropInstances.has(It)||this._dropInstances.add(It)}registerDragItem(It){this._dragInstances.add(It),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,et)})}removeDropContainer(It){this._dropInstances.delete(It)}removeDragItem(It){this._dragInstances.delete(It),this.stopDragging(It),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,et)}startDragging(It,Me){if(!(this._activeDragInstances.indexOf(It)>-1)&&(this._activeDragInstances.push(It),1===this._activeDragInstances.length)){const en=Me.type.startsWith("touch");this._globalListeners.set(en?"touchend":"mouseup",{handler:He=>this.pointerUp.next(He),options:!0}).set("scroll",{handler:He=>this.scroll.next(He),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:et}),en||this._globalListeners.set("mousemove",{handler:He=>this.pointerMove.next(He),options:et}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((He,Zn)=>{this._document.addEventListener(Zn,He.handler,He.options)})})}}stopDragging(It){const Me=this._activeDragInstances.indexOf(It);Me>-1&&(this._activeDragInstances.splice(Me,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(It){return this._activeDragInstances.indexOf(It)>-1}scrolled(It){const Me=[this.scroll];return It&&It!==this._document&&Me.push(new P.y(en=>this._ngZone.runOutsideAngular(()=>{const Zn=ve=>{this._activeDragInstances.length&&en.next(ve)};return It.addEventListener("scroll",Zn,!0),()=>{It.removeEventListener("scroll",Zn,!0)}}))),(0,I.T)(...Me)}ngOnDestroy(){this._dragInstances.forEach(It=>this.removeDragItem(It)),this._dropInstances.forEach(It=>this.removeDropContainer(It)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((It,Me)=>{this._document.removeEventListener(Me,It.handler,It.options)}),this._globalListeners.clear()}}return Et.\u0275fac=function(It){return new(It||Et)(d.LFG(d.R0b),d.LFG(p.K0))},Et.\u0275prov=d.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"}),Et})();const Bt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let ne=(()=>{class Et{constructor(It,Me,en,He){this._document=It,this._ngZone=Me,this._viewportRuler=en,this._dragDropRegistry=He}createDrag(It,Me=Bt){return new ue(It,Me,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(It){return new Ft(It,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Et.\u0275fac=function(It){return new(It||Et)(d.LFG(p.K0),d.LFG(d.R0b),d.LFG(v.rL),d.LFG(Ct))},Et.\u0275prov=d.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"}),Et})();const he=new d.OlP("CDK_DRAG_PARENT"),Oe=new d.OlP("CdkDropListGroup"),On=new d.OlP("CDK_DRAG_CONFIG");let Si=0;const ho=new d.OlP("CdkDropList");let hi=(()=>{class Et{constructor(It,Me,en,He,Zn,ve,Be){this.element=It,this._changeDetectorRef=en,this._scrollDispatcher=He,this._dir=Zn,this._group=ve,this._destroyed=new x.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Si++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new d.vpe,this.entered=new d.vpe,this.exited=new d.vpe,this.sorted=new d.vpe,this._unsortedItems=new Set,this._dropListRef=Me.createDropList(It),this._dropListRef.data=this,Be&&this._assignDefaults(Be),this._dropListRef.enterPredicate=(Fn,bi)=>this.enterPredicate(Fn.data,bi.data),this._dropListRef.sortPredicate=(Fn,bi,go)=>this.sortPredicate(Fn,bi.data,go.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Et._dropLists.push(this),ve&&ve._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(It){this._dropListRef.disabled=this._disabled=(0,t.Ig)(It)}addItem(It){this._unsortedItems.add(It),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(It){this._unsortedItems.delete(It),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((It,Me)=>It._dragRef.getVisibleElement().compareDocumentPosition(Me._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const It=Et._dropLists.indexOf(this);It>-1&&Et._dropLists.splice(It,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(It){this._dir&&this._dir.change.pipe((0,G.O)(this._dir.value),(0,z.R)(this._destroyed)).subscribe(Me=>It.withDirection(Me)),It.beforeStarted.subscribe(()=>{const Me=(0,t.Eq)(this.connectedTo).map(en=>"string"==typeof en?Et._dropLists.find(Zn=>Zn.id===en):en);if(this._group&&this._group._items.forEach(en=>{-1===Me.indexOf(en)&&Me.push(en)}),!this._scrollableParentsResolved){const en=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(He=>He.getElementRef().nativeElement);this._dropListRef.withScrollableParents(en),this._scrollableParentsResolved=!0}It.disabled=this.disabled,It.lockAxis=this.lockAxis,It.sortingDisabled=(0,t.Ig)(this.sortingDisabled),It.autoScrollDisabled=(0,t.Ig)(this.autoScrollDisabled),It.autoScrollStep=(0,t.su)(this.autoScrollStep,2),It.connectedTo(Me.filter(en=>en&&en!==this).map(en=>en._dropListRef)).withOrientation(this.orientation)})}_handleEvents(It){It.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),It.entered.subscribe(Me=>{this.entered.emit({container:this,item:Me.item.data,currentIndex:Me.currentIndex})}),It.exited.subscribe(Me=>{this.exited.emit({container:this,item:Me.item.data}),this._changeDetectorRef.markForCheck()}),It.sorted.subscribe(Me=>{this.sorted.emit({previousIndex:Me.previousIndex,currentIndex:Me.currentIndex,container:this,item:Me.item.data})}),It.dropped.subscribe(Me=>{this.dropped.emit({previousIndex:Me.previousIndex,currentIndex:Me.currentIndex,previousContainer:Me.previousContainer.data,container:Me.container.data,item:Me.item.data,isPointerOverContainer:Me.isPointerOverContainer,distance:Me.distance,dropPoint:Me.dropPoint,event:Me.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(It){const{lockAxis:Me,draggingDisabled:en,sortingDisabled:He,listAutoScrollDisabled:Zn,listOrientation:ve}=It;this.disabled=en??!1,this.sortingDisabled=He??!1,this.autoScrollDisabled=Zn??!1,this.orientation=ve||"vertical",Me&&(this.lockAxis=Me)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(It=>It._dragRef))}}return Et._dropLists=[],Et.\u0275fac=function(It){return new(It||Et)(d.Y36(d.SBq),d.Y36(ne),d.Y36(d.sBO),d.Y36(v.mF),d.Y36(Pt.Is,8),d.Y36(Oe,12),d.Y36(On,8))},Et.\u0275dir=d.lG2({type:Et,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(It,Me){2&It&&(d.uIk("id",Me.id),d.ekj("cdk-drop-list-disabled",Me.disabled)("cdk-drop-list-dragging",Me._dropListRef.isDragging())("cdk-drop-list-receiving",Me._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[d._Bn([{provide:Oe,useValue:void 0},{provide:ho,useExisting:Et}])]}),Et})();const Vn=new d.OlP("CdkDragHandle"),je=new d.OlP("CdkDragPlaceholder"),Ve=new d.OlP("CdkDragPreview");let pe=(()=>{class Et{constructor(It,Me,en,He,Zn,ve,Be,Fn,bi,go,_o){this.element=It,this.dropContainer=Me,this._ngZone=He,this._viewContainerRef=Zn,this._dir=Be,this._changeDetectorRef=bi,this._selfHandle=go,this._parentDrag=_o,this._destroyed=new x.xQ,this.started=new d.vpe,this.released=new d.vpe,this.ended=new d.vpe,this.entered=new d.vpe,this.exited=new d.vpe,this.dropped=new d.vpe,this.moved=new P.y(fn=>{const wn=this._dragRef.moved.pipe((0,W.U)(ln=>({source:this,pointerPosition:ln.pointerPosition,event:ln.event,delta:ln.delta,distance:ln.distance}))).subscribe(fn);return()=>{wn.unsubscribe()}}),this._dragRef=Fn.createDrag(It,{dragStartThreshold:ve&&null!=ve.dragStartThreshold?ve.dragStartThreshold:5,pointerDirectionChangeThreshold:ve&&null!=ve.pointerDirectionChangeThreshold?ve.pointerDirectionChangeThreshold:5,zIndex:ve?.zIndex}),this._dragRef.data=this,Et._dragInstances.push(this),ve&&this._assignDefaults(ve),Me&&(this._dragRef._withDropContainer(Me._dropListRef),Me.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(It){this._disabled=(0,t.Ig)(It),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(It){this._dragRef.setFreeDragPosition(It)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ot.q)(1),(0,z.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(It){const Me=It.rootElementSelector,en=It.freeDragPosition;Me&&!Me.firstChange&&this._updateRootElement(),en&&!en.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const It=Et._dragInstances.indexOf(this);It>-1&&Et._dragInstances.splice(It,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const It=this.element.nativeElement;let Me=It;this.rootElementSelector&&(Me=void 0!==It.closest?It.closest(this.rootElementSelector):It.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(Me||It)}_getBoundaryElement(){const It=this.boundaryElement;return It?"string"==typeof It?this.element.nativeElement.closest(It):(0,t.fI)(It):null}_syncInputs(It){It.beforeStarted.subscribe(()=>{if(!It.isDragging()){const Me=this._dir,en=this.dragStartDelay,He=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Zn=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;It.disabled=this.disabled,It.lockAxis=this.lockAxis,It.dragStartDelay="object"==typeof en&&en?en:(0,t.su)(en),It.constrainPosition=this.constrainPosition,It.previewClass=this.previewClass,It.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(He).withPreviewTemplate(Zn).withPreviewContainer(this.previewContainer||"global"),Me&&It.withDirection(Me.value)}}),It.beforeStarted.pipe((0,ot.q)(1)).subscribe(()=>{if(this._parentDrag)return void It.withParent(this._parentDrag._dragRef);let Me=this.element.nativeElement.parentElement;for(;Me;){if(Me.classList.contains("cdk-drag")){It.withParent(Et._dragInstances.find(en=>en.element.nativeElement===Me)?._dragRef||null);break}Me=Me.parentElement}})}_handleEvents(It){It.started.subscribe(Me=>{this.started.emit({source:this,event:Me.event}),this._changeDetectorRef.markForCheck()}),It.released.subscribe(Me=>{this.released.emit({source:this,event:Me.event})}),It.ended.subscribe(Me=>{this.ended.emit({source:this,distance:Me.distance,dropPoint:Me.dropPoint,event:Me.event}),this._changeDetectorRef.markForCheck()}),It.entered.subscribe(Me=>{this.entered.emit({container:Me.container.data,item:this,currentIndex:Me.currentIndex})}),It.exited.subscribe(Me=>{this.exited.emit({container:Me.container.data,item:this})}),It.dropped.subscribe(Me=>{this.dropped.emit({previousIndex:Me.previousIndex,currentIndex:Me.currentIndex,previousContainer:Me.previousContainer.data,container:Me.container.data,isPointerOverContainer:Me.isPointerOverContainer,item:this,distance:Me.distance,dropPoint:Me.dropPoint,event:Me.event})})}_assignDefaults(It){const{lockAxis:Me,dragStartDelay:en,constrainPosition:He,previewClass:Zn,boundaryElement:ve,draggingDisabled:Be,rootElementSelector:Fn,previewContainer:bi}=It;this.disabled=Be??!1,this.dragStartDelay=en||0,Me&&(this.lockAxis=Me),He&&(this.constrainPosition=He),Zn&&(this.previewClass=Zn),ve&&(this.boundaryElement=ve),Fn&&(this.rootElementSelector=Fn),bi&&(this.previewContainer=bi)}_setupHandlesListener(){this._handles.changes.pipe((0,G.O)(this._handles),(0,ct.b)(It=>{const Me=It.filter(en=>en._parentDrag===this).map(en=>en.element);this._selfHandle&&this.rootElementSelector&&Me.push(this.element),this._dragRef.withHandles(Me)}),(0,gt.w)(It=>(0,I.T)(...It.map(Me=>Me._stateChanges.pipe((0,G.O)(Me))))),(0,z.R)(this._destroyed)).subscribe(It=>{const Me=this._dragRef,en=It.element.nativeElement;It.disabled?Me.disableHandle(en):Me.enableHandle(en)})}}return Et._dragInstances=[],Et.\u0275fac=function(It){return new(It||Et)(d.Y36(d.SBq),d.Y36(ho,12),d.Y36(p.K0),d.Y36(d.R0b),d.Y36(d.s_b),d.Y36(On,8),d.Y36(Pt.Is,8),d.Y36(ne),d.Y36(d.sBO),d.Y36(Vn,10),d.Y36(he,12))},Et.\u0275dir=d.lG2({type:Et,selectors:[["","cdkDrag",""]],contentQueries:function(It,Me,en){if(1&It&&(d.Suo(en,Ve,5),d.Suo(en,je,5),d.Suo(en,Vn,5)),2&It){let He;d.iGM(He=d.CRH())&&(Me._previewTemplate=He.first),d.iGM(He=d.CRH())&&(Me._placeholderTemplate=He.first),d.iGM(He=d.CRH())&&(Me._handles=He)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(It,Me){2&It&&d.ekj("cdk-drag-disabled",Me.disabled)("cdk-drag-dragging",Me._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[d._Bn([{provide:he,useExisting:Et}]),d.TTD]}),Et})(),We=(()=>{class Et{}return Et.\u0275fac=function(It){return new(It||Et)},Et.\u0275mod=d.oAB({type:Et}),Et.\u0275inj=d.cJS({providers:[ne],imports:[v.ZD]}),Et})()},29521:(rt,it,b)=>{"use strict";b.d(it,{A:()=>re,JH:()=>St,JU:()=>A,K5:()=>t,Ku:()=>z,LH:()=>gt,L_:()=>I,MW:()=>On,Mf:()=>v,SV:()=>Pt,Sd:()=>ot,VM:()=>G,Vb:()=>bc,Z:()=>yn,ZH:()=>p,aO:()=>Ne,b2:()=>Er,hY:()=>P,jx:()=>x,oh:()=>ct,uR:()=>W,xE:()=>wt,yY:()=>Zt,zL:()=>w});const p=8,v=9,t=13,A=16,x=17,w=18,P=27,I=32,z=33,G=34,W=35,ot=36,ct=37,gt=38,Pt=39,St=40,Zt=46,wt=48,Ne=57,re=65,yn=90,On=91,Er=224;function bc(dr,...Yr){return Yr.length?Yr.some(Gr=>dr[Gr]):dr.altKey||dr.shiftKey||dr.ctrlKey||dr.metaKey}},62289:(rt,it,b)=>{"use strict";b.d(it,{Yg:()=>St,u3:()=>Jt,xu:()=>G});var d=b(94650),p=b(21281),v=b(8929),T=b(23426),t=b(61221),A=b(56498),x=b(72986),w=b(31307),k=b(80013),D=b(24850),P=b(1059),I=b(7625),z=b(83353);let G=(()=>{class at{}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275mod=d.oAB({type:at}),at.\u0275inj=d.cJS({}),at})();const W=new Set;let ot,ct=(()=>{class at{constructor(wt){this._platform=wt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Pt}matchMedia(wt){return(this._platform.WEBKIT||this._platform.BLINK)&&function gt(at){if(!W.has(at))try{ot||(ot=document.createElement("style"),ot.setAttribute("type","text/css"),document.head.appendChild(ot)),ot.sheet&&(ot.sheet.insertRule(`@media ${at} {body{ }}`,0),W.add(at))}catch(Zt){console.error(Zt)}}(wt),this._matchMedia(wt)}}return at.\u0275fac=function(wt){return new(wt||at)(d.LFG(z.t4))},at.\u0275prov=d.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"}),at})();function Pt(at){return{matches:"all"===at||""===at,media:at,addListener:()=>{},removeListener:()=>{}}}let St=(()=>{class at{constructor(wt,_t){this._mediaMatcher=wt,this._zone=_t,this._queries=new Map,this._destroySubject=new v.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(wt){return Ht((0,p.Eq)(wt)).some(Nt=>this._registerQuery(Nt).mql.matches)}observe(wt){const Nt=Ht((0,p.Eq)(wt)).map(qt=>this._registerQuery(qt).observable);let Qt=(0,T.aj)(Nt);return Qt=(0,t.z)(Qt.pipe((0,x.q)(1)),Qt.pipe((0,w.T)(1),(0,k.b)(0))),Qt.pipe((0,D.U)(qt=>{const le={matches:!1,breakpoints:{}};return qt.forEach(({matches:Wt,query:Ce})=>{le.matches=le.matches||Wt,le.breakpoints[Ce]=Wt}),le}))}_registerQuery(wt){if(this._queries.has(wt))return this._queries.get(wt);const _t=this._mediaMatcher.matchMedia(wt),Qt={observable:new A.y(qt=>{const le=Wt=>this._zone.run(()=>qt.next(Wt));return _t.addListener(le),()=>{_t.removeListener(le)}}).pipe((0,P.O)(_t),(0,D.U)(({matches:qt})=>({query:wt,matches:qt})),(0,I.R)(this._destroySubject)),mql:_t};return this._queries.set(wt,Qt),Qt}}return at.\u0275fac=function(wt){return new(wt||at)(d.LFG(ct),d.LFG(d.R0b))},at.\u0275prov=d.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"}),at})();function Ht(at){return at.map(Zt=>Zt.split(",")).reduce((Zt,wt)=>Zt.concat(wt)).map(Zt=>Zt.trim())}const Jt={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},49643:(rt,it,b)=>{"use strict";b.d(it,{Q8:()=>k,wD:()=>w});var d=b(21281),p=b(94650),v=b(56498),T=b(8929),t=b(80013);let A=(()=>{class D{create(I){return typeof MutationObserver>"u"?null:new MutationObserver(I)}}return D.\u0275fac=function(I){return new(I||D)},D.\u0275prov=p.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),x=(()=>{class D{constructor(I){this._mutationObserverFactory=I,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((I,z)=>this._cleanupObserver(z))}observe(I){const z=(0,d.fI)(I);return new v.y(G=>{const ot=this._observeElement(z).subscribe(G);return()=>{ot.unsubscribe(),this._unobserveElement(z)}})}_observeElement(I){if(this._observedElements.has(I))this._observedElements.get(I).count++;else{const z=new T.xQ,G=this._mutationObserverFactory.create(W=>z.next(W));G&&G.observe(I,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(I,{observer:G,stream:z,count:1})}return this._observedElements.get(I).stream}_unobserveElement(I){this._observedElements.has(I)&&(this._observedElements.get(I).count--,this._observedElements.get(I).count||this._cleanupObserver(I))}_cleanupObserver(I){if(this._observedElements.has(I)){const{observer:z,stream:G}=this._observedElements.get(I);z&&z.disconnect(),G.complete(),this._observedElements.delete(I)}}}return D.\u0275fac=function(I){return new(I||D)(p.LFG(A))},D.\u0275prov=p.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),w=(()=>{class D{constructor(I,z,G){this._contentObserver=I,this._elementRef=z,this._ngZone=G,this.event=new p.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(I){this._disabled=(0,d.Ig)(I),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(I){this._debounce=(0,d.su)(I),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const I=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?I.pipe((0,t.b)(this.debounce)):I).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return D.\u0275fac=function(I){return new(I||D)(p.Y36(x),p.Y36(p.SBq),p.Y36(p.R0b))},D.\u0275dir=p.lG2({type:D,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),D})(),k=(()=>{class D{}return D.\u0275fac=function(I){return new(I||D)},D.\u0275mod=p.oAB({type:D}),D.\u0275inj=p.cJS({providers:[A]}),D})()},98184:(rt,it,b)=>{"use strict";b.d(it,{Iu:()=>Ne,U8:()=>Ft,X_:()=>Zt,Xj:()=>Ae,_G:()=>ie,aV:()=>we,pI:()=>kn,xu:()=>dn});var d=b(67376),p=b(36895),v=b(94650),T=b(21281),t=b(83353),A=b(40445),x=b(84080),w=b(8929),k=b(42654),D=b(36787),P=b(72986),I=b(7625),z=b(44290),G=b(29521);const W=(0,t.Mq)();class ot{constructor(tt,et){this._viewportRuler=tt,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=et}attach(){}enable(){if(this._canBeEnabled()){const tt=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=tt.style.left||"",this._previousHTMLStyles.top=tt.style.top||"",tt.style.left=(0,T.HM)(-this._previousScrollPosition.left),tt.style.top=(0,T.HM)(-this._previousScrollPosition.top),tt.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const tt=this._document.documentElement,Ct=tt.style,Bt=this._document.body.style,ne=Ct.scrollBehavior||"",he=Bt.scrollBehavior||"";this._isEnabled=!1,Ct.left=this._previousHTMLStyles.left,Ct.top=this._previousHTMLStyles.top,tt.classList.remove("cdk-global-scrollblock"),W&&(Ct.scrollBehavior=Bt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),W&&(Ct.scrollBehavior=ne,Bt.scrollBehavior=he)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const et=this._document.body,Ct=this._viewportRuler.getViewportSize();return et.scrollHeight>Ct.height||et.scrollWidth>Ct.width}}class gt{constructor(tt,et,Ct,Bt){this._scrollDispatcher=tt,this._ngZone=et,this._viewportRuler=Ct,this._config=Bt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(tt){this._overlayRef=tt}enable(){if(this._scrollSubscription)return;const tt=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=tt.subscribe(()=>{const et=this._viewportRuler.getViewportScrollPosition().top;Math.abs(et-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=tt.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Pt{enable(){}disable(){}attach(){}}function St(xt,tt){return tt.some(et=>xt.bottomet.bottom||xt.rightet.right)}function Ht(xt,tt){return tt.some(et=>xt.topet.bottom||xt.leftet.right)}class Jt{constructor(tt,et,Ct,Bt){this._scrollDispatcher=tt,this._viewportRuler=et,this._ngZone=Ct,this._config=Bt,this._scrollSubscription=null}attach(tt){this._overlayRef=tt}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const et=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ct,height:Bt}=this._viewportRuler.getViewportSize();St(et,[{width:Ct,height:Bt,bottom:Bt,right:Ct,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let at=(()=>{class xt{constructor(et,Ct,Bt,ne){this._scrollDispatcher=et,this._viewportRuler=Ct,this._ngZone=Bt,this.noop=()=>new Pt,this.close=he=>new gt(this._scrollDispatcher,this._ngZone,this._viewportRuler,he),this.block=()=>new ot(this._viewportRuler,this._document),this.reposition=he=>new Jt(this._scrollDispatcher,this._viewportRuler,this._ngZone,he),this._document=ne}}return xt.\u0275fac=function(et){return new(et||xt)(v.LFG(d.mF),v.LFG(d.rL),v.LFG(v.R0b),v.LFG(p.K0))},xt.\u0275prov=v.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();class Zt{constructor(tt){if(this.scrollStrategy=new Pt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,tt){const et=Object.keys(tt);for(const Ct of et)void 0!==tt[Ct]&&(this[Ct]=tt[Ct])}}}class Nt{constructor(tt,et){this.connectionPair=tt,this.scrollableViewProperties=et}}let le=(()=>{class xt{constructor(et){this._attachedOverlays=[],this._document=et}ngOnDestroy(){this.detach()}add(et){this.remove(et),this._attachedOverlays.push(et)}remove(et){const Ct=this._attachedOverlays.indexOf(et);Ct>-1&&this._attachedOverlays.splice(Ct,1),0===this._attachedOverlays.length&&this.detach()}}return xt.\u0275fac=function(et){return new(et||xt)(v.LFG(p.K0))},xt.\u0275prov=v.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})(),Wt=(()=>{class xt extends le{constructor(et,Ct){super(et),this._ngZone=Ct,this._keydownListener=Bt=>{const ne=this._attachedOverlays;for(let he=ne.length-1;he>-1;he--)if(ne[he]._keydownEvents.observers.length>0){const Oe=ne[he]._keydownEvents;this._ngZone?this._ngZone.run(()=>Oe.next(Bt)):Oe.next(Bt);break}}}add(et){super.add(et),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return xt.\u0275fac=function(et){return new(et||xt)(v.LFG(p.K0),v.LFG(v.R0b,8))},xt.\u0275prov=v.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})(),Ce=(()=>{class xt extends le{constructor(et,Ct,Bt){super(et),this._platform=Ct,this._ngZone=Bt,this._cursorStyleIsSet=!1,this._pointerDownListener=ne=>{this._pointerDownEventTarget=(0,t.sA)(ne)},this._clickListener=ne=>{const he=(0,t.sA)(ne),Oe="click"===ne.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:he;this._pointerDownEventTarget=null;const yn=this._attachedOverlays.slice();for(let On=yn.length-1;On>-1;On--){const _i=yn[On];if(_i._outsidePointerEvents.observers.length<1||!_i.hasAttached())continue;if(_i.overlayElement.contains(he)||_i.overlayElement.contains(Oe))break;const Si=_i._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Si.next(ne)):Si.next(ne)}}}add(et){if(super.add(et),!this._isAttached){const Ct=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Ct)):this._addEventListeners(Ct),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ct.style.cursor,Ct.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const et=this._document.body;et.removeEventListener("pointerdown",this._pointerDownListener,!0),et.removeEventListener("click",this._clickListener,!0),et.removeEventListener("auxclick",this._clickListener,!0),et.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(et.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(et){et.addEventListener("pointerdown",this._pointerDownListener,!0),et.addEventListener("click",this._clickListener,!0),et.addEventListener("auxclick",this._clickListener,!0),et.addEventListener("contextmenu",this._clickListener,!0)}}return xt.\u0275fac=function(et){return new(et||xt)(v.LFG(p.K0),v.LFG(t.t4),v.LFG(v.R0b,8))},xt.\u0275prov=v.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})(),Ae=(()=>{class xt{constructor(et,Ct){this._platform=Ct,this._document=et}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const et="cdk-overlay-container";if(this._platform.isBrowser||(0,t.Oy)()){const Bt=this._document.querySelectorAll(`.${et}[platform="server"], .${et}[platform="test"]`);for(let ne=0;nethis._backdropClick.next(Si),this._backdropTransitionendHandler=Si=>{this._disposeBackdrop(Si.target)},this._keydownEvents=new w.xQ,this._outsidePointerEvents=new w.xQ,Bt.scrollStrategy&&(this._scrollStrategy=Bt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Bt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(tt){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const et=this._portalOutlet.attach(tt);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof et?.onDestroy&&et.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),et}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const tt=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),tt}dispose(){const tt=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,tt&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(tt){tt!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=tt,this.hasAttached()&&(tt.attach(this),this.updatePosition()))}updateSize(tt){this._config={...this._config,...tt},this._updateElementSize()}setDirection(tt){this._config={...this._config,direction:tt},this._updateElementDirection()}addPanelClass(tt){this._pane&&this._toggleClasses(this._pane,tt,!0)}removePanelClass(tt){this._pane&&this._toggleClasses(this._pane,tt,!1)}getDirection(){const tt=this._config.direction;return tt?"string"==typeof tt?tt:tt.value:"ltr"}updateScrollStrategy(tt){tt!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=tt,this.hasAttached()&&(tt.attach(this),tt.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const tt=this._pane.style;tt.width=(0,T.HM)(this._config.width),tt.height=(0,T.HM)(this._config.height),tt.minWidth=(0,T.HM)(this._config.minWidth),tt.minHeight=(0,T.HM)(this._config.minHeight),tt.maxWidth=(0,T.HM)(this._config.maxWidth),tt.maxHeight=(0,T.HM)(this._config.maxHeight)}_togglePointerEvents(tt){this._pane.style.pointerEvents=tt?"":"none"}_attachBackdrop(){const tt="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(tt)})}):this._backdropElement.classList.add(tt)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const tt=this._backdropElement;if(tt){if(this._animationsDisabled)return void this._disposeBackdrop(tt);tt.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{tt.addEventListener("transitionend",this._backdropTransitionendHandler)}),tt.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(tt)},500))}}_toggleClasses(tt,et,Ct){const Bt=(0,T.Eq)(et||[]).filter(ne=>!!ne);Bt.length&&(Ct?tt.classList.add(...Bt):tt.classList.remove(...Bt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const tt=this._ngZone.onStable.pipe((0,I.R)((0,D.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),tt.unsubscribe())})})}_disposeScrollStrategy(){const tt=this._scrollStrategy;tt&&(tt.disable(),tt.detach&&tt.detach())}_disposeBackdrop(tt){tt&&(tt.removeEventListener("click",this._backdropClickHandler),tt.removeEventListener("transitionend",this._backdropTransitionendHandler),tt.remove(),this._backdropElement===tt&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const ze="cdk-overlay-connected-position-bounding-box",Xe=/([A-Za-z%]+)$/;class ie{constructor(tt,et,Ct,Bt,ne){this._viewportRuler=et,this._document=Ct,this._platform=Bt,this._overlayContainer=ne,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new w.xQ,this._resizeSubscription=k.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(tt)}get positions(){return this._preferredPositions}attach(tt){this._validatePositions(),tt.hostElement.classList.add(ze),this._overlayRef=tt,this._boundingBox=tt.hostElement,this._pane=tt.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const tt=this._originRect,et=this._overlayRect,Ct=this._viewportRect,Bt=this._containerRect,ne=[];let he;for(let Oe of this._preferredPositions){let yn=this._getOriginPoint(tt,Bt,Oe),On=this._getOverlayPoint(yn,et,Oe),_i=this._getOverlayFit(On,et,Ct,Oe);if(_i.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Oe,yn);this._canFitWithFlexibleDimensions(_i,On,Ct)?ne.push({position:Oe,origin:yn,overlayRect:et,boundingBoxRect:this._calculateBoundingBoxRect(yn,Oe)}):(!he||he.overlayFit.visibleArea<_i.visibleArea)&&(he={overlayFit:_i,overlayPoint:On,originPoint:yn,position:Oe,overlayRect:et})}if(ne.length){let Oe=null,yn=-1;for(const On of ne){const _i=On.boundingBoxRect.width*On.boundingBoxRect.height*(On.position.weight||1);_i>yn&&(yn=_i,Oe=On)}return this._isPushed=!1,void this._applyPosition(Oe.position,Oe.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(he.position,he.originPoint);this._applyPosition(he.position,he.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Te(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ze),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const tt=this._lastPosition;if(tt){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const et=this._getOriginPoint(this._originRect,this._containerRect,tt);this._applyPosition(tt,et)}else this.apply()}withScrollableContainers(tt){return this._scrollables=tt,this}withPositions(tt){return this._preferredPositions=tt,-1===tt.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(tt){return this._viewportMargin=tt,this}withFlexibleDimensions(tt=!0){return this._hasFlexibleDimensions=tt,this}withGrowAfterOpen(tt=!0){return this._growAfterOpen=tt,this}withPush(tt=!0){return this._canPush=tt,this}withLockedPosition(tt=!0){return this._positionLocked=tt,this}setOrigin(tt){return this._origin=tt,this}withDefaultOffsetX(tt){return this._offsetX=tt,this}withDefaultOffsetY(tt){return this._offsetY=tt,this}withTransformOriginOn(tt){return this._transformOriginSelector=tt,this}_getOriginPoint(tt,et,Ct){let Bt,ne;if("center"==Ct.originX)Bt=tt.left+tt.width/2;else{const he=this._isRtl()?tt.right:tt.left,Oe=this._isRtl()?tt.left:tt.right;Bt="start"==Ct.originX?he:Oe}return et.left<0&&(Bt-=et.left),ne="center"==Ct.originY?tt.top+tt.height/2:"top"==Ct.originY?tt.top:tt.bottom,et.top<0&&(ne-=et.top),{x:Bt,y:ne}}_getOverlayPoint(tt,et,Ct){let Bt,ne;return Bt="center"==Ct.overlayX?-et.width/2:"start"===Ct.overlayX?this._isRtl()?-et.width:0:this._isRtl()?0:-et.width,ne="center"==Ct.overlayY?-et.height/2:"top"==Ct.overlayY?0:-et.height,{x:tt.x+Bt,y:tt.y+ne}}_getOverlayFit(tt,et,Ct,Bt){const ne=ee(et);let{x:he,y:Oe}=tt,yn=this._getOffset(Bt,"x"),On=this._getOffset(Bt,"y");yn&&(he+=yn),On&&(Oe+=On);let ho=0-Oe,hi=Oe+ne.height-Ct.height,Vn=this._subtractOverflows(ne.width,0-he,he+ne.width-Ct.width),Gn=this._subtractOverflows(ne.height,ho,hi),je=Vn*Gn;return{visibleArea:je,isCompletelyWithinViewport:ne.width*ne.height===je,fitsInViewportVertically:Gn===ne.height,fitsInViewportHorizontally:Vn==ne.width}}_canFitWithFlexibleDimensions(tt,et,Ct){if(this._hasFlexibleDimensions){const Bt=Ct.bottom-et.y,ne=Ct.right-et.x,he=re(this._overlayRef.getConfig().minHeight),Oe=re(this._overlayRef.getConfig().minWidth),On=tt.fitsInViewportHorizontally||null!=Oe&&Oe<=ne;return(tt.fitsInViewportVertically||null!=he&&he<=Bt)&&On}return!1}_pushOverlayOnScreen(tt,et,Ct){if(this._previousPushAmount&&this._positionLocked)return{x:tt.x+this._previousPushAmount.x,y:tt.y+this._previousPushAmount.y};const Bt=ee(et),ne=this._viewportRect,he=Math.max(tt.x+Bt.width-ne.width,0),Oe=Math.max(tt.y+Bt.height-ne.height,0),yn=Math.max(ne.top-Ct.top-tt.y,0),On=Math.max(ne.left-Ct.left-tt.x,0);let _i=0,Si=0;return _i=Bt.width<=ne.width?On||-he:tt.xVn&&!this._isInitialRender&&!this._growAfterOpen&&(he=tt.y-Vn/2)}if("end"===et.overlayX&&!Bt||"start"===et.overlayX&&Bt)ho=Ct.width-tt.x+this._viewportMargin,_i=tt.x-this._viewportMargin;else if("start"===et.overlayX&&!Bt||"end"===et.overlayX&&Bt)Si=tt.x,_i=Ct.right-tt.x;else{const hi=Math.min(Ct.right-tt.x+Ct.left,tt.x),Vn=this._lastBoundingBoxSize.width;_i=2*hi,Si=tt.x-hi,_i>Vn&&!this._isInitialRender&&!this._growAfterOpen&&(Si=tt.x-Vn/2)}return{top:he,left:Si,bottom:Oe,right:ho,width:_i,height:ne}}_setBoundingBoxStyles(tt,et){const Ct=this._calculateBoundingBoxRect(tt,et);!this._isInitialRender&&!this._growAfterOpen&&(Ct.height=Math.min(Ct.height,this._lastBoundingBoxSize.height),Ct.width=Math.min(Ct.width,this._lastBoundingBoxSize.width));const Bt={};if(this._hasExactPosition())Bt.top=Bt.left="0",Bt.bottom=Bt.right=Bt.maxHeight=Bt.maxWidth="",Bt.width=Bt.height="100%";else{const ne=this._overlayRef.getConfig().maxHeight,he=this._overlayRef.getConfig().maxWidth;Bt.height=(0,T.HM)(Ct.height),Bt.top=(0,T.HM)(Ct.top),Bt.bottom=(0,T.HM)(Ct.bottom),Bt.width=(0,T.HM)(Ct.width),Bt.left=(0,T.HM)(Ct.left),Bt.right=(0,T.HM)(Ct.right),Bt.alignItems="center"===et.overlayX?"center":"end"===et.overlayX?"flex-end":"flex-start",Bt.justifyContent="center"===et.overlayY?"center":"bottom"===et.overlayY?"flex-end":"flex-start",ne&&(Bt.maxHeight=(0,T.HM)(ne)),he&&(Bt.maxWidth=(0,T.HM)(he))}this._lastBoundingBoxSize=Ct,Te(this._boundingBox.style,Bt)}_resetBoundingBoxStyles(){Te(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Te(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(tt,et){const Ct={},Bt=this._hasExactPosition(),ne=this._hasFlexibleDimensions,he=this._overlayRef.getConfig();if(Bt){const _i=this._viewportRuler.getViewportScrollPosition();Te(Ct,this._getExactOverlayY(et,tt,_i)),Te(Ct,this._getExactOverlayX(et,tt,_i))}else Ct.position="static";let Oe="",yn=this._getOffset(et,"x"),On=this._getOffset(et,"y");yn&&(Oe+=`translateX(${yn}px) `),On&&(Oe+=`translateY(${On}px)`),Ct.transform=Oe.trim(),he.maxHeight&&(Bt?Ct.maxHeight=(0,T.HM)(he.maxHeight):ne&&(Ct.maxHeight="")),he.maxWidth&&(Bt?Ct.maxWidth=(0,T.HM)(he.maxWidth):ne&&(Ct.maxWidth="")),Te(this._pane.style,Ct)}_getExactOverlayY(tt,et,Ct){let Bt={top:"",bottom:""},ne=this._getOverlayPoint(et,this._overlayRect,tt);return this._isPushed&&(ne=this._pushOverlayOnScreen(ne,this._overlayRect,Ct)),"bottom"===tt.overlayY?Bt.bottom=this._document.documentElement.clientHeight-(ne.y+this._overlayRect.height)+"px":Bt.top=(0,T.HM)(ne.y),Bt}_getExactOverlayX(tt,et,Ct){let he,Bt={left:"",right:""},ne=this._getOverlayPoint(et,this._overlayRect,tt);return this._isPushed&&(ne=this._pushOverlayOnScreen(ne,this._overlayRect,Ct)),he=this._isRtl()?"end"===tt.overlayX?"left":"right":"end"===tt.overlayX?"right":"left","right"===he?Bt.right=this._document.documentElement.clientWidth-(ne.x+this._overlayRect.width)+"px":Bt.left=(0,T.HM)(ne.x),Bt}_getScrollVisibility(){const tt=this._getOriginRect(),et=this._pane.getBoundingClientRect(),Ct=this._scrollables.map(Bt=>Bt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ht(tt,Ct),isOriginOutsideView:St(tt,Ct),isOverlayClipped:Ht(et,Ct),isOverlayOutsideView:St(et,Ct)}}_subtractOverflows(tt,...et){return et.reduce((Ct,Bt)=>Ct-Math.max(Bt,0),tt)}_getNarrowedViewportRect(){const tt=this._document.documentElement.clientWidth,et=this._document.documentElement.clientHeight,Ct=this._viewportRuler.getViewportScrollPosition();return{top:Ct.top+this._viewportMargin,left:Ct.left+this._viewportMargin,right:Ct.left+tt-this._viewportMargin,bottom:Ct.top+et-this._viewportMargin,width:tt-2*this._viewportMargin,height:et-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(tt,et){return"x"===et?tt.offsetX??this._offsetX:tt.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(tt){this._pane&&(0,T.Eq)(tt).forEach(et=>{""!==et&&-1===this._appliedPanelClasses.indexOf(et)&&(this._appliedPanelClasses.push(et),this._pane.classList.add(et))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(tt=>{this._pane.classList.remove(tt)}),this._appliedPanelClasses=[])}_getOriginRect(){const tt=this._origin;if(tt instanceof v.SBq)return tt.nativeElement.getBoundingClientRect();if(tt instanceof Element)return tt.getBoundingClientRect();const et=tt.width||0,Ct=tt.height||0;return{top:tt.y,bottom:tt.y+Ct,left:tt.x,right:tt.x+et,height:Ct,width:et}}}function Te(xt,tt){for(let et in tt)tt.hasOwnProperty(et)&&(xt[et]=tt[et]);return xt}function re(xt){if("number"!=typeof xt&&null!=xt){const[tt,et]=xt.split(Xe);return et&&"px"!==et?null:parseFloat(tt)}return xt||null}function ee(xt){return{top:Math.floor(xt.top),right:Math.floor(xt.right),bottom:Math.floor(xt.bottom),left:Math.floor(xt.left),width:Math.floor(xt.width),height:Math.floor(xt.height)}}const ce="cdk-global-overlay-wrapper";class Le{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(tt){const et=tt.getConfig();this._overlayRef=tt,this._width&&!et.width&&tt.updateSize({width:this._width}),this._height&&!et.height&&tt.updateSize({height:this._height}),tt.hostElement.classList.add(ce),this._isDisposed=!1}top(tt=""){return this._bottomOffset="",this._topOffset=tt,this._alignItems="flex-start",this}left(tt=""){return this._xOffset=tt,this._xPosition="left",this}bottom(tt=""){return this._topOffset="",this._bottomOffset=tt,this._alignItems="flex-end",this}right(tt=""){return this._xOffset=tt,this._xPosition="right",this}start(tt=""){return this._xOffset=tt,this._xPosition="start",this}end(tt=""){return this._xOffset=tt,this._xPosition="end",this}width(tt=""){return this._overlayRef?this._overlayRef.updateSize({width:tt}):this._width=tt,this}height(tt=""){return this._overlayRef?this._overlayRef.updateSize({height:tt}):this._height=tt,this}centerHorizontally(tt=""){return this.left(tt),this._xPosition="center",this}centerVertically(tt=""){return this.top(tt),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const tt=this._overlayRef.overlayElement.style,et=this._overlayRef.hostElement.style,Ct=this._overlayRef.getConfig(),{width:Bt,height:ne,maxWidth:he,maxHeight:Oe}=Ct,yn=!("100%"!==Bt&&"100vw"!==Bt||he&&"100%"!==he&&"100vw"!==he),On=!("100%"!==ne&&"100vh"!==ne||Oe&&"100%"!==Oe&&"100vh"!==Oe),_i=this._xPosition,Si=this._xOffset,ho="rtl"===this._overlayRef.getConfig().direction;let hi="",Vn="",Gn="";yn?Gn="flex-start":"center"===_i?(Gn="center",ho?Vn=Si:hi=Si):ho?"left"===_i||"end"===_i?(Gn="flex-end",hi=Si):("right"===_i||"start"===_i)&&(Gn="flex-start",Vn=Si):"left"===_i||"start"===_i?(Gn="flex-start",hi=Si):("right"===_i||"end"===_i)&&(Gn="flex-end",Vn=Si),tt.position=this._cssPosition,tt.marginLeft=yn?"0":hi,tt.marginTop=On?"0":this._topOffset,tt.marginBottom=this._bottomOffset,tt.marginRight=yn?"0":Vn,et.justifyContent=Gn,et.alignItems=On?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const tt=this._overlayRef.overlayElement.style,et=this._overlayRef.hostElement,Ct=et.style;et.classList.remove(ce),Ct.justifyContent=Ct.alignItems=tt.marginTop=tt.marginBottom=tt.marginLeft=tt.marginRight=tt.position="",this._overlayRef=null,this._isDisposed=!0}}let on=(()=>{class xt{constructor(et,Ct,Bt,ne){this._viewportRuler=et,this._document=Ct,this._platform=Bt,this._overlayContainer=ne}global(){return new Le}flexibleConnectedTo(et){return new ie(et,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return xt.\u0275fac=function(et){return new(et||xt)(v.LFG(d.rL),v.LFG(p.K0),v.LFG(t.t4),v.LFG(Ae))},xt.\u0275prov=v.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})(),hn=0,we=(()=>{class xt{constructor(et,Ct,Bt,ne,he,Oe,yn,On,_i,Si,ho,hi){this.scrollStrategies=et,this._overlayContainer=Ct,this._componentFactoryResolver=Bt,this._positionBuilder=ne,this._keyboardDispatcher=he,this._injector=Oe,this._ngZone=yn,this._document=On,this._directionality=_i,this._location=Si,this._outsideClickDispatcher=ho,this._animationsModuleType=hi}create(et){const Ct=this._createHostElement(),Bt=this._createPaneElement(Ct),ne=this._createPortalOutlet(Bt),he=new Zt(et);return he.direction=he.direction||this._directionality.value,new Ne(ne,Ct,Bt,he,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(et){const Ct=this._document.createElement("div");return Ct.id="cdk-overlay-"+hn++,Ct.classList.add("cdk-overlay-pane"),et.appendChild(Ct),Ct}_createHostElement(){const et=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(et),et}_createPortalOutlet(et){return this._appRef||(this._appRef=this._injector.get(v.z2F)),new x.u0(et,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return xt.\u0275fac=function(et){return new(et||xt)(v.LFG(at),v.LFG(Ae),v.LFG(v._Vd),v.LFG(on),v.LFG(Wt),v.LFG(v.zs3),v.LFG(v.R0b),v.LFG(p.K0),v.LFG(A.Is),v.LFG(p.Ye),v.LFG(Ce),v.LFG(v.QbO,8))},xt.\u0275prov=v.Yz7({token:xt,factory:xt.\u0275fac}),xt})();const bn=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ze=new v.OlP("cdk-connected-overlay-scroll-strategy");let dn=(()=>{class xt{constructor(et){this.elementRef=et}}return xt.\u0275fac=function(et){return new(et||xt)(v.Y36(v.SBq))},xt.\u0275dir=v.lG2({type:xt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),xt})(),kn=(()=>{class xt{constructor(et,Ct,Bt,ne,he){this._overlay=et,this._dir=he,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=k.w.EMPTY,this._attachSubscription=k.w.EMPTY,this._detachSubscription=k.w.EMPTY,this._positionSubscription=k.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new v.vpe,this.positionChange=new v.vpe,this.attach=new v.vpe,this.detach=new v.vpe,this.overlayKeydown=new v.vpe,this.overlayOutsideClick=new v.vpe,this._templatePortal=new x.UE(Ct,Bt),this._scrollStrategyFactory=ne,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(et){this._offsetX=et,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(et){this._offsetY=et,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(et){this._hasBackdrop=(0,T.Ig)(et)}get lockPosition(){return this._lockPosition}set lockPosition(et){this._lockPosition=(0,T.Ig)(et)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(et){this._flexibleDimensions=(0,T.Ig)(et)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(et){this._growAfterOpen=(0,T.Ig)(et)}get push(){return this._push}set push(et){this._push=(0,T.Ig)(et)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(et){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),et.origin&&this.open&&this._position.apply()),et.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=bn);const et=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=et.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=et.detachments().subscribe(()=>this.detach.emit()),et.keydownEvents().subscribe(Ct=>{this.overlayKeydown.next(Ct),Ct.keyCode===G.hY&&!this.disableClose&&!(0,G.Vb)(Ct)&&(Ct.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ct=>{this.overlayOutsideClick.next(Ct)})}_buildConfig(){const et=this._position=this.positionStrategy||this._createPositionStrategy(),Ct=new Zt({direction:this._dir,positionStrategy:et,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Ct.width=this.width),(this.height||0===this.height)&&(Ct.height=this.height),(this.minWidth||0===this.minWidth)&&(Ct.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ct.minHeight=this.minHeight),this.backdropClass&&(Ct.backdropClass=this.backdropClass),this.panelClass&&(Ct.panelClass=this.panelClass),Ct}_updatePositionStrategy(et){const Ct=this.positions.map(Bt=>({originX:Bt.originX,originY:Bt.originY,overlayX:Bt.overlayX,overlayY:Bt.overlayY,offsetX:Bt.offsetX||this.offsetX,offsetY:Bt.offsetY||this.offsetY,panelClass:Bt.panelClass||void 0}));return et.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Ct).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const et=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(et),et}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof dn?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(et=>{this.backdropClick.emit(et)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,z.o)(()=>this.positionChange.observers.length>0)).subscribe(et=>{this.positionChange.emit(et),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return xt.\u0275fac=function(et){return new(et||xt)(v.Y36(we),v.Y36(v.Rgc),v.Y36(v.s_b),v.Y36(Ze),v.Y36(A.Is,8))},xt.\u0275dir=v.lG2({type:xt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[v.TTD]}),xt})();const Ee={provide:Ze,deps:[we],useFactory:function ri(xt){return()=>xt.scrollStrategies.reposition()}};let Ft=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275mod=v.oAB({type:xt}),xt.\u0275inj=v.cJS({providers:[we,Ee],imports:[A.vT,x.eL,d.Cl,d.Cl]}),xt})()},83353:(rt,it,b)=>{"use strict";b.d(it,{Mq:()=>G,Oy:()=>Ht,_i:()=>W,ht:()=>Pt,i$:()=>P,kV:()=>gt,qK:()=>w,sA:()=>St,t4:()=>T,ud:()=>t});var d=b(94650),p=b(36895);let v;try{v=typeof Intl<"u"&&Intl.v8BreakIterator}catch{v=!1}let A,T=(()=>{class Jt{constructor(Zt){this._platformId=Zt,this.isBrowser=this._platformId?(0,p.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!v)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Jt.\u0275fac=function(Zt){return new(Zt||Jt)(d.LFG(d.Lbi))},Jt.\u0275prov=d.Yz7({token:Jt,factory:Jt.\u0275fac,providedIn:"root"}),Jt})(),t=(()=>{class Jt{}return Jt.\u0275fac=function(Zt){return new(Zt||Jt)},Jt.\u0275mod=d.oAB({type:Jt}),Jt.\u0275inj=d.cJS({}),Jt})();const x=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function w(){if(A)return A;if("object"!=typeof document||!document)return A=new Set(x),A;let Jt=document.createElement("input");return A=new Set(x.filter(at=>(Jt.setAttribute("type",at),Jt.type===at))),A}let k,I,z,ot;function P(Jt){return function D(){if(null==k&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>k=!0}))}finally{k=k||!1}return k}()?Jt:!!Jt.capture}function G(){if(null==z){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return z=!1,z;if("scrollBehavior"in document.documentElement.style)z=!0;else{const Jt=Element.prototype.scrollTo;z=!!Jt&&!/\{\s*\[native code\]\s*\}/.test(Jt.toString())}}return z}function W(){if("object"!=typeof document||!document)return 0;if(null==I){const Jt=document.createElement("div"),at=Jt.style;Jt.dir="rtl",at.width="1px",at.overflow="auto",at.visibility="hidden",at.pointerEvents="none",at.position="absolute";const Zt=document.createElement("div"),wt=Zt.style;wt.width="2px",wt.height="1px",Jt.appendChild(Zt),document.body.appendChild(Jt),I=0,0===Jt.scrollLeft&&(Jt.scrollLeft=1,I=0===Jt.scrollLeft?1:2),Jt.remove()}return I}function gt(Jt){if(function ct(){if(null==ot){const Jt=typeof document<"u"?document.head:null;ot=!(!Jt||!Jt.createShadowRoot&&!Jt.attachShadow)}return ot}()){const at=Jt.getRootNode?Jt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&at instanceof ShadowRoot)return at}return null}function Pt(){let Jt=typeof document<"u"&&document?document.activeElement:null;for(;Jt&&Jt.shadowRoot;){const at=Jt.shadowRoot.activeElement;if(at===Jt)break;Jt=at}return Jt}function St(Jt){return Jt.composedPath?Jt.composedPath()[0]:Jt.target}function Ht(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(rt,it,b)=>{"use strict";b.d(it,{C5:()=>D,Pl:()=>Pt,UE:()=>P,eL:()=>Ht,en:()=>z,ig:()=>ct,u0:()=>W});var d=b(94650),p=b(36895);class k{attach(Zt){return this._attachedHost=Zt,Zt.attach(this)}detach(){let Zt=this._attachedHost;null!=Zt&&(this._attachedHost=null,Zt.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Zt){this._attachedHost=Zt}}class D extends k{constructor(Zt,wt,_t,Nt){super(),this.component=Zt,this.viewContainerRef=wt,this.injector=_t,this.componentFactoryResolver=Nt}}class P extends k{constructor(Zt,wt,_t,Nt){super(),this.templateRef=Zt,this.viewContainerRef=wt,this.context=_t,this.injector=Nt}get origin(){return this.templateRef.elementRef}attach(Zt,wt=this.context){return this.context=wt,super.attach(Zt)}detach(){return this.context=void 0,super.detach()}}class I extends k{constructor(Zt){super(),this.element=Zt instanceof d.SBq?Zt.nativeElement:Zt}}class z{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Zt){return Zt instanceof D?(this._attachedPortal=Zt,this.attachComponentPortal(Zt)):Zt instanceof P?(this._attachedPortal=Zt,this.attachTemplatePortal(Zt)):this.attachDomPortal&&Zt instanceof I?(this._attachedPortal=Zt,this.attachDomPortal(Zt)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Zt){this._disposeFn=Zt}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class W extends z{constructor(Zt,wt,_t,Nt,Qt){super(),this.outletElement=Zt,this._componentFactoryResolver=wt,this._appRef=_t,this._defaultInjector=Nt,this.attachDomPortal=qt=>{const le=qt.element,Wt=this._document.createComment("dom-portal");le.parentNode.insertBefore(Wt,le),this.outletElement.appendChild(le),this._attachedPortal=qt,super.setDisposeFn(()=>{Wt.parentNode&&Wt.parentNode.replaceChild(le,Wt)})},this._document=Qt}attachComponentPortal(Zt){const _t=(Zt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Zt.component);let Nt;return Zt.viewContainerRef?(Nt=Zt.viewContainerRef.createComponent(_t,Zt.viewContainerRef.length,Zt.injector||Zt.viewContainerRef.injector),this.setDisposeFn(()=>Nt.destroy())):(Nt=_t.create(Zt.injector||this._defaultInjector||d.zs3.NULL),this._appRef.attachView(Nt.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Nt.hostView),Nt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Nt)),this._attachedPortal=Zt,Nt}attachTemplatePortal(Zt){let wt=Zt.viewContainerRef,_t=wt.createEmbeddedView(Zt.templateRef,Zt.context,{injector:Zt.injector});return _t.rootNodes.forEach(Nt=>this.outletElement.appendChild(Nt)),_t.detectChanges(),this.setDisposeFn(()=>{let Nt=wt.indexOf(_t);-1!==Nt&&wt.remove(Nt)}),this._attachedPortal=Zt,_t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Zt){return Zt.hostView.rootNodes[0]}}let ct=(()=>{class at extends P{constructor(wt,_t){super(wt,_t)}}return at.\u0275fac=function(wt){return new(wt||at)(d.Y36(d.Rgc),d.Y36(d.s_b))},at.\u0275dir=d.lG2({type:at,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[d.qOj]}),at})(),Pt=(()=>{class at extends z{constructor(wt,_t,Nt){super(),this._componentFactoryResolver=wt,this._viewContainerRef=_t,this._isInitialized=!1,this.attached=new d.vpe,this.attachDomPortal=Qt=>{const qt=Qt.element,le=this._document.createComment("dom-portal");Qt.setAttachedHost(this),qt.parentNode.insertBefore(le,qt),this._getRootNode().appendChild(qt),this._attachedPortal=Qt,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(qt,le)})},this._document=Nt}get portal(){return this._attachedPortal}set portal(wt){this.hasAttached()&&!wt&&!this._isInitialized||(this.hasAttached()&&super.detach(),wt&&super.attach(wt),this._attachedPortal=wt||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(wt){wt.setAttachedHost(this);const _t=null!=wt.viewContainerRef?wt.viewContainerRef:this._viewContainerRef,Qt=(wt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(wt.component),qt=_t.createComponent(Qt,_t.length,wt.injector||_t.injector);return _t!==this._viewContainerRef&&this._getRootNode().appendChild(qt.hostView.rootNodes[0]),super.setDisposeFn(()=>qt.destroy()),this._attachedPortal=wt,this._attachedRef=qt,this.attached.emit(qt),qt}attachTemplatePortal(wt){wt.setAttachedHost(this);const _t=this._viewContainerRef.createEmbeddedView(wt.templateRef,wt.context,{injector:wt.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=wt,this._attachedRef=_t,this.attached.emit(_t),_t}_getRootNode(){const wt=this._viewContainerRef.element.nativeElement;return wt.nodeType===wt.ELEMENT_NODE?wt:wt.parentNode}}return at.\u0275fac=function(wt){return new(wt||at)(d.Y36(d._Vd),d.Y36(d.s_b),d.Y36(p.K0))},at.\u0275dir=d.lG2({type:at,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[d.qOj]}),at})(),Ht=(()=>{class at{}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275mod=d.oAB({type:at}),at.\u0275inj=d.cJS({}),at})()},67376:(rt,it,b)=>{"use strict";b.d(it,{Cl:()=>Xe,PQ:()=>at,ZD:()=>ze,mF:()=>Jt,rL:()=>wt});var d=b(21281),p=b(94650),v=b(8929),T=b(21086),t=b(56498),A=b(23753),k=(b(90352),b(8139),b(57138)),D=b(92198),P=b(7625),I=b(83353),z=b(36895),G=b(40445);let Jt=(()=>{class ie{constructor(re,ee,ue){this._ngZone=re,this._platform=ee,this._scrolled=new v.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ue}register(re){this.scrollContainers.has(re)||this.scrollContainers.set(re,re.elementScrolled().subscribe(()=>this._scrolled.next(re)))}deregister(re){const ee=this.scrollContainers.get(re);ee&&(ee.unsubscribe(),this.scrollContainers.delete(re))}scrolled(re=20){return this._platform.isBrowser?new t.y(ee=>{this._globalSubscription||this._addGlobalListener();const ue=re>0?this._scrolled.pipe((0,k.e)(re)).subscribe(ee):this._scrolled.subscribe(ee);return this._scrolledCount++,()=>{ue.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,T.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((re,ee)=>this.deregister(ee)),this._scrolled.complete()}ancestorScrolled(re,ee){const ue=this.getAncestorScrollContainers(re);return this.scrolled(ee).pipe((0,D.h)(Kt=>!Kt||ue.indexOf(Kt)>-1))}getAncestorScrollContainers(re){const ee=[];return this.scrollContainers.forEach((ue,Kt)=>{this._scrollableContainsElement(Kt,re)&&ee.push(Kt)}),ee}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(re,ee){let ue=(0,d.fI)(ee),Kt=re.getElementRef().nativeElement;do{if(ue==Kt)return!0}while(ue=ue.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const re=this._getWindow();return(0,A.R)(re.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ie.\u0275fac=function(re){return new(re||ie)(p.LFG(p.R0b),p.LFG(I.t4),p.LFG(z.K0,8))},ie.\u0275prov=p.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),at=(()=>{class ie{constructor(re,ee,ue,Kt){this.elementRef=re,this.scrollDispatcher=ee,this.ngZone=ue,this.dir=Kt,this._destroyed=new v.xQ,this._elementScrolled=new t.y(ce=>this.ngZone.runOutsideAngular(()=>(0,A.R)(this.elementRef.nativeElement,"scroll").pipe((0,P.R)(this._destroyed)).subscribe(ce)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(re){const ee=this.elementRef.nativeElement,ue=this.dir&&"rtl"==this.dir.value;null==re.left&&(re.left=ue?re.end:re.start),null==re.right&&(re.right=ue?re.start:re.end),null!=re.bottom&&(re.top=ee.scrollHeight-ee.clientHeight-re.bottom),ue&&0!=(0,I._i)()?(null!=re.left&&(re.right=ee.scrollWidth-ee.clientWidth-re.left),2==(0,I._i)()?re.left=re.right:1==(0,I._i)()&&(re.left=re.right?-re.right:re.right)):null!=re.right&&(re.left=ee.scrollWidth-ee.clientWidth-re.right),this._applyScrollToOptions(re)}_applyScrollToOptions(re){const ee=this.elementRef.nativeElement;(0,I.Mq)()?ee.scrollTo(re):(null!=re.top&&(ee.scrollTop=re.top),null!=re.left&&(ee.scrollLeft=re.left))}measureScrollOffset(re){const ee="left",Kt=this.elementRef.nativeElement;if("top"==re)return Kt.scrollTop;if("bottom"==re)return Kt.scrollHeight-Kt.clientHeight-Kt.scrollTop;const ce=this.dir&&"rtl"==this.dir.value;return"start"==re?re=ce?"right":ee:"end"==re&&(re=ce?ee:"right"),ce&&2==(0,I._i)()?re==ee?Kt.scrollWidth-Kt.clientWidth-Kt.scrollLeft:Kt.scrollLeft:ce&&1==(0,I._i)()?re==ee?Kt.scrollLeft+Kt.scrollWidth-Kt.clientWidth:-Kt.scrollLeft:re==ee?Kt.scrollLeft:Kt.scrollWidth-Kt.clientWidth-Kt.scrollLeft}}return ie.\u0275fac=function(re){return new(re||ie)(p.Y36(p.SBq),p.Y36(Jt),p.Y36(p.R0b),p.Y36(G.Is,8))},ie.\u0275dir=p.lG2({type:ie,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),ie})(),wt=(()=>{class ie{constructor(re,ee,ue){this._platform=re,this._change=new v.xQ,this._changeListener=Kt=>{this._change.next(Kt)},this._document=ue,ee.runOutsideAngular(()=>{if(re.isBrowser){const Kt=this._getWindow();Kt.addEventListener("resize",this._changeListener),Kt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const re=this._getWindow();re.removeEventListener("resize",this._changeListener),re.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const re={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),re}getViewportRect(){const re=this.getViewportScrollPosition(),{width:ee,height:ue}=this.getViewportSize();return{top:re.top,left:re.left,bottom:re.top+ue,right:re.left+ee,height:ue,width:ee}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const re=this._document,ee=this._getWindow(),ue=re.documentElement,Kt=ue.getBoundingClientRect();return{top:-Kt.top||re.body.scrollTop||ee.scrollY||ue.scrollTop||0,left:-Kt.left||re.body.scrollLeft||ee.scrollX||ue.scrollLeft||0}}change(re=20){return re>0?this._change.pipe((0,k.e)(re)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const re=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:re.innerWidth,height:re.innerHeight}:{width:0,height:0}}}return ie.\u0275fac=function(re){return new(re||ie)(p.LFG(I.t4),p.LFG(p.R0b),p.LFG(z.K0,8))},ie.\u0275prov=p.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),ze=(()=>{class ie{}return ie.\u0275fac=function(re){return new(re||ie)},ie.\u0275mod=p.oAB({type:ie}),ie.\u0275inj=p.cJS({}),ie})(),Xe=(()=>{class ie{}return ie.\u0275fac=function(re){return new(re||ie)},ie.\u0275mod=p.oAB({type:ie}),ie.\u0275inj=p.cJS({imports:[G.vT,ze,G.vT,ze]}),ie})()},12138:(rt,it,b)=>{"use strict";b.d(it,{B8:()=>St,KL:()=>z,U5:()=>at,be:()=>Pt,gx:()=>gt,po:()=>Jt,st:()=>Ht,u6:()=>G});var d=b(12687),p=b(40445),v=b(21281),T=b(29521),t=b(94650),A=b(83353),x=b(8929),w=b(21086),k=b(1059),D=b(7625);function P(Zt,wt){1&Zt&&t.Hsn(0)}const I=["*"];let z=(()=>{class Zt{constructor(_t){this._elementRef=_t}focus(){this._elementRef.nativeElement.focus()}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(t.Y36(t.SBq))},Zt.\u0275dir=t.lG2({type:Zt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Zt})(),G=(()=>{class Zt{constructor(_t){this.template=_t}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(t.Y36(t.Rgc))},Zt.\u0275dir=t.lG2({type:Zt,selectors:[["","cdkStepLabel",""]]}),Zt})(),W=0;const gt=new t.OlP("STEPPER_GLOBAL_OPTIONS");let Pt=(()=>{class Zt{constructor(_t,Nt){this._stepper=_t,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Nt||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(_t){this._editable=(0,v.Ig)(_t)}get optional(){return this._optional}set optional(_t){this._optional=(0,v.Ig)(_t)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(_t){this._completedOverride=(0,v.Ig)(_t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(_t){this._customError=(0,v.Ig)(_t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(t.Y36((0,t.Gpc)(()=>St)),t.Y36(gt,8))},Zt.\u0275cmp=t.Xpm({type:Zt,selectors:[["cdk-step"]],contentQueries:function(_t,Nt,Qt){if(1&_t&&t.Suo(Qt,G,5),2&_t){let qt;t.iGM(qt=t.CRH())&&(Nt.stepLabel=qt.first)}},viewQuery:function(_t,Nt){if(1&_t&&t.Gf(t.Rgc,7),2&_t){let Qt;t.iGM(Qt=t.CRH())&&(Nt.content=Qt.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[t.TTD],ngContentSelectors:I,decls:1,vars:0,template:function(_t,Nt){1&_t&&(t.F$t(),t.YNc(0,P,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Zt})(),St=(()=>{class Zt{constructor(_t,Nt,Qt){this._dir=_t,this._changeDetectorRef=Nt,this._elementRef=Qt,this._destroyed=new x.xQ,this.steps=new t.n_E,this._sortedHeaders=new t.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new t.vpe,this._orientation="horizontal",this._groupId=W++}get linear(){return this._linear}set linear(_t){this._linear=(0,v.Ig)(_t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(_t){const Nt=(0,v.su)(_t);this.steps&&this._steps?(this._isValidIndex(Nt),this.selected?._markAsInteracted(),this._selectedIndex!==Nt&&!this._anyControlsInvalidOrPending(Nt)&&(Nt>=this._selectedIndex||this.steps.toArray()[Nt].editable)&&this._updateSelectedItemIndex(Nt)):this._selectedIndex=Nt}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(_t){this.selectedIndex=_t&&this.steps?this.steps.toArray().indexOf(_t):-1}get orientation(){return this._orientation}set orientation(_t){this._orientation=_t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===_t)}ngAfterContentInit(){this._steps.changes.pipe((0,k.O)(this._steps),(0,D.R)(this._destroyed)).subscribe(_t=>{this.steps.reset(_t.filter(Nt=>Nt._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,k.O)(this._stepHeader),(0,D.R)(this._destroyed)).subscribe(_t=>{this._sortedHeaders.reset(_t.toArray().sort((Nt,Qt)=>Nt._elementRef.nativeElement.compareDocumentPosition(Qt._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new d.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,w.of)()).pipe((0,k.O)(this._layoutDirection()),(0,D.R)(this._destroyed)).subscribe(_t=>this._keyManager.withHorizontalOrientation(_t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(_t=>_t.reset()),this._stateChanged()}_getStepLabelId(_t){return`cdk-step-label-${this._groupId}-${_t}`}_getStepContentId(_t){return`cdk-step-content-${this._groupId}-${_t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(_t){const Nt=_t-this._selectedIndex;return Nt<0?"rtl"===this._layoutDirection()?"next":"previous":Nt>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(_t,Nt="number"){const Qt=this.steps.toArray()[_t],qt=this._isCurrentStep(_t);return Qt._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Qt,qt):this._getGuidelineLogic(Qt,qt,Nt)}_getDefaultIndicatorLogic(_t,Nt){return _t._showError()&&_t.hasError&&!Nt?"error":!_t.completed||Nt?"number":_t.editable?"edit":"done"}_getGuidelineLogic(_t,Nt,Qt="number"){return _t._showError()&&_t.hasError&&!Nt?"error":_t.completed&&!Nt?"done":_t.completed&&Nt?Qt:_t.editable&&Nt?"edit":Qt}_isCurrentStep(_t){return this._selectedIndex===_t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(_t){const Nt=this.steps.toArray();this.selectionChange.emit({selectedIndex:_t,previouslySelectedIndex:this._selectedIndex,selectedStep:Nt[_t],previouslySelectedStep:Nt[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(_t):this._keyManager.updateActiveItem(_t),this._selectedIndex=_t,this._stateChanged()}_onKeydown(_t){const Nt=(0,T.Vb)(_t),Qt=_t.keyCode,qt=this._keyManager;null==qt.activeItemIndex||Nt||Qt!==T.L_&&Qt!==T.K5?qt.onKeydown(_t):(this.selectedIndex=qt.activeItemIndex,_t.preventDefault())}_anyControlsInvalidOrPending(_t){return!!(this._linear&&_t>=0)&&this.steps.toArray().slice(0,_t).some(Nt=>{const Qt=Nt.stepControl;return(Qt?Qt.invalid||Qt.pending||!Nt.interacted:!Nt.completed)&&!Nt.optional&&!Nt._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const _t=this._elementRef.nativeElement,Nt=(0,A.ht)();return _t===Nt||_t.contains(Nt)}_isValidIndex(_t){return _t>-1&&(!this.steps||_t{class Zt{constructor(_t){this._stepper=_t,this.type="submit"}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(t.Y36(St))},Zt.\u0275dir=t.lG2({type:Zt,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(_t,Nt){1&_t&&t.NdJ("click",function(){return Nt._stepper.next()}),2&_t&&t.Ikx("type",Nt.type)},inputs:{type:"type"}}),Zt})(),Jt=(()=>{class Zt{constructor(_t){this._stepper=_t,this.type="button"}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(t.Y36(St))},Zt.\u0275dir=t.lG2({type:Zt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(_t,Nt){1&_t&&t.NdJ("click",function(){return Nt._stepper.previous()}),2&_t&&t.Ikx("type",Nt.type)},inputs:{type:"type"}}),Zt})(),at=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275mod=t.oAB({type:Zt}),Zt.\u0275inj=t.cJS({imports:[p.vT]}),Zt})()},39349:(rt,it,b)=>{"use strict";b.d(it,{IC:()=>z,Ky:()=>G,Lq:()=>P});var d=b(83353),p=b(94650),v=b(21281),T=b(68896),t=b(8929),A=b(23753),x=b(57138),w=b(7625),k=b(36895);const D=(0,d.i$)({passive:!0});let P=(()=>{class W{constructor(ct,gt){this._platform=ct,this._ngZone=gt,this._monitoredElements=new Map}monitor(ct){if(!this._platform.isBrowser)return T.E;const gt=(0,v.fI)(ct),Pt=this._monitoredElements.get(gt);if(Pt)return Pt.subject;const St=new t.xQ,Ht="cdk-text-field-autofilled",Jt=at=>{"cdk-text-field-autofill-start"!==at.animationName||gt.classList.contains(Ht)?"cdk-text-field-autofill-end"===at.animationName&>.classList.contains(Ht)&&(gt.classList.remove(Ht),this._ngZone.run(()=>St.next({target:at.target,isAutofilled:!1}))):(gt.classList.add(Ht),this._ngZone.run(()=>St.next({target:at.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{gt.addEventListener("animationstart",Jt,D),gt.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(gt,{subject:St,unlisten:()=>{gt.removeEventListener("animationstart",Jt,D)}}),St}stopMonitoring(ct){const gt=(0,v.fI)(ct),Pt=this._monitoredElements.get(gt);Pt&&(Pt.unlisten(),Pt.subject.complete(),gt.classList.remove("cdk-text-field-autofill-monitored"),gt.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(gt))}ngOnDestroy(){this._monitoredElements.forEach((ct,gt)=>this.stopMonitoring(gt))}}return W.\u0275fac=function(ct){return new(ct||W)(p.LFG(d.t4),p.LFG(p.R0b))},W.\u0275prov=p.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})(),z=(()=>{class W{constructor(ct,gt,Pt,St){this._elementRef=ct,this._platform=gt,this._ngZone=Pt,this._destroyed=new t.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=Ht=>{this._hasFocus="focus"===Ht.type},this._document=St,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(ct){this._minRows=(0,v.su)(ct),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(ct){this._maxRows=(0,v.su)(ct),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(ct){ct=(0,v.Ig)(ct),this._enabled!==ct&&((this._enabled=ct)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(ct){this._cachedPlaceholderHeight=void 0,ct?this._textareaElement.setAttribute("placeholder",ct):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const ct=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;ct&&(this._textareaElement.style.minHeight=ct)}_setMaxHeight(){const ct=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;ct&&(this._textareaElement.style.maxHeight=ct)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const ct=this._getWindow();(0,A.R)(ct,"resize").pipe((0,x.e)(16),(0,w.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let ct=this._textareaElement.cloneNode(!1);ct.rows=1,ct.style.position="absolute",ct.style.visibility="hidden",ct.style.border="none",ct.style.padding="0",ct.style.height="",ct.style.minHeight="",ct.style.maxHeight="",ct.style.overflow="hidden",this._textareaElement.parentNode.appendChild(ct),this._cachedLineHeight=ct.clientHeight,ct.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const ct=this._textareaElement,gt=ct.style.marginBottom||"",Pt=this._platform.FIREFOX,St=Pt&&this._hasFocus,Ht=Pt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";St&&(ct.style.marginBottom=`${ct.clientHeight}px`),ct.classList.add(Ht);const Jt=ct.scrollHeight-4;return ct.classList.remove(Ht),St&&(ct.style.marginBottom=gt),Jt}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const ct=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=ct}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(ct=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const gt=this._elementRef.nativeElement,Pt=gt.value;if(!ct&&this._minRows===this._previousMinRows&&Pt===this._previousValue)return;const St=this._measureScrollHeight(),Ht=Math.max(St,this._cachedPlaceholderHeight||0);gt.style.height=`${Ht}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(gt)):setTimeout(()=>this._scrollToCaretPosition(gt))}),this._previousValue=Pt,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(ct){const{selectionStart:gt,selectionEnd:Pt}=ct;!this._destroyed.isStopped&&this._hasFocus&&ct.setSelectionRange(gt,Pt)}}return W.\u0275fac=function(ct){return new(ct||W)(p.Y36(p.SBq),p.Y36(d.t4),p.Y36(p.R0b),p.Y36(k.K0,8))},W.\u0275dir=p.lG2({type:W,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(ct,gt){1&ct&&p.NdJ("input",function(){return gt._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),W})(),G=(()=>{class W{}return W.\u0275fac=function(ct){return new(ct||W)},W.\u0275mod=p.oAB({type:W}),W.\u0275inj=p.cJS({}),W})()},57851:(rt,it,b)=>{"use strict";b.d(it,{C2:()=>z,HI:()=>W,Hs:()=>wt,Ud:()=>Wt,VY:()=>G,XJ:()=>le,Xx:()=>Qt,_0:()=>Zt,cu:()=>ot,nZ:()=>Ae,rO:()=>gt});var d=b(95017),p=b(54715),v=b(8929),T=b(591),t=b(21086),A=b(72986),x=b(92198),w=b(7625),k=b(94650),D=b(21281),P=b(40445);class I{constructor(){this.expansionModel=new d.Ov(!0)}toggle(ze){this.expansionModel.toggle(this._trackByValue(ze))}expand(ze){this.expansionModel.select(this._trackByValue(ze))}collapse(ze){this.expansionModel.deselect(this._trackByValue(ze))}isExpanded(ze){return this.expansionModel.isSelected(this._trackByValue(ze))}toggleDescendants(ze){this.expansionModel.isSelected(this._trackByValue(ze))?this.collapseDescendants(ze):this.expandDescendants(ze)}collapseAll(){this.expansionModel.clear()}expandDescendants(ze){let Xe=[ze];Xe.push(...this.getDescendants(ze)),this.expansionModel.select(...Xe.map(ie=>this._trackByValue(ie)))}collapseDescendants(ze){let Xe=[ze];Xe.push(...this.getDescendants(ze)),this.expansionModel.deselect(...Xe.map(ie=>this._trackByValue(ie)))}_trackByValue(ze){return this.trackBy?this.trackBy(ze):ze}}class z extends I{constructor(ze,Xe,ie){super(),this.getLevel=ze,this.isExpandable=Xe,this.options=ie,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(ze){const ie=[];for(let Te=this.dataNodes.indexOf(ze)+1;Tethis._trackByValue(ze)))}}class G extends I{constructor(ze,Xe){super(),this.getChildren=ze,this.options=Xe,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const ze=this.dataNodes.reduce((Xe,ie)=>[...Xe,...this.getDescendants(ie),ie],[]);this.expansionModel.select(...ze.map(Xe=>this._trackByValue(Xe)))}getDescendants(ze){const Xe=[];return this._getDescendants(Xe,ze),Xe.splice(1)}_getDescendants(ze,Xe){ze.push(Xe);const ie=this.getChildren(Xe);Array.isArray(ie)?ie.forEach(Te=>this._getDescendants(ze,Te)):(0,p.b)(ie)&&ie.pipe((0,A.q)(1),(0,x.h)(Boolean)).subscribe(Te=>{for(const re of Te)this._getDescendants(ze,re)})}}const W=new k.OlP("CDK_TREE_NODE_OUTLET_NODE");let ot=(()=>{class Ne{constructor(Xe,ie){this.viewContainer=Xe,this._node=ie}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(k.s_b),k.Y36(W,8))},Ne.\u0275dir=k.lG2({type:Ne,selectors:[["","cdkTreeNodeOutlet",""]]}),Ne})();class ct{constructor(ze){this.$implicit=ze}}let gt=(()=>{class Ne{constructor(Xe){this.template=Xe}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(k.Rgc))},Ne.\u0275dir=k.lG2({type:Ne,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Ne})(),Zt=(()=>{class Ne{constructor(Xe,ie){this._differs=Xe,this._changeDetectorRef=ie,this._onDestroy=new v.xQ,this._levels=new Map,this.viewChange=new T.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(Xe){this._dataSource!==Xe&&this._switchDataSource(Xe)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const Xe=this._nodeDefs.filter(ie=>!ie.when);this._defaultNodeDef=Xe[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(Xe){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),Xe||this._nodeOutlet.viewContainer.clear(),this._dataSource=Xe,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let Xe;(0,d.Z9)(this._dataSource)?Xe=this._dataSource.connect(this):(0,p.b)(this._dataSource)?Xe=this._dataSource:Array.isArray(this._dataSource)&&(Xe=(0,t.of)(this._dataSource)),Xe&&(this._dataSubscription=Xe.pipe((0,w.R)(this._onDestroy)).subscribe(ie=>this.renderNodeChanges(ie)))}renderNodeChanges(Xe,ie=this._dataDiffer,Te=this._nodeOutlet.viewContainer,re){const ee=ie.diff(Xe);!ee||(ee.forEachOperation((ue,Kt,ce)=>{if(null==ue.previousIndex)this.insertNode(Xe[ce],ce,Te,re);else if(null==ce)Te.remove(Kt),this._levels.delete(ue.item);else{const Le=Te.get(Kt);Te.move(Le,ce)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(Xe,ie){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(re=>re.when&&re.when(ie,Xe))||this._defaultNodeDef}insertNode(Xe,ie,Te,re){const ee=this._getNodeDef(Xe,ie),ue=new ct(Xe);ue.level=this.treeControl.getLevel?this.treeControl.getLevel(Xe):typeof re<"u"&&this._levels.has(re)?this._levels.get(re)+1:0,this._levels.set(Xe,ue.level),(Te||this._nodeOutlet.viewContainer).createEmbeddedView(ee.template,ue,ie),wt.mostRecentTreeNode&&(wt.mostRecentTreeNode.data=Xe)}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(k.ZZ4),k.Y36(k.sBO))},Ne.\u0275cmp=k.Xpm({type:Ne,selectors:[["cdk-tree"]],contentQueries:function(Xe,ie,Te){if(1&Xe&&k.Suo(Te,gt,5),2&Xe){let re;k.iGM(re=k.CRH())&&(ie._nodeDefs=re)}},viewQuery:function(Xe,ie){if(1&Xe&&k.Gf(ot,7),2&Xe){let Te;k.iGM(Te=k.CRH())&&(ie._nodeOutlet=Te.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(Xe,ie){1&Xe&&k.GkF(0,0)},dependencies:[ot],encapsulation:2}),Ne})(),wt=(()=>{class Ne{constructor(Xe,ie){this._elementRef=Xe,this._tree=ie,this._destroyed=new v.xQ,this._dataChanges=new v.xQ,Ne.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(Xe){this._elementRef.nativeElement.setAttribute("role",Xe)}get data(){return this._data}set data(Xe){Xe!==this._data&&(this._data=Xe,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function _t(Ne){let ze=Ne.parentElement;for(;ze&&!Nt(ze);)ze=ze.parentElement;return ze?ze.classList.contains("cdk-nested-tree-node")?(0,D.su)(ze.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Ne.mostRecentTreeNode===this&&(Ne.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Ne.mostRecentTreeNode=null,Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(k.SBq),k.Y36(Zt))},Ne.\u0275dir=k.lG2({type:Ne,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(Xe,ie){2&Xe&&k.uIk("aria-expanded",ie.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Ne})();function Nt(Ne){const ze=Ne.classList;return!(!ze?.contains("cdk-nested-tree-node")&&!ze?.contains("cdk-tree"))}let Qt=(()=>{class Ne extends wt{constructor(Xe,ie,Te){super(Xe,ie),this._differs=Te}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const Xe=this._tree.treeControl.getChildren(this.data);Array.isArray(Xe)?this.updateChildrenNodes(Xe):(0,p.b)(Xe)&&Xe.pipe((0,w.R)(this._destroyed)).subscribe(ie=>this.updateChildrenNodes(ie)),this.nodeOutlet.changes.pipe((0,w.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(Xe){const ie=this._getNodeOutlet();Xe&&(this._children=Xe),ie&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,ie.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const Xe=this._getNodeOutlet();Xe&&(Xe.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const Xe=this.nodeOutlet;return Xe&&Xe.find(ie=>!ie._node||ie._node===this)}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(k.SBq),k.Y36(Zt),k.Y36(k.ZZ4))},Ne.\u0275dir=k.lG2({type:Ne,selectors:[["cdk-nested-tree-node"]],contentQueries:function(Xe,ie,Te){if(1&Xe&&k.Suo(Te,ot,5),2&Xe){let re;k.iGM(re=k.CRH())&&(ie.nodeOutlet=re)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[k._Bn([{provide:wt,useExisting:Ne},{provide:W,useExisting:Ne}]),k.qOj]}),Ne})();const qt=/([A-Za-z%]+)$/;let le=(()=>{class Ne{constructor(Xe,ie,Te,re){this._treeNode=Xe,this._tree=ie,this._element=Te,this._dir=re,this._destroyed=new v.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),re&&re.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),Xe._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(Xe){this._setLevelInput(Xe)}get indent(){return this._indent}set indent(Xe){this._setIndentInput(Xe)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const Xe=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,ie=this._level??Xe;return"number"==typeof ie?`${ie*this._indent}${this.indentUnits}`:null}_setPadding(Xe=!1){const ie=this._paddingIndent();if(ie!==this._currentPadding||Xe){const Te=this._element.nativeElement,re=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",ee="paddingLeft"===re?"paddingRight":"paddingLeft";Te.style[re]=ie||"",Te.style[ee]="",this._currentPadding=ie}}_setLevelInput(Xe){this._level=(0,D.su)(Xe,null),this._setPadding()}_setIndentInput(Xe){let ie=Xe,Te="px";if("string"==typeof Xe){const re=Xe.split(qt);ie=re[0],Te=re[1]||Te}this.indentUnits=Te,this._indent=(0,D.su)(ie),this._setPadding()}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(wt),k.Y36(Zt),k.Y36(k.SBq),k.Y36(P.Is,8))},Ne.\u0275dir=k.lG2({type:Ne,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Ne})(),Wt=(()=>{class Ne{constructor(Xe,ie){this._tree=Xe,this._treeNode=ie,this._recursive=!1}get recursive(){return this._recursive}set recursive(Xe){this._recursive=(0,D.Ig)(Xe)}_toggle(Xe){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),Xe.stopPropagation()}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(Zt),k.Y36(wt))},Ne.\u0275dir=k.lG2({type:Ne,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(Xe,ie){1&Xe&&k.NdJ("click",function(re){return ie._toggle(re)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Ne})(),Ae=(()=>{class Ne{}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)},Ne.\u0275mod=k.oAB({type:Ne}),Ne.\u0275inj=k.cJS({}),Ne})()},36895:(rt,it,b)=>{"use strict";b.d(it,{Do:()=>St,ED:()=>Sc,EM:()=>Gc,H9:()=>Bl,HT:()=>t,JF:()=>Ps,JJ:()=>zl,K0:()=>x,Mx:()=>zn,NF:()=>bu,Nd:()=>jc,O5:()=>dr,Ov:()=>Al,PC:()=>Qr,PM:()=>Dr,RF:()=>Pc,S$:()=>ct,V_:()=>D,Ye:()=>Ht,b0:()=>Pt,bD:()=>xc,ez:()=>Yl,i8:()=>Oc,mk:()=>Gi,n9:()=>rl,q:()=>v,qS:()=>Je,rS:()=>Yc,sg:()=>or,tP:()=>Ns,uU:()=>yl,w_:()=>A,xG:()=>Ea});var d=b(94650);let p=null;function v(){return p}function t(Lt){p||(p=Lt)}class A{}const x=new d.OlP("DocumentToken");let w=(()=>{class Lt{historyGo($t){throw new Error("Not implemented")}}return Lt.\u0275fac=function($t){return new($t||Lt)},Lt.\u0275prov=d.Yz7({token:Lt,factory:function(){return function k(){return(0,d.LFG)(P)}()},providedIn:"platform"}),Lt})();const D=new d.OlP("Location Initialized");let P=(()=>{class Lt extends w{constructor($t){super(),this._doc=$t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState($t){const Ke=v().getGlobalEventTarget(this._doc,"window");return Ke.addEventListener("popstate",$t,!1),()=>Ke.removeEventListener("popstate",$t)}onHashChange($t){const Ke=v().getGlobalEventTarget(this._doc,"window");return Ke.addEventListener("hashchange",$t,!1),()=>Ke.removeEventListener("hashchange",$t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname($t){this.location.pathname=$t}pushState($t,Ke,In){I()?this._history.pushState($t,Ke,In):this.location.hash=In}replaceState($t,Ke,In){I()?this._history.replaceState($t,Ke,In):this.location.hash=In}forward(){this._history.forward()}back(){this._history.back()}historyGo($t=0){this._history.go($t)}getState(){return this._history.state}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.LFG(x))},Lt.\u0275prov=d.Yz7({token:Lt,factory:function(){return function z(){return new P((0,d.LFG)(x))}()},providedIn:"platform"}),Lt})();function I(){return!!window.history.pushState}function G(Lt,fe){if(0==Lt.length)return fe;if(0==fe.length)return Lt;let $t=0;return Lt.endsWith("/")&&$t++,fe.startsWith("/")&&$t++,2==$t?Lt+fe.substring(1):1==$t?Lt+fe:Lt+"/"+fe}function W(Lt){const fe=Lt.match(/#|\?|$/),$t=fe&&fe.index||Lt.length;return Lt.slice(0,$t-("/"===Lt[$t-1]?1:0))+Lt.slice($t)}function ot(Lt){return Lt&&"?"!==Lt[0]?"?"+Lt:Lt}let ct=(()=>{class Lt{historyGo($t){throw new Error("Not implemented")}}return Lt.\u0275fac=function($t){return new($t||Lt)},Lt.\u0275prov=d.Yz7({token:Lt,factory:function(){return(0,d.f3M)(Pt)},providedIn:"root"}),Lt})();const gt=new d.OlP("appBaseHref");let Pt=(()=>{class Lt extends ct{constructor($t,Ke){super(),this._platformLocation=$t,this._removeListenerFns=[],this._baseHref=Ke??this._platformLocation.getBaseHrefFromDOM()??(0,d.f3M)(x).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState($t){this._removeListenerFns.push(this._platformLocation.onPopState($t),this._platformLocation.onHashChange($t))}getBaseHref(){return this._baseHref}prepareExternalUrl($t){return G(this._baseHref,$t)}path($t=!1){const Ke=this._platformLocation.pathname+ot(this._platformLocation.search),In=this._platformLocation.hash;return In&&$t?`${Ke}${In}`:Ke}pushState($t,Ke,In,Rt){const de=this.prepareExternalUrl(In+ot(Rt));this._platformLocation.pushState($t,Ke,de)}replaceState($t,Ke,In,Rt){const de=this.prepareExternalUrl(In+ot(Rt));this._platformLocation.replaceState($t,Ke,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo($t=0){this._platformLocation.historyGo?.($t)}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.LFG(w),d.LFG(gt,8))},Lt.\u0275prov=d.Yz7({token:Lt,factory:Lt.\u0275fac,providedIn:"root"}),Lt})(),St=(()=>{class Lt extends ct{constructor($t,Ke){super(),this._platformLocation=$t,this._baseHref="",this._removeListenerFns=[],null!=Ke&&(this._baseHref=Ke)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState($t){this._removeListenerFns.push(this._platformLocation.onPopState($t),this._platformLocation.onHashChange($t))}getBaseHref(){return this._baseHref}path($t=!1){let Ke=this._platformLocation.hash;return null==Ke&&(Ke="#"),Ke.length>0?Ke.substring(1):Ke}prepareExternalUrl($t){const Ke=G(this._baseHref,$t);return Ke.length>0?"#"+Ke:Ke}pushState($t,Ke,In,Rt){let de=this.prepareExternalUrl(In+ot(Rt));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.pushState($t,Ke,de)}replaceState($t,Ke,In,Rt){let de=this.prepareExternalUrl(In+ot(Rt));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.replaceState($t,Ke,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo($t=0){this._platformLocation.historyGo?.($t)}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.LFG(w),d.LFG(gt,8))},Lt.\u0275prov=d.Yz7({token:Lt,factory:Lt.\u0275fac}),Lt})(),Ht=(()=>{class Lt{constructor($t){this._subject=new d.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=$t;const Ke=this._locationStrategy.getBaseHref();this._baseHref=W(Zt(Ke)),this._locationStrategy.onPopState(In=>{this._subject.emit({url:this.path(!0),pop:!0,state:In.state,type:In.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path($t=!1){return this.normalize(this._locationStrategy.path($t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo($t,Ke=""){return this.path()==this.normalize($t+ot(Ke))}normalize($t){return Lt.stripTrailingSlash(function at(Lt,fe){return Lt&&fe.startsWith(Lt)?fe.substring(Lt.length):fe}(this._baseHref,Zt($t)))}prepareExternalUrl($t){return $t&&"/"!==$t[0]&&($t="/"+$t),this._locationStrategy.prepareExternalUrl($t)}go($t,Ke="",In=null){this._locationStrategy.pushState(In,"",$t,Ke),this._notifyUrlChangeListeners(this.prepareExternalUrl($t+ot(Ke)),In)}replaceState($t,Ke="",In=null){this._locationStrategy.replaceState(In,"",$t,Ke),this._notifyUrlChangeListeners(this.prepareExternalUrl($t+ot(Ke)),In)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo($t=0){this._locationStrategy.historyGo?.($t)}onUrlChange($t){return this._urlChangeListeners.push($t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ke=>{this._notifyUrlChangeListeners(Ke.url,Ke.state)})),()=>{const Ke=this._urlChangeListeners.indexOf($t);this._urlChangeListeners.splice(Ke,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners($t="",Ke){this._urlChangeListeners.forEach(In=>In($t,Ke))}subscribe($t,Ke,In){return this._subject.subscribe({next:$t,error:Ke,complete:In})}}return Lt.normalizeQueryParams=ot,Lt.joinWithSlash=G,Lt.stripTrailingSlash=W,Lt.\u0275fac=function($t){return new($t||Lt)(d.LFG(ct))},Lt.\u0275prov=d.Yz7({token:Lt,factory:function(){return function Jt(){return new Ht((0,d.LFG)(ct))}()},providedIn:"root"}),Lt})();function Zt(Lt){return Lt.replace(/\/index.html$/,"")}const wt={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var _t=(()=>((_t=_t||{})[_t.Decimal=0]="Decimal",_t[_t.Percent=1]="Percent",_t[_t.Currency=2]="Currency",_t[_t.Scientific=3]="Scientific",_t))(),Qt=(()=>((Qt=Qt||{})[Qt.Format=0]="Format",Qt[Qt.Standalone=1]="Standalone",Qt))(),qt=(()=>((qt=qt||{})[qt.Narrow=0]="Narrow",qt[qt.Abbreviated=1]="Abbreviated",qt[qt.Wide=2]="Wide",qt[qt.Short=3]="Short",qt))(),le=(()=>((le=le||{})[le.Short=0]="Short",le[le.Medium=1]="Medium",le[le.Long=2]="Long",le[le.Full=3]="Full",le))(),Wt=(()=>((Wt=Wt||{})[Wt.Decimal=0]="Decimal",Wt[Wt.Group=1]="Group",Wt[Wt.List=2]="List",Wt[Wt.PercentSign=3]="PercentSign",Wt[Wt.PlusSign=4]="PlusSign",Wt[Wt.MinusSign=5]="MinusSign",Wt[Wt.Exponential=6]="Exponential",Wt[Wt.SuperscriptingExponent=7]="SuperscriptingExponent",Wt[Wt.PerMille=8]="PerMille",Wt[Wt.Infinity=9]="Infinity",Wt[Wt.NaN=10]="NaN",Wt[Wt.TimeSeparator=11]="TimeSeparator",Wt[Wt.CurrencyDecimal=12]="CurrencyDecimal",Wt[Wt.CurrencyGroup=13]="CurrencyGroup",Wt))();function ee(Lt,fe){return Ft((0,d.cg1)(Lt)[d.wAp.DateFormat],fe)}function ue(Lt,fe){return Ft((0,d.cg1)(Lt)[d.wAp.TimeFormat],fe)}function Kt(Lt,fe){return Ft((0,d.cg1)(Lt)[d.wAp.DateTimeFormat],fe)}function ce(Lt,fe){const $t=(0,d.cg1)(Lt),Ke=$t[d.wAp.NumberSymbols][fe];if(typeof Ke>"u"){if(fe===Wt.CurrencyDecimal)return $t[d.wAp.NumberSymbols][Wt.Decimal];if(fe===Wt.CurrencyGroup)return $t[d.wAp.NumberSymbols][Wt.Group]}return Ke}function Le(Lt,fe){return(0,d.cg1)(Lt)[d.wAp.NumberFormats][fe]}function dn(Lt){if(!Lt[d.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Lt[d.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ft(Lt,fe){for(let $t=fe;$t>-1;$t--)if(typeof Lt[$t]<"u")return Lt[$t];throw new Error("Locale data API: locale data undefined")}function vt(Lt){const[fe,$t]=Lt.split(":");return{hours:+fe,minutes:+$t}}const Ct=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Bt={},ne=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var he=(()=>((he=he||{})[he.Short=0]="Short",he[he.ShortGMT=1]="ShortGMT",he[he.Long=2]="Long",he[he.Extended=3]="Extended",he))(),Oe=(()=>((Oe=Oe||{})[Oe.FullYear=0]="FullYear",Oe[Oe.Month=1]="Month",Oe[Oe.Date=2]="Date",Oe[Oe.Hours=3]="Hours",Oe[Oe.Minutes=4]="Minutes",Oe[Oe.Seconds=5]="Seconds",Oe[Oe.FractionalSeconds=6]="FractionalSeconds",Oe[Oe.Day=7]="Day",Oe))(),yn=(()=>((yn=yn||{})[yn.DayPeriods=0]="DayPeriods",yn[yn.Days=1]="Days",yn[yn.Months=2]="Months",yn[yn.Eras=3]="Eras",yn))();function On(Lt,fe,$t,Ke){let In=function Be(Lt){if(bi(Lt))return Lt;if("number"==typeof Lt&&!isNaN(Lt))return new Date(Lt);if("string"==typeof Lt){if(Lt=Lt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Lt)){const[In,Rt=1,de=1]=Lt.split("-").map(De=>+De);return _i(In,Rt-1,de)}const $t=parseFloat(Lt);if(!isNaN(Lt-$t))return new Date($t);let Ke;if(Ke=Lt.match(Ct))return function Fn(Lt){const fe=new Date(0);let $t=0,Ke=0;const In=Lt[8]?fe.setUTCFullYear:fe.setFullYear,Rt=Lt[8]?fe.setUTCHours:fe.setHours;Lt[9]&&($t=Number(Lt[9]+Lt[10]),Ke=Number(Lt[9]+Lt[11])),In.call(fe,Number(Lt[1]),Number(Lt[2])-1,Number(Lt[3]));const de=Number(Lt[4]||0)-$t,De=Number(Lt[5]||0)-Ke,nn=Number(Lt[6]||0),Cn=Math.floor(1e3*parseFloat("0."+(Lt[7]||0)));return Rt.call(fe,de,De,nn,Cn),fe}(Ke)}const fe=new Date(Lt);if(!bi(fe))throw new Error(`Unable to convert "${Lt}" into a date`);return fe}(Lt);fe=Si($t,fe)||fe;let De,de=[];for(;fe;){if(De=ne.exec(fe),!De){de.push(fe);break}{de=de.concat(De.slice(1));const Wn=de.pop();if(!Wn)break;fe=Wn}}let nn=In.getTimezoneOffset();Ke&&(nn=He(Ke,nn),In=function ve(Lt,fe,$t){const Ke=$t?-1:1,In=Lt.getTimezoneOffset();return function Zn(Lt,fe){return(Lt=new Date(Lt.getTime())).setMinutes(Lt.getMinutes()+fe),Lt}(Lt,Ke*(He(fe,In)-In))}(In,Ke,!0));let Cn="";return de.forEach(Wn=>{const $n=function en(Lt){if(Me[Lt])return Me[Lt];let fe;switch(Lt){case"G":case"GG":case"GGG":fe=gn(yn.Eras,qt.Abbreviated);break;case"GGGG":fe=gn(yn.Eras,qt.Wide);break;case"GGGGG":fe=gn(yn.Eras,qt.Narrow);break;case"y":fe=Gn(Oe.FullYear,1,0,!1,!0);break;case"yy":fe=Gn(Oe.FullYear,2,0,!0,!0);break;case"yyy":fe=Gn(Oe.FullYear,3,0,!1,!0);break;case"yyyy":fe=Gn(Oe.FullYear,4,0,!1,!0);break;case"Y":fe=It(1);break;case"YY":fe=It(2,!0);break;case"YYY":fe=It(3);break;case"YYYY":fe=It(4);break;case"M":case"L":fe=Gn(Oe.Month,1,1);break;case"MM":case"LL":fe=Gn(Oe.Month,2,1);break;case"MMM":fe=gn(yn.Months,qt.Abbreviated);break;case"MMMM":fe=gn(yn.Months,qt.Wide);break;case"MMMMM":fe=gn(yn.Months,qt.Narrow);break;case"LLL":fe=gn(yn.Months,qt.Abbreviated,Qt.Standalone);break;case"LLLL":fe=gn(yn.Months,qt.Wide,Qt.Standalone);break;case"LLLLL":fe=gn(yn.Months,qt.Narrow,Qt.Standalone);break;case"w":fe=Mt(1);break;case"ww":fe=Mt(2);break;case"W":fe=Mt(1,!0);break;case"d":fe=Gn(Oe.Date,1);break;case"dd":fe=Gn(Oe.Date,2);break;case"c":case"cc":fe=Gn(Oe.Day,1);break;case"ccc":fe=gn(yn.Days,qt.Abbreviated,Qt.Standalone);break;case"cccc":fe=gn(yn.Days,qt.Wide,Qt.Standalone);break;case"ccccc":fe=gn(yn.Days,qt.Narrow,Qt.Standalone);break;case"cccccc":fe=gn(yn.Days,qt.Short,Qt.Standalone);break;case"E":case"EE":case"EEE":fe=gn(yn.Days,qt.Abbreviated);break;case"EEEE":fe=gn(yn.Days,qt.Wide);break;case"EEEEE":fe=gn(yn.Days,qt.Narrow);break;case"EEEEEE":fe=gn(yn.Days,qt.Short);break;case"a":case"aa":case"aaa":fe=gn(yn.DayPeriods,qt.Abbreviated);break;case"aaaa":fe=gn(yn.DayPeriods,qt.Wide);break;case"aaaaa":fe=gn(yn.DayPeriods,qt.Narrow);break;case"b":case"bb":case"bbb":fe=gn(yn.DayPeriods,qt.Abbreviated,Qt.Standalone,!0);break;case"bbbb":fe=gn(yn.DayPeriods,qt.Wide,Qt.Standalone,!0);break;case"bbbbb":fe=gn(yn.DayPeriods,qt.Narrow,Qt.Standalone,!0);break;case"B":case"BB":case"BBB":fe=gn(yn.DayPeriods,qt.Abbreviated,Qt.Format,!0);break;case"BBBB":fe=gn(yn.DayPeriods,qt.Wide,Qt.Format,!0);break;case"BBBBB":fe=gn(yn.DayPeriods,qt.Narrow,Qt.Format,!0);break;case"h":fe=Gn(Oe.Hours,1,-12);break;case"hh":fe=Gn(Oe.Hours,2,-12);break;case"H":fe=Gn(Oe.Hours,1);break;case"HH":fe=Gn(Oe.Hours,2);break;case"m":fe=Gn(Oe.Minutes,1);break;case"mm":fe=Gn(Oe.Minutes,2);break;case"s":fe=Gn(Oe.Seconds,1);break;case"ss":fe=Gn(Oe.Seconds,2);break;case"S":fe=Gn(Oe.FractionalSeconds,1);break;case"SS":fe=Gn(Oe.FractionalSeconds,2);break;case"SSS":fe=Gn(Oe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":fe=tn(he.Short);break;case"ZZZZZ":fe=tn(he.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":fe=tn(he.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":fe=tn(he.Long);break;default:return null}return Me[Lt]=fe,fe}(Wn);Cn+=$n?$n(In,$t,nn):"''"===Wn?"'":Wn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Cn}function _i(Lt,fe,$t){const Ke=new Date(0);return Ke.setFullYear(Lt,fe,$t),Ke.setHours(0,0,0),Ke}function Si(Lt,fe){const $t=function Ae(Lt){return(0,d.cg1)(Lt)[d.wAp.LocaleId]}(Lt);if(Bt[$t]=Bt[$t]||{},Bt[$t][fe])return Bt[$t][fe];let Ke="";switch(fe){case"shortDate":Ke=ee(Lt,le.Short);break;case"mediumDate":Ke=ee(Lt,le.Medium);break;case"longDate":Ke=ee(Lt,le.Long);break;case"fullDate":Ke=ee(Lt,le.Full);break;case"shortTime":Ke=ue(Lt,le.Short);break;case"mediumTime":Ke=ue(Lt,le.Medium);break;case"longTime":Ke=ue(Lt,le.Long);break;case"fullTime":Ke=ue(Lt,le.Full);break;case"short":const In=Si(Lt,"shortTime"),Rt=Si(Lt,"shortDate");Ke=ho(Kt(Lt,le.Short),[In,Rt]);break;case"medium":const de=Si(Lt,"mediumTime"),De=Si(Lt,"mediumDate");Ke=ho(Kt(Lt,le.Medium),[de,De]);break;case"long":const nn=Si(Lt,"longTime"),Cn=Si(Lt,"longDate");Ke=ho(Kt(Lt,le.Long),[nn,Cn]);break;case"full":const Wn=Si(Lt,"fullTime"),$n=Si(Lt,"fullDate");Ke=ho(Kt(Lt,le.Full),[Wn,$n])}return Ke&&(Bt[$t][fe]=Ke),Ke}function ho(Lt,fe){return fe&&(Lt=Lt.replace(/\{([^}]+)}/g,function($t,Ke){return null!=fe&&Ke in fe?fe[Ke]:$t})),Lt}function hi(Lt,fe,$t="-",Ke,In){let Rt="";(Lt<0||In&&Lt<=0)&&(In?Lt=1-Lt:(Lt=-Lt,Rt=$t));let de=String(Lt);for(;de.length0||De>-$t)&&(De+=$t),Lt===Oe.Hours)0===De&&-12===$t&&(De=12);else if(Lt===Oe.FractionalSeconds)return function Vn(Lt,fe){return hi(Lt,3).substring(0,fe)}(De,fe);const nn=ce(de,Wt.MinusSign);return hi(De,fe,nn,Ke,In)}}function gn(Lt,fe,$t=Qt.Format,Ke=!1){return function(In,Rt){return function Ve(Lt,fe,$t,Ke,In,Rt){switch($t){case yn.Months:return function Xe(Lt,fe,$t){const Ke=(0,d.cg1)(Lt),Rt=Ft([Ke[d.wAp.MonthsFormat],Ke[d.wAp.MonthsStandalone]],fe);return Ft(Rt,$t)}(fe,In,Ke)[Lt.getMonth()];case yn.Days:return function ze(Lt,fe,$t){const Ke=(0,d.cg1)(Lt),Rt=Ft([Ke[d.wAp.DaysFormat],Ke[d.wAp.DaysStandalone]],fe);return Ft(Rt,$t)}(fe,In,Ke)[Lt.getDay()];case yn.DayPeriods:const de=Lt.getHours(),De=Lt.getMinutes();if(Rt){const Cn=function kn(Lt){const fe=(0,d.cg1)(Lt);return dn(fe),(fe[d.wAp.ExtraData][2]||[]).map(Ke=>"string"==typeof Ke?vt(Ke):[vt(Ke[0]),vt(Ke[1])])}(fe),Wn=function ri(Lt,fe,$t){const Ke=(0,d.cg1)(Lt);dn(Ke);const Rt=Ft([Ke[d.wAp.ExtraData][0],Ke[d.wAp.ExtraData][1]],fe)||[];return Ft(Rt,$t)||[]}(fe,In,Ke),$n=Cn.findIndex(yi=>{if(Array.isArray(yi)){const[Ti,bo]=yi,xo=de>=Ti.hours&&De>=Ti.minutes,yo=de0?Math.floor(In/60):Math.ceil(In/60);switch(Lt){case he.Short:return(In>=0?"+":"")+hi(de,2,Rt)+hi(Math.abs(In%60),2,Rt);case he.ShortGMT:return"GMT"+(In>=0?"+":"")+hi(de,1,Rt);case he.Long:return"GMT"+(In>=0?"+":"")+hi(de,2,Rt)+":"+hi(Math.abs(In%60),2,Rt);case he.Extended:return 0===Ke?"Z":(In>=0?"+":"")+hi(de,2,Rt)+":"+hi(Math.abs(In%60),2,Rt);default:throw new Error(`Unknown zone width "${Lt}"`)}}}function Et(Lt){return _i(Lt.getFullYear(),Lt.getMonth(),Lt.getDate()+(4-Lt.getDay()))}function Mt(Lt,fe=!1){return function($t,Ke){let In;if(fe){const Rt=new Date($t.getFullYear(),$t.getMonth(),1).getDay()-1,de=$t.getDate();In=1+Math.floor((de+Rt)/7)}else{const Rt=Et($t),de=function We(Lt){const fe=_i(Lt,0,1).getDay();return _i(Lt,0,1+(fe<=4?4:11)-fe)}(Rt.getFullYear()),De=Rt.getTime()-de.getTime();In=1+Math.round(De/6048e5)}return hi(In,Lt,ce(Ke,Wt.MinusSign))}}function It(Lt,fe=!1){return function($t,Ke){return hi(Et($t).getFullYear(),Lt,ce(Ke,Wt.MinusSign),fe)}}const Me={};function He(Lt,fe){Lt=Lt.replace(/:/g,"");const $t=Date.parse("Jan 01, 1970 00:00:00 "+Lt)/6e4;return isNaN($t)?fe:$t}function bi(Lt){return Lt instanceof Date&&!isNaN(Lt.valueOf())}const go=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function la(Lt,fe,$t,Ke,In,Rt,de=!1){let De="",nn=!1;if(isFinite(Lt)){let Cn=function Pe(Lt){let Ke,In,Rt,de,De,fe=Math.abs(Lt)+"",$t=0;for((In=fe.indexOf("."))>-1&&(fe=fe.replace(".","")),(Rt=fe.search(/e/i))>0?(In<0&&(In=Rt),In+=+fe.slice(Rt+1),fe=fe.substring(0,Rt)):In<0&&(In=fe.length),Rt=0;"0"===fe.charAt(Rt);Rt++);if(Rt===(De=fe.length))Ke=[0],In=1;else{for(De--;"0"===fe.charAt(De);)De--;for(In-=Rt,Ke=[],de=0;Rt<=De;Rt++,de++)Ke[de]=Number(fe.charAt(Rt))}return In>22&&(Ke=Ke.splice(0,21),$t=In-1,In=1),{digits:Ke,exponent:$t,integerLen:In}}(Lt);de&&(Cn=function Ye(Lt){if(0===Lt.digits[0])return Lt;const fe=Lt.digits.length-Lt.integerLen;return Lt.exponent?Lt.exponent+=2:(0===fe?Lt.digits.push(0,0):1===fe&&Lt.digits.push(0),Lt.integerLen+=2),Lt}(Cn));let Wn=fe.minInt,$n=fe.minFrac,yi=fe.maxFrac;if(Rt){const ra=Rt.match(go);if(null===ra)throw new Error(`${Rt} is not a valid digit info`);const fa=ra[1],ts=ra[3],Hs=ra[5];null!=fa&&(Wn=nt(fa)),null!=ts&&($n=nt(ts)),null!=Hs?yi=nt(Hs):null!=ts&&$n>yi&&(yi=$n)}!function mn(Lt,fe,$t){if(fe>$t)throw new Error(`The minimum number of digits after fraction (${fe}) is higher than the maximum (${$t}).`);let Ke=Lt.digits,In=Ke.length-Lt.integerLen;const Rt=Math.min(Math.max(fe,In),$t);let de=Rt+Lt.integerLen,De=Ke[de];if(de>0){Ke.splice(Math.max(Lt.integerLen,de));for(let $n=de;$n=5)if(de-1<0){for(let $n=0;$n>de;$n--)Ke.unshift(0),Lt.integerLen++;Ke.unshift(1),Lt.integerLen++}else Ke[de-1]++;for(;In=Cn?bo.pop():nn=!1),yi>=10?1:0},0);Wn&&(Ke.unshift(Wn),Lt.integerLen++)}(Cn,$n,yi);let Ti=Cn.digits,bo=Cn.integerLen;const xo=Cn.exponent;let yo=[];for(nn=Ti.every(ra=>!ra);bo0?yo=Ti.splice(bo,Ti.length):(yo=Ti,Ti=[0]);const ga=[];for(Ti.length>=fe.lgSize&&ga.unshift(Ti.splice(-fe.lgSize,Ti.length).join(""));Ti.length>fe.gSize;)ga.unshift(Ti.splice(-fe.gSize,Ti.length).join(""));Ti.length&&ga.unshift(Ti.join("")),De=ga.join(ce($t,Ke)),yo.length&&(De+=ce($t,In)+yo.join("")),xo&&(De+=ce($t,Wt.Exponential)+"+"+xo)}else De=ce($t,Wt.Infinity);return De=Lt<0&&!nn?fe.negPre+De+fe.negSuf:fe.posPre+De+fe.posSuf,De}function Ea(Lt,fe,$t,Ke,In){const de=Nn(Le(fe,_t.Currency),ce(fe,Wt.MinusSign));return de.minFrac=function et(Lt){let fe;const $t=wt[Lt];return $t&&(fe=$t[2]),"number"==typeof fe?fe:2}(Ke),de.maxFrac=de.minFrac,la(Lt,de,fe,Wt.CurrencyGroup,Wt.CurrencyDecimal,In).replace("\xa4",$t).replace("\xa4","").trim()}function Nn(Lt,fe="-"){const $t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ke=Lt.split(";"),In=Ke[0],Rt=Ke[1],de=-1!==In.indexOf(".")?In.split("."):[In.substring(0,In.lastIndexOf("0")+1),In.substring(In.lastIndexOf("0")+1)],De=de[0],nn=de[1]||"";$t.posPre=De.substring(0,De.indexOf("#"));for(let Wn=0;Wn{class Lt{constructor($t,Ke,In,Rt){this._iterableDiffers=$t,this._keyValueDiffers=Ke,this._ngEl=In,this._renderer=Rt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass($t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof $t?$t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass($t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof $t?$t.split(/\s+/):$t,this._rawClass&&((0,d.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const $t=this._iterableDiffer.diff(this._rawClass);$t&&this._applyIterableChanges($t)}else if(this._keyValueDiffer){const $t=this._keyValueDiffer.diff(this._rawClass);$t&&this._applyKeyValueChanges($t)}}_applyKeyValueChanges($t){$t.forEachAddedItem(Ke=>this._toggleClass(Ke.key,Ke.currentValue)),$t.forEachChangedItem(Ke=>this._toggleClass(Ke.key,Ke.currentValue)),$t.forEachRemovedItem(Ke=>{Ke.previousValue&&this._toggleClass(Ke.key,!1)})}_applyIterableChanges($t){$t.forEachAddedItem(Ke=>{if("string"!=typeof Ke.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,d.AaK)(Ke.item)}`);this._toggleClass(Ke.item,!0)}),$t.forEachRemovedItem(Ke=>this._toggleClass(Ke.item,!1))}_applyClasses($t){$t&&(Array.isArray($t)||$t instanceof Set?$t.forEach(Ke=>this._toggleClass(Ke,!0)):Object.keys($t).forEach(Ke=>this._toggleClass(Ke,!!$t[Ke])))}_removeClasses($t){$t&&(Array.isArray($t)||$t instanceof Set?$t.forEach(Ke=>this._toggleClass(Ke,!1)):Object.keys($t).forEach(Ke=>this._toggleClass(Ke,!1)))}_toggleClass($t,Ke){($t=$t.trim())&&$t.split(/\s+/g).forEach(In=>{Ke?this._renderer.addClass(this._ngEl.nativeElement,In):this._renderer.removeClass(this._ngEl.nativeElement,In)})}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.ZZ4),d.Y36(d.aQg),d.Y36(d.SBq),d.Y36(d.Qsj))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Lt})();class cs{constructor(fe,$t,Ke,In){this.$implicit=fe,this.ngForOf=$t,this.index=Ke,this.count=In}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let or=(()=>{class Lt{constructor($t,Ke,In){this._viewContainer=$t,this._template=Ke,this._differs=In,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf($t){this._ngForOf=$t,this._ngForOfDirty=!0}set ngForTrackBy($t){this._trackByFn=$t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate($t){$t&&(this._template=$t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const $t=this._ngForOf;!this._differ&&$t&&(this._differ=this._differs.find($t).create(this.ngForTrackBy))}if(this._differ){const $t=this._differ.diff(this._ngForOf);$t&&this._applyChanges($t)}}_applyChanges($t){const Ke=this._viewContainer;$t.forEachOperation((In,Rt,de)=>{if(null==In.previousIndex)Ke.createEmbeddedView(this._template,new cs(In.item,this._ngForOf,-1,-1),null===de?void 0:de);else if(null==de)Ke.remove(null===Rt?void 0:Rt);else if(null!==Rt){const De=Ke.get(Rt);Ke.move(De,de),Er(De,In)}});for(let In=0,Rt=Ke.length;In{Er(Ke.get(In.currentIndex),In)})}static ngTemplateContextGuard($t,Ke){return!0}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(d.ZZ4))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Lt})();function Er(Lt,fe){Lt.context.$implicit=fe.item}let dr=(()=>{class Lt{constructor($t,Ke){this._viewContainer=$t,this._context=new Yr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ke}set ngIf($t){this._context.$implicit=this._context.ngIf=$t,this._updateView()}set ngIfThen($t){Gr("ngIfThen",$t),this._thenTemplateRef=$t,this._thenViewRef=null,this._updateView()}set ngIfElse($t){Gr("ngIfElse",$t),this._elseTemplateRef=$t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard($t,Ke){return!0}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.s_b),d.Y36(d.Rgc))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Lt})();class Yr{constructor(){this.$implicit=null,this.ngIf=null}}function Gr(Lt,fe){if(fe&&!fe.createEmbeddedView)throw new Error(`${Lt} must be a TemplateRef, but received '${(0,d.AaK)(fe)}'.`)}class Ir{constructor(fe,$t){this._viewContainerRef=fe,this._templateRef=$t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(fe){fe&&!this._created?this.create():!fe&&this._created&&this.destroy()}}let Pc=(()=>{class Lt{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch($t){this._ngSwitch=$t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault($t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push($t)}_matchCase($t){const Ke=$t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ke,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ke}_updateDefaultCases($t){if(this._defaultViews&&$t!==this._defaultUsed){this._defaultUsed=$t;for(let Ke=0;Ke{class Lt{constructor($t,Ke,In){this.ngSwitch=In,In._addCase(),this._view=new Ir($t,Ke)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Pc,9))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Lt})(),Sc=(()=>{class Lt{constructor($t,Ke,In){In._addDefault(new Ir($t,Ke))}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Pc,9))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Lt})(),Qr=(()=>{class Lt{constructor($t,Ke,In){this._ngEl=$t,this._differs=Ke,this._renderer=In,this._ngStyle=null,this._differ=null}set ngStyle($t){this._ngStyle=$t,!this._differ&&$t&&(this._differ=this._differs.find($t).create())}ngDoCheck(){if(this._differ){const $t=this._differ.diff(this._ngStyle);$t&&this._applyChanges($t)}}_setStyle($t,Ke){const[In,Rt]=$t.split("."),de=-1===In.indexOf("-")?void 0:d.JOm.DashCase;null!=Ke?this._renderer.setStyle(this._ngEl.nativeElement,In,Rt?`${Ke}${Rt}`:Ke,de):this._renderer.removeStyle(this._ngEl.nativeElement,In,de)}_applyChanges($t){$t.forEachRemovedItem(Ke=>this._setStyle(Ke.key,null)),$t.forEachAddedItem(Ke=>this._setStyle(Ke.key,Ke.currentValue)),$t.forEachChangedItem(Ke=>this._setStyle(Ke.key,Ke.currentValue))}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.SBq),d.Y36(d.aQg),d.Y36(d.Qsj))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Lt})(),Ns=(()=>{class Lt{constructor($t){this._viewContainerRef=$t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges($t){if($t.ngTemplateOutlet||$t.ngTemplateOutletInjector){const Ke=this._viewContainerRef;if(this._viewRef&&Ke.remove(Ke.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:In,ngTemplateOutletContext:Rt,ngTemplateOutletInjector:de}=this;this._viewRef=Ke.createEmbeddedView(In,Rt,de?{injector:de}:void 0)}else this._viewRef=null}else this._viewRef&&$t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.s_b))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[d.TTD]}),Lt})();function hr(Lt,fe){return new d.vHH(2100,!1)}class iu{createSubscription(fe,$t){return fe.subscribe({next:$t,error:Ke=>{throw Ke}})}dispose(fe){fe.unsubscribe()}}class f1{createSubscription(fe,$t){return fe.then($t,Ke=>{throw Ke})}dispose(fe){}}const vc=new f1,Cl=new iu;let Al=(()=>{class Lt{constructor($t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=$t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform($t){return this._obj?$t!==this._obj?(this._dispose(),this.transform($t)):this._latestValue:($t&&this._subscribe($t),this._latestValue)}_subscribe($t){this._obj=$t,this._strategy=this._selectStrategy($t),this._subscription=this._strategy.createSubscription($t,Ke=>this._updateLatestValue($t,Ke))}_selectStrategy($t){if((0,d.QGY)($t))return vc;if((0,d.F4k)($t))return Cl;throw hr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue($t,Ke){$t===this._obj&&(this._latestValue=Ke,this._ref.markForCheck())}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.sBO,16))},Lt.\u0275pipe=d.Yjl({name:"async",type:Lt,pure:!1,standalone:!0}),Lt})(),Oc=(()=>{class Lt{transform($t){if(null==$t)return null;if("string"!=typeof $t)throw hr();return $t.toLowerCase()}}return Lt.\u0275fac=function($t){return new($t||Lt)},Lt.\u0275pipe=d.Yjl({name:"lowercase",type:Lt,pure:!0,standalone:!0}),Lt})();const Vs=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Yc=(()=>{class Lt{transform($t){if(null==$t)return null;if("string"!=typeof $t)throw hr();return $t.replace(Vs,Ke=>Ke[0].toUpperCase()+Ke.slice(1).toLowerCase())}}return Lt.\u0275fac=function($t){return new($t||Lt)},Lt.\u0275pipe=d.Yjl({name:"titlecase",type:Lt,pure:!0,standalone:!0}),Lt})();const js=new d.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let yl=(()=>{class Lt{constructor($t,Ke){this.locale=$t,this.defaultTimezone=Ke}transform($t,Ke="mediumDate",In,Rt){if(null==$t||""===$t||$t!=$t)return null;try{return On($t,Ke,Rt||this.locale,In??this.defaultTimezone??void 0)}catch(de){throw hr()}}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.soG,16),d.Y36(js,24))},Lt.\u0275pipe=d.Yjl({name:"date",type:Lt,pure:!0,standalone:!0}),Lt})(),jc=(()=>{class Lt{constructor($t){this.differs=$t,this.keyValues=[],this.compareFn=ks}transform($t,Ke=ks){if(!$t||!($t instanceof Map)&&"object"!=typeof $t)return null;this.differ||(this.differ=this.differs.find($t).create());const In=this.differ.diff($t),Rt=Ke!==this.compareFn;return In&&(this.keyValues=[],In.forEachItem(de=>{this.keyValues.push(function Gs(Lt,fe){return{key:Lt,value:fe}}(de.key,de.currentValue))})),(In||Rt)&&(this.keyValues.sort(Ke),this.compareFn=Ke),this.keyValues}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.aQg,16))},Lt.\u0275pipe=d.Yjl({name:"keyvalue",type:Lt,pure:!1,standalone:!0}),Lt})();function ks(Lt,fe){const $t=Lt.key,Ke=fe.key;if($t===Ke)return 0;if(void 0===$t)return 1;if(void 0===Ke)return-1;if(null===$t)return 1;if(null===Ke)return-1;if("string"==typeof $t&&"string"==typeof Ke)return $t{class Lt{constructor($t){this._locale=$t}transform($t,Ke,In){if(!qo($t))return null;In=In||this._locale;try{return function $e(Lt,fe,$t){return la(Lt,Nn(Le(fe,_t.Decimal),ce(fe,Wt.MinusSign)),fe,Wt.Group,Wt.Decimal,$t)}(ar($t),In,Ke)}catch(Rt){throw hr()}}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.soG,16))},Lt.\u0275pipe=d.Yjl({name:"number",type:Lt,pure:!0,standalone:!0}),Lt})(),Bl=(()=>{class Lt{constructor($t,Ke="USD"){this._locale=$t,this._defaultCurrencyCode=Ke}transform($t,Ke=this._defaultCurrencyCode,In="symbol",Rt,de){if(!qo($t))return null;de=de||this._locale,"boolean"==typeof In&&(In=In?"symbol":"code");let De=Ke||this._defaultCurrencyCode;"code"!==In&&(De="symbol"===In||"symbol-narrow"===In?function xt(Lt,fe,$t="en"){const Ke=function bn(Lt){return(0,d.cg1)(Lt)[d.wAp.Currencies]}($t)[Lt]||wt[Lt]||[],In=Ke[1];return"narrow"===fe&&"string"==typeof In?In:Ke[0]||Lt}(De,"symbol"===In?"wide":"narrow",de):In);try{return Ea(ar($t),de,De,Ke,Rt)}catch(nn){throw hr()}}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.soG,16),d.Y36(d.EJc,16))},Lt.\u0275pipe=d.Yjl({name:"currency",type:Lt,pure:!0,standalone:!0}),Lt})();function qo(Lt){return!(null==Lt||""===Lt||Lt!=Lt)}function ar(Lt){if("string"==typeof Lt&&!isNaN(Number(Lt)-parseFloat(Lt)))return Number(Lt);if("number"!=typeof Lt)throw new Error(`${Lt} is not a number`);return Lt}let Yl=(()=>{class Lt{}return Lt.\u0275fac=function($t){return new($t||Lt)},Lt.\u0275mod=d.oAB({type:Lt}),Lt.\u0275inj=d.cJS({}),Lt})();const xc="browser";function bu(Lt){return Lt===xc}function Dr(Lt){return"server"===Lt}let Gc=(()=>{class Lt{}return Lt.\u0275prov=(0,d.Yz7)({token:Lt,providedIn:"root",factory:()=>new vs((0,d.LFG)(x),window)}),Lt})();class vs{constructor(fe,$t){this.document=fe,this.window=$t,this.offset=()=>[0,0]}setOffset(fe){this.offset=Array.isArray(fe)?()=>fe:fe}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(fe){this.supportsScrolling()&&this.window.scrollTo(fe[0],fe[1])}scrollToAnchor(fe){if(!this.supportsScrolling())return;const $t=function rr(Lt,fe){const $t=Lt.getElementById(fe)||Lt.getElementsByName(fe)[0];if($t)return $t;if("function"==typeof Lt.createTreeWalker&&Lt.body&&(Lt.body.createShadowRoot||Lt.body.attachShadow)){const Ke=Lt.createTreeWalker(Lt.body,NodeFilter.SHOW_ELEMENT);let In=Ke.currentNode;for(;In;){const Rt=In.shadowRoot;if(Rt){const de=Rt.getElementById(fe)||Rt.querySelector(`[name="${fe}"]`);if(de)return de}In=Ke.nextNode()}}return null}(this.document,fe);$t&&(this.scrollToElement($t),$t.focus())}setHistoryScrollRestoration(fe){if(this.supportScrollRestoration()){const $t=this.window.history;$t&&$t.scrollRestoration&&($t.scrollRestoration=fe)}}scrollToElement(fe){const $t=fe.getBoundingClientRect(),Ke=$t.left+this.window.pageXOffset,In=$t.top+this.window.pageYOffset,Rt=this.offset();this.window.scrollTo(Ke-Rt[0],In-Rt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const fe=Ac(this.window.history)||Ac(Object.getPrototypeOf(this.window.history));return!(!fe||!fe.writable&&!fe.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ac(Lt){return Object.getOwnPropertyDescriptor(Lt,"scrollRestoration")}class Ps{}},80529:(rt,it,b)=>{"use strict";b.d(it,{JF:()=>et,LE:()=>gt,PG:()=>w,TP:()=>ze,Zn:()=>le,eN:()=>Ae});var d=b(36895),p=b(94650),v=b(21086),T=b(56498),t=b(21406),A=b(92198),x=b(24850);class w{}class k{}class D{constructor(he){this.normalizedNames=new Map,this.lazyUpdate=null,he?this.lazyInit="string"==typeof he?()=>{this.headers=new Map,he.split("\n").forEach(Oe=>{const yn=Oe.indexOf(":");if(yn>0){const On=Oe.slice(0,yn),_i=On.toLowerCase(),Si=Oe.slice(yn+1).trim();this.maybeSetNormalizedName(On,_i),this.headers.has(_i)?this.headers.get(_i).push(Si):this.headers.set(_i,[Si])}})}:()=>{this.headers=new Map,Object.keys(he).forEach(Oe=>{let yn=he[Oe];const On=Oe.toLowerCase();"string"==typeof yn&&(yn=[yn]),yn.length>0&&(this.headers.set(On,yn),this.maybeSetNormalizedName(Oe,On))})}:this.headers=new Map}has(he){return this.init(),this.headers.has(he.toLowerCase())}get(he){this.init();const Oe=this.headers.get(he.toLowerCase());return Oe&&Oe.length>0?Oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(he){return this.init(),this.headers.get(he.toLowerCase())||null}append(he,Oe){return this.clone({name:he,value:Oe,op:"a"})}set(he,Oe){return this.clone({name:he,value:Oe,op:"s"})}delete(he,Oe){return this.clone({name:he,value:Oe,op:"d"})}maybeSetNormalizedName(he,Oe){this.normalizedNames.has(Oe)||this.normalizedNames.set(Oe,he)}init(){this.lazyInit&&(this.lazyInit instanceof D?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(he=>this.applyUpdate(he)),this.lazyUpdate=null))}copyFrom(he){he.init(),Array.from(he.headers.keys()).forEach(Oe=>{this.headers.set(Oe,he.headers.get(Oe)),this.normalizedNames.set(Oe,he.normalizedNames.get(Oe))})}clone(he){const Oe=new D;return Oe.lazyInit=this.lazyInit&&this.lazyInit instanceof D?this.lazyInit:this,Oe.lazyUpdate=(this.lazyUpdate||[]).concat([he]),Oe}applyUpdate(he){const Oe=he.name.toLowerCase();switch(he.op){case"a":case"s":let yn=he.value;if("string"==typeof yn&&(yn=[yn]),0===yn.length)return;this.maybeSetNormalizedName(he.name,Oe);const On=("a"===he.op?this.headers.get(Oe):void 0)||[];On.push(...yn),this.headers.set(Oe,On);break;case"d":const _i=he.value;if(_i){let Si=this.headers.get(Oe);if(!Si)return;Si=Si.filter(ho=>-1===_i.indexOf(ho)),0===Si.length?(this.headers.delete(Oe),this.normalizedNames.delete(Oe)):this.headers.set(Oe,Si)}else this.headers.delete(Oe),this.normalizedNames.delete(Oe)}}forEach(he){this.init(),Array.from(this.normalizedNames.keys()).forEach(Oe=>he(this.normalizedNames.get(Oe),this.headers.get(Oe)))}}class I{encodeKey(he){return ot(he)}encodeValue(he){return ot(he)}decodeKey(he){return decodeURIComponent(he)}decodeValue(he){return decodeURIComponent(he)}}const G=/%(\d[a-f0-9])/gi,W={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ot(ne){return encodeURIComponent(ne).replace(G,(he,Oe)=>W[Oe]??he)}function ct(ne){return`${ne}`}class gt{constructor(he={}){if(this.updates=null,this.cloneFrom=null,this.encoder=he.encoder||new I,he.fromString){if(he.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function z(ne,he){const Oe=new Map;return ne.length>0&&ne.replace(/^\?/,"").split("&").forEach(On=>{const _i=On.indexOf("="),[Si,ho]=-1==_i?[he.decodeKey(On),""]:[he.decodeKey(On.slice(0,_i)),he.decodeValue(On.slice(_i+1))],hi=Oe.get(Si)||[];hi.push(ho),Oe.set(Si,hi)}),Oe}(he.fromString,this.encoder)}else he.fromObject?(this.map=new Map,Object.keys(he.fromObject).forEach(Oe=>{const yn=he.fromObject[Oe],On=Array.isArray(yn)?yn.map(ct):[ct(yn)];this.map.set(Oe,On)})):this.map=null}has(he){return this.init(),this.map.has(he)}get(he){this.init();const Oe=this.map.get(he);return Oe?Oe[0]:null}getAll(he){return this.init(),this.map.get(he)||null}keys(){return this.init(),Array.from(this.map.keys())}append(he,Oe){return this.clone({param:he,value:Oe,op:"a"})}appendAll(he){const Oe=[];return Object.keys(he).forEach(yn=>{const On=he[yn];Array.isArray(On)?On.forEach(_i=>{Oe.push({param:yn,value:_i,op:"a"})}):Oe.push({param:yn,value:On,op:"a"})}),this.clone(Oe)}set(he,Oe){return this.clone({param:he,value:Oe,op:"s"})}delete(he,Oe){return this.clone({param:he,value:Oe,op:"d"})}toString(){return this.init(),this.keys().map(he=>{const Oe=this.encoder.encodeKey(he);return this.map.get(he).map(yn=>Oe+"="+this.encoder.encodeValue(yn)).join("&")}).filter(he=>""!==he).join("&")}clone(he){const Oe=new gt({encoder:this.encoder});return Oe.cloneFrom=this.cloneFrom||this,Oe.updates=(this.updates||[]).concat(he),Oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(he=>this.map.set(he,this.cloneFrom.map.get(he))),this.updates.forEach(he=>{switch(he.op){case"a":case"s":const Oe=("a"===he.op?this.map.get(he.param):void 0)||[];Oe.push(ct(he.value)),this.map.set(he.param,Oe);break;case"d":if(void 0===he.value){this.map.delete(he.param);break}{let yn=this.map.get(he.param)||[];const On=yn.indexOf(ct(he.value));-1!==On&&yn.splice(On,1),yn.length>0?this.map.set(he.param,yn):this.map.delete(he.param)}}}),this.cloneFrom=this.updates=null)}}class St{constructor(){this.map=new Map}set(he,Oe){return this.map.set(he,Oe),this}get(he){return this.map.has(he)||this.map.set(he,he.defaultValue()),this.map.get(he)}delete(he){return this.map.delete(he),this}has(he){return this.map.has(he)}keys(){return this.map.keys()}}function Jt(ne){return typeof ArrayBuffer<"u"&&ne instanceof ArrayBuffer}function at(ne){return typeof Blob<"u"&&ne instanceof Blob}function Zt(ne){return typeof FormData<"u"&&ne instanceof FormData}class _t{constructor(he,Oe,yn,On){let _i;if(this.url=Oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=he.toUpperCase(),function Ht(ne){switch(ne){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||On?(this.body=void 0!==yn?yn:null,_i=On):_i=yn,_i&&(this.reportProgress=!!_i.reportProgress,this.withCredentials=!!_i.withCredentials,_i.responseType&&(this.responseType=_i.responseType),_i.headers&&(this.headers=_i.headers),_i.context&&(this.context=_i.context),_i.params&&(this.params=_i.params)),this.headers||(this.headers=new D),this.context||(this.context=new St),this.params){const Si=this.params.toString();if(0===Si.length)this.urlWithParams=Oe;else{const ho=Oe.indexOf("?");this.urlWithParams=Oe+(-1===ho?"?":hoje.set(gn,he.setHeaders[gn]),hi)),he.setParams&&(Vn=Object.keys(he.setParams).reduce((je,gn)=>je.set(gn,he.setParams[gn]),Vn)),new _t(Oe,yn,_i,{params:Vn,headers:hi,context:Gn,reportProgress:ho,responseType:On,withCredentials:Si})}}var Nt=(()=>((Nt=Nt||{})[Nt.Sent=0]="Sent",Nt[Nt.UploadProgress=1]="UploadProgress",Nt[Nt.ResponseHeader=2]="ResponseHeader",Nt[Nt.DownloadProgress=3]="DownloadProgress",Nt[Nt.Response=4]="Response",Nt[Nt.User=5]="User",Nt))();class Qt{constructor(he,Oe=200,yn="OK"){this.headers=he.headers||new D,this.status=void 0!==he.status?he.status:Oe,this.statusText=he.statusText||yn,this.url=he.url||null,this.ok=this.status>=200&&this.status<300}}class qt extends Qt{constructor(he={}){super(he),this.type=Nt.ResponseHeader}clone(he={}){return new qt({headers:he.headers||this.headers,status:void 0!==he.status?he.status:this.status,statusText:he.statusText||this.statusText,url:he.url||this.url||void 0})}}class le extends Qt{constructor(he={}){super(he),this.type=Nt.Response,this.body=void 0!==he.body?he.body:null}clone(he={}){return new le({body:void 0!==he.body?he.body:this.body,headers:he.headers||this.headers,status:void 0!==he.status?he.status:this.status,statusText:he.statusText||this.statusText,url:he.url||this.url||void 0})}}class Wt extends Qt{constructor(he){super(he,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${he.url||"(unknown url)"}`:`Http failure response for ${he.url||"(unknown url)"}: ${he.status} ${he.statusText}`,this.error=he.error||null}}function Ce(ne,he){return{body:he,headers:ne.headers,context:ne.context,observe:ne.observe,params:ne.params,reportProgress:ne.reportProgress,responseType:ne.responseType,withCredentials:ne.withCredentials}}let Ae=(()=>{class ne{constructor(Oe){this.handler=Oe}request(Oe,yn,On={}){let _i;if(Oe instanceof _t)_i=Oe;else{let hi,Vn;hi=On.headers instanceof D?On.headers:new D(On.headers),On.params&&(Vn=On.params instanceof gt?On.params:new gt({fromObject:On.params})),_i=new _t(Oe,yn,void 0!==On.body?On.body:null,{headers:hi,context:On.context,params:Vn,reportProgress:On.reportProgress,responseType:On.responseType||"json",withCredentials:On.withCredentials})}const Si=(0,v.of)(_i).pipe((0,t.b)(hi=>this.handler.handle(hi)));if(Oe instanceof _t||"events"===On.observe)return Si;const ho=Si.pipe((0,A.h)(hi=>hi instanceof le));switch(On.observe||"body"){case"body":switch(_i.responseType){case"arraybuffer":return ho.pipe((0,x.U)(hi=>{if(null!==hi.body&&!(hi.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return hi.body}));case"blob":return ho.pipe((0,x.U)(hi=>{if(null!==hi.body&&!(hi.body instanceof Blob))throw new Error("Response is not a Blob.");return hi.body}));case"text":return ho.pipe((0,x.U)(hi=>{if(null!==hi.body&&"string"!=typeof hi.body)throw new Error("Response is not a string.");return hi.body}));default:return ho.pipe((0,x.U)(hi=>hi.body))}case"response":return ho;default:throw new Error(`Unreachable: unhandled observe type ${On.observe}}`)}}delete(Oe,yn={}){return this.request("DELETE",Oe,yn)}get(Oe,yn={}){return this.request("GET",Oe,yn)}head(Oe,yn={}){return this.request("HEAD",Oe,yn)}jsonp(Oe,yn){return this.request("JSONP",Oe,{params:(new gt).append(yn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Oe,yn={}){return this.request("OPTIONS",Oe,yn)}patch(Oe,yn,On={}){return this.request("PATCH",Oe,Ce(On,yn))}post(Oe,yn,On={}){return this.request("POST",Oe,Ce(On,yn))}put(Oe,yn,On={}){return this.request("PUT",Oe,Ce(On,yn))}}return ne.\u0275fac=function(Oe){return new(Oe||ne)(p.LFG(w))},ne.\u0275prov=p.Yz7({token:ne,factory:ne.\u0275fac}),ne})();class Ne{constructor(he,Oe){this.next=he,this.interceptor=Oe}handle(he){return this.interceptor.intercept(he,this.next)}}const ze=new p.OlP("HTTP_INTERCEPTORS");let Xe=(()=>{class ne{intercept(Oe,yn){return yn.handle(Oe)}}return ne.\u0275fac=function(Oe){return new(Oe||ne)},ne.\u0275prov=p.Yz7({token:ne,factory:ne.\u0275fac}),ne})();const hn=/^\)\]\}',?\n/;let bn=(()=>{class ne{constructor(Oe){this.xhrFactory=Oe}handle(Oe){if("JSONP"===Oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(yn=>{const On=this.xhrFactory.build();if(On.open(Oe.method,Oe.urlWithParams),Oe.withCredentials&&(On.withCredentials=!0),Oe.headers.forEach((Ve,tn)=>On.setRequestHeader(Ve,tn.join(","))),Oe.headers.has("Accept")||On.setRequestHeader("Accept","application/json, text/plain, */*"),!Oe.headers.has("Content-Type")){const Ve=Oe.detectContentTypeHeader();null!==Ve&&On.setRequestHeader("Content-Type",Ve)}if(Oe.responseType){const Ve=Oe.responseType.toLowerCase();On.responseType="json"!==Ve?Ve:"text"}const _i=Oe.serializeBody();let Si=null;const ho=()=>{if(null!==Si)return Si;const Ve=On.statusText||"OK",tn=new D(On.getAllResponseHeaders()),an=function we(ne){return"responseURL"in ne&&ne.responseURL?ne.responseURL:/^X-Request-URL:/m.test(ne.getAllResponseHeaders())?ne.getResponseHeader("X-Request-URL"):null}(On)||Oe.url;return Si=new qt({headers:tn,status:On.status,statusText:Ve,url:an}),Si},hi=()=>{let{headers:Ve,status:tn,statusText:an,url:pe}=ho(),We=null;204!==tn&&(We=typeof On.response>"u"?On.responseText:On.response),0===tn&&(tn=We?200:0);let Et=tn>=200&&tn<300;if("json"===Oe.responseType&&"string"==typeof We){const Mt=We;We=We.replace(hn,"");try{We=""!==We?JSON.parse(We):null}catch(It){We=Mt,Et&&(Et=!1,We={error:It,text:We})}}Et?(yn.next(new le({body:We,headers:Ve,status:tn,statusText:an,url:pe||void 0})),yn.complete()):yn.error(new Wt({error:We,headers:Ve,status:tn,statusText:an,url:pe||void 0}))},Vn=Ve=>{const{url:tn}=ho(),an=new Wt({error:Ve,status:On.status||0,statusText:On.statusText||"Unknown Error",url:tn||void 0});yn.error(an)};let Gn=!1;const je=Ve=>{Gn||(yn.next(ho()),Gn=!0);let tn={type:Nt.DownloadProgress,loaded:Ve.loaded};Ve.lengthComputable&&(tn.total=Ve.total),"text"===Oe.responseType&&!!On.responseText&&(tn.partialText=On.responseText),yn.next(tn)},gn=Ve=>{let tn={type:Nt.UploadProgress,loaded:Ve.loaded};Ve.lengthComputable&&(tn.total=Ve.total),yn.next(tn)};return On.addEventListener("load",hi),On.addEventListener("error",Vn),On.addEventListener("timeout",Vn),On.addEventListener("abort",Vn),Oe.reportProgress&&(On.addEventListener("progress",je),null!==_i&&On.upload&&On.upload.addEventListener("progress",gn)),On.send(_i),yn.next({type:Nt.Sent}),()=>{On.removeEventListener("error",Vn),On.removeEventListener("abort",Vn),On.removeEventListener("load",hi),On.removeEventListener("timeout",Vn),Oe.reportProgress&&(On.removeEventListener("progress",je),null!==_i&&On.upload&&On.upload.removeEventListener("progress",gn)),On.readyState!==On.DONE&&On.abort()}})}}return ne.\u0275fac=function(Oe){return new(Oe||ne)(p.LFG(d.JF))},ne.\u0275prov=p.Yz7({token:ne,factory:ne.\u0275fac}),ne})();const Ze=new p.OlP("XSRF_COOKIE_NAME"),dn=new p.OlP("XSRF_HEADER_NAME");class kn{}let ri=(()=>{class ne{constructor(Oe,yn,On){this.doc=Oe,this.platform=yn,this.cookieName=On,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Oe=this.doc.cookie||"";return Oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,d.Mx)(Oe,this.cookieName),this.lastCookieString=Oe),this.lastToken}}return ne.\u0275fac=function(Oe){return new(Oe||ne)(p.LFG(d.K0),p.LFG(p.Lbi),p.LFG(Ze))},ne.\u0275prov=p.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),Ee=(()=>{class ne{constructor(Oe,yn){this.tokenService=Oe,this.headerName=yn}intercept(Oe,yn){const On=Oe.url.toLowerCase();if("GET"===Oe.method||"HEAD"===Oe.method||On.startsWith("http://")||On.startsWith("https://"))return yn.handle(Oe);const _i=this.tokenService.getToken();return null!==_i&&!Oe.headers.has(this.headerName)&&(Oe=Oe.clone({headers:Oe.headers.set(this.headerName,_i)})),yn.handle(Oe)}}return ne.\u0275fac=function(Oe){return new(Oe||ne)(p.LFG(kn),p.LFG(dn))},ne.\u0275prov=p.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),Ft=(()=>{class ne{constructor(Oe,yn){this.backend=Oe,this.injector=yn,this.chain=null}handle(Oe){if(null===this.chain){const yn=this.injector.get(ze,[]);this.chain=yn.reduceRight((On,_i)=>new Ne(On,_i),this.backend)}return this.chain.handle(Oe)}}return ne.\u0275fac=function(Oe){return new(Oe||ne)(p.LFG(k),p.LFG(p.zs3))},ne.\u0275prov=p.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),tt=(()=>{class ne{static disable(){return{ngModule:ne,providers:[{provide:Ee,useClass:Xe}]}}static withOptions(Oe={}){return{ngModule:ne,providers:[Oe.cookieName?{provide:Ze,useValue:Oe.cookieName}:[],Oe.headerName?{provide:dn,useValue:Oe.headerName}:[]]}}}return ne.\u0275fac=function(Oe){return new(Oe||ne)},ne.\u0275mod=p.oAB({type:ne}),ne.\u0275inj=p.cJS({providers:[Ee,{provide:ze,useExisting:Ee,multi:!0},{provide:kn,useClass:ri},{provide:Ze,useValue:"XSRF-TOKEN"},{provide:dn,useValue:"X-XSRF-TOKEN"}]}),ne})(),et=(()=>{class ne{}return ne.\u0275fac=function(Oe){return new(Oe||ne)},ne.\u0275mod=p.oAB({type:ne}),ne.\u0275inj=p.cJS({providers:[Ae,{provide:w,useClass:Ft},bn,{provide:k,useExisting:bn}],imports:[tt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ne})()},94650:(rt,it,b)=>{"use strict";b.d(it,{$8M:()=>Hd,$Z:()=>_s,AFp:()=>hC,ALo:()=>Jx,AaK:()=>w,AsE:()=>_f,B6R:()=>We,BQk:()=>Eh,CHM:()=>xu,CRH:()=>eC,CZH:()=>s3,CqO:()=>I0,D6c:()=>i8,DdM:()=>Bx,Dn7:()=>rb,EJc:()=>yC,EiD:()=>Rg,EpF:()=>Dv,F$t:()=>Z4,F4k:()=>w4,FYo:()=>J3,FiY:()=>nc,G48:()=>VC,Gf:()=>fb,GfV:()=>Xg,GkF:()=>l2,Gpc:()=>P,Gre:()=>Np,HOy:()=>B0,Hsn:()=>Ih,Ikx:()=>I4,JOm:()=>C1,JVY:()=>Vf,Jf7:()=>Eu,KtG:()=>$s,L6k:()=>N_,LAX:()=>q3,LFG:()=>Sr,LSH:()=>Hg,Lbi:()=>vC,Lck:()=>Gh,MAs:()=>u5,MGl:()=>u2,MMx:()=>Cf,NdJ:()=>M1,O4$:()=>Ei,OlP:()=>wr,Oqu:()=>S4,PXZ:()=>NC,Q6J:()=>A4,QGY:()=>e1,QP$:()=>bi,QbO:()=>Ob,Qsj:()=>$g,R0b:()=>r1,RDi:()=>Pu,Rgc:()=>Wh,SBq:()=>j_,Sil:()=>wC,Suo:()=>tC,TTD:()=>ou,TgZ:()=>y4,Tol:()=>Ho,Udp:()=>v5,VKq:()=>X5,W1O:()=>gb,WFA:()=>Ep,WLB:()=>Yx,XFs:()=>Ft,Xpm:()=>pe,Xts:()=>ia,Y36:()=>Ar,YKP:()=>Y4,YNc:()=>C4,Yjl:()=>Zn,Yz7:()=>ue,Z0I:()=>on,ZZ4:()=>h6,_Bn:()=>G5,_UZ:()=>E0,_Vd:()=>V_,_c5:()=>QA,_uU:()=>P4,aQg:()=>ng,c2e:()=>CC,cJS:()=>ce,cg1:()=>wi,d8E:()=>D5,dDg:()=>LC,dqk:()=>On,dwT:()=>ex,eBb:()=>jf,eFA:()=>ap,ekj:()=>R0,eoX:()=>OC,evT:()=>G2,f3M:()=>_p,g9A:()=>bC,gM2:()=>G4,h0i:()=>xf,hGG:()=>WA,hYB:()=>M4,hij:()=>rc,iGM:()=>X4,ifc:()=>yn,ip1:()=>Sb,jDz:()=>Q5,kL8:()=>H,kYT:()=>Me,kcU:()=>g1,lG2:()=>He,lcZ:()=>J4,lnq:()=>y5,lqb:()=>to,lri:()=>SC,mCW:()=>T1,n5z:()=>tc,n_E:()=>Sd,oAB:()=>It,oJD:()=>Gf,oxw:()=>Sv,pB0:()=>z1,q3G:()=>ic,qLn:()=>sm,qOj:()=>ym,qZA:()=>Oh,qzn:()=>Jd,rWj:()=>Rb,s9C:()=>F0,sBO:()=>GC,sIi:()=>fi,s_b:()=>X0,soG:()=>l3,tb:()=>xC,tp0:()=>F1,uIk:()=>Fu,uOi:()=>zg,vHH:()=>W,vpe:()=>Pd,wAp:()=>Ma,xi3:()=>$0,xp6:()=>sh,ynx:()=>T4,z2F:()=>_3,z3N:()=>y1,zSh:()=>rs,zs3:()=>pm});var d=b(8929),p=b(42654),v=b(56498),T=b(36787),t=b(12474);function A(h){for(let g in h)if(h[g]===A)return g;throw Error("Could not find renamed property on target object.")}function x(h,g){for(const U in g)g.hasOwnProperty(U)&&!h.hasOwnProperty(U)&&(h[U]=g[U])}function w(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(w).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const g=h.toString();if(null==g)return""+g;const U=g.indexOf("\n");return-1===U?g:g.substring(0,U)}function k(h,g){return null==h||""===h?null===g?"":g:null==g||""===g?h:h+" "+g}const D=A({__forward_ref__:A});function P(h){return h.__forward_ref__=P,h.toString=function(){return w(this())},h}function I(h){return z(h)?h():h}function z(h){return"function"==typeof h&&h.hasOwnProperty(D)&&h.__forward_ref__===P}class W extends Error{constructor(g,U){super(function ot(h,g){return`NG0${Math.abs(h)}${g?": "+g.trim():""}`}(g,U)),this.code=g}}function ct(h){return"string"==typeof h?h:null==h?"":String(h)}function Jt(h,g){throw new W(-201,!1)}function Xe(h,g){null==h&&function ie(h,g,U,O){throw new Error(`ASSERTION ERROR: ${h}`+(null==O?"":` [Expected=> ${U} ${O} ${g} <=Actual]`))}(g,h,null,"!=")}function ue(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function ce(h){return{providers:h.providers||[],imports:h.imports||[]}}function Le(h){return hn(h,dn)||hn(h,ri)}function on(h){return null!==Le(h)}function hn(h,g){return h.hasOwnProperty(g)?h[g]:null}function Ze(h){return h&&(h.hasOwnProperty(kn)||h.hasOwnProperty(Ee))?h[kn]:null}const dn=A({\u0275prov:A}),kn=A({\u0275inj:A}),ri=A({ngInjectableDef:A}),Ee=A({ngInjectorDef:A});var Ft=(()=>((Ft=Ft||{})[Ft.Default=0]="Default",Ft[Ft.Host=1]="Host",Ft[Ft.Self=2]="Self",Ft[Ft.SkipSelf=4]="SkipSelf",Ft[Ft.Optional=8]="Optional",Ft))();let vt;function tt(h){const g=vt;return vt=h,g}function et(h,g,U){const O=Le(h);return O&&"root"==O.providedIn?void 0===O.value?O.value=O.factory():O.value:U&Ft.Optional?null:void 0!==g?g:void Jt(w(h))}function Bt(h){return{toString:h}.toString()}var ne=(()=>((ne=ne||{})[ne.OnPush=0]="OnPush",ne[ne.Default=1]="Default",ne))(),yn=(()=>{return(h=yn||(yn={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",yn;var h})();const On=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ho={},hi=[],Vn=A({\u0275cmp:A}),Gn=A({\u0275dir:A}),je=A({\u0275pipe:A}),gn=A({\u0275mod:A}),Ve=A({\u0275fac:A}),tn=A({__NG_ELEMENT_ID__:A});let an=0;function pe(h){return Bt(()=>{const U=!0===h.standalone,O={},q={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:O,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===ne.OnPush,directiveDefs:null,pipeDefs:null,standalone:U,dependencies:U&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||hi,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||yn.Emulated,id:"c"+an++,styles:h.styles||hi,_:null,setInput:null,schemas:h.schemas||null,tView:null},V=h.dependencies,ut=h.features;return q.inputs=en(h.inputs,O),q.outputs=en(h.outputs),ut&&ut.forEach(kt=>kt(q)),q.directiveDefs=V?()=>("function"==typeof V?V():V).map(Et).filter(Mt):null,q.pipeDefs=V?()=>("function"==typeof V?V():V).map(Fn).filter(Mt):null,q})}function We(h,g,U){const O=h.\u0275cmp;O.directiveDefs=()=>("function"==typeof g?g():g).map(Et),O.pipeDefs=()=>("function"==typeof U?U():U).map(Fn)}function Et(h){return ve(h)||Be(h)}function Mt(h){return null!==h}function It(h){return Bt(()=>({type:h.type,bootstrap:h.bootstrap||hi,declarations:h.declarations||hi,imports:h.imports||hi,exports:h.exports||hi,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function Me(h,g){return Bt(()=>{const U=go(h,!0);U.declarations=g.declarations||hi,U.imports=g.imports||hi,U.exports=g.exports||hi})}function en(h,g){if(null==h)return ho;const U={};for(const O in h)if(h.hasOwnProperty(O)){let q=h[O],V=q;Array.isArray(q)&&(V=q[1],q=q[0]),U[q]=O,g&&(g[q]=V)}return U}const He=pe;function Zn(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function ve(h){return h[Vn]||null}function Be(h){return h[Gn]||null}function Fn(h){return h[je]||null}function bi(h){const g=ve(h)||Be(h)||Fn(h);return null!==g&&g.standalone}function go(h,g){const U=h[gn]||null;if(!U&&!0===g)throw new Error(`Type ${w(h)} does not have '\u0275mod' property.`);return U}const Q=18;function Gr(h){return Array.isArray(h)&&"object"==typeof h[1]}function Ir(h){return Array.isArray(h)&&!0===h[1]}function Pc(h){return 0!=(8&h.flags)}function rl(h){return 2==(2&h.flags)}function Sc(h){return 1==(1&h.flags)}function Fs(h){return null!==h.template}function Lc(h){return 0!=(256&h[2])}function ks(h,g){return h.hasOwnProperty(Ve)?h[Ve]:null}class zl{constructor(g,U,O){this.previousValue=g,this.currentValue=U,this.firstChange=O}isFirstChange(){return this.firstChange}}function ou(){return Bl}function Bl(h){return h.type.prototype.ngOnChanges&&(h.setInput=ar),qo}function qo(){const h=qu(this),g=h?.current;if(g){const U=h.previous;if(U===ho)h.previous=g;else for(let O in g)U[O]=g[O];h.current=null,this.ngOnChanges(g)}}function ar(h,g,U,O){const q=qu(h)||function Yl(h,g){return h[cc]=g}(h,{previous:ho,current:null}),V=q.current||(q.current={}),ut=q.previous,kt=this.declaredInputs[U],jt=ut[kt];V[kt]=new zl(jt&&jt.currentValue,g,ut===ho),h[O]=g}ou.ngInherit=!0;const cc="__ngSimpleChanges__";function qu(h){return h[cc]||null}function pr(h){for(;Array.isArray(h);)h=h[0];return h}function Ac(h,g){return pr(g[h])}function rr(h,g){return pr(g[h.index])}function Ps(h,g){return h.data[g]}function qs(h,g){return h[g]}function xs(h,g){const U=g[h];return Gr(U)?U:U[0]}function Rs(h){return 64==(64&h[2])}function lc(h,g){return null==g?null:h[g]}function Ws(h){h[Q]=0}function Fr(h,g){h[5]+=g;let U=h,O=h[3];for(;null!==O&&(1===g&&1===U[5]||-1===g&&0===U[5]);)O[5]+=g,U=O,O=O[3]}const aa={lFrame:ft(null),bindingsEnabled:!0};function yc(){return aa.bindingsEnabled}function Yi(){return aa.lFrame.lView}function Da(){return aa.lFrame.tView}function xu(h){return aa.lFrame.contextLView=h,h[8]}function $s(h){return aa.lFrame.contextLView=null,h}function Pr(){let h=_e();for(;null!==h&&64===h.type;)h=h.parent;return h}function _e(){return aa.lFrame.currentTNode}function Yt(h,g){const U=aa.lFrame;U.currentTNode=h,U.isParent=g}function st(){return aa.lFrame.isParent}function ki(){aa.lFrame.isParent=!1}function Nr(){const h=aa.lFrame;let g=h.bindingRootIndex;return-1===g&&(g=h.bindingRootIndex=h.tView.bindingStartIndex),g}function qr(){return aa.lFrame.bindingIndex}function er(){return aa.lFrame.bindingIndex++}function Ul(h){const g=aa.lFrame,U=g.bindingIndex;return g.bindingIndex=g.bindingIndex+h,U}function Vp(h,g){const U=aa.lFrame;U.bindingIndex=U.bindingRootIndex=h,ru(g)}function ru(h){aa.lFrame.currentDirectiveIndex=h}function Ic(h){const g=aa.lFrame.currentDirectiveIndex;return-1===g?null:h[g]}function cl(){return aa.lFrame.currentQueryIndex}function Zl(h){aa.lFrame.currentQueryIndex=h}function pp(h){const g=h[1];return 2===g.type?g.declTNode:1===g.type?h[6]:null}function Ml(h,g,U){if(U&Ft.SkipSelf){let q=g,V=h;for(;!(q=q.parent,null!==q||U&Ft.Host||(q=pp(V),null===q||(V=V[15],10&q.type))););if(null===q)return!1;g=q,h=V}const O=aa.lFrame=Bi();return O.currentTNode=g,O.lView=h,!0}function ll(h){const g=Bi(),U=h[1];aa.lFrame=g,g.currentTNode=U.firstChild,g.lView=h,g.tView=U,g.contextLView=h,g.bindingIndex=U.bindingStartIndex,g.inI18n=!1}function Bi(){const h=aa.lFrame,g=null===h?null:h.child;return null===g?ft(h):g}function ft(h){const g={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:h,child:null,inI18n:!1};return null!==h&&(h.child=g),g}function su(){const h=aa.lFrame;return aa.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const Cu=su;function wa(){const h=su();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function Rr(){return aa.lFrame.selectedIndex}function ws(h){aa.lFrame.selectedIndex=h}function Ra(){const h=aa.lFrame;return Ps(h.tView,h.selectedIndex)}function Ei(){aa.lFrame.currentNamespace="svg"}function g1(){!function jl(){aa.lFrame.currentNamespace=null}()}function Pi(h,g){for(let U=g.directiveStart,O=g.directiveEnd;U=O)break}else g[jt]<0&&(h[Q]+=65536),(kt>11>16&&(3&h[2])===g){h[2]+=2048;try{V.call(kt)}finally{}}}else try{V.call(kt)}finally{}}class Au{constructor(g,U,O){this.factory=g,this.resolving=!1,this.canSeeViewProviders=U,this.injectImpl=O}}function Ke(h,g,U){let O=0;for(;Og){ut=V-1;break}}}for(;V>16}(h),O=g;for(;U>0;)O=O[15],U--;return O}let yi=!0;function Ti(h){const g=yi;return yi=h,g}let ga=0;const ra={};function ts(h,g){const U=es(h,g);if(-1!==U)return U;const O=g[1];O.firstCreatePass&&(h.injectorIndex=g.length,Hs(O.data,h),Hs(g,null),Hs(O.blueprint,null));const q=ns(h,g),V=h.injectorIndex;if(nn(q)){const ut=Cn(q),kt=$n(q,g),jt=kt[1].data;for(let ye=0;ye<8;ye++)g[V+ye]=kt[ut+ye]|jt[ut+ye]}return g[V+8]=q,V}function Hs(h,g){h.push(0,0,0,0,0,0,0,0,g)}function es(h,g){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===g[h.injectorIndex+8]?-1:h.injectorIndex}function ns(h,g){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let U=0,O=null,q=g;for(;null!==q;){if(O=Ss(q),null===O)return-1;if(U++,q=q[15],-1!==O.injectorIndex)return O.injectorIndex|U<<16}return-1}function us(h,g,U){!function fa(h,g,U){let O;"string"==typeof U?O=U.charCodeAt(0)||0:U.hasOwnProperty(tn)&&(O=U[tn]),null==O&&(O=U[tn]=ga++);const q=255&O;g.data[h+(q>>5)]|=1<=0?255&g:Tc:g}(U);if("function"==typeof V){if(!Ml(g,h,O))return O&Ft.Host?Xs(q,0,O):Fc(g,U,O,q);try{const ut=V(O);if(null!=ut||O&Ft.Optional)return ut;Jt()}finally{Cu()}}else if("number"==typeof V){let ut=null,kt=es(h,g),jt=-1,ye=O&Ft.Host?g[16][6]:null;for((-1===kt||O&Ft.SkipSelf)&&(jt=-1===kt?ns(h,g):g[kt+8],-1!==jt&&Ka(O,!1)?(ut=g[1],kt=Cn(jt),g=$n(jt,g)):kt=-1);-1!==kt;){const Qe=g[1];if(jp(V,kt,Qe.data)){const An=sr(kt,g,U,ut,O,ye);if(An!==ra)return An}jt=g[kt+8],-1!==jt&&Ka(O,g[1].data[kt+8]===ye)&&jp(V,kt,g)?(ut=Qe,kt=Cn(jt),g=$n(jt,g)):kt=-1}}return q}function sr(h,g,U,O,q,V){const ut=g[1],kt=ut.data[h+8],Qe=cr(kt,ut,U,null==O?rl(kt)&&yi:O!=ut&&0!=(3&kt.type),q&Ft.Host&&V===kt);return null!==Qe?Cs(g,ut,Qe,kt):ra}function cr(h,g,U,O,q){const V=h.providerIndexes,ut=g.data,kt=1048575&V,jt=h.directiveStart,Qe=V>>20,si=q?kt+Qe:h.directiveEnd;for(let Ai=O?kt:kt+Qe;Ai=jt&&Vi.type===U)return Ai}if(q){const Ai=ut[jt];if(Ai&&Fs(Ai)&&Ai.type===U)return jt}return null}function Cs(h,g,U,O){let q=h[U];const V=g.data;if(function Ks(h){return h instanceof Au}(q)){const ut=q;ut.resolving&&function Pt(h,g){const U=g?`. Dependency path: ${g.join(" > ")} > ${h}`:"";throw new W(-200,`Circular dependency in DI detected for ${h}${U}`)}(function gt(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():ct(h)}(V[U]));const kt=Ti(ut.canSeeViewProviders);ut.resolving=!0;const jt=ut.injectImpl?tt(ut.injectImpl):null;Ml(h,O,Ft.Default);try{q=h[U]=ut.factory(void 0,V,h,O),g.firstCreatePass&&U>=O.directiveStart&&function Di(h,g,U){const{ngOnChanges:O,ngOnInit:q,ngDoCheck:V}=g.type.prototype;if(O){const ut=Bl(g);(U.preOrderHooks||(U.preOrderHooks=[])).push(h,ut),(U.preOrderCheckHooks||(U.preOrderCheckHooks=[])).push(h,ut)}q&&(U.preOrderHooks||(U.preOrderHooks=[])).push(0-h,q),V&&((U.preOrderHooks||(U.preOrderHooks=[])).push(h,V),(U.preOrderCheckHooks||(U.preOrderCheckHooks=[])).push(h,V))}(U,V[U],g)}finally{null!==jt&&tt(jt),Ti(kt),ut.resolving=!1,Cu()}}return q}function jp(h,g,U){return!!(U[g+(h>>5)]&1<{const g=h.prototype.constructor,U=g[Ve]||yu(g),O=Object.prototype;let q=Object.getPrototypeOf(h.prototype).constructor;for(;q&&q!==O;){const V=q[Ve]||yu(q);if(V&&V!==U)return V;q=Object.getPrototypeOf(q)}return V=>new V})}function yu(h){return z(h)?()=>{const g=yu(I(h));return g&&g()}:ks(h)}function Ss(h){const g=h[1],U=g.type;return 2===U?g.declTNode:1===U?h[6]:null}function Hd(h){return function Hr(h,g){if("class"===g)return h.classes;if("style"===g)return h.styles;const U=h.attrs;if(U){const O=U.length;let q=0;for(;q{const O=function os(h){return function(...U){if(h){const O=h(...U);for(const q in O)this[q]=O[q]}}}(g);function q(...V){if(this instanceof q)return O.apply(this,V),this;const ut=new q(...V);return kt.annotation=ut,kt;function kt(jt,ye,Qe){const An=jt.hasOwnProperty(Bu)?jt[Bu]:Object.defineProperty(jt,Bu,{value:[]})[Bu];for(;An.length<=Qe;)An.push(null);return(An[Qe]=An[Qe]||[]).push(ut),jt}}return U&&(q.prototype=Object.create(U.prototype)),q.prototype.ngMetadataName=h,q.annotationCls=q,q})}class wr{constructor(g,U){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof U?this.__NG_ELEMENT_ID__=U:void 0!==U&&(this.\u0275prov=ue({token:this,providedIn:U.providedIn||"root",factory:U.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Jo(h,g){void 0===g&&(g=h);for(let U=0;UArray.isArray(U)?bd(U,g):g(U))}function x_(h,g,U){g>=h.length?h.push(U):h.splice(g,0,U)}function mp(h,g){return g>=h.length-1?h.pop():h.splice(g,1)[0]}function zd(h,g){const U=[];for(let O=0;O=0?h[1|O]=U:(O=~O,function At(h,g,U,O){let q=h.length;if(q==g)h.push(U,O);else if(1===q)h.push(O,h[0]),h[0]=U;else{for(q--,h.push(h[q-1],h[q]);q>g;)h[q]=h[q-2],q--;h[g]=U,h[g+1]=O}}(h,O,g,U)),O}function Se(h,g){const U=Dn(h,g);if(U>=0)return h[1|U]}function Dn(h,g){return function Ii(h,g,U){let O=0,q=h.length>>U;for(;q!==O;){const V=O+(q-O>>1),ut=h[V<g?q=V:O=V+1}return~(q<((C1=C1||{})[C1.Important=1]="Important",C1[C1.DashCase=2]="DashCase",C1))();const $p=new Map;let Ff=0;const Mu="__ngContext__";function Ls(h,g){Gr(g)?(h[Mu]=g[20],function Ug(h){$p.set(h[20],h)}(g)):h[Mu]=g}function qf(h,g){return undefined(h,g)}function k_(h){const g=h[3];return Ir(g)?g[3]:g}function Rf(h){return Lg(h[13])}function O2(h){return Lg(h[4])}function Lg(h){for(;null!==h&&!Ir(h);)h=h[4];return h}function Du(h,g,U,O,q){if(null!=O){let V,ut=!1;Ir(O)?V=O:Gr(O)&&(ut=!0,O=O[0]);const kt=pr(O);0===h&&null!==U?null==q?ps(g,U,kt):Ad(g,U,kt,q||null,!0):1===h&&null!==U?Ad(g,U,kt,q||null,!0):2===h?function Td(h,g,U){const O=Xp(h,g);O&&function Eg(h,g,U,O){h.removeChild(g,U,O)}(h,O,g,U)}(g,kt,ut):3===h&&g.destroyNode(kt),null!=V&&function Zc(h,g,U,O,q){const V=U[7];V!==pr(U)&&Du(g,h,O,V,q);for(let kt=10;kt0&&(h[U-1][4]=O[4]);const V=mp(h,10+g);!function zf(h,g){ms(h,g,g[11],2,null,null),g[0]=null,g[6]=null}(O[1],O);const ut=V[19];null!==ut&&ut.detachView(V[1]),O[3]=null,O[4]=null,O[2]&=-65}return O}function Za(h,g){if(!(128&g[2])){const U=g[11];U.destroyNode&&ms(h,g,U,3,null,null),function Fm(h){let g=h[13];if(!g)return Us(h[1],h);for(;g;){let U=null;if(Gr(g))U=g[13];else{const O=g[10];O&&(U=O)}if(!U){for(;g&&!g[4]&&g!==h;)Gr(g)&&Us(g[1],g),g=g[3];null===g&&(g=h),Gr(g)&&Us(g[1],g),U=g&&g[4]}g=U}}(g)}}function Us(h,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function P_(h,g){let U;if(null!=h&&null!=(U=h.destroyHooks))for(let O=0;O=0?O[q=ye]():O[q=-ye].unsubscribe(),V+=2}else{const ut=O[q=U[V+1]];U[V].call(ut)}if(null!==O){for(let V=q+1;Vh,createScript:h=>h,createScriptURL:h=>h})}catch{}return jd}()?.createHTML(h)||h}function Pu(h){H1=h}function Pl(){if(void 0===F2&&(F2=null,On.trustedTypes))try{F2=On.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch{}return F2}function Gl(h){return Pl()?.createHTML(h)||h}function q2(h){return Pl()?.createScriptURL(h)||h}class Gu{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class F3 extends Gu{getTypeName(){return"HTML"}}class E_ extends Gu{getTypeName(){return"Style"}}class I_ extends Gu{getTypeName(){return"Script"}}class yp extends Gu{getTypeName(){return"URL"}}class N3 extends Gu{getTypeName(){return"ResourceURL"}}function y1(h){return h instanceof Gu?h.changingThisBreaksApplicationSecurity:h}function Jd(h,g){const U=function F_(h){return h instanceof Gu&&h.getTypeName()||null}(h);if(null!=U&&U!==g){if("ResourceURL"===U&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${U} (see https://g.co/ng/security#xss)`)}return U===g}function Vf(h){return new F3(h)}function N_(h){return new E_(h)}function jf(h){return new I_(h)}function q3(h){return new yp(h)}function z1(h){return new N3(h)}class Qu{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const U=(new window.DOMParser).parseFromString(dc(g),"text/html").body;return null===U?this.inertDocumentHelper.getInertBodyElement(g):(U.removeChild(U.firstChild),U)}catch{return null}}}class R2{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const U=this.inertDocument.createElement("html");this.inertDocument.appendChild(U);const O=this.inertDocument.createElement("body");U.appendChild(O)}}getInertBodyElement(g){const U=this.inertDocument.createElement("template");if("content"in U)return U.innerHTML=dc(g),U;const O=this.inertDocument.createElement("body");return O.innerHTML=dc(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(O),O}stripCustomNsAttrs(g){const U=g.attributes;for(let q=U.length-1;0"),!0}endElement(g){const U=g.nodeName.toLowerCase();Jf.hasOwnProperty(U)&&!Su.hasOwnProperty(U)&&(this.buf.push(""))}chars(g){this.buf.push(qg(g))}checkClobberedElement(g,U){if(U&&(g.compareDocumentPosition(U)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return U}}const z3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wp=/([^\#-~ |!])/g;function qg(h){return h.replace(/&/g,"&").replace(z3,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(wp,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let H_;function Rg(h,g){let U=null;try{H_=H_||function Tp(h){const g=new R2(h);return function pc(){try{return!!(new window.DOMParser).parseFromString(dc(""),"text/html")}catch{return!1}}()?new Qu(g):g}(h);let O=g?String(g):"";U=H_.getInertBodyElement(O);let q=5,V=O;do{if(0===q)throw new Error("Failed to sanitize html because the input is unstable");q--,O=V,V=U.innerHTML,U=H_.getInertBodyElement(O)}while(O!==V);return dc((new Ng).sanitizeChildren(H2(U)||U))}finally{if(U){const O=H2(U)||U;for(;O.firstChild;)O.removeChild(O.firstChild)}}}function H2(h){return"content"in h&&function im(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var ic=(()=>((ic=ic||{})[ic.NONE=0]="NONE",ic[ic.HTML=1]="HTML",ic[ic.STYLE=2]="STYLE",ic[ic.SCRIPT=3]="SCRIPT",ic[ic.URL=4]="URL",ic[ic.RESOURCE_URL=5]="RESOURCE_URL",ic))();function Gf(h){const g=B2();return g?Gl(g.sanitize(ic.HTML,h)||""):Jd(h,"HTML")?Gl(y1(h)):Rg(function zm(){return void 0!==H1?H1:typeof document<"u"?document:void 0}(),ct(h))}function Hg(h){const g=B2();return g?g.sanitize(ic.URL,h)||"":Jd(h,"URL")?y1(h):T1(ct(h))}function zg(h){const g=B2();if(g)return q2(g.sanitize(ic.RESOURCE_URL,h)||"");if(Jd(h,"ResourceURL"))return q2(y1(h));throw new W(904,!1)}function B2(){const h=Yi();return h&&h[12]}const ia=new wr("ENVIRONMENT_INITIALIZER"),Y3=new wr("INJECTOR",-1),z_=new wr("INJECTOR_DEF_TYPES");class w1{get(g,U=Pn){if(U===Pn){const O=new Error(`NullInjectorError: No provider for ${w(g)}!`);throw O.name="NullInjectorError",O}return U}}function Up(...h){return{\u0275providers:mc(0,h)}}function mc(h,...g){const U=[],O=new Set;let q;return bd(g,V=>{const ut=V;Vg(ut,U,[],O)&&(q||(q=[]),q.push(ut))}),void 0!==q&&Yg(q,U),U}function Yg(h,g){for(let U=0;U{g.push(V)})}}function Vg(h,g,U,O){if(!(h=I(h)))return!1;let q=null,V=Ze(h);const ut=!V&&ve(h);if(V||ut){if(ut&&!ut.standalone)return!1;q=h}else{const jt=h.ngModule;if(V=Ze(jt),!V)return!1;q=jt}const kt=O.has(q);if(ut){if(kt)return!1;if(O.add(q),ut.dependencies){const jt="function"==typeof ut.dependencies?ut.dependencies():ut.dependencies;for(const ye of jt)Vg(ye,g,U,O)}}else{if(!V)return!1;{if(null!=V.imports&&!kt){let ye;O.add(q);try{bd(V.imports,Qe=>{Vg(Qe,g,U,O)&&(ye||(ye=[]),ye.push(Qe))})}finally{}void 0!==ye&&Yg(ye,g)}if(!kt){const ye=ks(q)||(()=>new q);g.push({provide:q,useFactory:ye,deps:hi},{provide:z_,useValue:q,multi:!0},{provide:ia,useValue:()=>Sr(q),multi:!0})}const jt=V.providers;null==jt||kt||bd(jt,Qe=>{g.push(Qe)})}}return q!==h&&void 0!==h.providers}const Wf=A({provide:String,useValue:A});function U1(h){return null!==h&&"object"==typeof h&&Wf in h}function oc(h){return"function"==typeof h}const rs=new wr("Set Injector scope."),Ku={},Jr={};let Gd;function B1(){return void 0===Gd&&(Gd=new w1),Gd}class to{}class Y1 extends to{constructor(g,U,O,q){super(),this.parent=U,this.source=O,this.scopes=q,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Xf(g,ut=>this.processProvider(ut)),this.records.set(Y3,Li(void 0,this)),q.has("environment")&&this.records.set(to,Li(void 0,this));const V=this.records.get(rs);null!=V&&"string"==typeof V.value&&this.scopes.add(V.value),this.injectorDefTypes=new Set(this.get(z_.multi,hi,Ft.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const U=wc(this),O=tt(void 0);try{return g()}finally{wc(U),tt(O)}}get(g,U=Pn,O=Ft.Default){this.assertNotDestroyed();const q=wc(this),V=tt(void 0);try{if(!(O&Ft.SkipSelf)){let kt=this.records.get(g);if(void 0===kt){const jt=function $f(h){return"function"==typeof h||"object"==typeof h&&h instanceof wr}(g)&&Le(g);kt=jt&&this.injectableDefInScope(jt)?Li(Ym(g),Ku):null,this.records.set(g,kt)}if(null!=kt)return this.hydrate(g,kt)}return(O&Ft.Self?B1():this.parent).get(g,U=O&Ft.Optional&&U===Pn?null:U)}catch(ut){if("NullInjectorError"===ut.name){if((ut[As]=ut[As]||[]).unshift(w(g)),q)throw ut;return function I1(h,g,U,O){const q=h[As];throw g[C_]&&q.unshift(g[C_]),h.message=function Cg(h,g,U,O=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let q=w(g);if(Array.isArray(g))q=g.map(w).join(" -> ");else if("object"==typeof g){let V=[];for(let ut in g)if(g.hasOwnProperty(ut)){let kt=g[ut];V.push(ut+":"+("string"==typeof kt?JSON.stringify(kt):w(kt)))}q=`{${V.join(", ")}}`}return`${U}${O?"("+O+")":""}[${q}]: ${h.replace(Zo,"\n ")}`}("\n"+h.message,q,U,O),h.ngTokenPath=q,h[As]=null,h}(ut,g,"R3InjectorError",this.source)}throw ut}finally{tt(V),wc(q)}}resolveInjectorInitializers(){const g=wc(this),U=tt(void 0);try{const O=this.get(ia.multi,hi,Ft.Self);for(const q of O)q()}finally{wc(g),tt(U)}}toString(){const g=[],U=this.records;for(const O of U.keys())g.push(w(O));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new W(205,!1)}processProvider(g){let U=oc(g=I(g))?g:I(g&&g.provide);const O=function rm(h){return U1(h)?Li(void 0,h.useValue):Li(Vm(h),Ku)}(g);if(oc(g)||!0!==g.multi)this.records.get(U);else{let q=this.records.get(U);q||(q=Li(void 0,Ku,!0),q.factory=()=>Bd(q.multi),this.records.set(U,q)),U=g,q.multi.push(g)}this.records.set(U,O)}hydrate(g,U){return U.value===Ku&&(U.value=Jr,U.value=U.factory()),"object"==typeof U.value&&U.value&&function j3(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(U.value)&&this._ngOnDestroyHooks.add(U.value),U.value}injectableDefInScope(g){if(!g.providedIn)return!1;const U=I(g.providedIn);return"string"==typeof U?"any"===U||this.scopes.has(U):this.injectorDefTypes.has(U)}}function Ym(h){const g=Le(h),U=null!==g?g.factory:ks(h);if(null!==U)return U;if(h instanceof wr)throw new W(204,!1);if(h instanceof Function)return function B_(h){const g=h.length;if(g>0)throw zd(g,"?"),new W(204,!1);const U=function we(h){const g=h&&(h[dn]||h[ri]);if(g){const U=function bn(h){if(h.hasOwnProperty("name"))return h.name;const g=(""+h).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${U}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${U}" class.`),g}return null}(h);return null!==U?()=>U.factory(h):()=>new h}(h);throw new W(204,!1)}function Vm(h,g,U){let O;if(oc(h)){const q=I(h);return ks(q)||Ym(q)}if(U1(h))O=()=>I(h.useValue);else if(function Zp(h){return!(!h||!h.useFactory)}(h))O=()=>h.useFactory(...Bd(h.deps||[]));else if(function jg(h){return!(!h||!h.useExisting)}(h))O=()=>Sr(I(h.useExisting));else{const q=I(h&&(h.useClass||h.provide));if(!function V3(h){return!!h.deps}(h))return ks(q)||Ym(q);O=()=>new q(...Bd(h.deps))}return O}function Li(h,g,U=!1){return{factory:h,value:g,multi:U?[]:void 0}}function Kf(h){return!!h.\u0275providers}function Xf(h,g){for(const U of h)Array.isArray(U)?Xf(U,g):Kf(U)?Xf(U.\u0275providers,g):g(U)}class Jg{}class Gg{resolveComponentFactory(g){throw function Y2(h){const g=Error(`No component factory found for ${w(h)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=h,g}(g)}}let V_=(()=>{class h{}return h.NULL=new Gg,h})();function Qg(){return jm(Pr(),Yi())}function jm(h,g){return new j_(rr(h,g))}let j_=(()=>{class h{constructor(U){this.nativeElement=U}}return h.__NG_ELEMENT_ID__=Qg,h})();function Ud(h){return h instanceof j_?h.nativeElement:h}class J3{}let $g=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function Kg(){const h=Yi(),U=xs(Pr().index,h);return(Gr(U)?U:h)[11]}(),h})(),V2=(()=>{class h{}return h.\u0275prov=ue({token:h,providedIn:"root",factory:()=>null}),h})();class Xg{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const Xu=new Xg("14.3.0"),eh={};function Ou(h){return h.ngOriginalError}class sm{constructor(){this._console=console}handleError(g){const U=this._findOriginalError(g);this._console.error("ERROR",g),U&&this._console.error("ORIGINAL ERROR",U)}_findOriginalError(g){let U=g&&Ou(g);for(;U&&Ou(U);)U=Ou(U);return U||null}}function Eu(h){return h.ownerDocument.defaultView}function G2(h){return h.ownerDocument}function V1(h){return h instanceof Function?h():h}function nh(h,g,U){let O=h.length;for(;;){const q=h.indexOf(g,U);if(-1===q)return q;if(0===q||h.charCodeAt(q-1)<=32){const V=g.length;if(q+V===O||h.charCodeAt(q+V)<=32)return q}U=q+1}}const n0="ng-template";function Q3(h,g,U){let O=0;for(;OV?"":q[An+1].toLowerCase();const Ai=8&O?si:null;if(Ai&&-1!==nh(Ai,ye,0)||2&O&&ye!==si){if(Qd(O))return!1;ut=!0}}}}else{if(!ut&&!Qd(O)&&!Qd(jt))return!1;if(ut&&Qd(jt))continue;ut=!1,O=jt|1&O}}return Qd(O)||ut}function Qd(h){return 0==(1&h)}function o0(h,g,U,O){if(null===g)return-1;let q=0;if(O||!U){let V=!1;for(;q-1)for(U++;U0?'="'+kt+'"':"")+"]"}else 8&O?q+="."+ut:4&O&&(q+=" "+ut);else""!==q&&!Qd(ut)&&(g+=Sl(V,q),q=""),O=ut,V=V||!Qd(O);U++}return""!==q&&(g+=Sl(V,q)),g}const Ga={};function sh(h){Q_(Da(),Yi(),Rr()+h,!1)}function Q_(h,g,U,O){if(!O)if(3==(3&g[2])){const V=h.preOrderCheckHooks;null!==V&&So(g,V,U)}else{const V=h.preOrderHooks;null!==V&&ua(g,V,0,U)}ws(U)}function X3(h,g=null,U=null,O){const q=Zd(h,g,U,O);return q.resolveInjectorInitializers(),q}function Zd(h,g=null,U=null,O,q=new Set){const V=[U||hi,Up(h)];return O=O||("object"==typeof h?void 0:w(h)),new Y1(V,g||B1(),O||null,q)}let pm=(()=>{class h{static create(U,O){if(Array.isArray(U))return X3({name:""},O,U,"");{const q=U.name??"";return X3({name:q},U.parent,U.providers,q)}}}return h.THROW_IF_NOT_FOUND=Pn,h.NULL=new w1,h.\u0275prov=ue({token:h,providedIn:"any",factory:()=>Sr(Y3)}),h.__NG_ELEMENT_ID__=-1,h})();function Ar(h,g=Ft.Default){const U=Yi();return null===U?Sr(h,g):is(Pr(),U,I(h),g)}function _s(){throw new Error("invalid")}function Iu(h,g){return h<<17|g<<2}function Wr(h){return h>>17&32767}function $d(h){return 2|h}function _l(h){return(131068&h)>>2}function pu(h,g){return-131069&h|g<<2}function Pa(h){return 1|h}function _0(h,g){const U=h.contentQueries;if(null!==U)for(let O=0;O22&&Q_(h,g,22,!1),U(O,q)}finally{ws(V)}}function Ah(h,g,U){if(Pc(g)){const q=g.directiveEnd;for(let V=g.directiveStart;V0;){const U=h[--g];if("number"==typeof U&&U<0)return U}return 0})(kt)!=jt&&kt.push(jt),kt.push(O,q,ut)}}function W1(h,g){null!==h.hostBindings&&h.hostBindings(1,g)}function u4(h,g){g.flags|=2,(h.components||(h.components=[])).push(g.index)}function lf(h,g,U){if(U){if(g.exportAs)for(let O=0;O0&&Uh(U)}}function Uh(h){for(let O=Rf(h);null!==O;O=O2(O))for(let q=10;q0&&Uh(V)}const U=h[1].components;if(null!==U)for(let O=0;O0&&Uh(q)}}function p4(h,g){const U=xs(g,h),O=U[1];(function Zh(h,g){for(let U=g.length;U-1&&(Uo(g,O),mp(U,O))}this._attachedToViewContainer=!1}Za(this._lView[1],this._lView)}onDestroy(g){b0(this._lView[1],this._lView,null,g)}markForCheck(){bm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Mh(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new W(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Bf(h,g){ms(h,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new W(902,!1);this._appRef=g}}class uf extends Am{constructor(g){super(g),this._view=g}detectChanges(){const g=this._view;Mh(g[1],g,g[8],!1)}checkNoChanges(){}get context(){return null}}class K1 extends V_{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const U=ve(g);return new X1(U,this.ngModule)}}function Ol(h){const g=[];for(let U in h)h.hasOwnProperty(U)&&g.push({propName:h[U],templateName:U});return g}class Z0{constructor(g,U){this.injector=g,this.parentInjector=U}get(g,U,O){const q=this.injector.get(g,eh,O);return q!==eh||U===eh?q:this.parentInjector.get(g,U,O)}}class X1 extends Jg{constructor(g,U){super(),this.componentDef=g,this.ngModule=U,this.componentType=g.type,this.selector=function kp(h){return h.map(Wd).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!U}get inputs(){return Ol(this.componentDef.inputs)}get outputs(){return Ol(this.componentDef.outputs)}create(g,U,O,q){let V=(q=q||this.ngModule)instanceof to?q:q?.injector;V&&null!==this.componentDef.getStandaloneInjector&&(V=this.componentDef.getStandaloneInjector(V)||V);const ut=V?new Z0(g,V):g,kt=ut.get(J3,null);if(null===kt)throw new W(407,!1);const jt=ut.get(V2,null),ye=kt.createRenderer(null,this.componentDef),Qe=this.componentDef.selectors[0][0]||"div",An=O?function g0(h,g,U){return h.selectRootElement(g,U===yn.ShadowDom)}(ye,O,this.componentDef.encapsulation):Xc(ye,Qe,function U0(h){const g=h.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(Qe)),si=this.componentDef.onPush?288:272,Ai=yh(0,null,null,1,0,null,null,null,null,null),Vi=Q1(null,Ai,null,si,null,null,kt,ye,jt,ut,null);let Ao,ro;ll(Vi);try{const pa=function f4(h,g,U,O,q,V){const ut=U[1];U[22]=h;const jt=t2(ut,22,2,"#host",null),ye=jt.mergedAttrs=g.hostAttrs;null!==ye&&(Cm(jt,ye,!0),null!==h&&(Ke(q,h,ye),null!==jt.classes&&tl(q,h,jt.classes),null!==jt.styles&&em(q,h,jt.styles)));const Qe=O.createRenderer(h,g),An=Q1(U,h0(g),null,g.onPush?32:16,U[22],jt,O,Qe,V||null,null,null);return ut.firstCreatePass&&(us(ts(jt,U),ut,g.type),u4(ut,jt),wh(jt,U.length,1)),Lp(U,An),U[22]=An}(An,this.componentDef,Vi,kt,ye);if(An)if(O)Ke(ye,An,["ng-version",Xu.full]);else{const{attrs:Ta,classes:oo}=function rh(h){const g=[],U=[];let O=1,q=2;for(;O0&&tl(ye,An,oo.join(" "))}if(ro=Ps(Ai,22),void 0!==U){const Ta=ro.projection=[];for(let oo=0;oo=0;O--){const q=h[O];q.hostVars=g+=q.hostVars,q.hostAttrs=de(q.hostAttrs,U=de(U,q.hostAttrs))}}(O)}function df(h){return h===ho?{}:h===hi?[]:h}function h4(h,g){const U=h.viewQuery;h.viewQuery=U?(O,q)=>{g(O,q),U(O,q)}:g}function L(h,g){const U=h.contentQueries;h.contentQueries=U?(O,q,V)=>{g(O,q,V),U(O,q,V)}:g}function R(h,g){const U=h.hostBindings;h.hostBindings=U?(O,q)=>{g(O,q),U(O,q)}:g}let _n=null;function Yn(){if(!_n){const h=On.Symbol;if(h&&h.iterator)_n=h.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let U=0;Ukt(pr(zr[O.index])):O.index;let Oa=null;if(!kt&&jt&&(Oa=function Pv(h,g,U,O){const q=h.cleanup;if(null!=q)for(let V=0;Vjt?kt[jt]:null}"string"==typeof ut&&(V+=2)}return null}(h,g,q,O.index)),null!==Oa)(Oa.__ngLastListenerFn__||Oa).__ngNextListenerFn__=V,Oa.__ngLastListenerFn__=V,Ai=!1;else{V=p5(O,g,An,V,!1);const zr=U.listen(pa,q,V);si.push(V,zr),Qe&&Qe.push(q,oo,Ta,Ta+1)}}else V=p5(O,g,An,V,!1);const Vi=O.outputs;let Ao;if(Ai&&null!==Vi&&(Ao=Vi[q])){const ro=Ao.length;if(ro)for(let pa=0;pa0;)g=g[15],h--;return g}(h,aa.lFrame.contextLView))[8]}(h)}function k8(h,g){let U=null;const O=function G6(h){const g=h.attrs;if(null!=g){const U=g.indexOf(5);if(0==(1&U))return g[U+1]}return null}(h);for(let q=0;q=0}const $l={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function o_(h){return h.substring($l.key,$l.keyEnd)}function Nv(h,g){const U=$l.textEnd;return U===g?-1:(g=$l.keyEnd=function h5(h,g,U){for(;g32;)g++;return g}(h,$l.key=g,U),fu(h,g,U))}function fu(h,g,U){for(;g=0;U=Nv(g,U))se(h,o_(g),!0)}function Fp(h,g,U,O){const q=Yi(),V=Da(),ut=Ul(2);V.firstUpdatePass&&Hv(V,h,ut,O),g!==Ga&&ya(q,ut,g)&&A5(V,V.data[Rr()],q,q[11],h,q[ut+1]=function Yv(h,g){return null==h||("string"==typeof g?h+=g:"object"==typeof h&&(h=w(y1(h)))),h}(g,U),O,ut)}function tp(h,g,U,O){const q=Da(),V=Ul(2);q.firstUpdatePass&&Hv(q,null,V,O);const ut=Yi();if(U!==Ga&&ya(ut,V,U)){const kt=q.data[Rr()];if(D4(kt,O)&&!Rv(q,V)){let jt=O?kt.classesWithoutHost:kt.stylesWithoutHost;null!==jt&&(U=k(jt,U||"")),O0(q,kt,ut,U,O)}else!function I8(h,g,U,O,q,V,ut,kt){q===Ga&&(q=hi);let jt=0,ye=0,Qe=0=h.expandoStartIndex}function Hv(h,g,U,O){const q=h.data;if(null===q[U+1]){const V=q[Rr()],ut=Rv(h,U);D4(V,O)&&null===g&&!ut&&(g=!1),g=function zv(h,g,U,O){const q=Ic(h);let V=O?g.residualClasses:g.residualStyles;if(null===q)0===(O?g.classBindings:g.styleBindings)&&(U=H0(U=d2(null,h,g,U,O),g.attrs,O),V=null);else{const ut=g.directiveStylingLast;if(-1===ut||h[ut]!==q)if(U=d2(q,h,g,U,O),null===V){let jt=function O8(h,g,U){const O=U?g.classBindings:g.styleBindings;if(0!==_l(O))return h[Wr(O)]}(h,g,O);void 0!==jt&&Array.isArray(jt)&&(jt=d2(null,h,g,jt[1],O),jt=H0(jt,g.attrs,O),function E8(h,g,U,O){h[Wr(U?g.classBindings:g.styleBindings)]=O}(h,g,O,jt))}else V=function x5(h,g,U){let O;const q=g.directiveEnd;for(let V=1+g.directiveStylingLast;V0)&&(ye=!0)}else Qe=U;if(q)if(0!==jt){const si=Wr(h[kt+1]);h[O+1]=Iu(si,kt),0!==si&&(h[si+1]=pu(h[si+1],O)),h[kt+1]=function Ll(h,g){return 131071&h|g<<17}(h[kt+1],O)}else h[O+1]=Iu(kt,0),0!==kt&&(h[kt+1]=pu(h[kt+1],O)),kt=O;else h[O+1]=Iu(jt,0),0===kt?kt=O:h[jt+1]=pu(h[jt+1],O),jt=O;ye&&(h[O+1]=$d(h[O+1])),mf(h,Qe,O,!0),mf(h,Qe,O,!1),function Ev(h,g,U,O,q){const V=q?h.residualClasses:h.residualStyles;null!=V&&"string"==typeof g&&Dn(V,g)>=0&&(U[O+1]=Pa(U[O+1]))}(g,Qe,h,O,V),ut=Iu(kt,jt),V?g.classBindings=ut:g.styleBindings=ut}(q,V,g,U,ut,O)}}function d2(h,g,U,O,q){let V=null;const ut=U.directiveEnd;let kt=U.directiveStylingLast;for(-1===kt?kt=U.directiveStart:kt++;kt0;){const jt=h[q],ye=Array.isArray(jt),Qe=ye?jt[1]:jt,An=null===Qe;let si=U[q+1];si===Ga&&(si=An?hi:void 0);let Ai=An?Se(si,O):Qe===O?si:void 0;if(ye&&!Nh(Ai)&&(Ai=Se(jt,O)),Nh(Ai)&&(kt=Ai,ut))return kt;const Vi=h[q+1];q=ut?Wr(Vi):_l(Vi)}if(null!==g){let jt=V?g.residualClasses:g.residualStyles;null!=jt&&(kt=Se(jt,O))}return kt}function Nh(h){return void 0!==h}function D4(h,g){return 0!=(h.flags&(g?16:32))}function P4(h,g=""){const U=Yi(),O=Da(),q=h+22,V=O.firstCreatePass?t2(O,q,1,g,null):O.data[q],ut=U[q]=function Og(h,g){return h.createText(g)}(U[11],g);Uc(O,U,ut,V),Yt(V,!1)}function S4(h){return rc("",h,""),S4}function rc(h,g,U){const O=Yi(),q=fl(O,h,g,U);return q!==Ga&&t1(O,Rr(),q),rc}function _f(h,g,U,O,q){const V=Yi(),ut=Es(V,h,g,U,O,q);return ut!==Ga&&t1(V,Rr(),ut),_f}function y5(h,g,U,O,q,V,ut){const kt=Yi(),jt=function Wl(h,g,U,O,q,V,ut,kt){const ye=Xa(h,qr(),U,q,ut);return Ul(3),ye?g+ct(U)+O+ct(q)+V+ct(ut)+kt:Ga}(kt,h,g,U,O,q,V,ut);return jt!==Ga&&t1(kt,Rr(),jt),y5}function B0(h,g,U,O,q,V,ut,kt,jt){const ye=Yi(),Qe=function _u(h,g,U,O,q,V,ut,kt,jt,ye){const An=za(h,qr(),U,q,ut,jt);return Ul(4),An?g+ct(U)+O+ct(q)+V+ct(ut)+kt+ct(jt)+ye:Ga}(ye,h,g,U,O,q,V,ut,kt,jt);return Qe!==Ga&&t1(ye,Rr(),Qe),B0}function Np(h,g,U){tp(se,o1,fl(Yi(),h,g,U),!0)}function I4(h,g,U){const O=Yi();return ya(O,er(),g)&&mu(Da(),Ra(),O,h,g,O[11],U,!0),I4}function D5(h,g,U){const O=Yi();if(ya(O,er(),g)){const V=Da(),ut=Ra();mu(V,ut,O,h,g,Op(Ic(V.data),ut,O),U,!0)}return D5}const a1=void 0;var tx=["en",[["a","p"],["AM","PM"],a1],[["AM","PM"],a1,a1],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],a1,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],a1,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",a1,"{1} 'at' {0}",a1],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function gc(h){const U=Math.floor(Math.abs(h)),O=h.toString().replace(/^[^.]*\.?/,"").length;return 1===U&&0===O?1:5}];let m2={};function ex(h,g,U){"string"!=typeof g&&(U=g,g=h[Ma.LocaleId]),g=g.toLowerCase().replace(/_/g,"-"),m2[g]=h,U&&(m2[g][Ma.ExtraData]=U)}function wi(h){const g=function F4(h){return h.toLowerCase().replace(/_/g,"-")}(h);let U=Tm(g);if(U)return U;const O=g.split("-")[0];if(U=Tm(O),U)return U;if("en"===O)return tx;throw new W(701,!1)}function H(h){return wi(h)[Ma.PluralCase]}function Tm(h){return h in m2||(m2[h]=On.ng&&On.ng.common&&On.ng.common.locales&&On.ng.common.locales[h]),m2[h]}var Ma=(()=>((Ma=Ma||{})[Ma.LocaleId=0]="LocaleId",Ma[Ma.DayPeriodsFormat=1]="DayPeriodsFormat",Ma[Ma.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ma[Ma.DaysFormat=3]="DaysFormat",Ma[Ma.DaysStandalone=4]="DaysStandalone",Ma[Ma.MonthsFormat=5]="MonthsFormat",Ma[Ma.MonthsStandalone=6]="MonthsStandalone",Ma[Ma.Eras=7]="Eras",Ma[Ma.FirstDayOfWeek=8]="FirstDayOfWeek",Ma[Ma.WeekendRange=9]="WeekendRange",Ma[Ma.DateFormat=10]="DateFormat",Ma[Ma.TimeFormat=11]="TimeFormat",Ma[Ma.DateTimeFormat=12]="DateTimeFormat",Ma[Ma.NumberSymbols=13]="NumberSymbols",Ma[Ma.NumberFormats=14]="NumberFormats",Ma[Ma.CurrencyCode=15]="CurrencyCode",Ma[Ma.CurrencySymbol=16]="CurrencySymbol",Ma[Ma.CurrencyName=17]="CurrencyName",Ma[Ma.Currencies=18]="Currencies",Ma[Ma.Directionality=19]="Directionality",Ma[Ma.PluralCase=20]="PluralCase",Ma[Ma.ExtraData=21]="ExtraData",Ma))();const s_="en-US";let El=s_;function qp(h,g,U,O,q){if(h=I(h),Array.isArray(h))for(let V=0;V>20;if(oc(h)||!h.multi){const Ai=new Au(jt,q,Ar),Vi=jh(kt,g,q?Qe:Qe+si,An);-1===Vi?(us(ts(ye,ut),V,kt),f2(V,h,g.length),g.push(kt),ye.directiveStart++,ye.directiveEnd++,q&&(ye.providerIndexes+=1048576),U.push(Ai),ut.push(Ai)):(U[Vi]=Ai,ut[Vi]=Ai)}else{const Ai=jh(kt,g,Qe+si,An),Vi=jh(kt,g,Qe,Qe+si),Ao=Ai>=0&&U[Ai],ro=Vi>=0&&U[Vi];if(q&&!ro||!q&&!Ao){us(ts(ye,ut),V,kt);const pa=function J5(h,g,U,O,q){const V=new Au(h,U,Ar);return V.multi=[],V.index=g,V.componentProviders=0,V5(V,q,O&&!U),V}(q?Jh:Ex,U.length,q,O,jt);!q&&ro&&(U[Vi].providerFactory=pa),f2(V,h,g.length,0),g.push(kt),ye.directiveStart++,ye.directiveEnd++,q&&(ye.providerIndexes+=1048576),U.push(pa),ut.push(pa)}else f2(V,h,Ai>-1?Ai:Vi,V5(U[q?Vi:Ai],jt,!q&&O));!q&&O&&ro&&U[Vi].componentProviders++}}}function f2(h,g,U,O){const q=oc(g),V=function am(h){return!!h.useClass}(g);if(q||V){const jt=(V?I(g.useClass):g).prototype.ngOnDestroy;if(jt){const ye=h.destroyHooks||(h.destroyHooks=[]);if(!q&&g.multi){const Qe=ye.indexOf(U);-1===Qe?ye.push(U,[O,jt]):ye[Qe+1].push(O,jt)}else ye.push(U,jt)}}}function V5(h,g,U){return U&&h.componentProviders++,h.multi.push(g)-1}function jh(h,g,U,O){for(let q=U;q{U.providersResolver=(O,q)=>function tA(h,g,U){const O=Da();if(O.firstCreatePass){const q=Fs(h);qp(U,O.data,O.blueprint,q,!0),qp(g,O.data,O.blueprint,q,!1)}}(O,q?q(h):h,g)}}class xf{}class Y4{}function Gh(h,g){return new W0(h,g??null)}class W0 extends xf{constructor(g,U){super(),this._parent=U,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new K1(this);const O=go(g);this._bootstrapComponents=V1(O.bootstrap),this._r3Injector=Zd(g,U,[{provide:xf,useValue:this},{provide:V_,useValue:this.componentFactoryResolver}],w(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(U=>U()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class V4 extends Y4{constructor(g){super(),this.moduleType=g}create(g){return new W0(this.moduleType,g)}}class eA extends xf{constructor(g,U,O){super(),this.componentFactoryResolver=new K1(this),this.instance=null;const q=new Y1([...g,{provide:xf,useValue:this},{provide:V_,useValue:this.componentFactoryResolver}],U||B1(),O,new Set(["environment"]));this.injector=q,q.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function Cf(h,g,U=null){return new eA(h,g,U).injector}let Ix=(()=>{class h{constructor(U){this._injector=U,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(U){if(!U.standalone)return null;if(!this.cachedInjectors.has(U.id)){const O=mc(0,U.type),q=O.length>0?Cf([O],this._injector,`Standalone[${U.type.name}]`):null;this.cachedInjectors.set(U.id,q)}return this.cachedInjectors.get(U.id)}ngOnDestroy(){try{for(const U of this.cachedInjectors.values())null!==U&&U.destroy()}finally{this.cachedInjectors.clear()}}}return h.\u0275prov=ue({token:h,providedIn:"environment",factory:()=>new h(Sr(to))}),h})();function Q5(h){h.getStandaloneInjector=g=>g.get(Ix).getOrCreateStandaloneInjector(h)}function Bx(h,g,U){const O=Nr()+h,q=Yi();return q[O]===Ga?ta(q,O,U?g.call(U):g()):function xa(h,g){return h[g]}(q,O)}function X5(h,g,U,O){return j4(Yi(),Nr(),h,g,U,O)}function Yx(h,g,U,O,q){return ib(Yi(),Nr(),h,g,U,O,q)}function h2(h,g){const U=h[g];return U===Ga?void 0:U}function j4(h,g,U,O,q,V){const ut=g+U;return ya(h,ut,q)?ta(h,ut+1,V?O.call(V,q):O(q)):h2(h,ut+1)}function ib(h,g,U,O,q,V,ut){const kt=g+U;return ba(h,kt,q,V)?ta(h,kt+2,ut?O.call(ut,q,V):O(q,V)):h2(h,kt+2)}function Jx(h,g){const U=Da();let O;const q=h+22;U.firstCreatePass?(O=function Gx(h,g){if(g)for(let U=g.length-1;U>=0;U--){const O=g[U];if(h===O.name)return O}}(g,U.pipeRegistry),U.data[q]=O,O.onDestroy&&(U.destroyHooks||(U.destroyHooks=[])).push(q,O.onDestroy)):O=U.data[q];const V=O.factory||(O.factory=ks(O.type)),ut=tt(Ar);try{const kt=Ti(!1),jt=V();return Ti(kt),function Zv(h,g,U,O){U>=h.data.length&&(h.data[U]=null,h.blueprint[U]=null),g[U]=O}(U,Yi(),q,jt),jt}finally{tt(ut)}}function J4(h,g,U){const O=h+22,q=Yi(),V=qs(q,O);return K0(q,O)?j4(q,Nr(),g,V.transform,U,V):V.transform(U)}function $0(h,g,U,O){const q=h+22,V=Yi(),ut=qs(V,q);return K0(V,q)?ib(V,Nr(),g,ut.transform,U,O,ut):ut.transform(U,O)}function rb(h,g,U,O,q){const V=h+22,ut=Yi(),kt=qs(ut,V);return K0(ut,V)?function ob(h,g,U,O,q,V,ut,kt){const jt=g+U;return Xa(h,jt,q,V,ut)?ta(h,jt+3,kt?O.call(kt,q,V,ut):O(q,V,ut)):h2(h,jt+3)}(ut,Nr(),g,kt.transform,U,O,q,kt):kt.transform(U,O,q)}function G4(h,g,U,O,q,V){const ut=h+22,kt=Yi(),jt=qs(kt,ut);return K0(kt,ut)?function ab(h,g,U,O,q,V,ut,kt,jt){const ye=g+U;return za(h,ye,q,V,ut,kt)?ta(h,ye+4,jt?O.call(jt,q,V,ut,kt):O(q,V,ut,kt)):h2(h,ye+4)}(kt,Nr(),g,jt.transform,U,O,q,V,jt):jt.transform(U,O,q,V)}function K0(h,g){return h[1].data[g].pure}function sa(h){return g=>{setTimeout(h,void 0,g)}}const Pd=class pA extends d.xQ{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,U,O){let q=g,V=U||(()=>null),ut=O;if(g&&"object"==typeof g){const jt=g;q=jt.next?.bind(jt),V=jt.error?.bind(jt),ut=jt.complete?.bind(jt)}this.__isAsync&&(V=sa(V),q&&(q=sa(q)),ut&&(ut=sa(ut)));const kt=super.subscribe({next:q,error:V,complete:ut});return g instanceof p.w&&g.add(kt),kt}};function mA(){return this._results[Yn()]()}class Sd{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const U=Yn(),O=Sd.prototype;O[U]||(O[U]=mA)}get changes(){return this._changes||(this._changes=new Pd)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,U){return this._results.reduce(g,U)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,U){const O=this;O.dirty=!1;const q=Jo(g);(this._changesDetected=!function Y(h,g,U){if(h.length!==g.length)return!1;for(let O=0;O{class h{}return h.__NG_ELEMENT_ID__=$x,h})();const sb=Wh,Wx=class extends sb{constructor(g,U,O){super(),this._declarationLView=g,this._declarationTContainer=U,this.elementRef=O}createEmbeddedView(g,U){const O=this._declarationTContainer.tViews,q=Q1(this._declarationLView,O,g,16,null,O.declTNode,null,null,null,null,U||null);q[17]=this._declarationLView[this._declarationTContainer.index];const ut=this._declarationLView[19];return null!==ut&&(q[19]=ut.createEmbeddedView(O)),Xd(O,q,g),new Am(q)}};function $x(){return $h(Pr(),Yi())}function $h(h,g){return 4&h.type?new Wx(g,h,jm(h,g)):null}let X0=(()=>{class h{}return h.__NG_ELEMENT_ID__=_A,h})();function _A(){return W4(Pr(),Yi())}const Kx=X0,cb=class extends Kx{constructor(g,U,O){super(),this._lContainer=g,this._hostTNode=U,this._hostLView=O}get element(){return jm(this._hostTNode,this._hostLView)}get injector(){return new cu(this._hostTNode,this._hostLView)}get parentInjector(){const g=ns(this._hostTNode,this._hostLView);if(nn(g)){const U=$n(g,this._hostLView),O=Cn(g);return new cu(U[1].data[O+8],U)}return new cu(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const U=Xx(this._lContainer);return null!==U&&U[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,U,O){let q,V;"number"==typeof O?q=O:null!=O&&(q=O.index,V=O.injector);const ut=g.createEmbeddedView(U||{},V);return this.insert(ut,q),ut}createComponent(g,U,O,q,V){const ut=g&&!function To(h){return"function"==typeof h}(g);let kt;if(ut)kt=U;else{const An=U||{};kt=An.index,O=An.injector,q=An.projectableNodes,V=An.environmentInjector||An.ngModuleRef}const jt=ut?g:new X1(ve(g)),ye=O||this.parentInjector;if(!V&&null==jt.ngModule){const si=(ut?ye:this.parentInjector).get(to,null);si&&(V=si)}const Qe=jt.create(ye,q,void 0,V);return this.insert(Qe.hostView,kt),Qe}insert(g,U){const O=g._lView,q=O[1];if(function Qs(h){return Ir(h[3])}(O)){const Qe=this.indexOf(g);if(-1!==Qe)this.detach(Qe);else{const An=O[3],si=new cb(An,An[6],An[3]);si.detach(si.indexOf(g))}}const V=this._adjustIndex(U),ut=this._lContainer;!function Nm(h,g,U,O){const q=10+O,V=U.length;O>0&&(U[q-1][4]=g),O0)O.push(ut[kt/2]);else{const ye=V[kt+1],Qe=g[-jt];for(let An=10;An{class h{constructor(U){this.appInits=U,this.resolve=a6,this.reject=a6,this.initialized=!1,this.done=!1,this.donePromise=new Promise((O,q)=>{this.resolve=O,this.reject=q})}runInitializers(){if(this.initialized)return;const U=[],O=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let q=0;q{V.subscribe({complete:kt,error:jt})});U.push(ut)}}Promise.all(U).then(()=>{O()}).catch(q=>{this.reject(q)}),0===U.length&&O(),this.initialized=!0}}return h.\u0275fac=function(U){return new(U||h)(Sr(Sb,8))},h.\u0275prov=ue({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const hC=new wr("AppId",{providedIn:"root",factory:function gC(){return`${c3()}${c3()}${c3()}`}});function c3(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const bC=new wr("Platform Initializer"),vC=new wr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),xC=new wr("appBootstrapListener"),Ob=new wr("AnimationModuleType");let CC=(()=>{class h{log(U){console.log(U)}warn(U){console.warn(U)}}return h.\u0275fac=function(U){return new(U||h)},h.\u0275prov=ue({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const l3=new wr("LocaleId",{providedIn:"root",factory:()=>_p(l3,Ft.Optional|Ft.SkipSelf)||function AC(){return typeof $localize<"u"&&$localize.locale||s_}()}),yC=new wr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class IA{constructor(g,U){this.ngModuleFactory=g,this.componentFactories=U}}let wC=(()=>{class h{compileModuleSync(U){return new V4(U)}compileModuleAsync(U){return Promise.resolve(this.compileModuleSync(U))}compileModuleAndAllComponentsSync(U){const O=this.compileModuleSync(U),V=V1(go(U).declarations).reduce((ut,kt)=>{const jt=ve(kt);return jt&&ut.push(new X1(jt)),ut},[]);return new IA(O,V)}compileModuleAndAllComponentsAsync(U){return Promise.resolve(this.compileModuleAndAllComponentsSync(U))}clearCache(){}clearCacheFor(U){}getModuleId(U){}}return h.\u0275fac=function(U){return new(U||h)},h.\u0275prov=ue({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const kC=(()=>Promise.resolve(0))();function u3(h){typeof Zone>"u"?kC.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class r1{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:U=!1,shouldCoalesceRunChangeDetection:O=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pd(!1),this.onMicrotaskEmpty=new Pd(!1),this.onStable=new Pd(!1),this.onError=new Pd(!1),typeof Zone>"u")throw new W(908,!1);Zone.assertZonePatched();const q=this;if(q._nesting=0,q._outer=q._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const V=Zone.AsyncStackTaggingZoneSpec;q._inner=q._inner.fork(new V("Angular"))}Zone.TaskTrackingZoneSpec&&(q._inner=q._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(q._inner=q._inner.fork(Zone.longStackTraceZoneSpec)),q.shouldCoalesceEventChangeDetection=!O&&U,q.shouldCoalesceRunChangeDetection=O,q.lastRequestAnimationFrameId=-1,q.nativeRequestAnimationFrame=function r6(){let h=On.requestAnimationFrame,g=On.cancelAnimationFrame;if(typeof Zone<"u"&&h&&g){const U=h[Zone.__symbol__("OriginalDelegate")];U&&(h=U);const O=g[Zone.__symbol__("OriginalDelegate")];O&&(g=O)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function DC(h){const g=()=>{!function Ib(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(On,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,Fb(h),h.isCheckStableRunning=!0,s6(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),Fb(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(U,O,q,V,ut,kt)=>{try{return PC(h),U.invokeTask(q,V,ut,kt)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===V.type||h.shouldCoalesceRunChangeDetection)&&g(),Nb(h)}},onInvoke:(U,O,q,V,ut,kt,jt)=>{try{return PC(h),U.invoke(q,V,ut,kt,jt)}finally{h.shouldCoalesceRunChangeDetection&&g(),Nb(h)}},onHasTask:(U,O,q,V)=>{U.hasTask(q,V),O===q&&("microTask"==V.change?(h._hasPendingMicrotasks=V.microTask,Fb(h),s6(h)):"macroTask"==V.change&&(h.hasPendingMacrotasks=V.macroTask))},onHandleError:(U,O,q,V)=>(U.handleError(q,V),h.runOutsideAngular(()=>h.onError.emit(V)),!1)})}(q)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!r1.isInAngularZone())throw new W(909,!1)}static assertNotInAngularZone(){if(r1.isInAngularZone())throw new W(909,!1)}run(g,U,O){return this._inner.run(g,U,O)}runTask(g,U,O,q){const V=this._inner,ut=V.scheduleEventTask("NgZoneEvent: "+q,g,Eb,a6,a6);try{return V.runTask(ut,U,O)}finally{V.cancelTask(ut)}}runGuarded(g,U,O){return this._inner.runGuarded(g,U,O)}runOutsideAngular(g){return this._outer.run(g)}}const Eb={};function s6(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function Fb(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function PC(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function Nb(h){h._nesting--,s6(h)}class qb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pd,this.onMicrotaskEmpty=new Pd,this.onStable=new Pd,this.onError=new Pd}run(g,U,O){return g.apply(U,O)}runGuarded(g,U,O){return g.apply(U,O)}runOutsideAngular(g){return g()}runTask(g,U,O,q){return g.apply(U,O)}}const SC=new wr(""),Rb=new wr("");let c6,LC=(()=>{class h{constructor(U,O,q){this._ngZone=U,this.registry=O,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,c6||(function EC(h){c6=h}(q),q.addToWindow(O)),this._watchAngularEvents(),U.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{r1.assertNotInAngularZone(),u3(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())u3(()=>{for(;0!==this._callbacks.length;){let U=this._callbacks.pop();clearTimeout(U.timeoutId),U.doneCb(this._didWork)}this._didWork=!1});else{let U=this.getPendingTasks();this._callbacks=this._callbacks.filter(O=>!O.updateCb||!O.updateCb(U)||(clearTimeout(O.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(U=>({source:U.source,creationLocation:U.creationLocation,data:U.data})):[]}addCallback(U,O,q){let V=-1;O&&O>0&&(V=setTimeout(()=>{this._callbacks=this._callbacks.filter(ut=>ut.timeoutId!==V),U(this._didWork,this.getPendingTasks())},O)),this._callbacks.push({doneCb:U,timeoutId:V,updateCb:q})}whenStable(U,O,q){if(q&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(U,O,q),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(U){this.registry.registerApplication(U,this)}unregisterApplication(U){this.registry.unregisterApplication(U)}findProviders(U,O,q){return[]}}return h.\u0275fac=function(U){return new(U||h)(Sr(r1),Sr(OC),Sr(Rb))},h.\u0275prov=ue({token:h,factory:h.\u0275fac}),h})(),OC=(()=>{class h{constructor(){this._applications=new Map}registerApplication(U,O){this._applications.set(U,O)}unregisterApplication(U){this._applications.delete(U)}unregisterAllApplications(){this._applications.clear()}getTestability(U){return this._applications.get(U)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(U,O=!0){return c6?.findTestabilityInTree(this,U,O)??null}}return h.\u0275fac=function(U){return new(U||h)},h.\u0275prov=ue({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),l_=null;const Hb=new wr("AllowMultipleToken"),zb=new wr("PlatformDestroyListeners");class NC{constructor(g,U){this.name=g,this.token=U}}function ap(h,g,U=[]){const O=`Platform: ${g}`,q=new wr(O);return(V=[])=>{let ut=u6();if(!ut||ut.injector.get(Hb,!1)){const kt=[...U,...V,{provide:q,useValue:!0}];h?h(kt):function NA(h){if(l_&&!l_.get(Hb,!1))throw new W(400,!1);l_=h;const g=h.get(d6);(function RC(h){const g=h.get(bC,null);g&&g.forEach(U=>U())})(h)}(function l6(h=[],g){return pm.create({name:g,providers:[{provide:rs,useValue:"platform"},{provide:zb,useValue:new Set([()=>l_=null])},...h]})}(kt,O))}return function qA(h){const g=u6();if(!g)throw new W(401,!1);return g}()}}function u6(){return l_?.get(d6)??null}let d6=(()=>{class h{constructor(U){this._injector=U,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(U,O){const q=function HC(h,g){let U;return U="noop"===h?new qb:("zone.js"===h?void 0:h)||new r1(g),U}(O?.ngZone,function m3(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(O)),V=[{provide:r1,useValue:q}];return q.run(()=>{const ut=pm.create({providers:V,parent:this.injector,name:U.moduleType.name}),kt=U.create(ut),jt=kt.injector.get(sm,null);if(!jt)throw new W(402,!1);return q.runOutsideAngular(()=>{const ye=q.onError.subscribe({next:Qe=>{jt.handleError(Qe)}});kt.onDestroy(()=>{f3(this._modules,kt),ye.unsubscribe()})}),function Bb(h,g,U){try{const O=U();return e1(O)?O.catch(q=>{throw g.runOutsideAngular(()=>h.handleError(q)),q}):O}catch(O){throw g.runOutsideAngular(()=>h.handleError(O)),O}}(jt,q,()=>{const ye=kt.injector.get(s3);return ye.runInitializers(),ye.donePromise.then(()=>(function ep(h){Xe(h,"Expected localeId to be defined"),"string"==typeof h&&(El=h.toLowerCase().replace(/_/g,"-"))}(kt.injector.get(l3,s_)||s_),this._moduleDoBootstrap(kt),kt))})})}bootstrapModule(U,O=[]){const q=Yb({},O);return function IC(h,g,U){const O=new V4(U);return Promise.resolve(O)}(0,0,U).then(V=>this.bootstrapModuleFactory(V,q))}_moduleDoBootstrap(U){const O=U.injector.get(_3);if(U._bootstrapComponents.length>0)U._bootstrapComponents.forEach(q=>O.bootstrap(q));else{if(!U.instance.ngDoBootstrap)throw new W(403,!1);U.instance.ngDoBootstrap(O)}this._modules.push(U)}onDestroy(U){this._destroyListeners.push(U)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new W(404,!1);this._modules.slice().forEach(O=>O.destroy()),this._destroyListeners.forEach(O=>O());const U=this._injector.get(zb,null);U&&(U.forEach(O=>O()),U.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(U){return new(U||h)(Sr(pm))},h.\u0275prov=ue({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function Yb(h,g){return Array.isArray(g)?g.reduce(Yb,h):{...h,...g}}let _3=(()=>{class h{constructor(U,O,q){this._zone=U,this._injector=O,this._exceptionHandler=q,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const V=new v.y(kt=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{kt.next(this._stable),kt.complete()})}),ut=new v.y(kt=>{let jt;this._zone.runOutsideAngular(()=>{jt=this._zone.onStable.subscribe(()=>{r1.assertNotInAngularZone(),u3(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,kt.next(!0))})})});const ye=this._zone.onUnstable.subscribe(()=>{r1.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{kt.next(!1)}))});return()=>{jt.unsubscribe(),ye.unsubscribe()}});this.isStable=(0,T.T)(V,ut.pipe((0,t.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(U,O){const q=U instanceof Jg;if(!this._injector.get(s3).done)throw!q&&bi(U),new W(405,false);let ut;ut=q?U:this._injector.get(V_).resolveComponentFactory(U),this.componentTypes.push(ut.componentType);const kt=function p3(h){return h.isBoundToModule}(ut)?void 0:this._injector.get(xf),ye=ut.create(pm.NULL,[],O||ut.selector,kt),Qe=ye.location.nativeElement,An=ye.injector.get(SC,null);return An?.registerApplication(Qe),ye.onDestroy(()=>{this.detachView(ye.hostView),f3(this.components,ye),An?.unregisterApplication(Qe)}),this._loadComponent(ye),ye}tick(){if(this._runningTick)throw new W(101,!1);try{this._runningTick=!0;for(let U of this._views)U.detectChanges()}catch(U){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(U))}finally{this._runningTick=!1}}attachView(U){const O=U;this._views.push(O),O.attachToAppRef(this)}detachView(U){const O=U;f3(this._views,O),O.detachFromAppRef()}_loadComponent(U){this.attachView(U.hostView),this.tick(),this.components.push(U),this._injector.get(xC,[]).concat(this._bootstrapListeners).forEach(q=>q(U))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(U=>U()),this._views.slice().forEach(U=>U.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(U){return this._destroyListeners.push(U),()=>f3(this._destroyListeners,U)}destroy(){if(this._destroyed)throw new W(406,!1);const U=this._injector;U.destroy&&!U.destroyed&&U.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(U){return new(U||h)(Sr(r1),Sr(to),Sr(sm))},h.\u0275prov=ue({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function f3(h,g){const U=h.indexOf(g);U>-1&&h.splice(U,1)}let D1=!0;function VC(){D1=!1}let GC=(()=>{class h{}return h.__NG_ELEMENT_ID__=HA,h})();function HA(h){return function QC(h,g,U){if(rl(h)&&!U){const O=xs(h.index,g);return new Am(O,O)}return 47&h.type?new Am(g[16],g):null}(Pr(),Yi(),16==(16&h))}class Xb{constructor(){}supports(g){return fi(g)}create(g){return new jA(g)}}const VA=(h,g)=>g;class jA{constructor(g){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=g||VA}forEachItem(g){let U;for(U=this._itHead;null!==U;U=U._next)g(U)}forEachOperation(g){let U=this._itHead,O=this._removalsHead,q=0,V=null;for(;U||O;){const ut=!O||U&&U.currentIndex<_6(O,q,V)?U:O,kt=_6(ut,q,V),jt=ut.currentIndex;if(ut===O)q--,O=O._nextRemoved;else if(U=U._next,null==ut.previousIndex)q++;else{V||(V=[]);const ye=kt-q,Qe=jt-q;if(ye!=Qe){for(let si=0;si{ut=this._trackByFn(q,kt),null!==U&&Object.is(U.trackById,ut)?(O&&(U=this._verifyReinsertion(U,kt,ut,q)),Object.is(U.item,kt)||this._addIdentityChange(U,kt)):(U=this._mismatch(U,kt,ut,q),O=!0),U=U._next,q++}),this.length=q;return this._truncate(U),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,U,O,q){let V;return null===g?V=this._itTail:(V=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null))?(Object.is(g.item,U)||this._addIdentityChange(g,U),this._reinsertAfter(g,V,q)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(O,q))?(Object.is(g.item,U)||this._addIdentityChange(g,U),this._moveAfter(g,V,q)):g=this._addAfter(new KC(U,O),V,q),g}_verifyReinsertion(g,U,O,q){let V=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null);return null!==V?g=this._reinsertAfter(V,g._prev,q):g.currentIndex!=q&&(g.currentIndex=q,this._addToMoves(g,q)),g}_truncate(g){for(;null!==g;){const U=g._next;this._addToRemovals(this._unlink(g)),g=U}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(g,U,O){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const q=g._prevRemoved,V=g._nextRemoved;return null===q?this._removalsHead=V:q._nextRemoved=V,null===V?this._removalsTail=q:V._prevRemoved=q,this._insertAfter(g,U,O),this._addToMoves(g,O),g}_moveAfter(g,U,O){return this._unlink(g),this._insertAfter(g,U,O),this._addToMoves(g,O),g}_addAfter(g,U,O){return this._insertAfter(g,U,O),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,U,O){const q=null===U?this._itHead:U._next;return g._next=q,g._prev=U,null===q?this._itTail=g:q._prev=g,null===U?this._itHead=g:U._next=g,null===this._linkedRecords&&(this._linkedRecords=new tv),this._linkedRecords.put(g),g.currentIndex=O,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const U=g._prev,O=g._next;return null===U?this._itHead=O:U._next=O,null===O?this._itTail=U:O._prev=U,g}_addToMoves(g,U){return g.previousIndex===U||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new tv),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,U){return g.item=U,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class KC{constructor(g,U){this.item=g,this.trackById=U,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class eg{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,U){let O;for(O=this._head;null!==O;O=O._nextDup)if((null===U||U<=O.currentIndex)&&Object.is(O.trackById,g))return O;return null}remove(g){const U=g._prevDup,O=g._nextDup;return null===U?this._head=O:U._nextDup=O,null===O?this._tail=U:O._prevDup=U,null===this._head}}class tv{constructor(){this.map=new Map}put(g){const U=g.trackById;let O=this.map.get(U);O||(O=new eg,this.map.set(U,O)),O.add(g)}get(g,U){const q=this.map.get(g);return q?q.get(g,U):null}remove(g){const U=g.trackById;return this.map.get(U).remove(g)&&this.map.delete(U),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _6(h,g,U){const O=h.previousIndex;if(null===O)return O;let q=0;return U&&O{if(U&&U.key===q)this._maybeAddToChanges(U,O),this._appendAfter=U,U=U._next;else{const V=this._getOrCreateRecordForKey(q,O);U=this._insertBeforeOrAppend(U,V)}}),U){U._prev&&(U._prev._next=null),this._removalsHead=U;for(let O=U;null!==O;O=O._nextRemoved)O===this._mapHead&&(this._mapHead=null),this._records.delete(O.key),O._nextRemoved=O._next,O.previousValue=O.currentValue,O.currentValue=null,O._prev=null,O._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(g,U){if(g){const O=g._prev;return U._next=g,U._prev=O,g._prev=U,O&&(O._next=U),g===this._mapHead&&(this._mapHead=U),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=U,U._prev=this._appendAfter):this._mapHead=U,this._appendAfter=U,null}_getOrCreateRecordForKey(g,U){if(this._records.has(g)){const q=this._records.get(g);this._maybeAddToChanges(q,U);const V=q._prev,ut=q._next;return V&&(V._next=ut),ut&&(ut._prev=V),q._next=null,q._prev=null,q}const O=new XC(g);return this._records.set(g,O),O.currentValue=U,this._addToAdditions(O),O}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,U){Object.is(U,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=U,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,U){g instanceof Map?g.forEach(U):Object.keys(g).forEach(O=>U(g[O],O))}}class XC{constructor(g){this.key=g,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function f6(){return new h6([new Xb])}let h6=(()=>{class h{constructor(U){this.factories=U}static create(U,O){if(null!=O){const q=O.factories.slice();U=U.concat(q)}return new h(U)}static extend(U){return{provide:h,useFactory:O=>h.create(U,O||f6()),deps:[[h,new F1,new nc]]}}find(U){const O=this.factories.find(q=>q.supports(U));if(null!=O)return O;throw new W(901,!1)}}return h.\u0275prov=ue({token:h,providedIn:"root",factory:f6}),h})();function t8(){return new ng([new ev])}let ng=(()=>{class h{constructor(U){this.factories=U}static create(U,O){if(O){const q=O.factories.slice();U=U.concat(q)}return new h(U)}static extend(U){return{provide:h,useFactory:O=>h.create(U,O||t8()),deps:[[h,new F1,new nc]]}}find(U){const O=this.factories.find(q=>q.supports(U));if(O)return O;throw new W(901,!1)}}return h.\u0275prov=ue({token:h,providedIn:"root",factory:t8}),h})();const QA=ap(null,"core",[]);let WA=(()=>{class h{constructor(U){}}return h.\u0275fac=function(U){return new(U||h)(Sr(_3))},h.\u0275mod=It({type:h}),h.\u0275inj=ce({}),h})();function i8(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},85863:(rt,it,b)=>{"use strict";function d(D){for(let P in D){let I=D[P]??"";switch(P){case"display":D.display="flex"===I?["-webkit-flex","flex"]:"inline-flex"===I?["-webkit-inline-flex","inline-flex"]:I;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":D["-webkit-"+P]=I;break;case"flex-direction":D["-webkit-flex-direction"]=I,D["flex-direction"]=I;break;case"order":D.order=D["-webkit-"+P]=isNaN(+I)?"0":I}}return D}b.d(it,{Ar:()=>T,GK:()=>d,iQ:()=>v,kt:()=>k,tj:()=>A});const p="inline",v=["row","column","row-reverse","column-reverse"];function T(D){let[P,I,z]=t(D);return function w(D,P=null,I=!1){return{display:I?"inline-flex":"flex","box-sizing":"border-box","flex-direction":D,"flex-wrap":P||null}}(P,I,z)}function t(D){D=D?.toLowerCase()??"";let[P,I,z]=D.split(" ");return v.find(G=>G===P)||(P=v[0]),I===p&&(I=z!==p?z:"",z=p),[P,x(I),!!z]}function A(D){let[P]=t(D);return P.indexOf("row")>-1}function x(D){if(D)switch(D.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":D="wrap-reverse";break;case"no":case"none":case"nowrap":D="nowrap";break;default:D="wrap"}return D}function k(D,...P){if(null==D)throw TypeError("Cannot convert undefined or null to object");for(let I of P)if(null!=I)for(let z in I)I.hasOwnProperty(z)&&(D[z]=I[z]);return D}},32233:(rt,it,b)=>{"use strict";b.d(it,{Bs:()=>Pt,FL:()=>hi,IR:()=>z,Ot:()=>_i,QI:()=>Ht,RK:()=>Jt,WU:()=>ct,g5:()=>ot,iR:()=>tt,wY:()=>gt,yB:()=>vt});var d=b(94650),p=b(36895),v=b(591),T=b(56498),t=b(36787),A=b(8929),x=b(85863),w=b(92198),k=b(22868);const P={provide:d.tb,useFactory:function D(Vn,Gn){return()=>{if((0,p.NF)(Gn)){const je=Array.from(Vn.querySelectorAll(`[class*=${I}]`)),gn=/\bflex-layout-.+?\b/g;je.forEach(Ve=>{Ve.classList.contains(`${I}ssr`)&&Ve.parentNode?Ve.parentNode.removeChild(Ve):Ve.className.replace(gn,"")})}}},deps:[p.K0,d.Lbi],multi:!0},I="flex-layout-";let z=(()=>{class Vn{}return Vn.\u0275fac=function(je){return new(je||Vn)},Vn.\u0275mod=d.oAB({type:Vn}),Vn.\u0275inj=d.cJS({providers:[P]}),Vn})();class G{constructor(Gn=!1,je="all",gn="",Ve="",tn=0){this.matches=Gn,this.mediaQuery=je,this.mqAlias=gn,this.suffix=Ve,this.priority=tn,this.property=""}clone(){return new G(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let W=(()=>{class Vn{constructor(){this.stylesheet=new Map}addStyleToElement(je,gn,Ve){const tn=this.stylesheet.get(je);tn?tn.set(gn,Ve):this.stylesheet.set(je,new Map([[gn,Ve]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(je,gn){const Ve=this.stylesheet.get(je);let tn="";if(Ve){const an=Ve.get(gn);("number"==typeof an||"string"==typeof an)&&(tn=an+"")}return tn}}return Vn.\u0275fac=function(je){return new(je||Vn)},Vn.\u0275prov=d.Yz7({token:Vn,factory:Vn.\u0275fac,providedIn:"root"}),Vn})();const ot={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},ct=new d.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>ot}),gt=new d.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Pt=new d.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function St(Vn,Gn){return Vn=Vn?.clone()??new G,Gn&&(Vn.mqAlias=Gn.alias,Vn.mediaQuery=Gn.mediaQuery,Vn.suffix=Gn.suffix,Vn.priority=Gn.priority),Vn}class Ht{constructor(){this.shouldCache=!0}sideEffect(Gn,je,gn){}}let Jt=(()=>{class Vn{constructor(je,gn,Ve,tn){this._serverStylesheet=je,this._serverModuleLoaded=gn,this._platformId=Ve,this.layoutConfig=tn}applyStyleToElement(je,gn,Ve=null){let tn={};"string"==typeof gn&&(tn[gn]=Ve,gn=tn),tn=this.layoutConfig.disableVendorPrefixes?gn:(0,x.GK)(gn),this._applyMultiValueStyleToElement(tn,je)}applyStyleToElements(je,gn=[]){const Ve=this.layoutConfig.disableVendorPrefixes?je:(0,x.GK)(je);gn.forEach(tn=>{this._applyMultiValueStyleToElement(Ve,tn)})}getFlowDirection(je){const gn="flex-direction";let Ve=this.lookupStyle(je,gn);return[Ve||"row",this.lookupInlineStyle(je,gn)||(0,p.PM)(this._platformId)&&this._serverModuleLoaded?Ve:""]}hasWrap(je){return"wrap"===this.lookupStyle(je,"flex-wrap")}lookupAttributeValue(je,gn){return je.getAttribute(gn)??""}lookupInlineStyle(je,gn){return(0,p.NF)(this._platformId)?je.style.getPropertyValue(gn):function at(Vn,Gn){return _t(Vn)[Gn]??""}(je,gn)}lookupStyle(je,gn,Ve=!1){let tn="";return je&&((tn=this.lookupInlineStyle(je,gn))||((0,p.NF)(this._platformId)?Ve||(tn=getComputedStyle(je).getPropertyValue(gn)):this._serverModuleLoaded&&(tn=this._serverStylesheet.getStyleForElement(je,gn)))),tn?tn.trim():""}_applyMultiValueStyleToElement(je,gn){Object.keys(je).sort().forEach(Ve=>{const tn=je[Ve],an=Array.isArray(tn)?tn:[tn];an.sort();for(let pe of an)pe=pe?pe+"":"",(0,p.NF)(this._platformId)||!this._serverModuleLoaded?(0,p.NF)(this._platformId)?gn.style.setProperty(Ve,pe):Zt(gn,Ve,pe):this._serverStylesheet.addStyleToElement(gn,Ve,pe)})}}return Vn.\u0275fac=function(je){return new(je||Vn)(d.LFG(W),d.LFG(gt),d.LFG(d.Lbi),d.LFG(ct))},Vn.\u0275prov=d.Yz7({token:Vn,factory:Vn.\u0275fac,providedIn:"root"}),Vn})();function Zt(Vn,Gn,je){Gn=Gn.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const gn=_t(Vn);gn[Gn]=je??"",function wt(Vn,Gn){let je="";for(const gn in Gn)Gn[gn]&&(je+=`${gn}:${Gn[gn]};`);Vn.setAttribute("style",je)}(Vn,gn)}function _t(Vn){const Gn={},je=Vn.getAttribute("style");if(je){const gn=je.split(/;+/g);for(let Ve=0;Ve0){const an=tn.indexOf(":");if(-1===an)throw new Error(`Invalid CSS style: ${tn}`);Gn[tn.substr(0,an).trim()]=tn.substr(an+1).trim()}}}return Gn}function Nt(Vn,Gn){return(Gn&&Gn.priority||0)-(Vn&&Vn.priority||0)}function Qt(Vn,Gn){return(Vn.priority||0)-(Gn.priority||0)}let qt=(()=>{class Vn{constructor(je,gn,Ve){this._zone=je,this._platformId=gn,this._document=Ve,this.source=new v.X(new G(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const je=[];return this.registry.forEach((gn,Ve)=>{gn.matches&&je.push(Ve)}),je}isActive(je){return this.registry.get(je)?.matches??this.registerQuery(je).some(Ve=>Ve.matches)}observe(je,gn=!1){if(je&&je.length){const Ve=this._observable$.pipe((0,w.h)(an=>!gn||je.indexOf(an.mediaQuery)>-1)),tn=new T.y(an=>{const pe=this.registerQuery(je);if(pe.length){const We=pe.pop();pe.forEach(Et=>{an.next(Et)}),this.source.next(We)}an.complete()});return(0,t.T)(tn,Ve)}return this._observable$}registerQuery(je){const gn=Array.isArray(je)?je:[je],Ve=[];return function Wt(Vn,Gn){const je=Vn.filter(gn=>!le[gn]);if(je.length>0){const gn=je.join(", ");try{const Ve=Gn.createElement("style");Ve.setAttribute("type","text/css"),Ve.styleSheet||Ve.appendChild(Gn.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${gn} {.fx-query-test{ }}\n`)),Gn.head.appendChild(Ve),je.forEach(tn=>le[tn]=Ve)}catch(Ve){console.error(Ve)}}}(gn,this._document),gn.forEach(tn=>{const an=We=>{this._zone.run(()=>this.source.next(new G(We.matches,tn)))};let pe=this.registry.get(tn);pe||(pe=this.buildMQL(tn),pe.addListener(an),this.pendingRemoveListenerFns.push(()=>pe.removeListener(an)),this.registry.set(tn,pe)),pe.matches&&Ve.push(new G(!0,tn))}),Ve}ngOnDestroy(){let je;for(;je=this.pendingRemoveListenerFns.pop();)je()}buildMQL(je){return function Ae(Vn,Gn){return Gn&&window.matchMedia("all").addListener?window.matchMedia(Vn):function Ce(Vn){const Gn=new EventTarget;return Gn.matches="all"===Vn||""===Vn,Gn.media=Vn,Gn.addListener=()=>{},Gn.removeListener=()=>{},Gn.addEventListener=()=>{},Gn.dispatchEvent=()=>!1,Gn.onchange=null,Gn}(Vn)}(je,(0,p.NF)(this._platformId))}}return Vn.\u0275fac=function(je){return new(je||Vn)(d.LFG(d.R0b),d.LFG(d.Lbi),d.LFG(p.K0))},Vn.\u0275prov=d.Yz7({token:Vn,factory:Vn.\u0275fac,providedIn:"root"}),Vn})();const le={},Ne=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],ze="(orientation: portrait) and (max-width: 599.98px)",Xe="(orientation: landscape) and (max-width: 959.98px)",ie="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Te="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",re="(orientation: portrait) and (min-width: 840px)",ee="(orientation: landscape) and (min-width: 1280px)",ue={HANDSET:`${ze}, ${Xe}`,TABLET:`${ie} , ${Te}`,WEB:`${re}, ${ee} `,HANDSET_PORTRAIT:`${ze}`,TABLET_PORTRAIT:`${ie} `,WEB_PORTRAIT:`${re}`,HANDSET_LANDSCAPE:`${Xe}`,TABLET_LANDSCAPE:`${Te}`,WEB_LANDSCAPE:`${ee}`},Kt=[{alias:"handset",priority:2e3,mediaQuery:ue.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ue.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ue.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ue.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ue.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ue.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ue.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ue.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ue.WEB_PORTRAIT,overlapping:!0}],ce=/(\.|-|_)/g;function Le(Vn){let Gn=Vn.length>0?Vn.charAt(0):"",je=Vn.length>1?Vn.slice(1):"";return Gn.toUpperCase()+je}const bn=new d.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Vn=(0,d.f3M)(Pt),Gn=(0,d.f3M)(ct),je=[].concat.apply([],(Vn||[]).map(Ve=>Array.isArray(Ve)?Ve:[Ve]));return function we(Vn,Gn=[]){const je={};return Vn.forEach(gn=>{je[gn.alias]=gn}),Gn.forEach(gn=>{je[gn.alias]?(0,x.kt)(je[gn.alias],gn):je[gn.alias]=gn}),function hn(Vn){return Vn.forEach(Gn=>{Gn.suffix||(Gn.suffix=function on(Vn){return Vn.replace(ce,"|").split("|").map(Le).join("")}(Gn.alias),Gn.overlapping=!!Gn.overlapping)}),Vn}(Object.keys(je).map(gn=>je[gn]))}((Gn.disableDefaultBps?[]:Ne).concat(Gn.addOrientationBps?Kt:[]),je)}});let Ze=(()=>{class Vn{constructor(je){this.findByMap=new Map,this.items=[...je].sort(Qt)}findByAlias(je){return je?this.findWithPredicate(je,gn=>gn.alias===je):null}findByQuery(je){return this.findWithPredicate(je,gn=>gn.mediaQuery===je)}get overlappings(){return this.items.filter(je=>je.overlapping)}get aliases(){return this.items.map(je=>je.alias)}get suffixes(){return this.items.map(je=>je?.suffix??"")}findWithPredicate(je,gn){let Ve=this.findByMap.get(je);return Ve||(Ve=this.items.find(gn)??null,this.findByMap.set(je,Ve)),Ve??null}}return Vn.\u0275fac=function(je){return new(je||Vn)(d.LFG(bn))},Vn.\u0275prov=d.Yz7({token:Vn,factory:Vn.\u0275fac,providedIn:"root"}),Vn})();const dn="print",kn={alias:dn,mediaQuery:dn,priority:1e3};let ri=(()=>{class Vn{constructor(je,gn,Ve){this.breakpoints=je,this.layoutConfig=gn,this._document=Ve,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Ee,this.deactivations=[]}withPrintQuery(je){return[...je,dn]}isPrintEvent(je){return je.mediaQuery.startsWith(dn)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(je=>this.breakpoints.findByAlias(je)).filter(je=>null!==je)}getEventBreakpoints({mediaQuery:je}){const gn=this.breakpoints.findByQuery(je);return(gn?[...this.printBreakPoints,gn]:this.printBreakPoints).sort(Nt)}updateEvent(je){let gn=this.breakpoints.findByQuery(je.mediaQuery);return this.isPrintEvent(je)&&(gn=this.getEventBreakpoints(je)[0],je.mediaQuery=gn?.mediaQuery??""),St(je,gn)}registerBeforeAfterPrintHooks(je){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const gn=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(je,this.getEventBreakpoints(new G(!0,dn))),je.updateStyles())},Ve=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(je),je.updateStyles())};this._document.defaultView.addEventListener("beforeprint",gn),this._document.defaultView.addEventListener("afterprint",Ve),this.beforePrintEventListeners.push(gn),this.afterPrintEventListeners.push(Ve)}interceptEvents(je){return gn=>{this.isPrintEvent(gn)?gn.matches&&!this.isPrinting?(this.startPrinting(je,this.getEventBreakpoints(gn)),je.updateStyles()):!gn.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(je),je.updateStyles()):this.collectActivations(je,gn)}}blockPropagation(){return je=>!(this.isPrinting||this.isPrintEvent(je))}startPrinting(je,gn){this.isPrinting=!0,this.formerActivations=je.activatedBreakpoints,je.activatedBreakpoints=this.queue.addPrintBreakpoints(gn)}stopPrinting(je){je.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(je,gn){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!gn.matches){const Ve=this.breakpoints.findByQuery(gn.mediaQuery);if(Ve){const tn=this.formerActivations&&this.formerActivations.includes(Ve),an=!this.formerActivations&&je.activatedBreakpoints.includes(Ve);(tn||an)&&(this.deactivations.push(Ve),this.deactivations.sort(Nt))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(je=>this._document.defaultView.removeEventListener("beforeprint",je)),this.afterPrintEventListeners.forEach(je=>this._document.defaultView.removeEventListener("afterprint",je)))}}return Vn.\u0275fac=function(je){return new(je||Vn)(d.LFG(Ze),d.LFG(ct),d.LFG(p.K0))},Vn.\u0275prov=d.Yz7({token:Vn,factory:Vn.\u0275fac,providedIn:"root"}),Vn})();class Ee{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Gn){return Gn.push(kn),Gn.sort(Nt),Gn.forEach(je=>this.addBreakpoint(je)),this.printBreakpoints}addBreakpoint(Gn){Gn&&void 0===this.printBreakpoints.find(gn=>gn.mediaQuery===Gn.mediaQuery)&&(this.printBreakpoints=function Ft(Vn){return Vn?.mediaQuery.startsWith(dn)??!1}(Gn)?[Gn,...this.printBreakpoints]:[...this.printBreakpoints,Gn])}clear(){this.printBreakpoints=[]}}let vt=(()=>{class Vn{constructor(je,gn,Ve){this.matchMedia=je,this.breakpoints=gn,this.hook=Ve,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new A.xQ,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(je){this._activatedBreakpoints=[...je]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(je){this._useFallbacks=je}onMediaChange(je){const gn=this.findByQuery(je.mediaQuery);if(gn){je=St(je,gn);const Ve=this.activatedBreakpoints.indexOf(gn);je.matches&&-1===Ve?(this._activatedBreakpoints.push(gn),this._activatedBreakpoints.sort(Nt),this.updateStyles()):!je.matches&&-1!==Ve&&(this._activatedBreakpoints.splice(Ve,1),this._activatedBreakpoints.sort(Nt),this.updateStyles())}}init(je,gn,Ve,tn,an=[]){xt(this.updateMap,je,gn,Ve),xt(this.clearMap,je,gn,tn),this.buildElementKeyMap(je,gn),this.watchExtraTriggers(je,gn,an)}getValue(je,gn,Ve){const tn=this.elementMap.get(je);if(tn){const an=void 0!==Ve?tn.get(Ve):this.getActivatedValues(tn,gn);if(an)return an.get(gn)}}hasValue(je,gn){const Ve=this.elementMap.get(je);if(Ve){const tn=this.getActivatedValues(Ve,gn);if(tn)return void 0!==tn.get(gn)||!1}return!1}setValue(je,gn,Ve,tn){let an=this.elementMap.get(je);if(an){const We=(an.get(tn)??new Map).set(gn,Ve);an.set(tn,We),this.elementMap.set(je,an)}else an=(new Map).set(tn,(new Map).set(gn,Ve)),this.elementMap.set(je,an);const pe=this.getValue(je,gn);void 0!==pe&&this.updateElement(je,gn,pe)}trackValue(je,gn){return this.subject.asObservable().pipe((0,w.h)(Ve=>Ve.element===je&&Ve.key===gn))}updateStyles(){this.elementMap.forEach((je,gn)=>{const Ve=new Set(this.elementKeyMap.get(gn));let tn=this.getActivatedValues(je);tn&&tn.forEach((an,pe)=>{this.updateElement(gn,pe,an),Ve.delete(pe)}),Ve.forEach(an=>{if(tn=this.getActivatedValues(je,an),tn){const pe=tn.get(an);this.updateElement(gn,an,pe)}else this.clearElement(gn,an)})})}clearElement(je,gn){const Ve=this.clearMap.get(je);if(Ve){const tn=Ve.get(gn);tn&&(tn(),this.subject.next({element:je,key:gn,value:""}))}}updateElement(je,gn,Ve){const tn=this.updateMap.get(je);if(tn){const an=tn.get(gn);an&&(an(Ve),this.subject.next({element:je,key:gn,value:Ve}))}}releaseElement(je){const gn=this.watcherMap.get(je);gn&&(gn.forEach(tn=>tn.unsubscribe()),this.watcherMap.delete(je));const Ve=this.elementMap.get(je);Ve&&(Ve.forEach((tn,an)=>Ve.delete(an)),this.elementMap.delete(je))}triggerUpdate(je,gn){const Ve=this.elementMap.get(je);if(Ve){const tn=this.getActivatedValues(Ve,gn);tn&&(gn?this.updateElement(je,gn,tn.get(gn)):tn.forEach((an,pe)=>this.updateElement(je,pe,an)))}}buildElementKeyMap(je,gn){let Ve=this.elementKeyMap.get(je);Ve||(Ve=new Set,this.elementKeyMap.set(je,Ve)),Ve.add(gn)}watchExtraTriggers(je,gn,Ve){if(Ve&&Ve.length){let tn=this.watcherMap.get(je);if(tn||(tn=new Map,this.watcherMap.set(je,tn)),!tn.get(gn)){const pe=(0,t.T)(...Ve).subscribe(()=>{const We=this.getValue(je,gn);this.updateElement(je,gn,We)});tn.set(gn,pe)}}}findByQuery(je){return this.breakpoints.findByQuery(je)}getActivatedValues(je,gn){for(let tn=0;tngn.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(je)).pipe((0,k.b)(this.hook.interceptEvents(this)),(0,w.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Vn.\u0275fac=function(je){return new(je||Vn)(d.LFG(qt),d.LFG(Ze),d.LFG(ri))},Vn.\u0275prov=d.Yz7({token:Vn,factory:Vn.\u0275fac,providedIn:"root"}),Vn})();function xt(Vn,Gn,je,gn){if(void 0!==gn){const Ve=Vn.get(Gn)??new Map;Ve.set(je,gn),Vn.set(Gn,Ve)}}let tt=(()=>{class Vn{constructor(je,gn,Ve,tn){this.elementRef=je,this.styleBuilder=gn,this.styler=Ve,this.marshal=tn,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new A.xQ,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(je){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,je,this.marshal.activatedAlias)}ngOnChanges(je){Object.keys(je).forEach(gn=>{if(-1!==this.inputs.indexOf(gn)){const Ve=gn.split(".").slice(1).join(".");this.setValue(je[gn].currentValue,Ve)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(je=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),je)}addStyles(je,gn){const Ve=this.styleBuilder,tn=Ve.shouldCache;let an=this.styleCache.get(je);(!an||!tn)&&(an=Ve.buildStyles(je,gn),tn&&this.styleCache.set(je,an)),this.mru={...an},this.applyStyleToElement(an),Ve.sideEffect(je,an,gn)}clearStyles(){Object.keys(this.mru).forEach(je=>{this.mru[je]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(je,gn=!1){if(je){const[Ve,tn]=this.styler.getFlowDirection(je);if(!tn&&gn){const an=(0,x.Ar)(Ve);this.styler.applyStyleToElements(an,[je])}return Ve.trim()}return"row"}hasWrap(je){return this.styler.hasWrap(je)}applyStyleToElement(je,gn,Ve=this.nativeElement){this.styler.applyStyleToElement(Ve,je,gn)}setValue(je,gn){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,je,gn)}updateWithValue(je){this.currentValue!==je&&(this.addStyles(je),this.currentValue=je)}}return Vn.\u0275fac=function(je){return new(je||Vn)(d.Y36(d.SBq),d.Y36(Ht),d.Y36(Jt),d.Y36(vt))},Vn.\u0275dir=d.lG2({type:Vn,features:[d.TTD]}),Vn})();function _i(Vn,Gn="1",je="1"){let gn=[Gn,je,Vn],Ve=Vn.indexOf("calc");if(Ve>0){gn[2]=Si(Vn.substring(Ve).trim());let tn=Vn.substr(0,Ve).trim().split(" ");2==tn.length&&(gn[0]=tn[0],gn[1]=tn[1])}else if(0==Ve)gn[2]=Si(Vn.trim());else{let tn=Vn.split(" ");gn=3===tn.length?tn:[Gn,je,Vn]}return gn}function Si(Vn){return Vn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function hi(Vn,Gn){if(void 0===Gn)return Vn;const je=gn=>{const Ve=+gn.slice(0,-"x".length);return Vn.endsWith("x")&&!isNaN(Ve)?`${Ve*Gn.value}${Gn.unit}`:Vn};return Vn.includes(" ")?Vn.split(" ").map(je).join(" "):je(Vn)}EventTarget},55829:(rt,it,b)=>{"use strict";b.d(it,{Zl:()=>Ae,aT:()=>Xe,b8:()=>Jt,oO:()=>ot});var d=b(94650),p=b(32233),v=b(36895),T=b(21281),t=b(7625),A=b(11481);let z=(()=>{class ie extends p.iR{constructor(re,ee,ue,Kt,ce,Le,on){super(re,null,ee,ue),this.ngClassInstance=on,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new v.mk(Kt,ce,re,Le)),this.init(),this.setValue("","")}set klass(re){this.ngClassInstance.klass=re,this.setValue(re,"")}updateWithValue(re){this.ngClassInstance.ngClass=re,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return ie.\u0275fac=function(re){return new(re||ie)(d.Y36(d.SBq),d.Y36(p.RK),d.Y36(p.yB),d.Y36(d.ZZ4),d.Y36(d.aQg),d.Y36(d.Qsj),d.Y36(v.mk,10))},ie.\u0275dir=d.lG2({type:ie,inputs:{klass:["class","klass"]},features:[d.qOj]}),ie})();const G=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let ot=(()=>{class ie extends z{constructor(){super(...arguments),this.inputs=G}}return ie.\u0275fac=function(){let Te;return function(ee){return(Te||(Te=d.n5z(ie)))(ee||ie)}}(),ie.\u0275dir=d.lG2({type:ie,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[d.qOj]}),ie})(),ct=(()=>{class ie extends p.QI{buildStyles(re,ee){return{display:"true"===re?ee.display||(ee.isServer?"initial":""):"none"}}}return ie.\u0275fac=function(){let Te;return function(ee){return(Te||(Te=d.n5z(ie)))(ee||ie)}}(),ie.\u0275prov=d.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),gt=(()=>{class ie extends p.iR{constructor(re,ee,ue,Kt,ce,Le,on){super(re,ee,ue,Kt),this.layoutConfig=ce,this.platformId=Le,this.serverModuleLoaded=on,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const re=Array.from(this.nativeElement.children);for(let ue=0;ue{if(-1!==this.inputs.indexOf(ee)){const ue=ee.split("."),Kt=ue.slice(1).join("."),ce=re[ee].currentValue;let Le=""===ce||0!==ce&&(0,T.Ig)(ce);"fxHide"===ue[0]&&(Le=!Le),this.setValue(Le,Kt)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(re=>{this.marshal.trackValue(this.nativeElement,re).pipe((0,t.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(re=!0){if(""===re)return;const ee=(0,v.PM)(this.platformId);this.addStyles(re?"true":"false",{display:this.display,isServer:ee}),ee&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return ie.\u0275fac=function(re){return new(re||ie)(d.Y36(d.SBq),d.Y36(ct),d.Y36(p.RK),d.Y36(p.yB),d.Y36(p.WU),d.Y36(d.Lbi),d.Y36(p.wY))},ie.\u0275dir=d.lG2({type:ie,features:[d.qOj,d.TTD]}),ie})();const Pt=new WeakMap,St=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let Jt=(()=>{class ie extends gt{constructor(){super(...arguments),this.inputs=St}}return ie.\u0275fac=function(){let Te;return function(ee){return(Te||(Te=d.n5z(ie)))(ee||ie)}}(),ie.\u0275dir=d.lG2({type:ie,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[d.qOj]}),ie})();class at{constructor(Te,re,ee=!0){this.key=Te,this.value=re,this.key=ee?Te.replace(/['"]/g,"").trim():Te.trim(),this.value=ee?re.replace(/['"]/g,"").trim():re.trim(),this.value=this.value.replace(/;/,"")}}function Zt(ie){let Te=typeof ie;return"object"===Te?ie.constructor===Array?"array":ie.constructor===Set?"set":"object":Te}function Qt(ie){const[Te,...re]=ie.split(":");return new at(Te,re.join(":"))}function qt(ie,Te){return Te.key&&(ie[Te.key]=Te.value),ie}let le=(()=>{class ie extends p.iR{constructor(re,ee,ue,Kt,ce,Le,on,hn,we){super(re,null,ee,ue),this.sanitizer=Kt,this.ngStyleInstance=on,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new v.PC(re,ce,Le)),this.init();const bn=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(bn),this.isServer=hn&&(0,v.PM)(we)}updateWithValue(re){const ee=this.buildStyleMap(re);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...ee},this.isServer&&this.applyStyleToElement(ee),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(re){const ee=ue=>this.sanitizer.sanitize(d.q3G.STYLE,ue)??"";if(re)switch(Zt(re)){case"string":return Ne(function wt(ie,Te=";"){return String(ie).trim().split(Te).map(re=>re.trim()).filter(re=>""!==re)}(re),ee);case"array":return Ne(re,ee);default:return function Nt(ie,Te){let re=[];return"set"===Zt(ie)?ie.forEach(ee=>re.push(ee)):Object.keys(ie).forEach(ee=>{re.push(`${ee}:${ie[ee]}`)}),function _t(ie,Te){return ie.map(Qt).filter(ee=>!!ee).map(ee=>(Te&&(ee.value=Te(ee.value)),ee)).reduce(qt,{})}(re,Te)}(re,ee)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return ie.\u0275fac=function(re){return new(re||ie)(d.Y36(d.SBq),d.Y36(p.RK),d.Y36(p.yB),d.Y36(A.H7),d.Y36(d.aQg),d.Y36(d.Qsj),d.Y36(v.PC,10),d.Y36(p.wY),d.Y36(d.Lbi))},ie.\u0275dir=d.lG2({type:ie,features:[d.qOj]}),ie})();const Wt=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let Ae=(()=>{class ie extends le{constructor(){super(...arguments),this.inputs=Wt}}return ie.\u0275fac=function(){let Te;return function(ee){return(Te||(Te=d.n5z(ie)))(ee||ie)}}(),ie.\u0275dir=d.lG2({type:ie,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[d.qOj]}),ie})();function Ne(ie,Te){return ie.map(Qt).filter(ee=>!!ee).map(ee=>(Te&&(ee.value=Te(ee.value)),ee)).reduce(qt,{})}let Xe=(()=>{class ie{}return ie.\u0275fac=function(re){return new(re||ie)},ie.\u0275mod=d.oAB({type:ie}),ie.\u0275inj=d.cJS({imports:[p.IR]}),ie})()},1576:(rt,it,b)=>{"use strict";b.d(it,{SQ:()=>gt,Wh:()=>_i,XD:()=>tt,ae:()=>an,s9:()=>Bt,xw:()=>P,yH:()=>Ce});var d=b(94650),p=b(40445),v=b(32233),T=b(85863),t=b(8929),A=b(7625);let x=(()=>{class pe extends v.QI{buildStyles(Et,{display:Mt}){const It=(0,T.Ar)(Et);return{...It,display:"none"===Mt?Mt:It.display}}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const w=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let D=(()=>{class pe extends v.iR{constructor(Et,Mt,It,Me,en){super(Et,It,Mt,Me),this._config=en,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Et){const It=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=I.get(It)??new Map,I.set(It,this.styleCache),this.currentValue!==Et&&(this.addStyles(Et,{display:It}),this.currentValue=Et)}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(x),d.Y36(v.yB),d.Y36(v.WU))},pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})(),P=(()=>{class pe extends D{constructor(){super(...arguments),this.inputs=w}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[d.qOj]}),pe})();const I=new Map,z={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let G=(()=>{class pe extends v.QI{constructor(Et,Mt){super(),this._styler=Et,this._config=Mt}buildStyles(Et,Mt){return Et.endsWith(at)?(Et=Et.slice(0,Et.indexOf(at)),function wt(pe,We){const[Et,Mt]=pe.split(" "),Me=ve=>`-${ve}`;let en="0px",He=Me(Mt??Et),Zn="0px";return"rtl"===We?Zn=Me(Et):en=Me(Et),{margin:`0px ${en} ${He} ${Zn}`}}(Et=(0,v.FL)(Et,this._config.multiplier),Mt.directionality)):{}}sideEffect(Et,Mt,It){const Me=It.items;if(Et.endsWith(at)){Et=Et.slice(0,Et.indexOf(at));const en=function Zt(pe,We){const[Et,Mt]=pe.split(" ");let Me="0px",He="0px";return"rtl"===We?He=Et:Me=Et,{padding:`0px ${Me} ${Mt??Et} ${He}`}}(Et=(0,v.FL)(Et,this._config.multiplier),It.directionality);this._styler.applyStyleToElements(en,It.items)}else{Et=(0,v.FL)(Et,this._config.multiplier),Et=this.addFallbackUnit(Et);const en=Me.pop(),He=function Nt(pe,We){const Et=_t(We.directionality,We.layout),Mt={...z};return Mt[Et]=pe,Mt}(Et,It);this._styler.applyStyleToElements(He,Me),this._styler.applyStyleToElements(z,[en])}}addFallbackUnit(Et){return isNaN(+Et)?Et:`${Et}${this._config.defaultUnit}`}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.LFG(v.RK),d.LFG(v.WU))},pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const W=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let ct=(()=>{class pe extends v.iR{constructor(Et,Mt,It,Me,en,He){super(Et,en,Me,He),this.zone=Mt,this.directionality=It,this.styleUtils=Me,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new t.xQ;const Zn=[this.directionality.change,this.observerSubject.asObservable()];this.init(Zn),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const Et=this.nativeElement.children,Mt=[];for(let It=Et.length;It--;)Mt[It]=Et[It];return Mt}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(Et){const It=Et.value.split(" ");this.layout=It[0],T.iQ.find(Me=>Me===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(Et){const Mt=this.childrenNodes.filter(It=>1===It.nodeType&&this.willDisplay(It)).sort((It,Me)=>{const en=+this.styler.lookupStyle(It,"order"),He=+this.styler.lookupStyle(Me,"order");return isNaN(en)||isNaN(He)||en===He?0:en>He?1:-1});if(Mt.length>0){const It=this.directionality.value,Me=this.layout;"row"===Me&&"rtl"===It?this.styleCache=Pt:"row"===Me&&"rtl"!==It?this.styleCache=Ht:"column"===Me&&"rtl"===It?this.styleCache=St:"column"===Me&&"rtl"!==It&&(this.styleCache=Jt),this.addStyles(Et,{directionality:It,items:Mt,layout:Me})}}clearStyles(){const Et=Object.keys(this.mru).length>0,Mt=Et?"padding":_t(this.directionality.value,this.layout);Et&&super.clearStyles(),this.styleUtils.applyStyleToElements({[Mt]:""},this.childrenNodes)}willDisplay(Et){const Mt=this.marshal.getValue(Et,"show-hide");return!0===Mt||void 0===Mt&&"none"!==this.styleUtils.lookupStyle(Et,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(Et=>{Et.some(It=>It.addedNodes&&It.addedNodes.length>0||It.removedNodes&&It.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(p.Is),d.Y36(v.RK),d.Y36(G),d.Y36(v.yB))},pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})(),gt=(()=>{class pe extends ct{constructor(){super(...arguments),this.inputs=W}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[d.qOj]}),pe})();const Pt=new Map,St=new Map,Ht=new Map,Jt=new Map,at=" grid";function _t(pe,We){switch(We){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===pe?"margin-left":"margin-right";case"row-reverse":return"rtl"===pe?"margin-right":"margin-left"}}let Qt=(()=>{class pe extends v.QI{constructor(Et){super(),this.layoutConfig=Et}buildStyles(Et,Mt){let[It,Me,...en]=Et.split(" "),He=en.join(" ");const Zn=Mt.direction.indexOf("column")>-1?"column":"row",ve=(0,T.tj)(Zn)?"max-width":"max-height",Be=(0,T.tj)(Zn)?"min-width":"min-height",Fn=String(He).indexOf("calc")>-1,bi=Fn||"auto"===He,go=String(He).indexOf("%")>-1&&!Fn,_o=String(He).indexOf("px")>-1||String(He).indexOf("rem")>-1||String(He).indexOf("em")>-1||String(He).indexOf("vw")>-1||String(He).indexOf("vh")>-1;let fn=Fn||_o;It="0"==It?0:It,Me="0"==Me?0:Me;const wn=!It&&!Me;let ln={};const ii={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(He||""){case"":const Zi=!1!==this.layoutConfig.useColumnBasisZero;He="row"===Zn?"0%":Zi?"0.000000001px":"auto";break;case"initial":case"nogrow":It=0,He="auto";break;case"grow":He="100%";break;case"noshrink":Me=0,He="auto";break;case"auto":break;case"none":It=0,Me=0,He="auto";break;default:!fn&&!go&&!isNaN(He)&&(He+="%"),"0%"===He&&(fn=!0),"0px"===He&&(He="0%"),ln=(0,T.kt)(ii,Fn?{"flex-grow":It,"flex-shrink":Me,"flex-basis":fn?He:"100%"}:{flex:`${It} ${Me} ${fn?He:"100%"}`})}return ln.flex||ln["flex-grow"]||(ln=(0,T.kt)(ii,Fn?{"flex-grow":It,"flex-shrink":Me,"flex-basis":He}:{flex:`${It} ${Me} ${He}`})),"0%"!==He&&"0px"!==He&&"0.000000001px"!==He&&"auto"!==He&&(ln[Be]=wn||fn&&It?He:null,ln[ve]=wn||!bi&&Me?He:null),ln[Be]||ln[ve]?Mt.hasWrap&&(ln[Fn?"flex-basis":"flex"]=ln[ve]?Fn?ln[ve]:`${It} ${Me} ${ln[ve]}`:Fn?ln[Be]:`${It} ${Me} ${ln[Be]}`):ln=(0,T.kt)(ii,Fn?{"flex-grow":It,"flex-shrink":Me,"flex-basis":He}:{flex:`${It} ${Me} ${He}`}),(0,T.kt)(ln,{"box-sizing":"border-box"})}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.LFG(v.WU))},pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const qt=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let Wt=(()=>{class pe extends v.iR{constructor(Et,Mt,It,Me,en){super(Et,Me,Mt,en),this.layoutConfig=It,this.marshal=en,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(Et){this.flexShrink=Et||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Et){this.flexGrow=Et||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,A.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Et){const It=Et.value.split(" ");this.direction=It[0],this.wrap=void 0!==It[1]&&"wrap"===It[1],this.triggerUpdate()}updateWithValue(Et){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const It=this.direction,Me=It.startsWith("row"),en=this.wrap;Me&&en?this.styleCache=ze:Me&&!en?this.styleCache=Ae:!Me&&en?this.styleCache=Xe:!Me&&!en&&(this.styleCache=Ne);const He=String(Et).replace(";",""),Zn=(0,v.Ot)(He,this.flexGrow,this.flexShrink);this.addStyles(Zn.join(" "),{direction:It,hasWrap:en})}triggerReflow(){const Et=this.activatedValue;if(void 0!==Et){const Mt=(0,v.Ot)(Et+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,Mt.join(" "))}}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(v.WU),d.Y36(Qt),d.Y36(v.yB))},pe.\u0275dir=d.lG2({type:pe,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[d.qOj]}),pe})(),Ce=(()=>{class pe extends Wt{constructor(){super(...arguments),this.inputs=qt}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[d.qOj]}),pe})();const Ae=new Map,Ne=new Map,ze=new Map,Xe=new Map;let ri=(()=>{class pe extends v.QI{buildStyles(Et){const Mt={};switch(Et=Et||"stretch"){case"start":Mt["align-self"]="flex-start";break;case"end":Mt["align-self"]="flex-end";break;default:Mt["align-self"]=Et}return Mt}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const Ee=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let vt=(()=>{class pe extends v.iR{constructor(Et,Mt,It,Me){super(Et,It,Mt,Me),this.DIRECTIVE_KEY="flex-align",this.styleCache=xt,this.init()}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(ri),d.Y36(v.yB))},pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})();const xt=new Map;let tt=(()=>{class pe extends vt{constructor(){super(...arguments),this.inputs=Ee}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[d.qOj]}),pe})();const et={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let Ct=(()=>{class pe extends v.QI{buildStyles(Et){return et}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})(),Bt=(()=>{class pe extends v.iR{constructor(Et,Mt,It,Me){super(Et,It,Mt,Me),this.styleCache=ne,this.addStyles("")}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(Ct),d.Y36(v.yB))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[d.qOj]}),pe})();const ne=new Map;let he=(()=>{class pe extends v.QI{buildStyles(Et,Mt){const It={},[Me,en]=Et.split(" ");switch(Me){case"center":It["justify-content"]="center";break;case"space-around":It["justify-content"]="space-around";break;case"space-between":It["justify-content"]="space-between";break;case"space-evenly":It["justify-content"]="space-evenly";break;case"end":case"flex-end":It["justify-content"]="flex-end";break;default:It["justify-content"]="flex-start"}switch(en){case"start":case"flex-start":It["align-items"]=It["align-content"]="flex-start";break;case"center":It["align-items"]=It["align-content"]="center";break;case"end":case"flex-end":It["align-items"]=It["align-content"]="flex-end";break;case"space-between":It["align-content"]="space-between",It["align-items"]="stretch";break;case"space-around":It["align-content"]="space-around",It["align-items"]="stretch";break;case"baseline":It["align-content"]="stretch",It["align-items"]="baseline";break;default:It["align-items"]=It["align-content"]="stretch"}return(0,T.kt)(It,{display:Mt.inline?"inline-flex":"flex","flex-direction":Mt.layout,"box-sizing":"border-box","max-width":"stretch"===en?(0,T.tj)(Mt.layout)?null:"100%":null,"max-height":"stretch"===en&&(0,T.tj)(Mt.layout)?"100%":null})}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const Oe=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let On=(()=>{class pe extends v.iR{constructor(Et,Mt,It,Me){super(Et,It,Mt,Me),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Et){const Mt=this.layout||"row",It=this.inline;"row"===Mt&&It?this.styleCache=Gn:"row"!==Mt||It?"row-reverse"===Mt&&It?this.styleCache=gn:"row-reverse"!==Mt||It?"column"===Mt&&It?this.styleCache=je:"column"!==Mt||It?"column-reverse"===Mt&&It?this.styleCache=Ve:"column-reverse"===Mt&&!It&&(this.styleCache=Vn):this.styleCache=ho:this.styleCache=hi:this.styleCache=Si,this.addStyles(Et,{layout:Mt,inline:It})}onLayoutChange(Et){const Mt=Et.value.split(" ");this.layout=Mt[0],this.inline=Et.value.includes("inline"),T.iQ.find(It=>It===this.layout)||(this.layout="row"),this.triggerUpdate()}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(he),d.Y36(v.yB))},pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})(),_i=(()=>{class pe extends On{constructor(){super(...arguments),this.inputs=Oe}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[d.qOj]}),pe})();const Si=new Map,ho=new Map,hi=new Map,Vn=new Map,Gn=new Map,je=new Map,gn=new Map,Ve=new Map;let an=(()=>{class pe{}return pe.\u0275fac=function(Et){return new(Et||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[v.IR,p.vT]}),pe})()},24006:(rt,it,b)=>{"use strict";b.d(it,{CE:()=>Gs,Cf:()=>gt,F:()=>br,Fd:()=>pr,Fj:()=>G,JJ:()=>Ft,JL:()=>vt,JU:()=>w,NI:()=>Er,On:()=>Qr,Q7:()=>Vl,QS:()=>$s,UX:()=>sl,Zs:()=>Ps,_Y:()=>Ns,a5:()=>dn,kI:()=>Ht,nD:()=>lc,nJ:()=>Be,oH:()=>js,p4:()=>bc,qQ:()=>vs,qu:()=>Da,sg:()=>md,u:()=>zl,u5:()=>Qc,wV:()=>hr,x0:()=>Js});var d=b(94650),p=b(36895),v=b(5254),T=b(30567),t=b(24850);let A=(()=>{class _e{constructor(Yt,st){this._renderer=Yt,this._elementRef=st,this.onChange=ki=>{},this.onTouched=()=>{}}setProperty(Yt,st){this._renderer.setProperty(this._elementRef.nativeElement,Yt,st)}registerOnTouched(Yt){this.onTouched=Yt}registerOnChange(Yt){this.onChange=Yt}setDisabledState(Yt){this.setProperty("disabled",Yt)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(d.Qsj),d.Y36(d.SBq))},_e.\u0275dir=d.lG2({type:_e}),_e})(),x=(()=>{class _e extends A{}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,features:[d.qOj]}),_e})();const w=new d.OlP("NgValueAccessor"),P={provide:w,useExisting:(0,d.Gpc)(()=>G),multi:!0},z=new d.OlP("CompositionEventMode");let G=(()=>{class _e extends A{constructor(Yt,st,ki){super(Yt,st),this._compositionMode=ki,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function I(){const _e=(0,p.q)()?(0,p.q)().getUserAgent():"";return/android (\d+)/.test(_e.toLowerCase())}())}writeValue(Yt){this.setProperty("value",Yt??"")}_handleInput(Yt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Yt)}_compositionStart(){this._composing=!0}_compositionEnd(Yt){this._composing=!1,this._compositionMode&&this.onChange(Yt)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(d.Qsj),d.Y36(d.SBq),d.Y36(z,8))},_e.\u0275dir=d.lG2({type:_e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Yt,st){1&Yt&&d.NdJ("input",function(jo){return st._handleInput(jo.target.value)})("blur",function(){return st.onTouched()})("compositionstart",function(){return st._compositionStart()})("compositionend",function(jo){return st._compositionEnd(jo.target.value)})},features:[d._Bn([P]),d.qOj]}),_e})();function ot(_e){return null==_e||("string"==typeof _e||Array.isArray(_e))&&0===_e.length}function ct(_e){return null!=_e&&"number"==typeof _e.length}const gt=new d.OlP("NgValidators"),Pt=new d.OlP("NgAsyncValidators"),St=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ht{static min(ae){return Jt(ae)}static max(ae){return at(ae)}static required(ae){return Zt(ae)}static requiredTrue(ae){return wt(ae)}static email(ae){return function _t(_e){return ot(_e.value)||St.test(_e.value)?null:{email:!0}}(ae)}static minLength(ae){return function Nt(_e){return ae=>ot(ae.value)||!ct(ae.value)?null:ae.value.length<_e?{minlength:{requiredLength:_e,actualLength:ae.value.length}}:null}(ae)}static maxLength(ae){return Qt(ae)}static pattern(ae){return function qt(_e){if(!_e)return le;let ae,Yt;return"string"==typeof _e?(Yt="","^"!==_e.charAt(0)&&(Yt+="^"),Yt+=_e,"$"!==_e.charAt(_e.length-1)&&(Yt+="$"),ae=new RegExp(Yt)):(Yt=_e.toString(),ae=_e),st=>{if(ot(st.value))return null;const ki=st.value;return ae.test(ki)?null:{pattern:{requiredPattern:Yt,actualValue:ki}}}}(ae)}static nullValidator(ae){return null}static compose(ae){return ie(ae)}static composeAsync(ae){return re(ae)}}function Jt(_e){return ae=>{if(ot(ae.value)||ot(_e))return null;const Yt=parseFloat(ae.value);return!isNaN(Yt)&&Yt<_e?{min:{min:_e,actual:ae.value}}:null}}function at(_e){return ae=>{if(ot(ae.value)||ot(_e))return null;const Yt=parseFloat(ae.value);return!isNaN(Yt)&&Yt>_e?{max:{max:_e,actual:ae.value}}:null}}function Zt(_e){return ot(_e.value)?{required:!0}:null}function wt(_e){return!0===_e.value?null:{required:!0}}function Qt(_e){return ae=>ct(ae.value)&&ae.value.length>_e?{maxlength:{requiredLength:_e,actualLength:ae.value.length}}:null}function le(_e){return null}function Wt(_e){return null!=_e}function Ce(_e){return(0,d.QGY)(_e)?(0,v.D)(_e):_e}function Ae(_e){let ae={};return _e.forEach(Yt=>{ae=null!=Yt?{...ae,...Yt}:ae}),0===Object.keys(ae).length?null:ae}function Ne(_e,ae){return ae.map(Yt=>Yt(_e))}function Xe(_e){return _e.map(ae=>function ze(_e){return!_e.validate}(ae)?ae:Yt=>ae.validate(Yt))}function ie(_e){if(!_e)return null;const ae=_e.filter(Wt);return 0==ae.length?null:function(Yt){return Ae(Ne(Yt,ae))}}function Te(_e){return null!=_e?ie(Xe(_e)):null}function re(_e){if(!_e)return null;const ae=_e.filter(Wt);return 0==ae.length?null:function(Yt){const st=Ne(Yt,ae).map(Ce);return(0,T.D)(st).pipe((0,t.U)(Ae))}}function ee(_e){return null!=_e?re(Xe(_e)):null}function ue(_e,ae){return null===_e?[ae]:Array.isArray(_e)?[..._e,ae]:[_e,ae]}function Kt(_e){return _e._rawValidators}function ce(_e){return _e._rawAsyncValidators}function Le(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}function on(_e,ae){return Array.isArray(_e)?_e.includes(ae):_e===ae}function hn(_e,ae){const Yt=Le(ae);return Le(_e).forEach(ki=>{on(Yt,ki)||Yt.push(ki)}),Yt}function we(_e,ae){return Le(ae).filter(Yt=>!on(_e,Yt))}class bn{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(ae){this._rawValidators=ae||[],this._composedValidatorFn=Te(this._rawValidators)}_setAsyncValidators(ae){this._rawAsyncValidators=ae||[],this._composedAsyncValidatorFn=ee(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ae){this._onDestroyCallbacks.push(ae)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ae=>ae()),this._onDestroyCallbacks=[]}reset(ae){this.control&&this.control.reset(ae)}hasError(ae,Yt){return!!this.control&&this.control.hasError(ae,Yt)}getError(ae,Yt){return this.control?this.control.getError(ae,Yt):null}}class Ze extends bn{get formDirective(){return null}get path(){return null}}class dn extends bn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class kn{constructor(ae){this._cd=ae}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ft=(()=>{class _e extends kn{constructor(Yt){super(Yt)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(dn,2))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Yt,st){2&Yt&&d.ekj("ng-untouched",st.isUntouched)("ng-touched",st.isTouched)("ng-pristine",st.isPristine)("ng-dirty",st.isDirty)("ng-valid",st.isValid)("ng-invalid",st.isInvalid)("ng-pending",st.isPending)},features:[d.qOj]}),_e})(),vt=(()=>{class _e extends kn{constructor(Yt){super(Yt)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(Ze,10))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Yt,st){2&Yt&&d.ekj("ng-untouched",st.isUntouched)("ng-touched",st.isTouched)("ng-pristine",st.isPristine)("ng-dirty",st.isDirty)("ng-valid",st.isValid)("ng-invalid",st.isInvalid)("ng-pending",st.isPending)("ng-submitted",st.isSubmitted)},features:[d.qOj]}),_e})();const Ve="VALID",tn="INVALID",an="PENDING",pe="DISABLED";function We(_e){return(Me(_e)?_e.validators:_e)||null}function Et(_e){return Array.isArray(_e)?Te(_e):_e||null}function Mt(_e,ae){return(Me(ae)?ae.asyncValidators:_e)||null}function It(_e){return Array.isArray(_e)?ee(_e):_e||null}function Me(_e){return null!=_e&&!Array.isArray(_e)&&"object"==typeof _e}function en(_e,ae,Yt){const st=_e.controls;if(!(ae?Object.keys(st):st).length)throw new d.vHH(1e3,"");if(!st[Yt])throw new d.vHH(1001,"")}function He(_e,ae,Yt){_e._forEachChild((st,ki)=>{if(void 0===Yt[ki])throw new d.vHH(1002,"")})}class Zn{constructor(ae,Yt){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=ae,this._rawAsyncValidators=Yt,this._composedValidatorFn=Et(this._rawValidators),this._composedAsyncValidatorFn=It(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(ae){this._rawValidators=this._composedValidatorFn=ae}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ae){this._rawAsyncValidators=this._composedAsyncValidatorFn=ae}get parent(){return this._parent}get valid(){return this.status===Ve}get invalid(){return this.status===tn}get pending(){return this.status==an}get disabled(){return this.status===pe}get enabled(){return this.status!==pe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ae){this._rawValidators=ae,this._composedValidatorFn=Et(ae)}setAsyncValidators(ae){this._rawAsyncValidators=ae,this._composedAsyncValidatorFn=It(ae)}addValidators(ae){this.setValidators(hn(ae,this._rawValidators))}addAsyncValidators(ae){this.setAsyncValidators(hn(ae,this._rawAsyncValidators))}removeValidators(ae){this.setValidators(we(ae,this._rawValidators))}removeAsyncValidators(ae){this.setAsyncValidators(we(ae,this._rawAsyncValidators))}hasValidator(ae){return on(this._rawValidators,ae)}hasAsyncValidator(ae){return on(this._rawAsyncValidators,ae)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ae={}){this.touched=!0,this._parent&&!ae.onlySelf&&this._parent.markAsTouched(ae)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ae=>ae.markAllAsTouched())}markAsUntouched(ae={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Yt=>{Yt.markAsUntouched({onlySelf:!0})}),this._parent&&!ae.onlySelf&&this._parent._updateTouched(ae)}markAsDirty(ae={}){this.pristine=!1,this._parent&&!ae.onlySelf&&this._parent.markAsDirty(ae)}markAsPristine(ae={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Yt=>{Yt.markAsPristine({onlySelf:!0})}),this._parent&&!ae.onlySelf&&this._parent._updatePristine(ae)}markAsPending(ae={}){this.status=an,!1!==ae.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ae.onlySelf&&this._parent.markAsPending(ae)}disable(ae={}){const Yt=this._parentMarkedDirty(ae.onlySelf);this.status=pe,this.errors=null,this._forEachChild(st=>{st.disable({...ae,onlySelf:!0})}),this._updateValue(),!1!==ae.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ae,skipPristineCheck:Yt}),this._onDisabledChange.forEach(st=>st(!0))}enable(ae={}){const Yt=this._parentMarkedDirty(ae.onlySelf);this.status=Ve,this._forEachChild(st=>{st.enable({...ae,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ae.emitEvent}),this._updateAncestors({...ae,skipPristineCheck:Yt}),this._onDisabledChange.forEach(st=>st(!1))}_updateAncestors(ae){this._parent&&!ae.onlySelf&&(this._parent.updateValueAndValidity(ae),ae.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ae){this._parent=ae}getRawValue(){return this.value}updateValueAndValidity(ae={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ve||this.status===an)&&this._runAsyncValidator(ae.emitEvent)),!1!==ae.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ae.onlySelf&&this._parent.updateValueAndValidity(ae)}_updateTreeValidity(ae={emitEvent:!0}){this._forEachChild(Yt=>Yt._updateTreeValidity(ae)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ae.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?pe:Ve}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ae){if(this.asyncValidator){this.status=an,this._hasOwnPendingAsyncValidator=!0;const Yt=Ce(this.asyncValidator(this));this._asyncValidationSubscription=Yt.subscribe(st=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(st,{emitEvent:ae})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ae,Yt={}){this.errors=ae,this._updateControlsErrors(!1!==Yt.emitEvent)}get(ae){let Yt=ae;return null==Yt||(Array.isArray(Yt)||(Yt=Yt.split(".")),0===Yt.length)?null:Yt.reduce((st,ki)=>st&&st._find(ki),this)}getError(ae,Yt){const st=Yt?this.get(Yt):this;return st&&st.errors?st.errors[ae]:null}hasError(ae,Yt){return!!this.getError(ae,Yt)}get root(){let ae=this;for(;ae._parent;)ae=ae._parent;return ae}_updateControlsErrors(ae){this.status=this._calculateStatus(),ae&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ae)}_initObservables(){this.valueChanges=new d.vpe,this.statusChanges=new d.vpe}_calculateStatus(){return this._allControlsDisabled()?pe:this.errors?tn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(an)?an:this._anyControlsHaveStatus(tn)?tn:Ve}_anyControlsHaveStatus(ae){return this._anyControls(Yt=>Yt.status===ae)}_anyControlsDirty(){return this._anyControls(ae=>ae.dirty)}_anyControlsTouched(){return this._anyControls(ae=>ae.touched)}_updatePristine(ae={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ae.onlySelf&&this._parent._updatePristine(ae)}_updateTouched(ae={}){this.touched=this._anyControlsTouched(),this._parent&&!ae.onlySelf&&this._parent._updateTouched(ae)}_registerOnCollectionChange(ae){this._onCollectionChange=ae}_setUpdateStrategy(ae){Me(ae)&&null!=ae.updateOn&&(this._updateOn=ae.updateOn)}_parentMarkedDirty(ae){return!ae&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ae){return null}}class ve extends Zn{constructor(ae,Yt,st){super(We(Yt),Mt(st,Yt)),this.controls=ae,this._initObservables(),this._setUpdateStrategy(Yt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(ae,Yt){return this.controls[ae]?this.controls[ae]:(this.controls[ae]=Yt,Yt.setParent(this),Yt._registerOnCollectionChange(this._onCollectionChange),Yt)}addControl(ae,Yt,st={}){this.registerControl(ae,Yt),this.updateValueAndValidity({emitEvent:st.emitEvent}),this._onCollectionChange()}removeControl(ae,Yt={}){this.controls[ae]&&this.controls[ae]._registerOnCollectionChange(()=>{}),delete this.controls[ae],this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}setControl(ae,Yt,st={}){this.controls[ae]&&this.controls[ae]._registerOnCollectionChange(()=>{}),delete this.controls[ae],Yt&&this.registerControl(ae,Yt),this.updateValueAndValidity({emitEvent:st.emitEvent}),this._onCollectionChange()}contains(ae){return this.controls.hasOwnProperty(ae)&&this.controls[ae].enabled}setValue(ae,Yt={}){He(this,0,ae),Object.keys(ae).forEach(st=>{en(this,!0,st),this.controls[st].setValue(ae[st],{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt)}patchValue(ae,Yt={}){null!=ae&&(Object.keys(ae).forEach(st=>{const ki=this.controls[st];ki&&ki.patchValue(ae[st],{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt))}reset(ae={},Yt={}){this._forEachChild((st,ki)=>{st.reset(ae[ki],{onlySelf:!0,emitEvent:Yt.emitEvent})}),this._updatePristine(Yt),this._updateTouched(Yt),this.updateValueAndValidity(Yt)}getRawValue(){return this._reduceChildren({},(ae,Yt,st)=>(ae[st]=Yt.getRawValue(),ae))}_syncPendingControls(){let ae=this._reduceChildren(!1,(Yt,st)=>!!st._syncPendingControls()||Yt);return ae&&this.updateValueAndValidity({onlySelf:!0}),ae}_forEachChild(ae){Object.keys(this.controls).forEach(Yt=>{const st=this.controls[Yt];st&&ae(st,Yt)})}_setUpControls(){this._forEachChild(ae=>{ae.setParent(this),ae._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ae){for(const[Yt,st]of Object.entries(this.controls))if(this.contains(Yt)&&ae(st))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Yt,st,ki)=>((st.enabled||this.disabled)&&(Yt[ki]=st.value),Yt))}_reduceChildren(ae,Yt){let st=ae;return this._forEachChild((ki,jo)=>{st=Yt(st,ki,jo)}),st}_allControlsDisabled(){for(const ae of Object.keys(this.controls))if(this.controls[ae].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ae){return this.controls.hasOwnProperty(ae)?this.controls[ae]:null}}const Be=ve;class bi extends ve{}function _o(_e,ae){return[...ae.path,_e]}function fn(_e,ae){Zi(_e,ae),ae.valueAccessor.writeValue(_e.value),_e.disabled&&ae.valueAccessor.setDisabledState?.(!0),function No(_e,ae){ae.valueAccessor.registerOnChange(Yt=>{_e._pendingValue=Yt,_e._pendingChange=!0,_e._pendingDirty=!0,"change"===_e.updateOn&&Ea(_e,ae)})}(_e,ae),function fr(_e,ae){const Yt=(st,ki)=>{ae.valueAccessor.writeValue(st),ki&&ae.viewToModelUpdate(st)};_e.registerOnChange(Yt),ae._registerOnDestroy(()=>{_e._unregisterOnChange(Yt)})}(_e,ae),function la(_e,ae){ae.valueAccessor.registerOnTouched(()=>{_e._pendingTouched=!0,"blur"===_e.updateOn&&_e._pendingChange&&Ea(_e,ae),"submit"!==_e.updateOn&&_e.markAsTouched()})}(_e,ae),function ii(_e,ae){if(ae.valueAccessor.setDisabledState){const Yt=st=>{ae.valueAccessor.setDisabledState(st)};_e.registerOnDisabledChange(Yt),ae._registerOnDestroy(()=>{_e._unregisterOnDisabledChange(Yt)})}}(_e,ae)}function wn(_e,ae,Yt=!0){const st=()=>{};ae.valueAccessor&&(ae.valueAccessor.registerOnChange(st),ae.valueAccessor.registerOnTouched(st)),vo(_e,ae),_e&&(ae._invokeOnDestroyCallbacks(),_e._registerOnCollectionChange(()=>{}))}function ln(_e,ae){_e.forEach(Yt=>{Yt.registerOnValidatorChange&&Yt.registerOnValidatorChange(ae)})}function Zi(_e,ae){const Yt=Kt(_e);null!==ae.validator?_e.setValidators(ue(Yt,ae.validator)):"function"==typeof Yt&&_e.setValidators([Yt]);const st=ce(_e);null!==ae.asyncValidator?_e.setAsyncValidators(ue(st,ae.asyncValidator)):"function"==typeof st&&_e.setAsyncValidators([st]);const ki=()=>_e.updateValueAndValidity();ln(ae._rawValidators,ki),ln(ae._rawAsyncValidators,ki)}function vo(_e,ae){let Yt=!1;if(null!==_e){if(null!==ae.validator){const ki=Kt(_e);if(Array.isArray(ki)&&ki.length>0){const jo=ki.filter(Sa=>Sa!==ae.validator);jo.length!==ki.length&&(Yt=!0,_e.setValidators(jo))}}if(null!==ae.asyncValidator){const ki=ce(_e);if(Array.isArray(ki)&&ki.length>0){const jo=ki.filter(Sa=>Sa!==ae.asyncValidator);jo.length!==ki.length&&(Yt=!0,_e.setAsyncValidators(jo))}}}const st=()=>{};return ln(ae._rawValidators,st),ln(ae._rawAsyncValidators,st),Yt}function Ea(_e,ae){_e._pendingDirty&&_e.markAsDirty(),_e.setValue(_e._pendingValue,{emitModelToViewChange:!1}),ae.viewToModelUpdate(_e._pendingValue),_e._pendingChange=!1}function $e(_e,ae){Zi(_e,ae)}function Vt(_e,ae){if(!_e.hasOwnProperty("model"))return!1;const Yt=_e.model;return!!Yt.isFirstChange()||!Object.is(ae,Yt.currentValue)}function zt(_e,ae){_e._syncPendingControls(),ae.forEach(Yt=>{const st=Yt.control;"submit"===st.updateOn&&st._pendingChange&&(Yt.viewToModelUpdate(st._pendingValue),st._pendingChange=!1)})}function Je(_e,ae){if(!ae)return null;let Yt,st,ki;return Array.isArray(ae),ae.forEach(jo=>{jo.constructor===G?Yt=jo:function Q(_e){return Object.getPrototypeOf(_e.constructor)===x}(jo)?st=jo:ki=jo}),ki||st||Yt||null}const Co={provide:Ze,useExisting:(0,d.Gpc)(()=>br)},gr=(()=>Promise.resolve())();let br=(()=>{class _e extends Ze{constructor(Yt,st){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new d.vpe,this.form=new ve({},Te(Yt),ee(st))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Yt){gr.then(()=>{const st=this._findContainer(Yt.path);Yt.control=st.registerControl(Yt.name,Yt.control),fn(Yt.control,Yt),Yt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Yt)})}getControl(Yt){return this.form.get(Yt.path)}removeControl(Yt){gr.then(()=>{const st=this._findContainer(Yt.path);st&&st.removeControl(Yt.name),this._directives.delete(Yt)})}addFormGroup(Yt){gr.then(()=>{const st=this._findContainer(Yt.path),ki=new ve({});$e(ki,Yt),st.registerControl(Yt.name,ki),ki.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Yt){gr.then(()=>{const st=this._findContainer(Yt.path);st&&st.removeControl(Yt.name)})}getFormGroup(Yt){return this.form.get(Yt.path)}updateModel(Yt,st){gr.then(()=>{this.form.get(Yt.path).setValue(st)})}setValue(Yt){this.control.setValue(Yt)}onSubmit(Yt){return this.submitted=!0,zt(this.form,this._directives),this.ngSubmit.emit(Yt),"dialog"===Yt?.target?.method}onReset(){this.resetForm()}resetForm(Yt){this.form.reset(Yt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Yt){return Yt.pop(),Yt.length?this.form.get(Yt):this.form}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(gt,10),d.Y36(Pt,10))},_e.\u0275dir=d.lG2({type:_e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Yt,st){1&Yt&&d.NdJ("submit",function(jo){return st.onSubmit(jo)})("reset",function(){return st.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([Co]),d.qOj]}),_e})();function cs(_e,ae){const Yt=_e.indexOf(ae);Yt>-1&&_e.splice(Yt,1)}function or(_e){return"object"==typeof _e&&null!==_e&&2===Object.keys(_e).length&&"value"in _e&&"disabled"in _e}const Er=class extends Zn{constructor(ae=null,Yt,st){super(We(Yt),Mt(st,Yt)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ae),this._setUpdateStrategy(Yt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Me(Yt)&&(Yt.nonNullable||Yt.initialValueIsDefault)&&(this.defaultValue=or(ae)?ae.value:ae)}setValue(ae,Yt={}){this.value=this._pendingValue=ae,this._onChange.length&&!1!==Yt.emitModelToViewChange&&this._onChange.forEach(st=>st(this.value,!1!==Yt.emitViewToModelChange)),this.updateValueAndValidity(Yt)}patchValue(ae,Yt={}){this.setValue(ae,Yt)}reset(ae=this.defaultValue,Yt={}){this._applyFormState(ae),this.markAsPristine(Yt),this.markAsUntouched(Yt),this.setValue(this.value,Yt),this._pendingChange=!1}_updateValue(){}_anyControls(ae){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ae){this._onChange.push(ae)}_unregisterOnChange(ae){cs(this._onChange,ae)}registerOnDisabledChange(ae){this._onDisabledChange.push(ae)}_unregisterOnDisabledChange(ae){cs(this._onDisabledChange,ae)}_forEachChild(ae){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(ae){or(ae)?(this.value=this._pendingValue=ae.value,ae.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ae}},bc=Er;let Yr=(()=>{class _e extends Ze{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return _o(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,features:[d.qOj]}),_e})();const Lc={provide:dn,useExisting:(0,d.Gpc)(()=>Qr)},xl=(()=>Promise.resolve())();let Qr=(()=>{class _e extends dn{constructor(Yt,st,ki,jo,Sa){super(),this._changeDetectorRef=Sa,this.control=new Er,this._registered=!1,this.update=new d.vpe,this._parent=Yt,this._setValidators(st),this._setAsyncValidators(ki),this.valueAccessor=Je(0,jo)}ngOnChanges(Yt){if(this._checkForErrors(),!this._registered||"name"in Yt){if(this._registered&&(this._checkName(),this.formDirective)){const st=Yt.name.previousValue;this.formDirective.removeControl({name:st,path:this._getPath(st)})}this._setUpControl()}"isDisabled"in Yt&&this._updateDisabled(Yt),Vt(Yt,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Yt){this.viewModel=Yt,this.update.emit(Yt)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){fn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Yt){xl.then(()=>{this.control.setValue(Yt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Yt){const st=Yt.isDisabled.currentValue,ki=0!==st&&(0,d.D6c)(st);xl.then(()=>{ki&&!this.control.disabled?this.control.disable():!ki&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Yt){return this._parent?_o(Yt,this._parent):[Yt]}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(Ze,9),d.Y36(gt,10),d.Y36(Pt,10),d.Y36(w,10),d.Y36(d.sBO,8))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[d._Bn([Lc]),d.qOj,d.TTD]}),_e})(),Ns=(()=>{class _e{}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275dir=d.lG2({type:_e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),_e})();const _1={provide:w,useExisting:(0,d.Gpc)(()=>hr),multi:!0};let hr=(()=>{class _e extends x{writeValue(Yt){this.setProperty("value",Yt??"")}registerOnChange(Yt){this.onChange=st=>{Yt(""==st?null:parseFloat(st))}}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Yt,st){1&Yt&&d.NdJ("input",function(jo){return st.onChange(jo.target.value)})("blur",function(){return st.onTouched()})},features:[d._Bn([_1]),d.qOj]}),_e})(),vc=(()=>{class _e{}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275mod=d.oAB({type:_e}),_e.\u0275inj=d.cJS({}),_e})();const Yc=new d.OlP("NgModelWithFormControlWarning"),Vc={provide:dn,useExisting:(0,d.Gpc)(()=>js)};let js=(()=>{class _e extends dn{constructor(Yt,st,ki,jo){super(),this._ngModelWarningConfig=jo,this.update=new d.vpe,this._ngModelWarningSent=!1,this._setValidators(Yt),this._setAsyncValidators(st),this.valueAccessor=Je(0,ki)}set isDisabled(Yt){}ngOnChanges(Yt){if(this._isControlChanged(Yt)){const st=Yt.form.previousValue;st&&wn(st,this,!1),fn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Vt(Yt,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&wn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Yt){this.viewModel=Yt,this.update.emit(Yt)}_isControlChanged(Yt){return Yt.hasOwnProperty("form")}}return _e._ngModelWarningSentOnce=!1,_e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(gt,10),d.Y36(Pt,10),d.Y36(w,10),d.Y36(Yc,8))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[d._Bn([Vc]),d.qOj,d.TTD]}),_e})();const yl={provide:Ze,useExisting:(0,d.Gpc)(()=>md)};let md=(()=>{class _e extends Ze{constructor(Yt,st){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new d.vpe,this._setValidators(Yt),this._setAsyncValidators(st)}ngOnChanges(Yt){this._checkFormPresent(),Yt.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vo(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Yt){const st=this.form.get(Yt.path);return fn(st,Yt),st.updateValueAndValidity({emitEvent:!1}),this.directives.push(Yt),st}getControl(Yt){return this.form.get(Yt.path)}removeControl(Yt){wn(Yt.control||null,Yt,!1),function zn(_e,ae){const Yt=_e.indexOf(ae);Yt>-1&&_e.splice(Yt,1)}(this.directives,Yt)}addFormGroup(Yt){this._setUpFormContainer(Yt)}removeFormGroup(Yt){this._cleanUpFormContainer(Yt)}getFormGroup(Yt){return this.form.get(Yt.path)}addFormArray(Yt){this._setUpFormContainer(Yt)}removeFormArray(Yt){this._cleanUpFormContainer(Yt)}getFormArray(Yt){return this.form.get(Yt.path)}updateModel(Yt,st){this.form.get(Yt.path).setValue(st)}onSubmit(Yt){return this.submitted=!0,zt(this.form,this.directives),this.ngSubmit.emit(Yt),"dialog"===Yt?.target?.method}onReset(){this.resetForm()}resetForm(Yt){this.form.reset(Yt),this.submitted=!1}_updateDomValue(){this.directives.forEach(Yt=>{const st=Yt.control,ki=this.form.get(Yt.path);st!==ki&&(wn(st||null,Yt),(_e=>_e instanceof Er)(ki)&&(fn(ki,Yt),Yt.control=ki))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Yt){const st=this.form.get(Yt.path);$e(st,Yt),st.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Yt){if(this.form){const st=this.form.get(Yt.path);st&&function Nn(_e,ae){return vo(_e,ae)}(st,Yt)&&st.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zi(this.form,this),this._oldForm&&vo(this._oldForm,this)}_checkFormPresent(){}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(gt,10),d.Y36(Pt,10))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formGroup",""]],hostBindings:function(Yt,st){1&Yt&&d.NdJ("submit",function(jo){return st.onSubmit(jo)})("reset",function(){return st.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([yl]),d.qOj,d.TTD]}),_e})();const Hl={provide:Ze,useExisting:(0,d.Gpc)(()=>Js)};let Js=(()=>{class _e extends Yr{constructor(Yt,st,ki){super(),this._parent=Yt,this._setValidators(st),this._setAsyncValidators(ki)}_checkParentType(){jc(this._parent)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(Ze,13),d.Y36(gt,10),d.Y36(Pt,10))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[d._Bn([Hl]),d.qOj]}),_e})();const Tl={provide:Ze,useExisting:(0,d.Gpc)(()=>Gs)};let Gs=(()=>{class _e extends Ze{constructor(Yt,st,ki){super(),this._parent=Yt,this._setValidators(st),this._setAsyncValidators(ki)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return _o(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){jc(this._parent)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(Ze,13),d.Y36(gt,10),d.Y36(Pt,10))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[d._Bn([Tl]),d.qOj]}),_e})();function jc(_e){return!(_e instanceof Js||_e instanceof md||_e instanceof Gs)}const ks={provide:dn,useExisting:(0,d.Gpc)(()=>zl)};let zl=(()=>{class _e extends dn{constructor(Yt,st,ki,jo,Sa){super(),this._ngModelWarningConfig=Sa,this._added=!1,this.update=new d.vpe,this._ngModelWarningSent=!1,this._parent=Yt,this._setValidators(st),this._setAsyncValidators(ki),this.valueAccessor=Je(0,jo)}set isDisabled(Yt){}ngOnChanges(Yt){this._added||this._setUpControl(),Vt(Yt,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Yt){this.viewModel=Yt,this.update.emit(Yt)}get path(){return _o(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return _e._ngModelWarningSentOnce=!1,_e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(Ze,13),d.Y36(gt,10),d.Y36(Pt,10),d.Y36(w,10),d.Y36(Yc,8))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[d._Bn([ks]),d.qOj,d.TTD]}),_e})();function Dr(_e){return"number"==typeof _e?_e:parseFloat(_e)}let Cc=(()=>{class _e{constructor(){this._validator=le}ngOnChanges(Yt){if(this.inputName in Yt){const st=this.normalizeInput(Yt[this.inputName].currentValue);this._enabled=this.enabled(st),this._validator=this._enabled?this.createValidator(st):le,this._onChange&&this._onChange()}}validate(Yt){return this._validator(Yt)}registerOnValidatorChange(Yt){this._onChange=Yt}enabled(Yt){return null!=Yt}}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275dir=d.lG2({type:_e,features:[d.TTD]}),_e})();const Wa={provide:gt,useExisting:(0,d.Gpc)(()=>pr),multi:!0};let pr=(()=>{class _e extends Cc{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Yt=>Dr(Yt),this.createValidator=Yt=>at(Yt)}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Yt,st){2&Yt&&d.uIk("max",st._enabled?st.max:null)},inputs:{max:"max"},features:[d._Bn([Wa]),d.qOj]}),_e})();const Gc={provide:gt,useExisting:(0,d.Gpc)(()=>vs),multi:!0};let vs=(()=>{class _e extends Cc{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Yt=>Dr(Yt),this.createValidator=Yt=>Jt(Yt)}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Yt,st){2&Yt&&d.uIk("min",st._enabled?st.min:null)},inputs:{min:"min"},features:[d._Bn([Gc]),d.qOj]}),_e})();const Ac={provide:gt,useExisting:(0,d.Gpc)(()=>Vl),multi:!0},rr={provide:gt,useExisting:(0,d.Gpc)(()=>Ps),multi:!0};let Vl=(()=>{class _e extends Cc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=d.D6c,this.createValidator=Yt=>Zt}enabled(Yt){return Yt}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Yt,st){2&Yt&&d.uIk("required",st._enabled?"":null)},inputs:{required:"required"},features:[d._Bn([Ac]),d.qOj]}),_e})(),Ps=(()=>{class _e extends Vl{constructor(){super(...arguments),this.createValidator=Yt=>wt}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Yt,st){2&Yt&&d.uIk("required",st._enabled?"":null)},features:[d._Bn([rr]),d.qOj]}),_e})();const Qs={provide:gt,useExisting:(0,d.Gpc)(()=>lc),multi:!0};let lc=(()=>{class _e extends Cc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Yt=>function bu(_e){return"number"==typeof _e?_e:parseInt(_e,10)}(Yt),this.createValidator=Yt=>Qt(Yt)}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Yt,st){2&Yt&&d.uIk("maxlength",st._enabled?st.maxlength:null)},inputs:{maxlength:"maxlength"},features:[d._Bn([Qs]),d.qOj]}),_e})(),Vr=(()=>{class _e{}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275mod=d.oAB({type:_e}),_e.\u0275inj=d.cJS({imports:[vc]}),_e})(),Qc=(()=>{class _e{}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275mod=d.oAB({type:_e}),_e.\u0275inj=d.cJS({imports:[Vr]}),_e})(),sl=(()=>{class _e{static withConfig(Yt){return{ngModule:_e,providers:[{provide:Yc,useValue:Yt.warnOnNgModelWithFormControl}]}}}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275mod=d.oAB({type:_e}),_e.\u0275inj=d.cJS({imports:[Vr]}),_e})();class yc extends Zn{constructor(ae,Yt,st){super(We(Yt),Mt(st,Yt)),this.controls=ae,this._initObservables(),this._setUpdateStrategy(Yt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(ae){return this.controls[this._adjustIndex(ae)]}push(ae,Yt={}){this.controls.push(ae),this._registerControl(ae),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}insert(ae,Yt,st={}){this.controls.splice(ae,0,Yt),this._registerControl(Yt),this.updateValueAndValidity({emitEvent:st.emitEvent})}removeAt(ae,Yt={}){let st=this._adjustIndex(ae);st<0&&(st=0),this.controls[st]&&this.controls[st]._registerOnCollectionChange(()=>{}),this.controls.splice(st,1),this.updateValueAndValidity({emitEvent:Yt.emitEvent})}setControl(ae,Yt,st={}){let ki=this._adjustIndex(ae);ki<0&&(ki=0),this.controls[ki]&&this.controls[ki]._registerOnCollectionChange(()=>{}),this.controls.splice(ki,1),Yt&&(this.controls.splice(ki,0,Yt),this._registerControl(Yt)),this.updateValueAndValidity({emitEvent:st.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ae,Yt={}){He(this,0,ae),ae.forEach((st,ki)=>{en(this,!1,ki),this.at(ki).setValue(st,{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt)}patchValue(ae,Yt={}){null!=ae&&(ae.forEach((st,ki)=>{this.at(ki)&&this.at(ki).patchValue(st,{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt))}reset(ae=[],Yt={}){this._forEachChild((st,ki)=>{st.reset(ae[ki],{onlySelf:!0,emitEvent:Yt.emitEvent})}),this._updatePristine(Yt),this._updateTouched(Yt),this.updateValueAndValidity(Yt)}getRawValue(){return this.controls.map(ae=>ae.getRawValue())}clear(ae={}){this.controls.length<1||(this._forEachChild(Yt=>Yt._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ae.emitEvent}))}_adjustIndex(ae){return ae<0?ae+this.length:ae}_syncPendingControls(){let ae=this.controls.reduce((Yt,st)=>!!st._syncPendingControls()||Yt,!1);return ae&&this.updateValueAndValidity({onlySelf:!0}),ae}_forEachChild(ae){this.controls.forEach((Yt,st)=>{ae(Yt,st)})}_updateValue(){this.value=this.controls.filter(ae=>ae.enabled||this.disabled).map(ae=>ae.value)}_anyControls(ae){return this.controls.some(Yt=>Yt.enabled&&ae(Yt))}_setUpControls(){this._forEachChild(ae=>this._registerControl(ae))}_allControlsDisabled(){for(const ae of this.controls)if(ae.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ae){ae.setParent(this),ae._registerOnCollectionChange(this._onCollectionChange)}_find(ae){return this.at(ae)??null}}function Yi(_e){return!!_e&&(void 0!==_e.asyncValidators||void 0!==_e.validators||void 0!==_e.updateOn)}let Da=(()=>{class _e{constructor(){this.useNonNullable=!1}get nonNullable(){const Yt=new _e;return Yt.useNonNullable=!0,Yt}group(Yt,st=null){const ki=this._reduceControls(Yt);let jo={};return Yi(st)?jo=st:null!==st&&(jo.validators=st.validator,jo.asyncValidators=st.asyncValidator),new ve(ki,jo)}record(Yt,st=null){const ki=this._reduceControls(Yt);return new bi(ki,st)}control(Yt,st,ki){let jo={};return this.useNonNullable?(Yi(st)?jo=st:(jo.validators=st,jo.asyncValidators=ki),new Er(Yt,{...jo,nonNullable:!0})):new Er(Yt,st,ki)}array(Yt,st,ki){const jo=Yt.map(Sa=>this._createControl(Sa));return new yc(jo,st,ki)}_reduceControls(Yt){const st={};return Object.keys(Yt).forEach(ki=>{st[ki]=this._createControl(Yt[ki])}),st}_createControl(Yt){return Yt instanceof Er||Yt instanceof Zn?Yt:Array.isArray(Yt)?this.control(Yt[0],Yt.length>1?Yt[1]:null,Yt.length>2?Yt[2]:null):this.control(Yt)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275prov=d.Yz7({token:_e,factory:_e.\u0275fac,providedIn:sl}),_e})(),$s=(()=>{class _e extends Da{group(Yt,st=null){return super.group(Yt,st)}control(Yt,st,ki){return super.control(Yt,st,ki)}array(Yt,st,ki){return super.array(Yt,st,ki)}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275prov=d.Yz7({token:_e,factory:_e.\u0275fac,providedIn:sl}),_e})()},47957:(rt,it,b)=>{"use strict";b.d(it,{Bb:()=>hn,XC:()=>Xe,ZL:()=>on});var d=b(12687),p=b(21281),v=b(83353),T=b(94650),t=b(3238),A=b(42654),x=b(8929),w=b(88514),k=b(36787),D=b(21086),P=b(23753),I=b(36895),z=b(98184),G=b(67376),W=b(40445),ot=b(29521),ct=b(84080),gt=b(24006),Pt=b(59549),St=b(1059),Ht=b(87545),Jt=b(72986),at=b(92198),Zt=b(24850),wt=b(22868),_t=b(18583);const Nt=["panel"];function Qt(we,bn){if(1&we&&(T.TgZ(0,"div",0,1),T.Hsn(2),T.qZA()),2&we){const Ze=bn.id,dn=T.oxw();T.Q6J("id",dn.id)("ngClass",dn._classList),T.uIk("aria-label",dn.ariaLabel||null)("aria-labelledby",dn._getPanelAriaLabelledby(Ze))}}const qt=["*"];let le=0;class Wt{constructor(bn,Ze){this.source=bn,this.option=Ze}}const Ce=(0,t.Kr)(class{}),Ae=new T.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Ne(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let ze=(()=>{class we extends Ce{constructor(Ze,dn,kn,ri){super(),this._changeDetectorRef=Ze,this._elementRef=dn,this._activeOptionChanges=A.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new T.vpe,this.opened=new T.vpe,this.closed=new T.vpe,this.optionActivated=new T.vpe,this._classList={},this.id="mat-autocomplete-"+le++,this.inertGroups=ri?.SAFARI||!1,this._autoActiveFirstOption=!!kn.autoActiveFirstOption,this._autoSelectActiveOption=!!kn.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Ze){this._autoActiveFirstOption=(0,p.Ig)(Ze)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Ze){this._autoSelectActiveOption=(0,p.Ig)(Ze)}set classList(Ze){this._classList=Ze&&Ze.length?(0,p.du)(Ze).reduce((dn,kn)=>(dn[kn]=!0,dn),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new d.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Ze=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Ze]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Ze){this.panel&&(this.panel.nativeElement.scrollTop=Ze)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Ze){const dn=new Wt(this,Ze);this.optionSelected.emit(dn)}_getPanelAriaLabelledby(Ze){return this.ariaLabel?null:this.ariaLabelledby?(Ze?Ze+" ":"")+this.ariaLabelledby:Ze}_setVisibilityClasses(Ze){Ze[this._visibleClass]=this.showPanel,Ze[this._hiddenClass]=!this.showPanel}}return we.\u0275fac=function(Ze){return new(Ze||we)(T.Y36(T.sBO),T.Y36(T.SBq),T.Y36(Ae),T.Y36(v.t4))},we.\u0275dir=T.lG2({type:we,viewQuery:function(Ze,dn){if(1&Ze&&(T.Gf(T.Rgc,7),T.Gf(Nt,5)),2&Ze){let kn;T.iGM(kn=T.CRH())&&(dn.template=kn.first),T.iGM(kn=T.CRH())&&(dn.panel=kn.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[T.qOj]}),we})(),Xe=(()=>{class we extends ze{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return we.\u0275fac=function(){let bn;return function(dn){return(bn||(bn=T.n5z(we)))(dn||we)}}(),we.\u0275cmp=T.Xpm({type:we,selectors:[["mat-autocomplete"]],contentQueries:function(Ze,dn,kn){if(1&Ze&&(T.Suo(kn,t.K7,5),T.Suo(kn,t.ey,5)),2&Ze){let ri;T.iGM(ri=T.CRH())&&(dn.optionGroups=ri),T.iGM(ri=T.CRH())&&(dn.options=ri)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[T._Bn([{provide:t.HF,useExisting:we}]),T.qOj],ngContentSelectors:qt,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Ze,dn){1&Ze&&(T.F$t(),T.YNc(0,Qt,3,4,"ng-template"))},dependencies:[I.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),we})();const re=new T.OlP("mat-autocomplete-scroll-strategy"),ue={provide:re,deps:[z.aV],useFactory:function ee(we){return()=>we.scrollStrategies.reposition()}},Kt={provide:gt.JU,useExisting:(0,T.Gpc)(()=>on),multi:!0};let Le=(()=>{class we{constructor(Ze,dn,kn,ri,Ee,Ft,vt,xt,tt,et,Ct){this._element=Ze,this._overlay=dn,this._viewContainerRef=kn,this._zone=ri,this._changeDetectorRef=Ee,this._dir=vt,this._formField=xt,this._document=tt,this._viewportRuler=et,this._defaults=Ct,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=A.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new x.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,w.P)(()=>{const Bt=this.autocomplete?this.autocomplete.options:null;return Bt?Bt.changes.pipe((0,St.O)(Bt),(0,Ht.w)(()=>(0,k.T)(...Bt.map(ne=>ne.onSelectionChange)))):this._zone.onStable.pipe((0,Jt.q)(1),(0,Ht.w)(()=>this.optionSelections))}),this._scrollStrategy=Ft}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Ze){this._autocompleteDisabled=(0,p.Ig)(Ze)}ngAfterViewInit(){const Ze=this._getWindow();typeof Ze<"u"&&this._zone.runOutsideAngular(()=>Ze.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Ze){Ze.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Ze=this._getWindow();typeof Ze<"u"&&Ze.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,k.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,at.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,at.h)(()=>this._overlayAttached)):(0,D.of)()).pipe((0,Zt.U)(Ze=>Ze instanceof t.rN?Ze:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,k.T)((0,P.R)(this._document,"click"),(0,P.R)(this._document,"auxclick"),(0,P.R)(this._document,"touchend")).pipe((0,at.h)(Ze=>{const dn=(0,v.sA)(Ze),kn=this._formField?this._formField._elementRef.nativeElement:null,ri=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&dn!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!kn||!kn.contains(dn))&&(!ri||!ri.contains(dn))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(dn)}))}writeValue(Ze){Promise.resolve(null).then(()=>this._assignOptionValue(Ze))}registerOnChange(Ze){this._onChange=Ze}registerOnTouched(Ze){this._onTouched=Ze}setDisabledState(Ze){this._element.nativeElement.disabled=Ze}_handleKeydown(Ze){const dn=Ze.keyCode,kn=(0,ot.Vb)(Ze);if(dn===ot.hY&&!kn&&Ze.preventDefault(),this.activeOption&&dn===ot.K5&&this.panelOpen&&!kn)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ze.preventDefault();else if(this.autocomplete){const ri=this.autocomplete._keyManager.activeItem,Ee=dn===ot.LH||dn===ot.JH;dn===ot.Mf||Ee&&!kn&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Ze):Ee&&this._canOpen()&&this.openPanel(),(Ee||this.autocomplete._keyManager.activeItem!==ri)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Ze){let dn=Ze.target,kn=dn.value;"number"===dn.type&&(kn=""==kn?null:parseFloat(kn)),this._previousValue!==kn&&(this._previousValue=kn,this._pendingAutoselectedOption=null,this._onChange(kn),this._canOpen()&&this._document.activeElement===Ze.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Ze=!1){this._formField&&"auto"===this._formField.floatLabel&&(Ze?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Ze=this._zone.onStable.pipe((0,Jt.q)(1)),dn=this.autocomplete.options.changes.pipe((0,wt.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,_t.g)(0));return(0,k.T)(Ze,dn).pipe((0,Ht.w)(()=>(this._zone.run(()=>{const kn=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),kn!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Jt.q)(1)).subscribe(kn=>this._setValueAndClose(kn))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Ze){const dn=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Ze):Ze;this._updateNativeInputValue(dn??"")}_updateNativeInputValue(Ze){this._formField?this._formField._control.value=Ze:this._element.nativeElement.value=Ze,this._previousValue=Ze}_setValueAndClose(Ze){const dn=Ze?Ze.source:this._pendingAutoselectedOption;dn&&(this._clearPreviousSelectedOption(dn),this._assignOptionValue(dn.value),this._onChange(dn.value),this.autocomplete._emitSelectEvent(dn),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Ze){this.autocomplete.options.forEach(dn=>{dn!==Ze&&dn.selected&&dn.deselect()})}_attachOverlay(){let Ze=this._overlayRef;Ze?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ze.updateSize({width:this._getPanelWidth()})):(this._portal=new ct.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Ze=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ze,this._handleOverlayEvents(Ze),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ze&&Ze.updateSize({width:this._getPanelWidth()})})),Ze&&!Ze.hasAttached()&&(Ze.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const dn=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&dn!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new z.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const Ze=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Ze),this._positionStrategy=Ze,Ze}_setStrategyPositions(Ze){const dn=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],kn=this._aboveClass,ri=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:kn},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:kn}];let Ee;Ee="above"===this.position?ri:"below"===this.position?dn:[...dn,...ri],Ze.withPositions(Ee)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Ze=this.autocomplete;Ze.autoActiveFirstOption?Ze._keyManager.setFirstItemActive():Ze._keyManager.setActiveItem(-1)}_canOpen(){const Ze=this._element.nativeElement;return!Ze.readOnly&&!Ze.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Ze){const dn=this.autocomplete,kn=(0,t.CB)(Ze,dn.options,dn.optionGroups);if(0===Ze&&1===kn)dn._setScrollTop(0);else if(dn.panel){const ri=dn.options.toArray()[Ze];if(ri){const Ee=ri._getHostElement(),Ft=(0,t.jH)(Ee.offsetTop,Ee.offsetHeight,dn._getScrollTop(),dn.panel.nativeElement.offsetHeight);dn._setScrollTop(Ft)}}}_handleOverlayEvents(Ze){Ze.keydownEvents().subscribe(dn=>{(dn.keyCode===ot.hY&&!(0,ot.Vb)(dn)||dn.keyCode===ot.LH&&(0,ot.Vb)(dn,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),dn.stopPropagation(),dn.preventDefault())}),Ze.outsidePointerEvents().subscribe()}}return we.\u0275fac=function(Ze){return new(Ze||we)(T.Y36(T.SBq),T.Y36(z.aV),T.Y36(T.s_b),T.Y36(T.R0b),T.Y36(T.sBO),T.Y36(re),T.Y36(W.Is,8),T.Y36(Pt.G_,9),T.Y36(I.K0,8),T.Y36(G.rL),T.Y36(Ae,8))},we.\u0275dir=T.lG2({type:we,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[T.TTD]}),we})(),on=(()=>{class we extends Le{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return we.\u0275fac=function(){let bn;return function(dn){return(bn||(bn=T.n5z(we)))(dn||we)}}(),we.\u0275dir=T.lG2({type:we,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Ze,dn){1&Ze&&T.NdJ("focusin",function(){return dn._handleFocus()})("blur",function(){return dn._onTouched()})("input",function(ri){return dn._handleInput(ri)})("keydown",function(ri){return dn._handleKeydown(ri)})("click",function(){return dn._handleClick()}),2&Ze&&T.uIk("autocomplete",dn.autocompleteAttribute)("role",dn.autocompleteDisabled?null:"combobox")("aria-autocomplete",dn.autocompleteDisabled?null:"list")("aria-activedescendant",dn.panelOpen&&dn.activeOption?dn.activeOption.id:null)("aria-expanded",dn.autocompleteDisabled?null:dn.panelOpen.toString())("aria-owns",dn.autocompleteDisabled||!dn.panelOpen||null==dn.autocomplete?null:dn.autocomplete.id)("aria-haspopup",dn.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[T._Bn([Kt]),T.qOj]}),we})(),hn=(()=>{class we{}return we.\u0275fac=function(Ze){return new(Ze||we)},we.\u0275mod=T.oAB({type:we}),we.\u0275inj=T.cJS({providers:[ue],imports:[z.U8,t.Ng,t.BQ,I.ez,G.ZD,t.Ng,t.BQ]}),we})()},42673:(rt,it,b)=>{"use strict";b.d(it,{g:()=>k,k:()=>w});var d=b(94650),p=b(3238),v=b(12687),T=b(21281);let t=0;const A=(0,p.Id)(class{}),x="mat-badge-content";let w=(()=>{class D extends A{constructor(I,z,G,W,ot){super(),this._ngZone=I,this._elementRef=z,this._ariaDescriber=G,this._renderer=W,this._animationMode=ot,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=t++,this._isInitialized=!1}get color(){return this._color}set color(I){this._setColor(I),this._color=I}get overlap(){return this._overlap}set overlap(I){this._overlap=(0,T.Ig)(I)}get content(){return this._content}set content(I){this._updateRenderedContent(I)}get description(){return this._description}set description(I){this._updateHostAriaDescription(I)}get hidden(){return this._hidden}set hidden(I){this._hidden=(0,T.Ig)(I)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const I=this._renderer.createElement("span"),z="mat-badge-active";return I.setAttribute("id",`mat-badge-content-${this._id}`),I.setAttribute("aria-hidden","true"),I.classList.add(x),"NoopAnimations"===this._animationMode&&I.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(I),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{I.classList.add(z)})}):I.classList.add(z),I}_updateRenderedContent(I){const z=`${I??""}`.trim();this._isInitialized&&z&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=z),this._content=z}_updateHostAriaDescription(I){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),I&&this._ariaDescriber.describe(this._elementRef.nativeElement,I),this._description=I}_setColor(I){const z=this._elementRef.nativeElement.classList;z.remove(`mat-badge-${this._color}`),I&&z.add(`mat-badge-${I}`)}_clearExistingBadges(){const I=this._elementRef.nativeElement.querySelectorAll(`:scope > .${x}`);for(const z of Array.from(I))z!==this._badgeElement&&z.remove()}}return D.\u0275fac=function(I){return new(I||D)(d.Y36(d.R0b),d.Y36(d.SBq),d.Y36(v.$s),d.Y36(d.Qsj),d.Y36(d.QbO,8))},D.\u0275dir=d.lG2({type:D,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(I,z){2&I&&d.ekj("mat-badge-overlap",z.overlap)("mat-badge-above",z.isAbove())("mat-badge-below",!z.isAbove())("mat-badge-before",!z.isAfter())("mat-badge-after",z.isAfter())("mat-badge-small","small"===z.size)("mat-badge-medium","medium"===z.size)("mat-badge-large","large"===z.size)("mat-badge-hidden",z.hidden||!z.content)("mat-badge-disabled",z.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[d.qOj]}),D})(),k=(()=>{class D{}return D.\u0275fac=function(I){return new(I||D)},D.\u0275mod=d.oAB({type:D}),D.\u0275inj=d.cJS({imports:[v.rt,p.BQ,p.BQ]}),D})()},90811:(rt,it,b)=>{"use strict";b.d(it,{A9:()=>G,Yi:()=>ot,vV:()=>ct});var d=b(12687),p=b(21281),v=b(95017),T=b(94650),t=b(24006),A=b(3238);const x=["button"],w=["*"],k=new T.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),D=new T.OlP("MatButtonToggleGroup"),P={provide:t.JU,useExisting:(0,T.Gpc)(()=>G),multi:!0};let I=0;class z{constructor(Pt,St){this.source=Pt,this.value=St}}let G=(()=>{class gt{constructor(St,Ht){this._changeDetector=St,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+I++,this.valueChange=new T.vpe,this.change=new T.vpe,this.appearance=Ht&&Ht.appearance?Ht.appearance:"standard"}get name(){return this._name}set name(St){this._name=St,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(St){this._vertical=(0,p.Ig)(St)}get value(){const St=this._selectionModel?this._selectionModel.selected:[];return this.multiple?St.map(Ht=>Ht.value):St[0]?St[0].value:void 0}set value(St){this._setSelectionByValue(St),this.valueChange.emit(this.value)}get selected(){const St=this._selectionModel?this._selectionModel.selected:[];return this.multiple?St:St[0]||null}get multiple(){return this._multiple}set multiple(St){this._multiple=(0,p.Ig)(St),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(St){this._disabled=(0,p.Ig)(St),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new v.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(St=>St.checked))}writeValue(St){this.value=St,this._changeDetector.markForCheck()}registerOnChange(St){this._controlValueAccessorChangeFn=St}registerOnTouched(St){this._onTouched=St}setDisabledState(St){this.disabled=St}_emitChangeEvent(St){const Ht=new z(St,this.value);this._controlValueAccessorChangeFn(Ht.value),this.change.emit(Ht)}_syncButtonToggle(St,Ht,Jt=!1,at=!1){!this.multiple&&this.selected&&!St.checked&&(this.selected.checked=!1),this._selectionModel?Ht?this._selectionModel.select(St):this._selectionModel.deselect(St):at=!0,at?Promise.resolve().then(()=>this._updateModelValue(St,Jt)):this._updateModelValue(St,Jt)}_isSelected(St){return this._selectionModel&&this._selectionModel.isSelected(St)}_isPrechecked(St){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(Ht=>null!=St.value&&Ht===St.value):St.value===this._rawValue)}_setSelectionByValue(St){this._rawValue=St,this._buttonToggles&&(this.multiple&&St?(Array.isArray(St),this._clearSelection(),St.forEach(Ht=>this._selectValue(Ht))):(this._clearSelection(),this._selectValue(St)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(St=>St.checked=!1)}_selectValue(St){const Ht=this._buttonToggles.find(Jt=>null!=Jt.value&&Jt.value===St);Ht&&(Ht.checked=!0,this._selectionModel.select(Ht))}_updateModelValue(St,Ht){Ht&&this._emitChangeEvent(St),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(St=>St._markForCheck())}}return gt.\u0275fac=function(St){return new(St||gt)(T.Y36(T.sBO),T.Y36(k,8))},gt.\u0275dir=T.lG2({type:gt,selectors:[["mat-button-toggle-group"]],contentQueries:function(St,Ht,Jt){if(1&St&&T.Suo(Jt,ot,5),2&St){let at;T.iGM(at=T.CRH())&&(Ht._buttonToggles=at)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(St,Ht){2&St&&(T.uIk("aria-disabled",Ht.disabled),T.ekj("mat-button-toggle-vertical",Ht.vertical)("mat-button-toggle-group-appearance-standard","standard"===Ht.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[T._Bn([P,{provide:D,useExisting:gt}])]}),gt})();const W=(0,A.Kr)(class{});let ot=(()=>{class gt extends W{constructor(St,Ht,Jt,at,Zt,wt){super(),this._changeDetectorRef=Ht,this._elementRef=Jt,this._focusMonitor=at,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T.vpe;const _t=Number(Zt);this.tabIndex=_t||0===_t?_t:null,this.buttonToggleGroup=St,this.appearance=wt&&wt.appearance?wt.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(St){this._appearance=St}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(St){const Ht=(0,p.Ig)(St);Ht!==this._checked&&(this._checked=Ht,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(St){this._disabled=(0,p.Ig)(St)}ngOnInit(){const St=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+I++,St&&(St._isPrechecked(this)?this.checked=!0:St._isSelected(this)!==this._checked&&St._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const St=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),St&&St._isSelected(this)&&St._syncButtonToggle(this,!1,!1,!0)}focus(St){this._buttonElement.nativeElement.focus(St)}_onButtonClick(){const St=!!this._isSingleSelector()||!this._checked;St!==this._checked&&(this._checked=St,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new z(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return gt.\u0275fac=function(St){return new(St||gt)(T.Y36(D,8),T.Y36(T.sBO),T.Y36(T.SBq),T.Y36(d.tE),T.$8M("tabindex"),T.Y36(k,8))},gt.\u0275cmp=T.Xpm({type:gt,selectors:[["mat-button-toggle"]],viewQuery:function(St,Ht){if(1&St&&T.Gf(x,5),2&St){let Jt;T.iGM(Jt=T.CRH())&&(Ht._buttonElement=Jt.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(St,Ht){1&St&&T.NdJ("focus",function(){return Ht.focus()}),2&St&&(T.uIk("aria-label",null)("aria-labelledby",null)("id",Ht.id)("name",null),T.ekj("mat-button-toggle-standalone",!Ht.buttonToggleGroup)("mat-button-toggle-checked",Ht.checked)("mat-button-toggle-disabled",Ht.disabled)("mat-button-toggle-appearance-standard","standard"===Ht.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[T.qOj],ngContentSelectors:w,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(St,Ht){if(1&St&&(T.F$t(),T.TgZ(0,"button",0,1),T.NdJ("click",function(){return Ht._onButtonClick()}),T.TgZ(2,"span",2),T.Hsn(3),T.qZA()(),T._UZ(4,"span",3)(5,"span",4)),2&St){const Jt=T.MAs(1);T.Q6J("id",Ht.buttonId)("disabled",Ht.disabled||null),T.uIk("tabindex",Ht.disabled?-1:Ht.tabIndex)("aria-pressed",Ht.checked)("name",Ht._getButtonName())("aria-label",Ht.ariaLabel)("aria-labelledby",Ht.ariaLabelledby),T.xp6(5),T.Q6J("matRippleTrigger",Jt)("matRippleDisabled",Ht.disableRipple||Ht.disabled)}},dependencies:[A.wG],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),gt})(),ct=(()=>{class gt{}return gt.\u0275fac=function(St){return new(St||gt)},gt.\u0275mod=T.oAB({type:gt}),gt.\u0275inj=T.cJS({imports:[A.BQ,A.si,A.BQ]}),gt})()},4859:(rt,it,b)=>{"use strict";b.d(it,{lW:()=>D,ot:()=>I});var d=b(94650),p=b(3238),v=b(12687);const T=["mat-button",""],t=["*"],w=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],k=(0,p.pj)((0,p.Id)((0,p.Kr)(class{constructor(z){this._elementRef=z}})));let D=(()=>{class z extends k{constructor(W,ot,ct){super(W),this._focusMonitor=ot,this._animationMode=ct,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const gt of w)this._hasHostAttributes(gt)&&this._getHostElement().classList.add(gt);W.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(W,ot){W?this._focusMonitor.focusVia(this._getHostElement(),W,ot):this._getHostElement().focus(ot)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...W){return W.some(ot=>this._getHostElement().hasAttribute(ot))}}return z.\u0275fac=function(W){return new(W||z)(d.Y36(d.SBq),d.Y36(v.tE),d.Y36(d.QbO,8))},z.\u0275cmp=d.Xpm({type:z,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(W,ot){if(1&W&&d.Gf(p.wG,5),2&W){let ct;d.iGM(ct=d.CRH())&&(ot.ripple=ct.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(W,ot){2&W&&(d.uIk("disabled",ot.disabled||null),d.ekj("_mat-animation-noopable","NoopAnimations"===ot._animationMode)("mat-button-disabled",ot.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[d.qOj],attrs:T,ngContentSelectors:t,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(W,ot){1&W&&(d.F$t(),d.TgZ(0,"span",0),d.Hsn(1),d.qZA(),d._UZ(2,"span",1)(3,"span",2)),2&W&&(d.xp6(2),d.ekj("mat-button-ripple-round",ot.isRoundButton||ot.isIconButton),d.Q6J("matRippleDisabled",ot._isRippleDisabled())("matRippleCentered",ot.isIconButton)("matRippleTrigger",ot._getHostElement()))},dependencies:[p.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),z})(),I=(()=>{class z{}return z.\u0275fac=function(W){return new(W||z)},z.\u0275mod=d.oAB({type:z}),z.\u0275inj=d.cJS({imports:[p.si,p.BQ,p.BQ]}),z})()},73546:(rt,it,b)=>{"use strict";b.d(it,{$j:()=>P,C1:()=>Jt,G2:()=>G,QW:()=>at,a8:()=>St,dk:()=>Ht,dn:()=>k,hq:()=>I,n5:()=>D,nc:()=>ot});var d=b(94650),p=b(3238);const v=["*",[["mat-card-footer"]]],T=["*","mat-card-footer"],t=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],A=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],x=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],w=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let k=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275dir=d.lG2({type:Zt,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Zt})(),D=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275dir=d.lG2({type:Zt,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Zt})(),P=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275dir=d.lG2({type:Zt,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Zt})(),I=(()=>{class Zt{constructor(){this.align="start"}}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275dir=d.lG2({type:Zt,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(_t,Nt){2&_t&&d.ekj("mat-card-actions-align-end","end"===Nt.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Zt})(),G=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275dir=d.lG2({type:Zt,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Zt})(),ot=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275dir=d.lG2({type:Zt,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),Zt})(),St=(()=>{class Zt{constructor(_t){this._animationMode=_t}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(d.Y36(d.QbO,8))},Zt.\u0275cmp=d.Xpm({type:Zt,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(_t,Nt){2&_t&&d.ekj("_mat-animation-noopable","NoopAnimations"===Nt._animationMode)},exportAs:["matCard"],ngContentSelectors:T,decls:2,vars:0,template:function(_t,Nt){1&_t&&(d.F$t(v),d.Hsn(0),d.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),Zt})(),Ht=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275cmp=d.Xpm({type:Zt,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:A,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(_t,Nt){1&_t&&(d.F$t(t),d.Hsn(0),d.TgZ(1,"div",0),d.Hsn(2,1),d.qZA(),d.Hsn(3,2))},encapsulation:2,changeDetection:0}),Zt})(),Jt=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275cmp=d.Xpm({type:Zt,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:w,decls:4,vars:0,template:function(_t,Nt){1&_t&&(d.F$t(x),d.TgZ(0,"div"),d.Hsn(1),d.qZA(),d.Hsn(2,1),d.Hsn(3,2))},encapsulation:2,changeDetection:0}),Zt})(),at=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275mod=d.oAB({type:Zt}),Zt.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),Zt})()},56709:(rt,it,b)=>{"use strict";b.d(it,{e_:()=>Ht,oG:()=>Pt,p9:()=>at});var d=b(12687),p=b(21281),v=b(94650),T=b(24006),t=b(3238),A=b(49643);const x=["input"],w=["label"],k=function(Zt){return{enterDuration:Zt}},D=["*"],P=new v.OlP("mat-checkbox-default-options",{providedIn:"root",factory:I});function I(){return{color:"accent",clickAction:"check-indeterminate"}}let z=0;const G=I(),W={provide:T.JU,useExisting:(0,v.Gpc)(()=>Pt),multi:!0};class ot{}const ct=(0,t.sb)((0,t.pj)((0,t.Kr)((0,t.Id)(class{constructor(Zt){this._elementRef=Zt}}))));let gt=(()=>{class Zt extends ct{constructor(_t,Nt,Qt,qt,le,Wt,Ce){super(Nt),this._changeDetectorRef=Qt,this._ngZone=qt,this._animationMode=Wt,this._options=Ce,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new v.vpe,this.indeterminateChange=new v.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||G,this.color=this.defaultColor=this._options.color||G.color,this.tabIndex=parseInt(le)||0,this.id=this._uniqueId=`${_t}${++z}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(_t){this._required=(0,p.Ig)(_t)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(_t){const Nt=(0,p.Ig)(_t);Nt!=this.checked&&(this._checked=Nt,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(_t){const Nt=(0,p.Ig)(_t);Nt!==this.disabled&&(this._disabled=Nt,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(_t){const Nt=_t!=this._indeterminate;this._indeterminate=(0,p.Ig)(_t),Nt&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(_t){this.checked=!!_t}registerOnChange(_t){this._controlValueAccessorChangeFn=_t}registerOnTouched(_t){this._onTouched=_t}setDisabledState(_t){this.disabled=_t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(_t){let Nt=this._currentCheckState,Qt=this._getAnimationTargetElement();if(Nt!==_t&&Qt&&(this._currentAnimationClass&&Qt.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Nt,_t),this._currentCheckState=_t,this._currentAnimationClass.length>0)){Qt.classList.add(this._currentAnimationClass);const qt=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Qt.classList.remove(qt)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const _t=this._options?.clickAction;this.disabled||"noop"===_t?!this.disabled&&"noop"===_t&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==_t&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(_t){_t.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(_t,Nt){if("NoopAnimations"===this._animationMode)return"";switch(_t){case 0:if(1===Nt)return this._animationClasses.uncheckedToChecked;if(3==Nt)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Nt?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Nt?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Nt?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(_t){const Nt=this._inputElement;Nt&&(Nt.nativeElement.indeterminate=_t)}}return Zt.\u0275fac=function(_t){v.$Z()},Zt.\u0275dir=v.lG2({type:Zt,viewQuery:function(_t,Nt){if(1&_t&&(v.Gf(x,5),v.Gf(w,5),v.Gf(t.wG,5)),2&_t){let Qt;v.iGM(Qt=v.CRH())&&(Nt._inputElement=Qt.first),v.iGM(Qt=v.CRH())&&(Nt._labelElement=Qt.first),v.iGM(Qt=v.CRH())&&(Nt.ripple=Qt.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[v.qOj]}),Zt})(),Pt=(()=>{class Zt extends gt{constructor(_t,Nt,Qt,qt,le,Wt,Ce){super("mat-checkbox-",_t,Nt,qt,le,Wt,Ce),this._focusMonitor=Qt,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(_t){const Nt=new ot;return Nt.source=this,Nt.checked=_t,Nt}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(_t=>{_t||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(_t){_t.stopPropagation(),super._handleInputClick()}focus(_t,Nt){_t?this._focusMonitor.focusVia(this._inputElement,_t,Nt):this._inputElement.nativeElement.focus(Nt)}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(d.tE),v.Y36(v.R0b),v.$8M("tabindex"),v.Y36(v.QbO,8),v.Y36(P,8))},Zt.\u0275cmp=v.Xpm({type:Zt,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(_t,Nt){2&_t&&(v.Ikx("id",Nt.id),v.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),v.ekj("mat-checkbox-indeterminate",Nt.indeterminate)("mat-checkbox-checked",Nt.checked)("mat-checkbox-disabled",Nt.disabled)("mat-checkbox-label-before","before"==Nt.labelPosition)("_mat-animation-noopable","NoopAnimations"===Nt._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[v._Bn([W]),v.qOj],ngContentSelectors:D,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(_t,Nt){if(1&_t&&(v.F$t(),v.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),v.NdJ("change",function(qt){return Nt._onInteractionEvent(qt)})("click",function(qt){return Nt._onInputClick(qt)}),v.qZA(),v.TgZ(5,"span",5),v._UZ(6,"span",6),v.qZA(),v._UZ(7,"span",7),v.TgZ(8,"span",8),v.O4$(),v.TgZ(9,"svg",9),v._UZ(10,"path",10),v.qZA(),v.kcU(),v._UZ(11,"span",11),v.qZA()(),v.TgZ(12,"span",12,13),v.NdJ("cdkObserveContent",function(){return Nt._onLabelTextChange()}),v.TgZ(14,"span",14),v._uU(15,"\xa0"),v.qZA(),v.Hsn(16),v.qZA()()),2&_t){const Qt=v.MAs(1),qt=v.MAs(13);v.uIk("for",Nt.inputId),v.xp6(2),v.ekj("mat-checkbox-inner-container-no-side-margin",!qt.textContent||!qt.textContent.trim()),v.xp6(1),v.Q6J("id",Nt.inputId)("required",Nt.required)("checked",Nt.checked)("disabled",Nt.disabled)("tabIndex",Nt.tabIndex),v.uIk("value",Nt.value)("name",Nt.name)("aria-label",Nt.ariaLabel||null)("aria-labelledby",Nt.ariaLabelledby)("aria-checked",Nt._getAriaChecked())("aria-describedby",Nt.ariaDescribedby),v.xp6(2),v.Q6J("matRippleTrigger",Qt)("matRippleDisabled",Nt._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",v.VKq(19,k,"NoopAnimations"===Nt._animationMode?0:150))}},dependencies:[t.wG,A.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Zt})();const St={provide:T.Cf,useExisting:(0,v.Gpc)(()=>Ht),multi:!0};let Ht=(()=>{class Zt extends T.Zs{}return Zt.\u0275fac=function(){let wt;return function(Nt){return(wt||(wt=v.n5z(Zt)))(Nt||Zt)}}(),Zt.\u0275dir=v.lG2({type:Zt,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[v._Bn([St]),v.qOj]}),Zt})(),Jt=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275mod=v.oAB({type:Zt}),Zt.\u0275inj=v.cJS({}),Zt})(),at=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275mod=v.oAB({type:Zt}),Zt.\u0275inj=v.cJS({imports:[t.si,t.BQ,A.Q8,Jt,t.BQ,Jt]}),Zt})()},3238:(rt,it,b)=>{"use strict";b.d(it,{yN:()=>gt,mZ:()=>Pt,_A:()=>Ne,rD:()=>ce,sG:()=>ze,Ad:()=>Ce,K7:()=>On,HF:()=>ne,Y2:()=>xt,BQ:()=>Jt,X2:()=>Le,uc:()=>we,XK:()=>ue,ey:()=>Vn,Ng:()=>gn,rN:()=>ho,nP:()=>Ct,us:()=>Bt,wG:()=>tt,si:()=>et,IR:()=>Ft,CB:()=>Gn,jH:()=>je,pj:()=>Nt,Kr:()=>Qt,Id:()=>_t,FD:()=>le,dB:()=>Wt,sb:()=>qt,E0:()=>on});var d=b(94650),p=b(12687),v=b(40445),t=b(36895),A=b(83353),x=b(21281),w=b(56498),k=b(8929),D=b(1059),P=b(29521);function G(Ve,tn){if(1&Ve&&d._UZ(0,"mat-pseudo-checkbox",4),2&Ve){const an=d.oxw();d.Q6J("state",an.selected?"checked":"unchecked")("disabled",an.disabled)}}function W(Ve,tn){if(1&Ve&&(d.TgZ(0,"span",5),d._uU(1),d.qZA()),2&Ve){const an=d.oxw();d.xp6(1),d.hij("(",an.group.label,")")}}const ot=["*"];let gt=(()=>{class Ve{}return Ve.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ve.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ve.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ve.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ve})(),Pt=(()=>{class Ve{}return Ve.COMPLEX="375ms",Ve.ENTERING="225ms",Ve.EXITING="195ms",Ve})();const Ht=new d.OlP("mat-sanity-checks",{providedIn:"root",factory:function St(){return!0}});let Jt=(()=>{class Ve{constructor(an,pe,We){this._sanityChecks=pe,this._document=We,this._hasDoneGlobalChecks=!1,an._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(an){return!(0,A.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[an])}}return Ve.\u0275fac=function(an){return new(an||Ve)(d.LFG(p.qm),d.LFG(Ht,8),d.LFG(t.K0))},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({imports:[v.vT,v.vT]}),Ve})();function _t(Ve){return class extends Ve{constructor(...tn){super(...tn),this._disabled=!1}get disabled(){return this._disabled}set disabled(tn){this._disabled=(0,x.Ig)(tn)}}}function Nt(Ve,tn){return class extends Ve{constructor(...an){super(...an),this.defaultColor=tn,this.color=tn}get color(){return this._color}set color(an){const pe=an||this.defaultColor;pe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),pe&&this._elementRef.nativeElement.classList.add(`mat-${pe}`),this._color=pe)}}}function Qt(Ve){return class extends Ve{constructor(...tn){super(...tn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(tn){this._disableRipple=(0,x.Ig)(tn)}}}function qt(Ve,tn=0){return class extends Ve{constructor(...an){super(...an),this._tabIndex=tn,this.defaultTabIndex=tn}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(an){this._tabIndex=null!=an?(0,x.su)(an):this.defaultTabIndex}}}function le(Ve){return class extends Ve{constructor(...tn){super(...tn),this.errorState=!1}updateErrorState(){const tn=this.errorState,Et=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Et!==tn&&(this.errorState=Et,this.stateChanges.next())}}}function Wt(Ve){return class extends Ve{constructor(...tn){super(...tn),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new w.y(an=>{this._isInitialized?this._notifySubscriber(an):this._pendingSubscribers.push(an)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(tn){tn.next(),tn.complete()}}}const Ce=new d.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Ae(){return(0,d.f3M)(d.soG)}});class Ne{constructor(){this._localeChanges=new k.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(tn){return this.isDateInstance(tn)&&this.isValid(tn)?tn:null}deserialize(tn){return null==tn||this.isDateInstance(tn)&&this.isValid(tn)?tn:this.invalid()}setLocale(tn){this.locale=tn,this._localeChanges.next()}compareDate(tn,an){return this.getYear(tn)-this.getYear(an)||this.getMonth(tn)-this.getMonth(an)||this.getDate(tn)-this.getDate(an)}sameDate(tn,an){if(tn&&an){let pe=this.isValid(tn),We=this.isValid(an);return pe&&We?!this.compareDate(tn,an):pe==We}return tn==an}clampDate(tn,an,pe){return an&&this.compareDate(tn,an)<0?an:pe&&this.compareDate(tn,pe)>0?pe:tn}}const ze=new d.OlP("mat-date-formats"),Xe=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ie(Ve,tn){const an=Array(Ve);for(let pe=0;pe{class Ve extends Ne{constructor(an,pe){super(),this.useUtcForDisplay=!1,super.setLocale(an)}getYear(an){return an.getFullYear()}getMonth(an){return an.getMonth()}getDate(an){return an.getDate()}getDayOfWeek(an){return an.getDay()}getMonthNames(an){const pe=new Intl.DateTimeFormat(this.locale,{month:an,timeZone:"utc"});return ie(12,We=>this._format(pe,new Date(2017,We,1)))}getDateNames(){const an=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ie(31,pe=>this._format(an,new Date(2017,0,pe+1)))}getDayOfWeekNames(an){const pe=new Intl.DateTimeFormat(this.locale,{weekday:an,timeZone:"utc"});return ie(7,We=>this._format(pe,new Date(2017,0,We+1)))}getYearName(an){const pe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(pe,an)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(an){return this.getDate(this._createDateWithOverflow(this.getYear(an),this.getMonth(an)+1,0))}clone(an){return new Date(an.getTime())}createDate(an,pe,We){let Et=this._createDateWithOverflow(an,pe,We);return Et.getMonth(),Et}today(){return new Date}parse(an,pe){return"number"==typeof an?new Date(an):an?new Date(Date.parse(an)):null}format(an,pe){if(!this.isValid(an))throw Error("NativeDateAdapter: Cannot format invalid date.");const We=new Intl.DateTimeFormat(this.locale,{...pe,timeZone:"utc"});return this._format(We,an)}addCalendarYears(an,pe){return this.addCalendarMonths(an,12*pe)}addCalendarMonths(an,pe){let We=this._createDateWithOverflow(this.getYear(an),this.getMonth(an)+pe,this.getDate(an));return this.getMonth(We)!=((this.getMonth(an)+pe)%12+12)%12&&(We=this._createDateWithOverflow(this.getYear(We),this.getMonth(We),0)),We}addCalendarDays(an,pe){return this._createDateWithOverflow(this.getYear(an),this.getMonth(an),this.getDate(an)+pe)}toIso8601(an){return[an.getUTCFullYear(),this._2digit(an.getUTCMonth()+1),this._2digit(an.getUTCDate())].join("-")}deserialize(an){if("string"==typeof an){if(!an)return null;if(Xe.test(an)){let pe=new Date(an);if(this.isValid(pe))return pe}}return super.deserialize(an)}isDateInstance(an){return an instanceof Date}isValid(an){return!isNaN(an.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(an,pe,We){const Et=new Date;return Et.setFullYear(an,pe,We),Et.setHours(0,0,0,0),Et}_2digit(an){return("00"+an).slice(-2)}_format(an,pe){const We=new Date;return We.setUTCFullYear(pe.getFullYear(),pe.getMonth(),pe.getDate()),We.setUTCHours(pe.getHours(),pe.getMinutes(),pe.getSeconds(),pe.getMilliseconds()),an.format(We)}}return Ve.\u0275fac=function(an){return new(an||Ve)(d.LFG(Ce,8),d.LFG(A.t4))},Ve.\u0275prov=d.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const re={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let ee=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({providers:[{provide:Ne,useClass:Te}]}),Ve})(),ue=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({providers:[{provide:ze,useValue:re}],imports:[ee]}),Ve})(),ce=(()=>{class Ve{isErrorState(an,pe){return!!(an&&an.invalid&&(an.touched||pe&&pe.submitted))}}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275prov=d.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),Le=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275dir=d.lG2({type:Ve,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ve})();function on(Ve,tn,an="mat"){Ve.changes.pipe((0,D.O)(Ve)).subscribe(({length:pe})=>{hn(tn,`${an}-2-line`,!1),hn(tn,`${an}-3-line`,!1),hn(tn,`${an}-multi-line`,!1),2===pe||3===pe?hn(tn,`${an}-${pe}-line`,!0):pe>3&&hn(tn,`${an}-multi-line`,!0)})}function hn(Ve,tn,an){Ve.nativeElement.classList.toggle(tn,an)}let we=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({imports:[Jt,Jt]}),Ve})();class bn{constructor(tn,an,pe,We=!1){this._renderer=tn,this.element=an,this.config=pe,this._animationForciblyDisabledThroughCss=We,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ze={enterDuration:225,exitDuration:150},kn=(0,A.i$)({passive:!0}),ri=["mousedown","touchstart"],Ee=["mouseup","mouseleave","touchend","touchcancel"];class Ft{constructor(tn,an,pe,We){this._target=tn,this._ngZone=an,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,We.isBrowser&&(this._containerElement=(0,x.fI)(pe))}fadeInRipple(tn,an,pe={}){const We=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Et={...Ze,...pe.animation};pe.centered&&(tn=We.left+We.width/2,an=We.top+We.height/2);const Mt=pe.radius||function vt(Ve,tn,an){const pe=Math.max(Math.abs(Ve-an.left),Math.abs(Ve-an.right)),We=Math.max(Math.abs(tn-an.top),Math.abs(tn-an.bottom));return Math.sqrt(pe*pe+We*We)}(tn,an,We),It=tn-We.left,Me=an-We.top,en=Et.enterDuration,He=document.createElement("div");He.classList.add("mat-ripple-element"),He.style.left=It-Mt+"px",He.style.top=Me-Mt+"px",He.style.height=2*Mt+"px",He.style.width=2*Mt+"px",null!=pe.color&&(He.style.backgroundColor=pe.color),He.style.transitionDuration=`${en}ms`,this._containerElement.appendChild(He);const Zn=window.getComputedStyle(He),Be=Zn.transitionDuration,Fn="none"===Zn.transitionProperty||"0s"===Be||"0s, 0s"===Be,bi=new bn(this,He,pe,Fn);He.style.transform="scale3d(1, 1, 1)",bi.state=0,pe.persistent||(this._mostRecentTransientRipple=bi);let go=null;return!Fn&&(en||Et.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _o=()=>this._finishRippleTransition(bi),fn=()=>this._destroyRipple(bi);He.addEventListener("transitionend",_o),He.addEventListener("transitioncancel",fn),go={onTransitionEnd:_o,onTransitionCancel:fn}}),this._activeRipples.set(bi,go),(Fn||!en)&&this._finishRippleTransition(bi),bi}fadeOutRipple(tn){if(2===tn.state||3===tn.state)return;const an=tn.element,pe={...Ze,...tn.config.animation};an.style.transitionDuration=`${pe.exitDuration}ms`,an.style.opacity="0",tn.state=2,(tn._animationForciblyDisabledThroughCss||!pe.exitDuration)&&this._finishRippleTransition(tn)}fadeOutAll(){this._getActiveRipples().forEach(tn=>tn.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(tn=>{tn.config.persistent||tn.fadeOut()})}setupTriggerEvents(tn){const an=(0,x.fI)(tn);!an||an===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=an,this._registerEvents(ri))}handleEvent(tn){"mousedown"===tn.type?this._onMousedown(tn):"touchstart"===tn.type?this._onTouchStart(tn):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ee),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(tn){0===tn.state?this._startFadeOutTransition(tn):2===tn.state&&this._destroyRipple(tn)}_startFadeOutTransition(tn){const an=tn===this._mostRecentTransientRipple,{persistent:pe}=tn.config;tn.state=1,!pe&&(!an||!this._isPointerDown)&&tn.fadeOut()}_destroyRipple(tn){const an=this._activeRipples.get(tn)??null;this._activeRipples.delete(tn),this._activeRipples.size||(this._containerRect=null),tn===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),tn.state=3,null!==an&&(tn.element.removeEventListener("transitionend",an.onTransitionEnd),tn.element.removeEventListener("transitioncancel",an.onTransitionCancel)),tn.element.remove()}_onMousedown(tn){const an=(0,p.X6)(tn),pe=this._lastTouchStartEvent&&Date.now(){!tn.config.persistent&&(1===tn.state||tn.config.terminateOnPointerUp&&0===tn.state)&&tn.fadeOut()}))}_registerEvents(tn){this._ngZone.runOutsideAngular(()=>{tn.forEach(an=>{this._triggerElement.addEventListener(an,this,kn)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ri.forEach(tn=>{this._triggerElement.removeEventListener(tn,this,kn)}),this._pointerUpEventsRegistered&&Ee.forEach(tn=>{this._triggerElement.removeEventListener(tn,this,kn)}))}}const xt=new d.OlP("mat-ripple-global-options");let tt=(()=>{class Ve{constructor(an,pe,We,Et,Mt){this._elementRef=an,this._animationMode=Mt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Et||{},this._rippleRenderer=new Ft(this,pe,an,We)}get disabled(){return this._disabled}set disabled(an){an&&this.fadeOutAllNonPersistent(),this._disabled=an,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(an){this._trigger=an,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(an,pe=0,We){return"number"==typeof an?this._rippleRenderer.fadeInRipple(an,pe,{...this.rippleConfig,...We}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...an})}}return Ve.\u0275fac=function(an){return new(an||Ve)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(A.t4),d.Y36(xt,8),d.Y36(d.QbO,8))},Ve.\u0275dir=d.lG2({type:Ve,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(an,pe){2&an&&d.ekj("mat-ripple-unbounded",pe.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ve})(),et=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({imports:[Jt,Jt]}),Ve})(),Ct=(()=>{class Ve{constructor(an){this._animationMode=an,this.state="unchecked",this.disabled=!1}}return Ve.\u0275fac=function(an){return new(an||Ve)(d.Y36(d.QbO,8))},Ve.\u0275cmp=d.Xpm({type:Ve,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(an,pe){2&an&&d.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===pe.state)("mat-pseudo-checkbox-checked","checked"===pe.state)("mat-pseudo-checkbox-disabled",pe.disabled)("_mat-animation-noopable","NoopAnimations"===pe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(an,pe){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),Ve})(),Bt=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({imports:[Jt]}),Ve})();const ne=new d.OlP("MAT_OPTION_PARENT_COMPONENT"),On=new d.OlP("MatOptgroup");let Si=0;class ho{constructor(tn,an=!1){this.source=tn,this.isUserInput=an}}let hi=(()=>{class Ve{constructor(an,pe,We,Et){this._element=an,this._changeDetectorRef=pe,this._parent=We,this.group=Et,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Si++,this.onSelectionChange=new d.vpe,this._stateChanges=new k.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(an){this._disabled=(0,x.Ig)(an)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(an,pe){const We=this._getHostElement();"function"==typeof We.focus&&We.focus(pe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(an){(an.keyCode===P.K5||an.keyCode===P.L_)&&!(0,P.Vb)(an)&&(this._selectViaInteraction(),an.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const an=this.viewValue;an!==this._mostRecentViewValue&&(this._mostRecentViewValue=an,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(an=!1){this.onSelectionChange.emit(new ho(this,an))}}return Ve.\u0275fac=function(an){d.$Z()},Ve.\u0275dir=d.lG2({type:Ve,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ve})(),Vn=(()=>{class Ve extends hi{constructor(an,pe,We,Et){super(an,pe,We,Et)}}return Ve.\u0275fac=function(an){return new(an||Ve)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(ne,8),d.Y36(On,8))},Ve.\u0275cmp=d.Xpm({type:Ve,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(an,pe){1&an&&d.NdJ("click",function(){return pe._selectViaInteraction()})("keydown",function(Et){return pe._handleKeydown(Et)}),2&an&&(d.Ikx("id",pe.id),d.uIk("tabindex",pe._getTabIndex())("aria-selected",pe._getAriaSelected())("aria-disabled",pe.disabled.toString()),d.ekj("mat-selected",pe.selected)("mat-option-multiple",pe.multiple)("mat-active",pe.active)("mat-option-disabled",pe.disabled))},exportAs:["matOption"],features:[d.qOj],ngContentSelectors:ot,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(an,pe){1&an&&(d.F$t(),d.YNc(0,G,1,2,"mat-pseudo-checkbox",0),d.TgZ(1,"span",1),d.Hsn(2),d.qZA(),d.YNc(3,W,2,1,"span",2),d._UZ(4,"div",3)),2&an&&(d.Q6J("ngIf",pe.multiple),d.xp6(3),d.Q6J("ngIf",pe.group&&pe.group._inert),d.xp6(1),d.Q6J("matRippleTrigger",pe._getHostElement())("matRippleDisabled",pe.disabled||pe.disableRipple))},dependencies:[tt,t.O5,Ct],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),Ve})();function Gn(Ve,tn,an){if(an.length){let pe=tn.toArray(),We=an.toArray(),Et=0;for(let Mt=0;Mtan+pe?Math.max(0,Ve-pe+tn):an}let gn=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({imports:[et,t.ez,Jt,Bt]}),Ve})()},99602:(rt,it,b)=>{"use strict";b.d(it,{C0:()=>kn,E2:()=>an,FA:()=>Ye,Lv:()=>Mt,Mq:()=>He,S8:()=>Le,Uu:()=>We,hl:()=>go,nW:()=>fn});var d=b(12687),p=b(98184),v=b(84080),T=b(36895),t=b(94650),A=b(4859),x=b(67376),w=b(3238),k=b(8929),D=b(42654),P=b(36787),I=b(21086),z=b(29521),G=b(40445),W=b(72986),ot=b(1059),ct=b(92198),gt=b(21281),Pt=b(83353),St=b(37340),Ht=b(24006),Jt=b(59549),at=b(284);const Zt=["mat-calendar-body",""];function wt(Pe,mn){if(1&Pe&&(t.TgZ(0,"tr",2)(1,"td",3),t._uU(2),t.qZA()()),2&Pe){const nt=t.oxw();t.xp6(1),t.Udp("padding-top",nt._cellPadding)("padding-bottom",nt._cellPadding),t.uIk("colspan",nt.numCols),t.xp6(1),t.hij(" ",nt.label," ")}}function _t(Pe,mn){if(1&Pe&&(t.TgZ(0,"td",3),t._uU(1),t.qZA()),2&Pe){const nt=t.oxw(2);t.Udp("padding-top",nt._cellPadding)("padding-bottom",nt._cellPadding),t.uIk("colspan",nt._firstRowOffset),t.xp6(1),t.hij(" ",nt._firstRowOffset>=nt.labelMinRequiredCells?nt.label:""," ")}}function Nt(Pe,mn){if(1&Pe){const nt=t.EpF();t.TgZ(0,"td",7)(1,"button",8),t.NdJ("click",function(Q){const Je=t.CHM(nt).$implicit,zn=t.oxw(2);return t.KtG(zn._cellClicked(Je,Q))})("focus",function(Q){const Je=t.CHM(nt).$implicit,zn=t.oxw(2);return t.KtG(zn._emitActiveDateChange(Je,Q))}),t.TgZ(2,"div",9),t._uU(3),t.qZA(),t._UZ(4,"div",10),t.qZA()()}if(2&Pe){const nt=mn.$implicit,Vt=mn.index,Q=t.oxw().index,zt=t.oxw();t.Udp("width",zt._cellWidth)("padding-top",zt._cellPadding)("padding-bottom",zt._cellPadding),t.uIk("data-mat-row",Q)("data-mat-col",Vt),t.xp6(1),t.ekj("mat-calendar-body-disabled",!nt.enabled)("mat-calendar-body-active",zt._isActiveCell(Q,Vt))("mat-calendar-body-range-start",zt._isRangeStart(nt.compareValue))("mat-calendar-body-range-end",zt._isRangeEnd(nt.compareValue))("mat-calendar-body-in-range",zt._isInRange(nt.compareValue))("mat-calendar-body-comparison-bridge-start",zt._isComparisonBridgeStart(nt.compareValue,Q,Vt))("mat-calendar-body-comparison-bridge-end",zt._isComparisonBridgeEnd(nt.compareValue,Q,Vt))("mat-calendar-body-comparison-start",zt._isComparisonStart(nt.compareValue))("mat-calendar-body-comparison-end",zt._isComparisonEnd(nt.compareValue))("mat-calendar-body-in-comparison-range",zt._isInComparisonRange(nt.compareValue))("mat-calendar-body-preview-start",zt._isPreviewStart(nt.compareValue))("mat-calendar-body-preview-end",zt._isPreviewEnd(nt.compareValue))("mat-calendar-body-in-preview",zt._isInPreview(nt.compareValue)),t.Q6J("ngClass",nt.cssClasses)("tabindex",zt._isActiveCell(Q,Vt)?0:-1),t.uIk("aria-label",nt.ariaLabel)("aria-disabled",!nt.enabled||null)("aria-pressed",zt._isSelected(nt.compareValue))("aria-current",zt.todayValue===nt.compareValue?"date":null),t.xp6(1),t.ekj("mat-calendar-body-selected",zt._isSelected(nt.compareValue))("mat-calendar-body-comparison-identical",zt._isComparisonIdentical(nt.compareValue))("mat-calendar-body-today",zt.todayValue===nt.compareValue),t.xp6(1),t.hij(" ",nt.displayValue," ")}}function Qt(Pe,mn){if(1&Pe&&(t.TgZ(0,"tr",4),t.YNc(1,_t,2,6,"td",5),t.YNc(2,Nt,5,47,"td",6),t.qZA()),2&Pe){const nt=mn.$implicit,Vt=mn.index,Q=t.oxw();t.xp6(1),t.Q6J("ngIf",0===Vt&&Q._firstRowOffset),t.xp6(1),t.Q6J("ngForOf",nt)}}function qt(Pe,mn){if(1&Pe&&(t.TgZ(0,"th",5)(1,"span",6),t._uU(2),t.qZA(),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&Pe){const nt=mn.$implicit;t.xp6(2),t.Oqu(nt.long),t.xp6(2),t.Oqu(nt.narrow)}}const le=["*"];function Wt(Pe,mn){}function Ce(Pe,mn){if(1&Pe){const nt=t.EpF();t.TgZ(0,"mat-month-view",5),t.NdJ("activeDateChange",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt.activeDate=Q)})("_userSelection",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt._dateSelected(Q))}),t.qZA()}if(2&Pe){const nt=t.oxw();t.Q6J("activeDate",nt.activeDate)("selected",nt.selected)("dateFilter",nt.dateFilter)("maxDate",nt.maxDate)("minDate",nt.minDate)("dateClass",nt.dateClass)("comparisonStart",nt.comparisonStart)("comparisonEnd",nt.comparisonEnd)}}function Ae(Pe,mn){if(1&Pe){const nt=t.EpF();t.TgZ(0,"mat-year-view",6),t.NdJ("activeDateChange",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt.activeDate=Q)})("monthSelected",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt._monthSelectedInYearView(Q))})("selectedChange",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt._goToDateInView(Q,"month"))}),t.qZA()}if(2&Pe){const nt=t.oxw();t.Q6J("activeDate",nt.activeDate)("selected",nt.selected)("dateFilter",nt.dateFilter)("maxDate",nt.maxDate)("minDate",nt.minDate)("dateClass",nt.dateClass)}}function Ne(Pe,mn){if(1&Pe){const nt=t.EpF();t.TgZ(0,"mat-multi-year-view",7),t.NdJ("activeDateChange",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt.activeDate=Q)})("yearSelected",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt._yearSelectedInMultiYearView(Q))})("selectedChange",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt._goToDateInView(Q,"year"))}),t.qZA()}if(2&Pe){const nt=t.oxw();t.Q6J("activeDate",nt.activeDate)("selected",nt.selected)("dateFilter",nt.dateFilter)("maxDate",nt.maxDate)("minDate",nt.minDate)("dateClass",nt.dateClass)}}function ze(Pe,mn){}const Xe=["button"];function ie(Pe,mn){1&Pe&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"path",4),t.qZA())}const Te=[[["","matDatepickerToggleIcon",""]]],re=["[matDatepickerToggleIcon]"];let Le=(()=>{class Pe{constructor(){this.changes=new k.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(nt,Vt){return`${nt} \u2013 ${Vt}`}formatYearRangeLabel(nt,Vt){return`${nt} to ${Vt}`}}return Pe.\u0275fac=function(nt){return new(nt||Pe)},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();class on{constructor(mn,nt,Vt,Q,zt={},Je=mn,zn){this.value=mn,this.displayValue=nt,this.ariaLabel=Vt,this.enabled=Q,this.cssClasses=zt,this.compareValue=Je,this.rawValue=zn}}let hn=(()=>{class Pe{constructor(nt,Vt){this._elementRef=nt,this._ngZone=Vt,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new t.vpe,this.previewChange=new t.vpe,this.activeDateChange=new t.vpe,this._enterHandler=Q=>{if(this._skipNextFocus&&"focus"===Q.type)this._skipNextFocus=!1;else if(Q.target&&this.isRange){const zt=this._getCellFromElement(Q.target);zt&&this._ngZone.run(()=>this.previewChange.emit({value:zt.enabled?zt:null,event:Q}))}},this._leaveHandler=Q=>{null!==this.previewEnd&&this.isRange&&Q.target&&this._getCellFromElement(Q.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Q}))},Vt.runOutsideAngular(()=>{const Q=nt.nativeElement;Q.addEventListener("mouseenter",this._enterHandler,!0),Q.addEventListener("focus",this._enterHandler,!0),Q.addEventListener("mouseleave",this._leaveHandler,!0),Q.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(nt,Vt){nt.enabled&&this.selectedValueChange.emit({value:nt.value,event:Vt})}_emitActiveDateChange(nt,Vt){nt.enabled&&this.activeDateChange.emit({value:nt.value,event:Vt})}_isSelected(nt){return this.startValue===nt||this.endValue===nt}ngOnChanges(nt){const Vt=nt.numCols,{rows:Q,numCols:zt}=this;(nt.rows||Vt)&&(this._firstRowOffset=Q&&Q.length&&Q[0].length?zt-Q[0].length:0),(nt.cellAspectRatio||Vt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/zt+"%"),(Vt||!this._cellWidth)&&(this._cellWidth=100/zt+"%")}ngOnDestroy(){const nt=this._elementRef.nativeElement;nt.removeEventListener("mouseenter",this._enterHandler,!0),nt.removeEventListener("focus",this._enterHandler,!0),nt.removeEventListener("mouseleave",this._leaveHandler,!0),nt.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(nt,Vt){let Q=nt*this.numCols+Vt;return nt&&(Q-=this._firstRowOffset),Q==this.activeCell}_focusActiveCell(nt=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>{setTimeout(()=>{const Vt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Vt&&(nt||(this._skipNextFocus=!0),Vt.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(nt){return bn(nt,this.startValue,this.endValue)}_isRangeEnd(nt){return Ze(nt,this.startValue,this.endValue)}_isInRange(nt){return dn(nt,this.startValue,this.endValue,this.isRange)}_isComparisonStart(nt){return bn(nt,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(nt,Vt,Q){if(!this._isComparisonStart(nt)||this._isRangeStart(nt)||!this._isInRange(nt))return!1;let zt=this.rows[Vt][Q-1];if(!zt){const Je=this.rows[Vt-1];zt=Je&&Je[Je.length-1]}return zt&&!this._isRangeEnd(zt.compareValue)}_isComparisonBridgeEnd(nt,Vt,Q){if(!this._isComparisonEnd(nt)||this._isRangeEnd(nt)||!this._isInRange(nt))return!1;let zt=this.rows[Vt][Q+1];if(!zt){const Je=this.rows[Vt+1];zt=Je&&Je[0]}return zt&&!this._isRangeStart(zt.compareValue)}_isComparisonEnd(nt){return Ze(nt,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(nt){return dn(nt,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(nt){return this.comparisonStart===this.comparisonEnd&&nt===this.comparisonStart}_isPreviewStart(nt){return bn(nt,this.previewStart,this.previewEnd)}_isPreviewEnd(nt){return Ze(nt,this.previewStart,this.previewEnd)}_isInPreview(nt){return dn(nt,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(nt){let Vt;if(we(nt)?Vt=nt:we(nt.parentNode)&&(Vt=nt.parentNode),Vt){const Q=Vt.getAttribute("data-mat-row"),zt=Vt.getAttribute("data-mat-col");if(Q&&zt)return this.rows[parseInt(Q)][parseInt(zt)]}return null}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(t.SBq),t.Y36(t.R0b))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[t.TTD],attrs:Zt,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(nt,Vt){1&nt&&(t.YNc(0,wt,3,6,"tr",0),t.YNc(1,Qt,3,2,"tr",1)),2&nt&&(t.Q6J("ngIf",Vt._firstRowOffset=mn&&Pe===nt}function dn(Pe,mn,nt,Vt){return Vt&&null!==mn&&null!==nt&&mn!==nt&&Pe>=mn&&Pe<=nt}class kn{constructor(mn,nt){this.start=mn,this.end=nt}}let ri=(()=>{class Pe{constructor(nt,Vt){this.selection=nt,this._adapter=Vt,this._selectionChanged=new k.xQ,this.selectionChanged=this._selectionChanged,this.selection=nt}updateSelection(nt,Vt){const Q=this.selection;this.selection=nt,this._selectionChanged.next({selection:nt,source:Vt,oldValue:Q})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(nt){return this._adapter.isDateInstance(nt)&&this._adapter.isValid(nt)}}return Pe.\u0275fac=function(nt){t.$Z()},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),Ee=(()=>{class Pe extends ri{constructor(nt){super(null,nt)}add(nt){super.updateSelection(nt,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const nt=new Pe(this._adapter);return nt.updateSelection(this.selection,this),nt}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.LFG(w._A))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const xt={provide:ri,deps:[[new t.FiY,new t.tp0,ri],w._A],useFactory:function vt(Pe,mn){return Pe||new Ee(mn)}},Ct=new t.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let yn=(()=>{class Pe{constructor(nt,Vt,Q,zt,Je){this._changeDetectorRef=nt,this._dateFormats=Vt,this._dateAdapter=Q,this._dir=zt,this._rangeStrategy=Je,this._rerenderSubscription=D.w.EMPTY,this.selectedChange=new t.vpe,this._userSelection=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(nt){const Vt=this._activeDate,Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this._hasSameMonthAndYear(Vt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(nt){this._selected=nt instanceof kn?nt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(nt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get maxDate(){return this._maxDate}set maxDate(nt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ot.O)(null)).subscribe(()=>this._init())}ngOnChanges(nt){const Vt=nt.comparisonStart||nt.comparisonEnd;Vt&&!Vt.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(nt){const Vt=nt.value,Q=this._getDateFromDayOfMonth(Vt);let zt,Je;this._selected instanceof kn?(zt=this._getDateInCurrentMonth(this._selected.start),Je=this._getDateInCurrentMonth(this._selected.end)):zt=Je=this._getDateInCurrentMonth(this._selected),(zt!==Vt||Je!==Vt)&&this.selectedChange.emit(Q),this._userSelection.emit({value:Q,event:nt.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(nt){const Q=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(nt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(nt){const Vt=this._activeDate,Q=this._isRtl();switch(nt.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Q?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Q?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case z.Ku:this.activeDate=nt.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case z.VM:this.activeDate=nt.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case z.K5:case z.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&nt.preventDefault());case z.hY:return void(null!=this._previewEnd&&!(0,z.Vb)(nt)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:nt}),nt.preventDefault(),nt.stopPropagation()));default:return}this._dateAdapter.compareDate(Vt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),nt.preventDefault()}_handleCalendarBodyKeyup(nt){(nt.keyCode===z.L_||nt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:nt}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let nt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(nt)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(nt){this._matCalendarBody._focusActiveCell(nt)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:nt,value:Vt}){if(this._rangeStrategy){const zt=this._rangeStrategy.createPreview(Vt?Vt.rawValue:null,this.selected,nt);this._previewStart=this._getCellCompareValue(zt.start),this._previewEnd=this._getCellCompareValue(zt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(nt){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),nt)}_initWeekdays(){const nt=this._dateAdapter.getFirstDayOfWeek(),Vt=this._dateAdapter.getDayOfWeekNames("narrow");let zt=this._dateAdapter.getDayOfWeekNames("long").map((Je,zn)=>({long:Je,narrow:Vt[zn]}));this._weekdays=zt.slice(nt).concat(zt.slice(0,nt))}_createWeekCells(){const nt=this._dateAdapter.getNumDaysInMonth(this.activeDate),Vt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Q=0,zt=this._firstWeekOffset;Q=0)&&(!this.maxDate||this._dateAdapter.compareDate(nt,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(nt))}_getDateInCurrentMonth(nt){return nt&&this._hasSameMonthAndYear(nt,this.activeDate)?this._dateAdapter.getDate(nt):null}_hasSameMonthAndYear(nt,Vt){return!(!nt||!Vt||this._dateAdapter.getMonth(nt)!=this._dateAdapter.getMonth(Vt)||this._dateAdapter.getYear(nt)!=this._dateAdapter.getYear(Vt))}_getCellCompareValue(nt){if(nt){const Vt=this._dateAdapter.getYear(nt),Q=this._dateAdapter.getMonth(nt),zt=this._dateAdapter.getDate(nt);return new Date(Vt,Q,zt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(nt){nt instanceof kn?(this._rangeStart=this._getCellCompareValue(nt.start),this._rangeEnd=this._getCellCompareValue(nt.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(nt),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(nt){return!this.dateFilter||this.dateFilter(nt)}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(t.sBO),t.Y36(w.sG,8),t.Y36(w._A,8),t.Y36(G.Is,8),t.Y36(Ct,8))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-month-view"]],viewQuery:function(nt,Vt){if(1&nt&&t.Gf(hn,5),2&nt){let Q;t.iGM(Q=t.CRH())&&(Vt._matCalendarBody=Q.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[t.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(nt,Vt){1&nt&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t.YNc(3,qt,5,2,"th",2),t.qZA(),t.TgZ(4,"tr"),t._UZ(5,"th",3),t.qZA()(),t.TgZ(6,"tbody",4),t.NdJ("selectedValueChange",function(zt){return Vt._dateSelected(zt)})("activeDateChange",function(zt){return Vt._updateActiveDate(zt)})("previewChange",function(zt){return Vt._previewChanged(zt)})("keyup",function(zt){return Vt._handleCalendarBodyKeyup(zt)})("keydown",function(zt){return Vt._handleCalendarBodyKeydown(zt)}),t.qZA()()),2&nt&&(t.xp6(3),t.Q6J("ngForOf",Vt._weekdays),t.xp6(3),t.Q6J("label",Vt._monthLabel)("rows",Vt._weeks)("todayValue",Vt._todayDate)("startValue",Vt._rangeStart)("endValue",Vt._rangeEnd)("comparisonStart",Vt._comparisonRangeStart)("comparisonEnd",Vt._comparisonRangeEnd)("previewStart",Vt._previewStart)("previewEnd",Vt._previewEnd)("isRange",Vt._isRange)("labelMinRequiredCells",3)("activeCell",Vt._dateAdapter.getDate(Vt.activeDate)-1))},dependencies:[T.sg,hn],encapsulation:2,changeDetection:0}),Pe})(),Si=(()=>{class Pe{constructor(nt,Vt,Q){this._changeDetectorRef=nt,this._dateAdapter=Vt,this._dir=Q,this._rerenderSubscription=D.w.EMPTY,this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(nt){let Vt=this._activeDate;const Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),ho(this._dateAdapter,Vt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(nt){this._selected=nt instanceof kn?nt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt)),this._setSelectedYear(nt)}get minDate(){return this._minDate}set minDate(nt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get maxDate(){return this._maxDate}set maxDate(nt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ot.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Vt=this._dateAdapter.getYear(this._activeDate)-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Q=0,zt=[];Q<24;Q++)zt.push(Vt+Q),4==zt.length&&(this._years.push(zt.map(Je=>this._createCellForYear(Je))),zt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(nt){const Vt=nt.value,Q=this._dateAdapter.createDate(Vt,0,1),zt=this._getDateFromYear(Vt);this.yearSelected.emit(Q),this.selectedChange.emit(zt)}_updateActiveDate(nt){const Q=this._activeDate;this.activeDate=this._getDateFromYear(nt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(nt){const Vt=this._activeDate,Q=this._isRtl();switch(nt.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,nt.altKey?-240:-24);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,nt.altKey?240:24);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Vt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),nt.preventDefault()}_handleCalendarBodyKeyup(nt){(nt.keyCode===z.L_||nt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:nt}),this._selectionKeyPressed=!1)}_getActiveCell(){return hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(nt){const Vt=this._dateAdapter.getMonth(this.activeDate),Q=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(nt,Vt,1));return this._dateAdapter.createDate(nt,Vt,Math.min(this._dateAdapter.getDate(this.activeDate),Q))}_createCellForYear(nt){const Vt=this._dateAdapter.createDate(nt,0,1),Q=this._dateAdapter.getYearName(Vt),zt=this.dateClass?this.dateClass(Vt,"multi-year"):void 0;return new on(nt,Q,Q,this._shouldEnableYear(nt),zt)}_shouldEnableYear(nt){if(null==nt||this.maxDate&&nt>this._dateAdapter.getYear(this.maxDate)||this.minDate&&nt{class Pe{constructor(nt,Vt,Q,zt){this._changeDetectorRef=nt,this._dateFormats=Vt,this._dateAdapter=Q,this._dir=zt,this._rerenderSubscription=D.w.EMPTY,this.selectedChange=new t.vpe,this.monthSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(nt){let Vt=this._activeDate;const Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this._dateAdapter.getYear(Vt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(nt){this._selected=nt instanceof kn?nt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt)),this._setSelectedMonth(nt)}get minDate(){return this._minDate}set minDate(nt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get maxDate(){return this._maxDate}set maxDate(nt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ot.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(nt){const Vt=nt.value,Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Vt,1);this.monthSelected.emit(Q);const zt=this._getDateFromMonth(Vt);this.selectedChange.emit(zt)}_updateActiveDate(nt){const Q=this._activeDate;this.activeDate=this._getDateFromMonth(nt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(nt){const Vt=this._activeDate,Q=this._isRtl();switch(nt.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Q?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Q?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,nt.altKey?-10:-1);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,nt.altKey?10:1);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Vt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),nt.preventDefault()}_handleCalendarBodyKeyup(nt){(nt.keyCode===z.L_||nt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:nt}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let nt=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Vt=>Vt.map(Q=>this._createCellForMonth(Q,nt[Q]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(nt){return nt&&this._dateAdapter.getYear(nt)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(nt):null}_getDateFromMonth(nt){const Vt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),nt,1),Q=this._dateAdapter.getNumDaysInMonth(Vt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),nt,Math.min(this._dateAdapter.getDate(this.activeDate),Q))}_createCellForMonth(nt,Vt){const Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),nt,1),zt=this._dateAdapter.format(Q,this._dateFormats.display.monthYearA11yLabel),Je=this.dateClass?this.dateClass(Q,"year"):void 0;return new on(nt,Vt.toLocaleUpperCase(),zt,this._shouldEnableMonth(nt),Je)}_shouldEnableMonth(nt){const Vt=this._dateAdapter.getYear(this.activeDate);if(null==nt||this._isYearAndMonthAfterMaxDate(Vt,nt)||this._isYearAndMonthBeforeMinDate(Vt,nt))return!1;if(!this.dateFilter)return!0;for(let zt=this._dateAdapter.createDate(Vt,nt,1);this._dateAdapter.getMonth(zt)==nt;zt=this._dateAdapter.addCalendarDays(zt,1))if(this.dateFilter(zt))return!0;return!1}_isYearAndMonthAfterMaxDate(nt,Vt){if(this.maxDate){const Q=this._dateAdapter.getYear(this.maxDate),zt=this._dateAdapter.getMonth(this.maxDate);return nt>Q||nt===Q&&Vt>zt}return!1}_isYearAndMonthBeforeMinDate(nt,Vt){if(this.minDate){const Q=this._dateAdapter.getYear(this.minDate),zt=this._dateAdapter.getMonth(this.minDate);return nt{class Pe{constructor(nt,Vt,Q,zt,Je){this._intl=nt,this.calendar=Vt,this._dateAdapter=Q,this._dateFormats=zt,this._buttonDescriptionId="mat-calendar-button-"+gn++,this.calendar.stateChanges.subscribe(()=>Je.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Vt=this._dateAdapter.getYear(this.calendar.activeDate)-hi(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Q=Vt+24-1,zt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Vt,0,1)),Je=this._dateAdapter.getYearName(this._dateAdapter.createDate(Q,0,1));return this._intl.formatYearRange(zt,Je)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(nt,Vt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(nt)==this._dateAdapter.getYear(Vt)&&this._dateAdapter.getMonth(nt)==this._dateAdapter.getMonth(Vt):"year"==this.calendar.currentView?this._dateAdapter.getYear(nt)==this._dateAdapter.getYear(Vt):ho(this._dateAdapter,nt,Vt,this.calendar.minDate,this.calendar.maxDate)}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(Le),t.Y36((0,t.Gpc)(()=>tn)),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(t.sBO))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:le,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(nt,Vt){1&nt&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return Vt.currentPeriodClicked()}),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.O4$(),t.TgZ(5,"svg",3),t._UZ(6,"polygon",4),t.qZA()(),t.kcU(),t._UZ(7,"div",5),t.Hsn(8),t.TgZ(9,"button",6),t.NdJ("click",function(){return Vt.previousClicked()}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return Vt.nextClicked()}),t.qZA()()()),2&nt&&(t.xp6(2),t.uIk("aria-label",Vt.periodButtonLabel)("aria-describedby",Vt._buttonDescriptionId),t.xp6(1),t.uIk("id",Vt._buttonDescriptionId),t.xp6(1),t.Oqu(Vt.periodButtonText),t.xp6(1),t.ekj("mat-calendar-invert","month"!==Vt.calendar.currentView),t.xp6(4),t.Q6J("disabled",!Vt.previousEnabled()),t.uIk("aria-label",Vt.prevButtonLabel),t.xp6(1),t.Q6J("disabled",!Vt.nextEnabled()),t.uIk("aria-label",Vt.nextButtonLabel))},dependencies:[A.lW],encapsulation:2,changeDetection:0}),Pe})(),tn=(()=>{class Pe{constructor(nt,Vt,Q,zt){this._dateAdapter=Vt,this._dateFormats=Q,this._changeDetectorRef=zt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this._userSelection=new t.vpe,this.stateChanges=new k.xQ,this._intlChanges=nt.changes.subscribe(()=>{zt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(nt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get selected(){return this._selected}set selected(nt){this._selected=nt instanceof kn?nt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get minDate(){return this._minDate}set minDate(nt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get maxDate(){return this._maxDate}set maxDate(nt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get activeDate(){return this._clampedActiveDate}set activeDate(nt){this._clampedActiveDate=this._dateAdapter.clampDate(nt,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(nt){const Vt=this._currentView!==nt?nt:null;this._currentView=nt,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Vt&&this.viewChanged.emit(Vt)}ngAfterContentInit(){this._calendarHeaderPortal=new v.C5(this.headerComponent||Ve),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(nt){const Vt=nt.minDate&&!this._dateAdapter.sameDate(nt.minDate.previousValue,nt.minDate.currentValue)?nt.minDate:void 0,Q=nt.maxDate&&!this._dateAdapter.sameDate(nt.maxDate.previousValue,nt.maxDate.currentValue)?nt.maxDate:void 0,zt=Vt||Q||nt.dateFilter;if(zt&&!zt.firstChange){const Je=this._getCurrentViewComponent();Je&&(this._changeDetectorRef.detectChanges(),Je._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(nt){const Vt=nt.value;(this.selected instanceof kn||Vt&&!this._dateAdapter.sameDate(Vt,this.selected))&&this.selectedChange.emit(Vt),this._userSelection.emit(nt)}_yearSelectedInMultiYearView(nt){this.yearSelected.emit(nt)}_monthSelectedInYearView(nt){this.monthSelected.emit(nt)}_goToDateInView(nt,Vt){this.activeDate=nt,this.currentView=Vt}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(Le),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(t.sBO))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-calendar"]],viewQuery:function(nt,Vt){if(1&nt&&(t.Gf(yn,5),t.Gf(je,5),t.Gf(Si,5)),2&nt){let Q;t.iGM(Q=t.CRH())&&(Vt.monthView=Q.first),t.iGM(Q=t.CRH())&&(Vt.yearView=Q.first),t.iGM(Q=t.CRH())&&(Vt.multiYearView=Q.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[t._Bn([xt]),t.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(nt,Vt){1&nt&&(t.YNc(0,Wt,0,0,"ng-template",0),t.TgZ(1,"div",1),t.YNc(2,Ce,1,8,"mat-month-view",2),t.YNc(3,Ae,1,6,"mat-year-view",3),t.YNc(4,Ne,1,6,"mat-multi-year-view",4),t.qZA()),2&nt&&(t.Q6J("cdkPortalOutlet",Vt._calendarHeaderPortal),t.xp6(1),t.Q6J("ngSwitch",Vt.currentView),t.xp6(1),t.Q6J("ngSwitchCase","month"),t.xp6(1),t.Q6J("ngSwitchCase","year"),t.xp6(1),t.Q6J("ngSwitchCase","multi-year"))},dependencies:[T.RF,T.n9,d.kH,v.Pl,yn,je,Si],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Pe})();const an={transformPanel:(0,St.X$)("transformPanel",[(0,St.eR)("void => enter-dropdown",(0,St.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,St.F4)([(0,St.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,St.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,St.eR)("void => enter-dialog",(0,St.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,St.F4)([(0,St.oB)({opacity:0,transform:"scale(0.7)"}),(0,St.oB)({transform:"none",opacity:1})]))),(0,St.eR)("* => void",(0,St.jt)("100ms linear",(0,St.oB)({opacity:0})))]),fadeInCalendar:(0,St.X$)("fadeInCalendar",[(0,St.SB)("void",(0,St.oB)({opacity:0})),(0,St.SB)("enter",(0,St.oB)({opacity:1})),(0,St.eR)("void => *",(0,St.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let pe=0;const We=new t.OlP("mat-datepicker-scroll-strategy"),Mt={provide:We,deps:[p.aV],useFactory:function Et(Pe){return()=>Pe.scrollStrategies.reposition()}},It=(0,w.pj)(class{constructor(Pe){this._elementRef=Pe}});let Me=(()=>{class Pe extends It{constructor(nt,Vt,Q,zt,Je,zn){super(nt),this._changeDetectorRef=Vt,this._globalModel=Q,this._dateAdapter=zt,this._rangeSelectionStrategy=Je,this._subscriptions=new D.w,this._animationDone=new k.xQ,this._actionsPortal=null,this._closeButtonText=zn.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(nt){const Vt=this._model.selection,Q=nt.value,zt=Vt instanceof kn;if(zt&&this._rangeSelectionStrategy){const Je=this._rangeSelectionStrategy.selectionFinished(Q,Vt,nt.event);this._model.updateSelection(Je,this)}else Q&&(zt||!this._dateAdapter.sameDate(Q,Vt))&&this._model.add(Q);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(nt,Vt){this._model=nt?this._globalModel.clone():this._globalModel,this._actionsPortal=nt,Vt&&this._changeDetectorRef.detectChanges()}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ri),t.Y36(w._A),t.Y36(Ct,8),t.Y36(Le))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-datepicker-content"]],viewQuery:function(nt,Vt){if(1&nt&&t.Gf(tn,5),2&nt){let Q;t.iGM(Q=t.CRH())&&(Vt._calendar=Q.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(nt,Vt){1&nt&&t.WFA("@transformPanel.done",function(){return Vt._animationDone.next()}),2&nt&&(t.d8E("@transformPanel",Vt._animationState),t.ekj("mat-datepicker-content-touch",Vt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[t.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(nt,Vt){if(1&nt&&(t.TgZ(0,"div",0)(1,"mat-calendar",1),t.NdJ("yearSelected",function(zt){return Vt.datepicker._selectYear(zt)})("monthSelected",function(zt){return Vt.datepicker._selectMonth(zt)})("viewChanged",function(zt){return Vt.datepicker._viewChanged(zt)})("_userSelection",function(zt){return Vt._handleUserSelection(zt)}),t.qZA(),t.YNc(2,ze,0,0,"ng-template",2),t.TgZ(3,"button",3),t.NdJ("focus",function(){return Vt._closeButtonFocused=!0})("blur",function(){return Vt._closeButtonFocused=!1})("click",function(){return Vt.datepicker.close()}),t._uU(4),t.qZA()()),2&nt){let Q;t.ekj("mat-datepicker-content-container-with-custom-header",Vt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Vt._actionsPortal),t.uIk("aria-modal",!0)("aria-labelledby",null!==(Q=Vt._dialogLabelId)&&void 0!==Q?Q:void 0),t.xp6(1),t.Q6J("id",Vt.datepicker.id)("ngClass",Vt.datepicker.panelClass)("startAt",Vt.datepicker.startAt)("startView",Vt.datepicker.startView)("minDate",Vt.datepicker._getMinDate())("maxDate",Vt.datepicker._getMaxDate())("dateFilter",Vt.datepicker._getDateFilter())("headerComponent",Vt.datepicker.calendarHeaderComponent)("selected",Vt._getSelected())("dateClass",Vt.datepicker.dateClass)("comparisonStart",Vt.comparisonStart)("comparisonEnd",Vt.comparisonEnd)("@fadeInCalendar","enter"),t.xp6(1),t.Q6J("cdkPortalOutlet",Vt._actionsPortal),t.xp6(1),t.ekj("cdk-visually-hidden",!Vt._closeButtonFocused),t.Q6J("color",Vt.color||"primary"),t.xp6(1),t.Oqu(Vt._closeButtonText)}},dependencies:[T.mk,A.lW,d.mK,v.Pl,tn],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[an.transformPanel,an.fadeInCalendar]},changeDetection:0}),Pe})(),en=(()=>{class Pe{constructor(nt,Vt,Q,zt,Je,zn,Gi){this._overlay=nt,this._ngZone=Vt,this._viewContainerRef=Q,this._dateAdapter=Je,this._dir=zn,this._model=Gi,this._inputStateChanges=D.w.EMPTY,this._document=(0,t.f3M)(T.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this.openedStream=new t.vpe,this.closedStream=new t.vpe,this._opened=!1,this.id="mat-datepicker-"+pe++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new k.xQ,this._scrollStrategy=zt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(nt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(nt){this._color=nt}get touchUi(){return this._touchUi}set touchUi(nt){this._touchUi=(0,gt.Ig)(nt)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(nt){const Vt=(0,gt.Ig)(nt);Vt!==this._disabled&&(this._disabled=Vt,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(nt){this._restoreFocus=(0,gt.Ig)(nt)}get panelClass(){return this._panelClass}set panelClass(nt){this._panelClass=(0,gt.du)(nt)}get opened(){return this._opened}set opened(nt){(0,gt.Ig)(nt)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(nt){const Vt=nt.xPosition||nt.yPosition;if(Vt&&!Vt.firstChange&&this._overlayRef){const Q=this._overlayRef.getConfig().positionStrategy;Q instanceof p._G&&(this._setConnectedPositions(Q),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(nt){this._model.add(nt)}_selectYear(nt){this.yearSelected.emit(nt)}_selectMonth(nt){this.monthSelected.emit(nt)}_viewChanged(nt){this.viewChanged.emit(nt)}registerInput(nt){return this._inputStateChanges.unsubscribe(),this.datepickerInput=nt,this._inputStateChanges=nt.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(nt){this._actionsPortal=nt,this._componentRef?.instance._assignActions(nt,!0)}removeActions(nt){nt===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,Pt.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const nt=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Vt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Q,location:zt}=this._componentRef;Q._startExitAnimation(),Q._animationDone.pipe((0,W.q)(1)).subscribe(()=>{const Je=this._document.activeElement;nt&&(!Je||Je===this._document.activeElement||zt.nativeElement.contains(Je))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}nt?setTimeout(Vt):Vt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(nt){nt.datepicker=this,nt.color=this.color,nt._dialogLabelId=this.datepickerInput.getOverlayLabelId(),nt._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const nt=this.touchUi,Vt=new v.C5(Me,this._viewContainerRef),Q=this._overlayRef=this._overlay.create(new p.X_({positionStrategy:nt?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[nt?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:nt?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(nt?"dialog":"popup")}));this._getCloseStream(Q).subscribe(zt=>{zt&&zt.preventDefault(),this.close()}),Q.keydownEvents().subscribe(zt=>{const Je=zt.keyCode;(Je===z.LH||Je===z.JH||Je===z.oh||Je===z.SV||Je===z.Ku||Je===z.VM)&&zt.preventDefault()}),this._componentRef=Q.attach(Vt),this._forwardContentValues(this._componentRef.instance),nt||this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>Q.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const nt=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(nt)}_setConnectedPositions(nt){const Vt="end"===this.xPosition?"end":"start",Q="start"===Vt?"end":"start",zt="above"===this.yPosition?"bottom":"top",Je="top"===zt?"bottom":"top";return nt.withPositions([{originX:Vt,originY:Je,overlayX:Vt,overlayY:zt},{originX:Vt,originY:zt,overlayX:Vt,overlayY:Je},{originX:Q,originY:Je,overlayX:Q,overlayY:zt},{originX:Q,originY:zt,overlayX:Q,overlayY:Je}])}_getCloseStream(nt){return(0,P.T)(nt.backdropClick(),nt.detachments(),nt.keydownEvents().pipe((0,ct.h)(Vt=>Vt.keyCode===z.hY&&!(0,z.Vb)(Vt)||this.datepickerInput&&(0,z.Vb)(Vt,"altKey")&&Vt.keyCode===z.LH)))}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(p.aV),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(We),t.Y36(w._A,8),t.Y36(G.Is,8),t.Y36(ri))},Pe.\u0275dir=t.lG2({type:Pe,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[t.TTD]}),Pe})(),He=(()=>{class Pe extends en{}return Pe.\u0275fac=function(){let mn;return function(Vt){return(mn||(mn=t.n5z(Pe)))(Vt||Pe)}}(),Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[t._Bn([xt,{provide:en,useExisting:Pe}]),t.qOj],decls:0,vars:0,template:function(nt,Vt){},encapsulation:2,changeDetection:0}),Pe})();class Zn{constructor(mn,nt){this.target=mn,this.targetElement=nt,this.value=this.target.value}}let ve=(()=>{class Pe{constructor(nt,Vt,Q){this._elementRef=nt,this._dateAdapter=Vt,this._dateFormats=Q,this.dateChange=new t.vpe,this.dateInput=new t.vpe,this.stateChanges=new k.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=D.w.EMPTY,this._localeSubscription=D.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=zt=>{const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(zt.value));return!Je||this._matchesFilter(Je)?null:{matDatepickerFilter:!0}},this._minValidator=zt=>{const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(zt.value)),zn=this._getMinDate();return!zn||!Je||this._dateAdapter.compareDate(zn,Je)<=0?null:{matDatepickerMin:{min:zn,actual:Je}}},this._maxValidator=zt=>{const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(zt.value)),zn=this._getMaxDate();return!zn||!Je||this._dateAdapter.compareDate(zn,Je)>=0?null:{matDatepickerMax:{max:zn,actual:Je}}},this._lastValueValid=!1,this._localeSubscription=Vt.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(nt){this._assignValueProgrammatically(nt)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(nt){const Vt=(0,gt.Ig)(nt),Q=this._elementRef.nativeElement;this._disabled!==Vt&&(this._disabled=Vt,this.stateChanges.next(void 0)),Vt&&this._isInitialized&&Q.blur&&Q.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(nt){this._model=nt,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Vt=>{if(this._shouldHandleChangeEvent(Vt)){const Q=this._getValueFromModel(Vt.selection);this._lastValueValid=this._isValidValue(Q),this._cvaOnChange(Q),this._onTouched(),this._formatValue(Q),this.dateInput.emit(new Zn(this,this._elementRef.nativeElement)),this.dateChange.emit(new Zn(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(nt){(function Be(Pe,mn){const nt=Object.keys(Pe);for(let Vt of nt){const{previousValue:Q,currentValue:zt}=Pe[Vt];if(!mn.isDateInstance(Q)||!mn.isDateInstance(zt))return!0;if(!mn.sameDate(Q,zt))return!0}return!1})(nt,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(nt){this._validatorOnChange=nt}validate(nt){return this._validator?this._validator(nt):null}writeValue(nt){this._assignValueProgrammatically(nt)}registerOnChange(nt){this._cvaOnChange=nt}registerOnTouched(nt){this._onTouched=nt}setDisabledState(nt){this.disabled=nt}_onKeydown(nt){nt.altKey&&nt.keyCode===z.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),nt.preventDefault())}_onInput(nt){const Vt=this._lastValueValid;let Q=this._dateAdapter.parse(nt,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Q),Q=this._dateAdapter.getValidDateOrNull(Q);const zt=!this._dateAdapter.sameDate(Q,this.value);!Q||zt?this._cvaOnChange(Q):(nt&&!this.value&&this._cvaOnChange(Q),Vt!==this._lastValueValid&&this._validatorOnChange()),zt&&(this._assignValue(Q),this.dateInput.emit(new Zn(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Zn(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(nt){this._elementRef.nativeElement.value=null!=nt?this._dateAdapter.format(nt,this._dateFormats.display.dateInput):""}_assignValue(nt){this._model?(this._assignValueToModel(nt),this._pendingValue=null):this._pendingValue=nt}_isValidValue(nt){return!nt||this._dateAdapter.isValid(nt)}_parentDisabled(){return!1}_assignValueProgrammatically(nt){nt=this._dateAdapter.deserialize(nt),this._lastValueValid=this._isValidValue(nt),nt=this._dateAdapter.getValidDateOrNull(nt),this._assignValue(nt),this._formatValue(nt)}_matchesFilter(nt){const Vt=this._getDateFilter();return!Vt||Vt(nt)}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(t.SBq),t.Y36(w._A,8),t.Y36(w.sG,8))},Pe.\u0275dir=t.lG2({type:Pe,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t.TTD]}),Pe})();const Fn={provide:Ht.JU,useExisting:(0,t.Gpc)(()=>go),multi:!0},bi={provide:Ht.Cf,useExisting:(0,t.Gpc)(()=>go),multi:!0};let go=(()=>{class Pe extends ve{constructor(nt,Vt,Q,zt){super(nt,Vt,Q),this._formField=zt,this._closedSubscription=D.w.EMPTY,this._validator=Ht.kI.compose(super._getValidators())}set matDatepicker(nt){nt&&(this._datepicker=nt,this._closedSubscription=nt.closedStream.subscribe(()=>this._onTouched()),this._registerModel(nt.registerInput(this)))}get min(){return this._min}set min(nt){const Vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt));this._dateAdapter.sameDate(Vt,this._min)||(this._min=Vt,this._validatorOnChange())}get max(){return this._max}set max(nt){const Vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt));this._dateAdapter.sameDate(Vt,this._max)||(this._max=Vt,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(nt){const Vt=this._matchesFilter(this.value);this._dateFilter=nt,this._matchesFilter(this.value)!==Vt&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(nt){return nt}_assignValueToModel(nt){this._model&&this._model.updateSelection(nt,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(nt){return nt.source!==this}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(t.SBq),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(Jt.G_,8))},Pe.\u0275dir=t.lG2({type:Pe,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(nt,Vt){1&nt&&t.NdJ("input",function(zt){return Vt._onInput(zt.target.value)})("change",function(){return Vt._onChange()})("blur",function(){return Vt._onBlur()})("keydown",function(zt){return Vt._onKeydown(zt)}),2&nt&&(t.Ikx("disabled",Vt.disabled),t.uIk("aria-haspopup",Vt._datepicker?"dialog":null)("aria-owns",(null==Vt._datepicker?null:Vt._datepicker.opened)&&Vt._datepicker.id||null)("min",Vt.min?Vt._dateAdapter.toIso8601(Vt.min):null)("max",Vt.max?Vt._dateAdapter.toIso8601(Vt.max):null)("data-mat-calendar",Vt._datepicker?Vt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[t._Bn([Fn,bi,{provide:at.Jk,useExisting:Pe}]),t.qOj]}),Pe})(),_o=(()=>{class Pe{}return Pe.\u0275fac=function(nt){return new(nt||Pe)},Pe.\u0275dir=t.lG2({type:Pe,selectors:[["","matDatepickerToggleIcon",""]]}),Pe})(),fn=(()=>{class Pe{constructor(nt,Vt,Q){this._intl=nt,this._changeDetectorRef=Vt,this._stateChanges=D.w.EMPTY;const zt=Number(Q);this.tabIndex=zt||0===zt?zt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(nt){this._disabled=(0,gt.Ig)(nt)}ngOnChanges(nt){nt.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(nt){this.datepicker&&!this.disabled&&(this.datepicker.open(),nt.stopPropagation())}_watchStateChanges(){const nt=this.datepicker?this.datepicker.stateChanges:(0,I.of)(),Vt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,I.of)(),Q=this.datepicker?(0,P.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,I.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,P.T)(this._intl.changes,nt,Vt,Q).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(Le),t.Y36(t.sBO),t.$8M("tabindex"))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-datepicker-toggle"]],contentQueries:function(nt,Vt,Q){if(1&nt&&t.Suo(Q,_o,5),2&nt){let zt;t.iGM(zt=t.CRH())&&(Vt._customIcon=zt.first)}},viewQuery:function(nt,Vt){if(1&nt&&t.Gf(Xe,5),2&nt){let Q;t.iGM(Q=t.CRH())&&(Vt._button=Q.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(nt,Vt){1&nt&&t.NdJ("click",function(zt){return Vt._open(zt)}),2&nt&&(t.uIk("tabindex",null)("data-mat-calendar",Vt.datepicker?Vt.datepicker.id:null),t.ekj("mat-datepicker-toggle-active",Vt.datepicker&&Vt.datepicker.opened)("mat-accent",Vt.datepicker&&"accent"===Vt.datepicker.color)("mat-warn",Vt.datepicker&&"warn"===Vt.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[t.TTD],ngContentSelectors:re,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(nt,Vt){1&nt&&(t.F$t(Te),t.TgZ(0,"button",0,1),t.YNc(2,ie,2,0,"svg",2),t.Hsn(3),t.qZA()),2&nt&&(t.Q6J("disabled",Vt.disabled)("disableRipple",Vt.disableRipple),t.uIk("aria-haspopup",Vt.datepicker?"dialog":null)("aria-label",Vt.ariaLabel||Vt._intl.openCalendarLabel)("tabindex",Vt.disabled?-1:Vt.tabIndex),t.xp6(2),t.Q6J("ngIf",!Vt._customIcon))},dependencies:[T.O5,A.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Pe})(),Ye=(()=>{class Pe{}return Pe.\u0275fac=function(nt){return new(nt||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({providers:[Le,Mt],imports:[T.ez,A.ot,p.U8,d.rt,v.eL,w.BQ,x.ZD]}),Pe})()},65412:(rt,it,b)=>{"use strict";b.d(it,{WI:()=>ee,uw:()=>bn,H8:()=>Ee,ZT:()=>dn,xY:()=>ri,Is:()=>vt,so:()=>Te,uh:()=>kn});var d=b(12687),p=b(98184),v=b(83353),T=b(84080),t=b(36895),A=b(94650),x=b(29521),w=b(8929),k=b(88514),D=b(21086),P=b(40445),I=b(1059);function z(xt,tt){}class G{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let ot=(()=>{class xt extends T.en{constructor(et,Ct,Bt,ne,he,Oe,yn,On){super(),this._elementRef=et,this._focusTrapFactory=Ct,this._config=ne,this._interactivityChecker=he,this._ngZone=Oe,this._overlayRef=yn,this._focusMonitor=On,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=_i=>{this._portalOutlet.hasAttached();const Si=this._portalOutlet.attachDomPortal(_i);return this._contentAttached(),Si},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Bt}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(et){this._portalOutlet.hasAttached();const Ct=this._portalOutlet.attachComponentPortal(et);return this._contentAttached(),Ct}attachTemplatePortal(et){this._portalOutlet.hasAttached();const Ct=this._portalOutlet.attachTemplatePortal(et);return this._contentAttached(),Ct}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(et,Ct){this._interactivityChecker.isFocusable(et)||(et.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Bt=()=>{et.removeEventListener("blur",Bt),et.removeEventListener("mousedown",Bt),et.removeAttribute("tabindex")};et.addEventListener("blur",Bt),et.addEventListener("mousedown",Bt)})),et.focus(Ct)}_focusByCssSelector(et,Ct){let Bt=this._elementRef.nativeElement.querySelector(et);Bt&&this._forceFocus(Bt,Ct)}_trapFocus(){const et=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||et.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ct=>{Ct||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const et=this._config.restoreFocus;let Ct=null;if("string"==typeof et?Ct=this._document.querySelector(et):"boolean"==typeof et?Ct=et?this._elementFocusedBeforeDialogWasOpened:null:et&&(Ct=et),this._config.restoreFocus&&Ct&&"function"==typeof Ct.focus){const Bt=(0,v.ht)(),ne=this._elementRef.nativeElement;(!Bt||Bt===this._document.body||Bt===ne||ne.contains(Bt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ct,this._closeInteractionType),this._closeInteractionType=null):Ct.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const et=this._elementRef.nativeElement,Ct=(0,v.ht)();return et===Ct||et.contains(Ct)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,v.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return xt.\u0275fac=function(et){return new(et||xt)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(G),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(d.tE))},xt.\u0275cmp=A.Xpm({type:xt,selectors:[["cdk-dialog-container"]],viewQuery:function(et,Ct){if(1&et&&A.Gf(T.Pl,7),2&et){let Bt;A.iGM(Bt=A.CRH())&&(Ct._portalOutlet=Bt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(et,Ct){2&et&&A.uIk("id",Ct._config.id||null)("role",Ct._config.role)("aria-modal",Ct._config.ariaModal)("aria-labelledby",Ct._config.ariaLabel?null:Ct._ariaLabelledBy)("aria-label",Ct._config.ariaLabel)("aria-describedby",Ct._config.ariaDescribedBy||null)},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(et,Ct){1&et&&A.YNc(0,z,0,0,"ng-template",0)},dependencies:[T.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),xt})();class ct{constructor(tt,et){this.overlayRef=tt,this.config=et,this.closed=new w.xQ,this.disableClose=et.disableClose,this.backdropClick=tt.backdropClick(),this.keydownEvents=tt.keydownEvents(),this.outsidePointerEvents=tt.outsidePointerEvents(),this.id=et.id,this.keydownEvents.subscribe(Ct=>{Ct.keyCode===x.hY&&!this.disableClose&&!(0,x.Vb)(Ct)&&(Ct.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(tt,et){if(this.containerInstance){const Ct=this.closed;this.containerInstance._closeInteractionType=et?.focusOrigin||"program",this.overlayRef.dispose(),Ct.next(tt),Ct.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(tt="",et=""){return this.overlayRef.updateSize({width:tt,height:et}),this}addPanelClass(tt){return this.overlayRef.addPanelClass(tt),this}removePanelClass(tt){return this.overlayRef.removePanelClass(tt),this}}const gt=new A.OlP("DialogScrollStrategy"),Pt=new A.OlP("DialogData"),St=new A.OlP("DefaultDialogConfig"),Jt={provide:gt,deps:[p.aV],useFactory:function Ht(xt){return()=>xt.scrollStrategies.block()}};let at=0,Zt=(()=>{class xt{constructor(et,Ct,Bt,ne,he,Oe){this._overlay=et,this._injector=Ct,this._defaultOptions=Bt,this._parentDialog=ne,this._overlayContainer=he,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.xQ,this._afterOpenedAtThisLevel=new w.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,k.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,I.O)(void 0))),this._scrollStrategy=Oe}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(et,Ct){(Ct={...this._defaultOptions||new G,...Ct}).id=Ct.id||"cdk-dialog-"+at++,Ct.id&&this.getDialogById(Ct.id);const ne=this._getOverlayConfig(Ct),he=this._overlay.create(ne),Oe=new ct(he,Ct),yn=this._attachContainer(he,Oe,Ct);return Oe.containerInstance=yn,this._attachDialogContent(et,Oe,yn,Ct),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Oe),Oe.closed.subscribe(()=>this._removeOpenDialog(Oe,!0)),this.afterOpened.next(Oe),Oe}closeAll(){wt(this.openDialogs,et=>et.close())}getDialogById(et){return this.openDialogs.find(Ct=>Ct.id===et)}ngOnDestroy(){wt(this._openDialogsAtThisLevel,et=>{!1===et.config.closeOnDestroy&&this._removeOpenDialog(et,!1)}),wt(this._openDialogsAtThisLevel,et=>et.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(et){const Ct=new p.X_({positionStrategy:et.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:et.scrollStrategy||this._scrollStrategy(),panelClass:et.panelClass,hasBackdrop:et.hasBackdrop,direction:et.direction,minWidth:et.minWidth,minHeight:et.minHeight,maxWidth:et.maxWidth,maxHeight:et.maxHeight,width:et.width,height:et.height,disposeOnNavigation:et.closeOnNavigation});return et.backdropClass&&(Ct.backdropClass=et.backdropClass),Ct}_attachContainer(et,Ct,Bt){const ne=Bt.injector||Bt.viewContainerRef?.injector,he=[{provide:G,useValue:Bt},{provide:ct,useValue:Ct},{provide:p.Iu,useValue:et}];let Oe;Bt.container?"function"==typeof Bt.container?Oe=Bt.container:(Oe=Bt.container.type,he.push(...Bt.container.providers(Bt))):Oe=ot;const yn=new T.C5(Oe,Bt.viewContainerRef,A.zs3.create({parent:ne||this._injector,providers:he}),Bt.componentFactoryResolver);return et.attach(yn).instance}_attachDialogContent(et,Ct,Bt,ne){if(et instanceof A.Rgc){const he=this._createInjector(ne,Ct,Bt,void 0);let Oe={$implicit:ne.data,dialogRef:Ct};ne.templateContext&&(Oe={...Oe,..."function"==typeof ne.templateContext?ne.templateContext():ne.templateContext}),Bt.attachTemplatePortal(new T.UE(et,null,Oe,he))}else{const he=this._createInjector(ne,Ct,Bt,this._injector),Oe=Bt.attachComponentPortal(new T.C5(et,ne.viewContainerRef,he,ne.componentFactoryResolver));Ct.componentInstance=Oe.instance}}_createInjector(et,Ct,Bt,ne){const he=et.injector||et.viewContainerRef?.injector,Oe=[{provide:Pt,useValue:et.data},{provide:ct,useValue:Ct}];return et.providers&&("function"==typeof et.providers?Oe.push(...et.providers(Ct,et,Bt)):Oe.push(...et.providers)),et.direction&&(!he||!he.get(P.Is,null,A.XFs.Optional))&&Oe.push({provide:P.Is,useValue:{value:et.direction,change:(0,D.of)()}}),A.zs3.create({parent:he||ne,providers:Oe})}_removeOpenDialog(et,Ct){const Bt=this.openDialogs.indexOf(et);Bt>-1&&(this.openDialogs.splice(Bt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ne,he)=>{ne?he.setAttribute("aria-hidden",ne):he.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Ct&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const et=this._overlayContainer.getContainerElement();if(et.parentElement){const Ct=et.parentElement.children;for(let Bt=Ct.length-1;Bt>-1;Bt--){const ne=Ct[Bt];ne!==et&&"SCRIPT"!==ne.nodeName&&"STYLE"!==ne.nodeName&&!ne.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ne,ne.getAttribute("aria-hidden")),ne.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const et=this._parentDialog;return et?et._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return xt.\u0275fac=function(et){return new(et||xt)(A.LFG(p.aV),A.LFG(A.zs3),A.LFG(St,8),A.LFG(xt,12),A.LFG(p.Xj),A.LFG(gt))},xt.\u0275prov=A.Yz7({token:xt,factory:xt.\u0275fac}),xt})();function wt(xt,tt){let et=xt.length;for(;et--;)tt(xt[et])}let _t=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275mod=A.oAB({type:xt}),xt.\u0275inj=A.cJS({providers:[Zt,Jt],imports:[p.U8,T.eL,d.rt,T.eL]}),xt})();var Nt=b(3238),Qt=b(36787),qt=b(92198),le=b(72986),Wt=b(37340);function Ce(xt,tt){}const Ae={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Ne={dialogContainer:(0,Wt.X$)("dialogContainer",[(0,Wt.SB)("void, exit",(0,Wt.oB)({opacity:0,transform:"scale(0.7)"})),(0,Wt.SB)("enter",(0,Wt.oB)({transform:"none"})),(0,Wt.eR)("* => enter",(0,Wt.ru)([(0,Wt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Wt.oB)({transform:"none",opacity:1})),(0,Wt.IO)("@*",(0,Wt.pV)(),{optional:!0})]),Ae),(0,Wt.eR)("* => void, * => exit",(0,Wt.ru)([(0,Wt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Wt.oB)({opacity:0})),(0,Wt.IO)("@*",(0,Wt.pV)(),{optional:!0})]),Ae)])};class ze{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Ae.params.enterAnimationDuration,this.exitAnimationDuration=Ae.params.exitAnimationDuration}}let Xe=(()=>{class xt extends ot{constructor(et,Ct,Bt,ne,he,Oe,yn,On){super(et,Ct,Bt,ne,he,Oe,yn,On),this._animationStateChanged=new A.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(et){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:et})}}return xt.\u0275fac=function(et){return new(et||xt)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(ze),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(d.tE))},xt.\u0275cmp=A.Xpm({type:xt,selectors:[["ng-component"]],features:[A.qOj],decls:0,vars:0,template:function(et,Ct){},encapsulation:2}),xt})(),ie=(()=>{class xt extends Xe{constructor(et,Ct,Bt,ne,he,Oe,yn,On,_i){super(et,Ct,Bt,ne,he,Oe,yn,_i),this._changeDetectorRef=On,this._state="enter"}_onAnimationDone({toState:et,totalTime:Ct}){"enter"===et?this._openAnimationDone(Ct):"exit"===et&&this._animationStateChanged.next({state:"closed",totalTime:Ct})}_onAnimationStart({toState:et,totalTime:Ct}){"enter"===et?this._animationStateChanged.next({state:"opening",totalTime:Ct}):("exit"===et||"void"===et)&&this._animationStateChanged.next({state:"closing",totalTime:Ct})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Ae.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Ae.params.exitAnimationDuration}}}}return xt.\u0275fac=function(et){return new(et||xt)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(ze),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(A.sBO),A.Y36(d.tE))},xt.\u0275cmp=A.Xpm({type:xt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(et,Ct){1&et&&A.WFA("@dialogContainer.start",function(ne){return Ct._onAnimationStart(ne)})("@dialogContainer.done",function(ne){return Ct._onAnimationDone(ne)}),2&et&&(A.Ikx("id",Ct._config.id),A.uIk("aria-modal",Ct._config.ariaModal)("role",Ct._config.role)("aria-labelledby",Ct._config.ariaLabel?null:Ct._ariaLabelledBy)("aria-label",Ct._config.ariaLabel)("aria-describedby",Ct._config.ariaDescribedBy||null),A.d8E("@dialogContainer",Ct._getAnimationState()))},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(et,Ct){1&et&&A.YNc(0,Ce,0,0,"ng-template",0)},dependencies:[T.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Ne.dialogContainer]}}),xt})();class Te{constructor(tt,et,Ct){this._ref=tt,this._containerInstance=Ct,this._afterOpened=new w.xQ,this._beforeClosed=new w.xQ,this._state=0,this.disableClose=et.disableClose,this.id=tt.id,Ct._animationStateChanged.pipe((0,qt.h)(Bt=>"opened"===Bt.state),(0,le.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ct._animationStateChanged.pipe((0,qt.h)(Bt=>"closed"===Bt.state),(0,le.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),tt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Qt.T)(this.backdropClick(),this.keydownEvents().pipe((0,qt.h)(Bt=>Bt.keyCode===x.hY&&!this.disableClose&&!(0,x.Vb)(Bt)))).subscribe(Bt=>{this.disableClose||(Bt.preventDefault(),re(this,"keydown"===Bt.type?"keyboard":"mouse"))})}close(tt){this._result=tt,this._containerInstance._animationStateChanged.pipe((0,qt.h)(et=>"closing"===et.state),(0,le.q)(1)).subscribe(et=>{this._beforeClosed.next(tt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),et.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(tt){let et=this._ref.config.positionStrategy;return tt&&(tt.left||tt.right)?tt.left?et.left(tt.left):et.right(tt.right):et.centerHorizontally(),tt&&(tt.top||tt.bottom)?tt.top?et.top(tt.top):et.bottom(tt.bottom):et.centerVertically(),this._ref.updatePosition(),this}updateSize(tt="",et=""){return this._ref.updateSize(tt,et),this}addPanelClass(tt){return this._ref.addPanelClass(tt),this}removePanelClass(tt){return this._ref.removePanelClass(tt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function re(xt,tt,et){return xt._closeInteractionType=tt,xt.close(et)}const ee=new A.OlP("MatDialogData"),ue=new A.OlP("mat-dialog-default-options"),Kt=new A.OlP("mat-dialog-scroll-strategy"),on={provide:Kt,deps:[p.aV],useFactory:function Le(xt){return()=>xt.scrollStrategies.block()}};let hn=0,we=(()=>{class xt{constructor(et,Ct,Bt,ne,he,Oe,yn,On,_i,Si){this._overlay=et,this._defaultOptions=Bt,this._parentDialog=ne,this._dialogRefConstructor=yn,this._dialogContainerType=On,this._dialogDataToken=_i,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.xQ,this._afterOpenedAtThisLevel=new w.xQ,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,k.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,I.O)(void 0))),this._scrollStrategy=Oe,this._dialog=Ct.get(Zt)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const et=this._parentDialog;return et?et._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(et,Ct){let Bt;(Ct={...this._defaultOptions||new ze,...Ct}).id=Ct.id||`${this._idPrefix}${hn++}`,Ct.scrollStrategy=Ct.scrollStrategy||this._scrollStrategy();const ne=this._dialog.open(et,{...Ct,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:ze,useValue:Ct},{provide:G,useValue:Ct}]},templateContext:()=>({dialogRef:Bt}),providers:(he,Oe,yn)=>(Bt=new this._dialogRefConstructor(he,Ct,yn),Bt.updatePosition(Ct?.position),[{provide:this._dialogContainerType,useValue:yn},{provide:this._dialogDataToken,useValue:Oe.data},{provide:this._dialogRefConstructor,useValue:Bt}])});return Bt.componentInstance=ne.componentInstance,this.openDialogs.push(Bt),this.afterOpened.next(Bt),Bt.afterClosed().subscribe(()=>{const he=this.openDialogs.indexOf(Bt);he>-1&&(this.openDialogs.splice(he,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Bt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(et){return this.openDialogs.find(Ct=>Ct.id===et)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(et){let Ct=et.length;for(;Ct--;)et[Ct].close()}}return xt.\u0275fac=function(et){A.$Z()},xt.\u0275prov=A.Yz7({token:xt,factory:xt.\u0275fac}),xt})(),bn=(()=>{class xt extends we{constructor(et,Ct,Bt,ne,he,Oe,yn,On){super(et,Ct,ne,Oe,yn,he,Te,ie,ee,On)}}return xt.\u0275fac=function(et){return new(et||xt)(A.LFG(p.aV),A.LFG(A.zs3),A.LFG(t.Ye,8),A.LFG(ue,8),A.LFG(Kt),A.LFG(xt,12),A.LFG(p.Xj),A.LFG(A.QbO,8))},xt.\u0275prov=A.Yz7({token:xt,factory:xt.\u0275fac}),xt})(),Ze=0,dn=(()=>{class xt{constructor(et,Ct,Bt){this.dialogRef=et,this._elementRef=Ct,this._dialog=Bt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Ft(this._elementRef,this._dialog.openDialogs))}ngOnChanges(et){const Ct=et._matDialogClose||et._matDialogCloseResult;Ct&&(this.dialogResult=Ct.currentValue)}_onButtonClick(et){re(this.dialogRef,0===et.screenX&&0===et.screenY?"keyboard":"mouse",this.dialogResult)}}return xt.\u0275fac=function(et){return new(et||xt)(A.Y36(Te,8),A.Y36(A.SBq),A.Y36(bn))},xt.\u0275dir=A.lG2({type:xt,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(et,Ct){1&et&&A.NdJ("click",function(ne){return Ct._onButtonClick(ne)}),2&et&&A.uIk("aria-label",Ct.ariaLabel||null)("type",Ct.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[A.TTD]}),xt})(),kn=(()=>{class xt{constructor(et,Ct,Bt){this._dialogRef=et,this._elementRef=Ct,this._dialog=Bt,this.id="mat-dialog-title-"+Ze++}ngOnInit(){this._dialogRef||(this._dialogRef=Ft(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const et=this._dialogRef._containerInstance;et&&!et._ariaLabelledBy&&(et._ariaLabelledBy=this.id)})}}return xt.\u0275fac=function(et){return new(et||xt)(A.Y36(Te,8),A.Y36(A.SBq),A.Y36(bn))},xt.\u0275dir=A.lG2({type:xt,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(et,Ct){2&et&&A.Ikx("id",Ct.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),xt})(),ri=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=A.lG2({type:xt,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),xt})(),Ee=(()=>{class xt{constructor(){this.align="start"}}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=A.lG2({type:xt,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(et,Ct){2&et&&A.ekj("mat-dialog-actions-align-center","center"===Ct.align)("mat-dialog-actions-align-end","end"===Ct.align)},inputs:{align:"align"}}),xt})();function Ft(xt,tt){let et=xt.nativeElement.parentElement;for(;et&&!et.classList.contains("mat-dialog-container");)et=et.parentElement;return et?tt.find(Ct=>Ct.id===et.id):null}let vt=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275mod=A.oAB({type:xt}),xt.\u0275inj=A.cJS({providers:[bn,on],imports:[_t,p.U8,T.eL,Nt.BQ,Nt.BQ]}),xt})()},44850:(rt,it,b)=>{"use strict";b.d(it,{d:()=>T,t:()=>t});var d=b(94650),p=b(21281),v=b(3238);let T=(()=>{class A{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(w){this._vertical=(0,p.Ig)(w)}get inset(){return this._inset}set inset(w){this._inset=(0,p.Ig)(w)}}return A.\u0275fac=function(w){return new(w||A)},A.\u0275cmp=d.Xpm({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(w,k){2&w&&(d.uIk("aria-orientation",k.vertical?"vertical":"horizontal"),d.ekj("mat-divider-vertical",k.vertical)("mat-divider-horizontal",!k.vertical)("mat-divider-inset",k.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(w,k){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),A})(),t=(()=>{class A{}return A.\u0275fac=function(w){return new(w||A)},A.\u0275mod=d.oAB({type:A}),A.\u0275inj=d.cJS({imports:[v.BQ,v.BQ]}),A})()},37084:(rt,it,b)=>{"use strict";b.d(it,{pp:()=>on,To:()=>hn,ib:()=>Te,u4:()=>ce,yz:()=>Kt,yK:()=>Le});var d=b(94650),p=b(95017),v=b(21281),T=b(8929),t=b(42654);let A=0;const x=new d.OlP("CdkAccordion");let w=(()=>{class we{constructor(){this._stateChanges=new T.xQ,this._openCloseAllActions=new T.xQ,this.id="cdk-accordion-"+A++,this._multi=!1}get multi(){return this._multi}set multi(Ze){this._multi=(0,v.Ig)(Ze)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Ze){this._stateChanges.next(Ze)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return we.\u0275fac=function(Ze){return new(Ze||we)},we.\u0275dir=d.lG2({type:we,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[d._Bn([{provide:x,useExisting:we}]),d.TTD]}),we})(),k=0,D=(()=>{class we{constructor(Ze,dn,kn){this.accordion=Ze,this._changeDetectorRef=dn,this._expansionDispatcher=kn,this._openCloseAllSubscription=t.w.EMPTY,this.closed=new d.vpe,this.opened=new d.vpe,this.destroyed=new d.vpe,this.expandedChange=new d.vpe,this.id="cdk-accordion-child-"+k++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=kn.listen((ri,Ee)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ee&&this.id!==ri&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(Ze){Ze=(0,v.Ig)(Ze),this._expanded!==Ze&&(this._expanded=Ze,this.expandedChange.emit(Ze),Ze?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Ze){this._disabled=(0,v.Ig)(Ze)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(Ze=>{this.disabled||(this.expanded=Ze)})}}return we.\u0275fac=function(Ze){return new(Ze||we)(d.Y36(x,12),d.Y36(d.sBO),d.Y36(p.A8))},we.\u0275dir=d.lG2({type:we,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[d._Bn([{provide:x,useValue:void 0}])]}),we})(),P=(()=>{class we{}return we.\u0275fac=function(Ze){return new(Ze||we)},we.\u0275mod=d.oAB({type:we}),we.\u0275inj=d.cJS({}),we})();var I=b(84080),z=b(36895),G=b(3238),W=b(12687),ot=b(75778),ct=b(1059),gt=b(92198),Pt=b(72986),St=b(29521),Ht=b(68896),Jt=b(36787),at=b(37340);const Zt=["body"];function wt(we,bn){}const _t=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Nt=["mat-expansion-panel-header","*","mat-action-row"];function Qt(we,bn){if(1&we&&d._UZ(0,"span",2),2&we){const Ze=d.oxw();d.Q6J("@indicatorRotate",Ze._getExpandedState())}}const qt=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],le=["mat-panel-title","mat-panel-description","*"],Wt=new d.OlP("MAT_ACCORDION"),Ce="225ms cubic-bezier(0.4,0.0,0.2,1)",Ae={indicatorRotate:(0,at.X$)("indicatorRotate",[(0,at.SB)("collapsed, void",(0,at.oB)({transform:"rotate(0deg)"})),(0,at.SB)("expanded",(0,at.oB)({transform:"rotate(180deg)"})),(0,at.eR)("expanded <=> collapsed, void => collapsed",(0,at.jt)(Ce))]),bodyExpansion:(0,at.X$)("bodyExpansion",[(0,at.SB)("collapsed, void",(0,at.oB)({height:"0px",visibility:"hidden"})),(0,at.SB)("expanded",(0,at.oB)({height:"*",visibility:"visible"})),(0,at.eR)("expanded <=> collapsed, void => collapsed",(0,at.jt)(Ce))])},Ne=new d.OlP("MAT_EXPANSION_PANEL");let ze=(()=>{class we{constructor(Ze,dn){this._template=Ze,this._expansionPanel=dn}}return we.\u0275fac=function(Ze){return new(Ze||we)(d.Y36(d.Rgc),d.Y36(Ne,8))},we.\u0275dir=d.lG2({type:we,selectors:[["ng-template","matExpansionPanelContent",""]]}),we})(),Xe=0;const ie=new d.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Te=(()=>{class we extends D{constructor(Ze,dn,kn,ri,Ee,Ft,vt){super(Ze,dn,kn),this._viewContainerRef=ri,this._animationMode=Ft,this._hideToggle=!1,this.afterExpand=new d.vpe,this.afterCollapse=new d.vpe,this._inputChanges=new T.xQ,this._headerId="mat-expansion-panel-header-"+Xe++,this._bodyAnimationDone=new T.xQ,this.accordion=Ze,this._document=Ee,this._bodyAnimationDone.pipe((0,ot.x)((xt,tt)=>xt.fromState===tt.fromState&&xt.toState===tt.toState)).subscribe(xt=>{"void"!==xt.fromState&&("expanded"===xt.toState?this.afterExpand.emit():"collapsed"===xt.toState&&this.afterCollapse.emit())}),vt&&(this.hideToggle=vt.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Ze){this._hideToggle=(0,v.Ig)(Ze)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Ze){this._togglePosition=Ze}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,ct.O)(null),(0,gt.h)(()=>this.expanded&&!this._portal),(0,Pt.q)(1)).subscribe(()=>{this._portal=new I.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Ze){this._inputChanges.next(Ze)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Ze=this._document.activeElement,dn=this._body.nativeElement;return Ze===dn||dn.contains(Ze)}return!1}}return we.\u0275fac=function(Ze){return new(Ze||we)(d.Y36(Wt,12),d.Y36(d.sBO),d.Y36(p.A8),d.Y36(d.s_b),d.Y36(z.K0),d.Y36(d.QbO,8),d.Y36(ie,8))},we.\u0275cmp=d.Xpm({type:we,selectors:[["mat-expansion-panel"]],contentQueries:function(Ze,dn,kn){if(1&Ze&&d.Suo(kn,ze,5),2&Ze){let ri;d.iGM(ri=d.CRH())&&(dn._lazyContent=ri.first)}},viewQuery:function(Ze,dn){if(1&Ze&&d.Gf(Zt,5),2&Ze){let kn;d.iGM(kn=d.CRH())&&(dn._body=kn.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Ze,dn){2&Ze&&d.ekj("mat-expanded",dn.expanded)("_mat-animation-noopable","NoopAnimations"===dn._animationMode)("mat-expansion-panel-spacing",dn._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[d._Bn([{provide:Wt,useValue:void 0},{provide:Ne,useExisting:we}]),d.qOj,d.TTD],ngContentSelectors:Nt,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Ze,dn){1&Ze&&(d.F$t(_t),d.Hsn(0),d.TgZ(1,"div",0,1),d.NdJ("@bodyExpansion.done",function(ri){return dn._bodyAnimationDone.next(ri)}),d.TgZ(3,"div",2),d.Hsn(4,1),d.YNc(5,wt,0,0,"ng-template",3),d.qZA(),d.Hsn(6,2),d.qZA()),2&Ze&&(d.xp6(1),d.Q6J("@bodyExpansion",dn._getExpandedState())("id",dn.id),d.uIk("aria-labelledby",dn._headerId),d.xp6(4),d.Q6J("cdkPortalOutlet",dn._portal))},dependencies:[I.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[Ae.bodyExpansion]},changeDetection:0}),we})();class ee{}const ue=(0,G.sb)(ee);let Kt=(()=>{class we extends ue{constructor(Ze,dn,kn,ri,Ee,Ft,vt){super(),this.panel=Ze,this._element=dn,this._focusMonitor=kn,this._changeDetectorRef=ri,this._animationMode=Ft,this._parentChangeSubscription=t.w.EMPTY;const xt=Ze.accordion?Ze.accordion._stateChanges.pipe((0,gt.h)(tt=>!(!tt.hideToggle&&!tt.togglePosition))):Ht.E;this.tabIndex=parseInt(vt||"")||0,this._parentChangeSubscription=(0,Jt.T)(Ze.opened,Ze.closed,xt,Ze._inputChanges.pipe((0,gt.h)(tt=>!!(tt.hideToggle||tt.disabled||tt.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Ze.closed.pipe((0,gt.h)(()=>Ze._containsFocus())).subscribe(()=>kn.focusVia(dn,"program")),Ee&&(this.expandedHeight=Ee.expandedHeight,this.collapsedHeight=Ee.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const Ze=this._isExpanded();return Ze&&this.expandedHeight?this.expandedHeight:!Ze&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Ze){switch(Ze.keyCode){case St.L_:case St.K5:(0,St.Vb)(Ze)||(Ze.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Ze))}}focus(Ze,dn){Ze?this._focusMonitor.focusVia(this._element,Ze,dn):this._element.nativeElement.focus(dn)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Ze=>{Ze&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return we.\u0275fac=function(Ze){return new(Ze||we)(d.Y36(Te,1),d.Y36(d.SBq),d.Y36(W.tE),d.Y36(d.sBO),d.Y36(ie,8),d.Y36(d.QbO,8),d.$8M("tabindex"))},we.\u0275cmp=d.Xpm({type:we,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Ze,dn){1&Ze&&d.NdJ("click",function(){return dn._toggle()})("keydown",function(ri){return dn._keydown(ri)}),2&Ze&&(d.uIk("id",dn.panel._headerId)("tabindex",dn.tabIndex)("aria-controls",dn._getPanelId())("aria-expanded",dn._isExpanded())("aria-disabled",dn.panel.disabled),d.Udp("height",dn._getHeaderHeight()),d.ekj("mat-expanded",dn._isExpanded())("mat-expansion-toggle-indicator-after","after"===dn._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===dn._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===dn._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[d.qOj],ngContentSelectors:le,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Ze,dn){1&Ze&&(d.F$t(qt),d.TgZ(0,"span",0),d.Hsn(1),d.Hsn(2,1),d.Hsn(3,2),d.qZA(),d.YNc(4,Qt,1,1,"span",1)),2&Ze&&(d.ekj("mat-content-hide-toggle",!dn._showToggle()),d.xp6(4),d.Q6J("ngIf",dn._showToggle()))},dependencies:[z.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[Ae.indicatorRotate]},changeDetection:0}),we})(),ce=(()=>{class we{}return we.\u0275fac=function(Ze){return new(Ze||we)},we.\u0275dir=d.lG2({type:we,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),we})(),Le=(()=>{class we{}return we.\u0275fac=function(Ze){return new(Ze||we)},we.\u0275dir=d.lG2({type:we,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),we})(),on=(()=>{class we extends w{constructor(){super(...arguments),this._ownHeaders=new d.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Ze){this._hideToggle=(0,v.Ig)(Ze)}ngAfterContentInit(){this._headers.changes.pipe((0,ct.O)(this._headers)).subscribe(Ze=>{this._ownHeaders.reset(Ze.filter(dn=>dn.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new W.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Ze){this._keyManager.onKeydown(Ze)}_handleHeaderFocus(Ze){this._keyManager.updateActiveItem(Ze)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return we.\u0275fac=function(){let bn;return function(dn){return(bn||(bn=d.n5z(we)))(dn||we)}}(),we.\u0275dir=d.lG2({type:we,selectors:[["mat-accordion"]],contentQueries:function(Ze,dn,kn){if(1&Ze&&d.Suo(kn,Kt,5),2&Ze){let ri;d.iGM(ri=d.CRH())&&(dn._headers=ri)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Ze,dn){2&Ze&&d.ekj("mat-accordion-multi",dn.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[d._Bn([{provide:Wt,useExisting:we}]),d.qOj]}),we})(),hn=(()=>{class we{}return we.\u0275fac=function(Ze){return new(Ze||we)},we.\u0275mod=d.oAB({type:we}),we.\u0275inj=d.cJS({imports:[z.ez,G.BQ,P,I.eL]}),we})()},59549:(rt,it,b)=>{"use strict";b.d(it,{Eo:()=>ze,G_:()=>Ee,KE:()=>Ft,R9:()=>we,TO:()=>Ae,bx:()=>ue,hX:()=>Kt,lN:()=>vt,o2:()=>ri,qo:()=>on});var d=b(49643),p=b(36895),v=b(94650),T=b(3238),t=b(40445),A=b(21281),x=b(8929),w=b(36787),k=b(23753),D=b(1059),P=b(7625),I=b(72986),z=b(37340),G=b(83353);const W=["connectionContainer"],ot=["inputContainer"],ct=["label"];function gt(xt,tt){1&xt&&(v.ynx(0),v.TgZ(1,"div",14),v._UZ(2,"div",15)(3,"div",16)(4,"div",17),v.qZA(),v.TgZ(5,"div",18),v._UZ(6,"div",15)(7,"div",16)(8,"div",17),v.qZA(),v.BQk())}function Pt(xt,tt){if(1&xt){const et=v.EpF();v.TgZ(0,"div",19),v.NdJ("cdkObserveContent",function(){v.CHM(et);const Bt=v.oxw();return v.KtG(Bt.updateOutlineGap())}),v.Hsn(1,1),v.qZA()}if(2&xt){const et=v.oxw();v.Q6J("cdkObserveContentDisabled","outline"!=et.appearance)}}function St(xt,tt){if(1&xt&&(v.ynx(0),v.Hsn(1,2),v.TgZ(2,"span"),v._uU(3),v.qZA(),v.BQk()),2&xt){const et=v.oxw(2);v.xp6(3),v.Oqu(et._control.placeholder)}}function Ht(xt,tt){1&xt&&v.Hsn(0,3,["*ngSwitchCase","true"])}function Jt(xt,tt){1&xt&&(v.TgZ(0,"span",23),v._uU(1," *"),v.qZA())}function at(xt,tt){if(1&xt){const et=v.EpF();v.TgZ(0,"label",20,21),v.NdJ("cdkObserveContent",function(){v.CHM(et);const Bt=v.oxw();return v.KtG(Bt.updateOutlineGap())}),v.YNc(2,St,4,1,"ng-container",12),v.YNc(3,Ht,1,0,"ng-content",12),v.YNc(4,Jt,2,0,"span",22),v.qZA()}if(2&xt){const et=v.oxw();v.ekj("mat-empty",et._control.empty&&!et._shouldAlwaysFloat())("mat-form-field-empty",et._control.empty&&!et._shouldAlwaysFloat())("mat-accent","accent"==et.color)("mat-warn","warn"==et.color),v.Q6J("cdkObserveContentDisabled","outline"!=et.appearance)("id",et._labelId)("ngSwitch",et._hasLabel()),v.uIk("for",et._control.id)("aria-owns",et._control.id),v.xp6(2),v.Q6J("ngSwitchCase",!1),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngIf",!et.hideRequiredMarker&&et._control.required&&!et._control.disabled)}}function Zt(xt,tt){1&xt&&(v.TgZ(0,"div",24),v.Hsn(1,4),v.qZA())}function wt(xt,tt){if(1&xt&&(v.TgZ(0,"div",25),v._UZ(1,"span",26),v.qZA()),2&xt){const et=v.oxw();v.xp6(1),v.ekj("mat-accent","accent"==et.color)("mat-warn","warn"==et.color)}}function _t(xt,tt){if(1&xt&&(v.TgZ(0,"div"),v.Hsn(1,5),v.qZA()),2&xt){const et=v.oxw();v.Q6J("@transitionMessages",et._subscriptAnimationState)}}function Nt(xt,tt){if(1&xt&&(v.TgZ(0,"div",30),v._uU(1),v.qZA()),2&xt){const et=v.oxw(2);v.Q6J("id",et._hintLabelId),v.xp6(1),v.Oqu(et.hintLabel)}}function Qt(xt,tt){if(1&xt&&(v.TgZ(0,"div",27),v.YNc(1,Nt,2,2,"div",28),v.Hsn(2,6),v._UZ(3,"div",29),v.Hsn(4,7),v.qZA()),2&xt){const et=v.oxw();v.Q6J("@transitionMessages",et._subscriptAnimationState),v.xp6(1),v.Q6J("ngIf",et.hintLabel)}}const qt=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],le=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Wt=0;const Ce=new v.OlP("MatError");let Ae=(()=>{class xt{constructor(et,Ct){this.id="mat-error-"+Wt++,et||Ct.nativeElement.setAttribute("aria-live","polite")}}return xt.\u0275fac=function(et){return new(et||xt)(v.$8M("aria-live"),v.Y36(v.SBq))},xt.\u0275dir=v.lG2({type:xt,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(et,Ct){2&et&&v.uIk("id",Ct.id)},inputs:{id:"id"},features:[v._Bn([{provide:Ce,useExisting:xt}])]}),xt})();const Ne={transitionMessages:(0,z.X$)("transitionMessages",[(0,z.SB)("enter",(0,z.oB)({opacity:1,transform:"translateY(0%)"})),(0,z.eR)("void => enter",[(0,z.oB)({opacity:0,transform:"translateY(-5px)"}),(0,z.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ze=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=v.lG2({type:xt}),xt})(),re=0;const ee=new v.OlP("MatHint");let ue=(()=>{class xt{constructor(){this.align="start",this.id="mat-hint-"+re++}}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=v.lG2({type:xt,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(et,Ct){2&et&&(v.uIk("id",Ct.id)("align",null),v.ekj("mat-form-field-hint-end","end"===Ct.align))},inputs:{align:"align",id:"id"},features:[v._Bn([{provide:ee,useExisting:xt}])]}),xt})(),Kt=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=v.lG2({type:xt,selectors:[["mat-label"]]}),xt})(),ce=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=v.lG2({type:xt,selectors:[["mat-placeholder"]]}),xt})();const Le=new v.OlP("MatPrefix");let on=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=v.lG2({type:xt,selectors:[["","matPrefix",""]],features:[v._Bn([{provide:Le,useExisting:xt}])]}),xt})();const hn=new v.OlP("MatSuffix");let we=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=v.lG2({type:xt,selectors:[["","matSuffix",""]],features:[v._Bn([{provide:hn,useExisting:xt}])]}),xt})(),bn=0;const kn=(0,T.pj)(class{constructor(xt){this._elementRef=xt}},"primary"),ri=new v.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ee=new v.OlP("MatFormField");let Ft=(()=>{class xt extends kn{constructor(et,Ct,Bt,ne,he,Oe,yn){super(et),this._changeDetectorRef=Ct,this._dir=Bt,this._defaults=ne,this._platform=he,this._ngZone=Oe,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new x.xQ,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+bn++,this._labelId="mat-form-field-label-"+bn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==yn,this.appearance=ne?.appearance||"legacy",ne&&(this._hideRequiredMarker=Boolean(ne.hideRequiredMarker),ne.color&&(this.color=this.defaultColor=ne.color))}get appearance(){return this._appearance}set appearance(et){const Ct=this._appearance;this._appearance=et||this._defaults?.appearance||"legacy","outline"===this._appearance&&Ct!==et&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(et){this._hideRequiredMarker=(0,A.Ig)(et)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(et){this._hintLabel=et,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(et){et!==this._floatLabel&&(this._floatLabel=et||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(et){this._explicitFormFieldControl=et}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const et=this._control;et.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${et.controlType}`),et.stateChanges.pipe((0,D.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),et.ngControl&&et.ngControl.valueChanges&&et.ngControl.valueChanges.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,w.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(et){const Ct=this._control?this._control.ngControl:null;return Ct&&Ct[et]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,k.R)(this._label.nativeElement,"transitionend").pipe((0,I.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let et=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&et.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Ct=this._hintChildren?this._hintChildren.find(ne=>"start"===ne.align):null,Bt=this._hintChildren?this._hintChildren.find(ne=>"end"===ne.align):null;Ct?et.push(Ct.id):this._hintLabel&&et.push(this._hintLabelId),Bt&&et.push(Bt.id)}else this._errorChildren&&et.push(...this._errorChildren.map(Ct=>Ct.id));this._control.setDescribedByIds(et)}}_validateControlChild(){}updateOutlineGap(){const et=this._label?this._label.nativeElement:null,Ct=this._connectionContainerRef.nativeElement,Bt=".mat-form-field-outline-start",ne=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!et||!et.children.length||!et.textContent.trim()){const _i=Ct.querySelectorAll(`${Bt}, ${ne}`);for(let Si=0;Si<_i.length;Si++)_i[Si].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let he=0,Oe=0;const yn=Ct.querySelectorAll(Bt),On=Ct.querySelectorAll(ne);if(this._label&&this._label.nativeElement.children.length){const _i=Ct.getBoundingClientRect();if(0===_i.width&&0===_i.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Si=this._getStartEnd(_i),ho=et.children,hi=this._getStartEnd(ho[0].getBoundingClientRect());let Vn=0;for(let Gn=0;Gn0?.75*Vn+10:0}for(let _i=0;_i{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275mod=v.oAB({type:xt}),xt.\u0275inj=v.cJS({imports:[p.ez,T.BQ,d.Q8,T.BQ]}),xt})()},90782:(rt,it,b)=>{"use strict";b.d(it,{DX:()=>I,Il:()=>wt,N6:()=>_t});var d=b(94650),p=b(3238),v=b(21281),T=b(40445);const t=["*"];class k{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const qt=Math.max(...this.tracker);return qt>1?this.rowCount+qt-1:this.rowCount}update(qt,le){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(qt),this.tracker.fill(0,0,this.tracker.length),this.positions=le.map(Wt=>this._trackTile(Wt))}_trackTile(qt){const le=this._findMatchingGap(qt.colspan);return this._markTilePosition(le,qt),this.columnIndex=le+qt.colspan,new D(this.rowIndex,le)}_findMatchingGap(qt){let le=-1,Wt=-1;do{this.columnIndex+qt>this.tracker.length?(this._nextRow(),le=this.tracker.indexOf(0,this.columnIndex),Wt=this._findGapEndIndex(le)):(le=this.tracker.indexOf(0,this.columnIndex),-1!=le?(Wt=this._findGapEndIndex(le),this.columnIndex=le+1):(this._nextRow(),le=this.tracker.indexOf(0,this.columnIndex),Wt=this._findGapEndIndex(le)))}while(Wt-le{class Qt{constructor(le,Wt){this._element=le,this._gridList=Wt,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(le){this._rowspan=Math.round((0,v.su)(le))}get colspan(){return this._colspan}set colspan(le){this._colspan=Math.round((0,v.su)(le))}_setStyle(le,Wt){this._element.nativeElement.style[le]=Wt}}return Qt.\u0275fac=function(le){return new(le||Qt)(d.Y36(d.SBq),d.Y36(P,8))},Qt.\u0275cmp=d.Xpm({type:Qt,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(le,Wt){2&le&&d.uIk("rowspan",Wt.rowspan)("colspan",Wt.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:t,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(le,Wt){1&le&&(d.F$t(),d.TgZ(0,"div",0),d.Hsn(1),d.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Qt})();const ct=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class gt{constructor(){this._rows=0,this._rowspan=0}init(qt,le,Wt,Ce){this._gutterSize=at(qt),this._rows=le.rowCount,this._rowspan=le.rowspan,this._cols=Wt,this._direction=Ce}getBaseTileSize(qt,le){return`(${qt}% - (${this._gutterSize} * ${le}))`}getTilePosition(qt,le){return 0===le?"0":Jt(`(${qt} + ${this._gutterSize}) * ${le}`)}getTileSize(qt,le){return`(${qt} * ${le}) + (${le-1} * ${this._gutterSize})`}setStyle(qt,le,Wt){let Ce=100/this._cols,Ae=(this._cols-1)/this._cols;this.setColStyles(qt,Wt,Ce,Ae),this.setRowStyles(qt,le,Ce,Ae)}setColStyles(qt,le,Wt,Ce){let Ae=this.getBaseTileSize(Wt,Ce);qt._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(Ae,le)),qt._setStyle("width",Jt(this.getTileSize(Ae,qt.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(qt){return`${this._rowspan} * ${this.getTileSize(qt,1)}`}getComputedHeight(){return null}}class Pt extends gt{constructor(qt){super(),this.fixedRowHeight=qt}init(qt,le,Wt,Ce){super.init(qt,le,Wt,Ce),this.fixedRowHeight=at(this.fixedRowHeight),ct.test(this.fixedRowHeight)}setRowStyles(qt,le){qt._setStyle("top",this.getTilePosition(this.fixedRowHeight,le)),qt._setStyle("height",Jt(this.getTileSize(this.fixedRowHeight,qt.rowspan)))}getComputedHeight(){return["height",Jt(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(qt){qt._setListStyle(["height",null]),qt._tiles&&qt._tiles.forEach(le=>{le._setStyle("top",null),le._setStyle("height",null)})}}class St extends gt{constructor(qt){super(),this._parseRatio(qt)}setRowStyles(qt,le,Wt,Ce){this.baseTileHeight=this.getBaseTileSize(Wt/this.rowHeightRatio,Ce),qt._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,le)),qt._setStyle("paddingTop",Jt(this.getTileSize(this.baseTileHeight,qt.rowspan)))}getComputedHeight(){return["paddingBottom",Jt(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(qt){qt._setListStyle(["paddingBottom",null]),qt._tiles.forEach(le=>{le._setStyle("marginTop",null),le._setStyle("paddingTop",null)})}_parseRatio(qt){const le=qt.split(":");this.rowHeightRatio=parseFloat(le[0])/parseFloat(le[1])}}class Ht extends gt{setRowStyles(qt,le){let Ae=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);qt._setStyle("top",this.getTilePosition(Ae,le)),qt._setStyle("height",Jt(this.getTileSize(Ae,qt.rowspan)))}reset(qt){qt._tiles&&qt._tiles.forEach(le=>{le._setStyle("top",null),le._setStyle("height",null)})}}function Jt(Qt){return`calc(${Qt})`}function at(Qt){return Qt.match(/([A-Za-z%]+)$/)?Qt:`${Qt}px`}let wt=(()=>{class Qt{constructor(le,Wt){this._element=le,this._dir=Wt,this._gutter="1px"}get cols(){return this._cols}set cols(le){this._cols=Math.max(1,Math.round((0,v.su)(le)))}get gutterSize(){return this._gutter}set gutterSize(le){this._gutter=`${le??""}`}get rowHeight(){return this._rowHeight}set rowHeight(le){const Wt=`${le??""}`;Wt!==this._rowHeight&&(this._rowHeight=Wt,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(le){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===le?new Ht:le&&le.indexOf(":")>-1?new St(le):new Pt(le)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new k);const le=this._tileCoordinator,Wt=this._tiles.filter(Ae=>!Ae._gridList||Ae._gridList===this),Ce=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,Wt),this._tileStyler.init(this.gutterSize,le,this.cols,Ce),Wt.forEach((Ae,Ne)=>{const ze=le.positions[Ne];this._tileStyler.setStyle(Ae,ze.row,ze.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(le){le&&(this._element.nativeElement.style[le[0]]=le[1])}}return Qt.\u0275fac=function(le){return new(le||Qt)(d.Y36(d.SBq),d.Y36(T.Is,8))},Qt.\u0275cmp=d.Xpm({type:Qt,selectors:[["mat-grid-list"]],contentQueries:function(le,Wt,Ce){if(1&le&&d.Suo(Ce,I,5),2&le){let Ae;d.iGM(Ae=d.CRH())&&(Wt._tiles=Ae)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(le,Wt){2&le&&d.uIk("cols",Wt.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[d._Bn([{provide:P,useExisting:Qt}])],ngContentSelectors:t,decls:2,vars:0,template:function(le,Wt){1&le&&(d.F$t(),d.TgZ(0,"div"),d.Hsn(1),d.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Qt})(),_t=(()=>{class Qt{}return Qt.\u0275fac=function(le){return new(le||Qt)},Qt.\u0275mod=d.oAB({type:Qt}),Qt.\u0275inj=d.cJS({imports:[p.uc,p.BQ,p.uc,p.BQ]}),Qt})()},97392:(rt,it,b)=>{"use strict";b.d(it,{Hw:()=>re,Ps:()=>ee});var d=b(94650),p=b(3238),v=b(21281),T=b(36895),t=b(21086),A=b(61737),x=b(30567),w=b(42654),k=b(22868),D=b(24850),P=b(27221),I=b(40537),z=b(12474),G=b(72986),W=b(80529),ot=b(11481);const ct=["*"];let gt;function St(ue){return function Pt(){if(void 0===gt&&(gt=null,typeof window<"u")){const ue=window;void 0!==ue.trustedTypes&&(gt=ue.trustedTypes.createPolicy("angular#components",{createHTML:Kt=>Kt}))}return gt}()?.createHTML(ue)||ue}function Ht(ue){return Error(`Unable to find icon with the name "${ue}"`)}function at(ue){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ue}".`)}function Zt(ue){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ue}".`)}class wt{constructor(Kt,ce,Le){this.url=Kt,this.svgText=ce,this.options=Le}}let _t=(()=>{class ue{constructor(ce,Le,on,hn){this._httpClient=ce,this._sanitizer=Le,this._errorHandler=hn,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=on}addSvgIcon(ce,Le,on){return this.addSvgIconInNamespace("",ce,Le,on)}addSvgIconLiteral(ce,Le,on){return this.addSvgIconLiteralInNamespace("",ce,Le,on)}addSvgIconInNamespace(ce,Le,on,hn){return this._addSvgIconConfig(ce,Le,new wt(on,null,hn))}addSvgIconResolver(ce){return this._resolvers.push(ce),this}addSvgIconLiteralInNamespace(ce,Le,on,hn){const we=this._sanitizer.sanitize(d.q3G.HTML,on);if(!we)throw Zt(on);const bn=St(we);return this._addSvgIconConfig(ce,Le,new wt("",bn,hn))}addSvgIconSet(ce,Le){return this.addSvgIconSetInNamespace("",ce,Le)}addSvgIconSetLiteral(ce,Le){return this.addSvgIconSetLiteralInNamespace("",ce,Le)}addSvgIconSetInNamespace(ce,Le,on){return this._addSvgIconSetConfig(ce,new wt(Le,null,on))}addSvgIconSetLiteralInNamespace(ce,Le,on){const hn=this._sanitizer.sanitize(d.q3G.HTML,Le);if(!hn)throw Zt(Le);const we=St(hn);return this._addSvgIconSetConfig(ce,new wt("",we,on))}registerFontClassAlias(ce,Le=ce){return this._fontCssClassesByAlias.set(ce,Le),this}classNameForFontAlias(ce){return this._fontCssClassesByAlias.get(ce)||ce}setDefaultFontSetClass(...ce){return this._defaultFontSetClass=ce,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ce){const Le=this._sanitizer.sanitize(d.q3G.RESOURCE_URL,ce);if(!Le)throw at(ce);const on=this._cachedIconsByUrl.get(Le);return on?(0,t.of)(qt(on)):this._loadSvgIconFromConfig(new wt(ce,null)).pipe((0,k.b)(hn=>this._cachedIconsByUrl.set(Le,hn)),(0,D.U)(hn=>qt(hn)))}getNamedSvgIcon(ce,Le=""){const on=le(Le,ce);let hn=this._svgIconConfigs.get(on);if(hn)return this._getSvgFromConfig(hn);if(hn=this._getIconConfigFromResolvers(Le,ce),hn)return this._svgIconConfigs.set(on,hn),this._getSvgFromConfig(hn);const we=this._iconSetConfigs.get(Le);return we?this._getSvgFromIconSetConfigs(ce,we):(0,A._)(Ht(on))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ce){return ce.svgText?(0,t.of)(qt(this._svgElementFromConfig(ce))):this._loadSvgIconFromConfig(ce).pipe((0,D.U)(Le=>qt(Le)))}_getSvgFromIconSetConfigs(ce,Le){const on=this._extractIconWithNameFromAnySet(ce,Le);if(on)return(0,t.of)(on);const hn=Le.filter(we=>!we.svgText).map(we=>this._loadSvgIconSetFromConfig(we).pipe((0,P.K)(bn=>{const dn=`Loading icon set URL: ${this._sanitizer.sanitize(d.q3G.RESOURCE_URL,we.url)} failed: ${bn.message}`;return this._errorHandler.handleError(new Error(dn)),(0,t.of)(null)})));return(0,x.D)(hn).pipe((0,D.U)(()=>{const we=this._extractIconWithNameFromAnySet(ce,Le);if(!we)throw Ht(ce);return we}))}_extractIconWithNameFromAnySet(ce,Le){for(let on=Le.length-1;on>=0;on--){const hn=Le[on];if(hn.svgText&&hn.svgText.toString().indexOf(ce)>-1){const we=this._svgElementFromConfig(hn),bn=this._extractSvgIconFromSet(we,ce,hn.options);if(bn)return bn}}return null}_loadSvgIconFromConfig(ce){return this._fetchIcon(ce).pipe((0,k.b)(Le=>ce.svgText=Le),(0,D.U)(()=>this._svgElementFromConfig(ce)))}_loadSvgIconSetFromConfig(ce){return ce.svgText?(0,t.of)(null):this._fetchIcon(ce).pipe((0,k.b)(Le=>ce.svgText=Le))}_extractSvgIconFromSet(ce,Le,on){const hn=ce.querySelector(`[id="${Le}"]`);if(!hn)return null;const we=hn.cloneNode(!0);if(we.removeAttribute("id"),"svg"===we.nodeName.toLowerCase())return this._setSvgAttributes(we,on);if("symbol"===we.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(we),on);const bn=this._svgElementFromString(St(""));return bn.appendChild(we),this._setSvgAttributes(bn,on)}_svgElementFromString(ce){const Le=this._document.createElement("DIV");Le.innerHTML=ce;const on=Le.querySelector("svg");if(!on)throw Error(" tag not found");return on}_toSvgElement(ce){const Le=this._svgElementFromString(St("")),on=ce.attributes;for(let hn=0;hnSt(dn)),(0,I.x)(()=>this._inProgressUrlFetches.delete(we)),(0,z.B)());return this._inProgressUrlFetches.set(we,Ze),Ze}_addSvgIconConfig(ce,Le,on){return this._svgIconConfigs.set(le(ce,Le),on),this}_addSvgIconSetConfig(ce,Le){const on=this._iconSetConfigs.get(ce);return on?on.push(Le):this._iconSetConfigs.set(ce,[Le]),this}_svgElementFromConfig(ce){if(!ce.svgElement){const Le=this._svgElementFromString(ce.svgText);this._setSvgAttributes(Le,ce.options),ce.svgElement=Le}return ce.svgElement}_getIconConfigFromResolvers(ce,Le){for(let on=0;onKt?Kt.pathname+Kt.search:""}}}),Xe=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ie=Xe.map(ue=>`[${ue}]`).join(", "),Te=/^url\(['"]?#(.*?)['"]?\)$/;let re=(()=>{class ue extends Ce{constructor(ce,Le,on,hn,we,bn){super(ce),this._iconRegistry=Le,this._location=hn,this._errorHandler=we,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=w.w.EMPTY,bn&&(bn.color&&(this.color=this.defaultColor=bn.color),bn.fontSet&&(this.fontSet=bn.fontSet)),on||ce.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(ce){this._inline=(0,v.Ig)(ce)}get svgIcon(){return this._svgIcon}set svgIcon(ce){ce!==this._svgIcon&&(ce?this._updateSvgIcon(ce):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ce)}get fontSet(){return this._fontSet}set fontSet(ce){const Le=this._cleanupFontValue(ce);Le!==this._fontSet&&(this._fontSet=Le,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ce){const Le=this._cleanupFontValue(ce);Le!==this._fontIcon&&(this._fontIcon=Le,this._updateFontIconClasses())}_splitIconName(ce){if(!ce)return["",""];const Le=ce.split(":");switch(Le.length){case 1:return["",Le[0]];case 2:return Le;default:throw Error(`Invalid icon name: "${ce}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ce=this._elementsWithExternalReferences;if(ce&&ce.size){const Le=this._location.getPathname();Le!==this._previousPath&&(this._previousPath=Le,this._prependPathToReferences(Le))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ce){this._clearSvgElement();const Le=this._location.getPathname();this._previousPath=Le,this._cacheChildrenWithExternalReferences(ce),this._prependPathToReferences(Le),this._elementRef.nativeElement.appendChild(ce)}_clearSvgElement(){const ce=this._elementRef.nativeElement;let Le=ce.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Le--;){const on=ce.childNodes[Le];(1!==on.nodeType||"svg"===on.nodeName.toLowerCase())&&on.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ce=this._elementRef.nativeElement,Le=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(on=>on.length>0);this._previousFontSetClass.forEach(on=>ce.classList.remove(on)),Le.forEach(on=>ce.classList.add(on)),this._previousFontSetClass=Le,this.fontIcon!==this._previousFontIconClass&&!Le.includes("mat-ligature-font")&&(this._previousFontIconClass&&ce.classList.remove(this._previousFontIconClass),this.fontIcon&&ce.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ce){return"string"==typeof ce?ce.trim().split(" ")[0]:ce}_prependPathToReferences(ce){const Le=this._elementsWithExternalReferences;Le&&Le.forEach((on,hn)=>{on.forEach(we=>{hn.setAttribute(we.name,`url('${ce}#${we.value}')`)})})}_cacheChildrenWithExternalReferences(ce){const Le=ce.querySelectorAll(ie),on=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let hn=0;hn{const bn=Le[hn],Ze=bn.getAttribute(we),dn=Ze?Ze.match(Te):null;if(dn){let kn=on.get(bn);kn||(kn=[],on.set(bn,kn)),kn.push({name:we,value:dn[1]})}})}_updateSvgIcon(ce){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ce){const[Le,on]=this._splitIconName(ce);Le&&(this._svgNamespace=Le),on&&(this._svgName=on),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(on,Le).pipe((0,G.q)(1)).subscribe(hn=>this._setSvgElement(hn),hn=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Le}:${on}! ${hn.message}`))})}}}return ue.\u0275fac=function(ce){return new(ce||ue)(d.Y36(d.SBq),d.Y36(_t),d.$8M("aria-hidden"),d.Y36(Ne),d.Y36(d.qLn),d.Y36(Ae,8))},ue.\u0275cmp=d.Xpm({type:ue,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(ce,Le){2&ce&&(d.uIk("data-mat-icon-type",Le._usingFontIcon()?"font":"svg")("data-mat-icon-name",Le._svgName||Le.fontIcon)("data-mat-icon-namespace",Le._svgNamespace||Le.fontSet)("fontIcon",Le._usingFontIcon()?Le.fontIcon:null),d.ekj("mat-icon-inline",Le.inline)("mat-icon-no-color","primary"!==Le.color&&"accent"!==Le.color&&"warn"!==Le.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[d.qOj],ngContentSelectors:ct,decls:1,vars:0,template:function(ce,Le){1&ce&&(d.F$t(),d.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),ue})(),ee=(()=>{class ue{}return ue.\u0275fac=function(ce){return new(ce||ue)},ue.\u0275mod=d.oAB({type:ue}),ue.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),ue})()},284:(rt,it,b)=>{"use strict";b.d(it,{Jk:()=>D,Nt:()=>G,c:()=>W});var d=b(21281),p=b(83353),v=b(39349),T=b(94650),t=b(24006),A=b(3238),x=b(59549),w=b(8929);const D=new T.OlP("MAT_INPUT_VALUE_ACCESSOR"),P=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let I=0;const z=(0,A.FD)(class{constructor(ot,ct,gt,Pt){this._defaultErrorStateMatcher=ot,this._parentForm=ct,this._parentFormGroup=gt,this.ngControl=Pt,this.stateChanges=new w.xQ}});let G=(()=>{class ot extends z{constructor(gt,Pt,St,Ht,Jt,at,Zt,wt,_t,Nt){super(at,Ht,Jt,St),this._elementRef=gt,this._platform=Pt,this._autofillMonitor=wt,this._formField=Nt,this._uid="mat-input-"+I++,this.focused=!1,this.stateChanges=new w.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(le=>(0,p.qK)().has(le)),this._iOSKeyupListener=le=>{const Wt=le.target;!Wt.value&&0===Wt.selectionStart&&0===Wt.selectionEnd&&(Wt.setSelectionRange(1,1),Wt.setSelectionRange(0,0))};const Qt=this._elementRef.nativeElement,qt=Qt.nodeName.toLowerCase();this._inputValueAccessor=Zt||Qt,this._previousNativeValue=this.value,this.id=this.id,Pt.IOS&&_t.runOutsideAngular(()=>{gt.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===qt,this._isTextarea="textarea"===qt,this._isInFormField=!!Nt,this._isNativeSelect&&(this.controlType=Qt.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(gt){this._disabled=(0,d.Ig)(gt),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(gt){this._id=gt||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(t.kI.required)??!1}set required(gt){this._required=(0,d.Ig)(gt)}get type(){return this._type}set type(gt){this._type=gt||"text",this._validateType(),!this._isTextarea&&(0,p.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(gt){gt!==this.value&&(this._inputValueAccessor.value=gt,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(gt){this._readonly=(0,d.Ig)(gt)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(gt=>{this.autofilled=gt.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(gt){this._elementRef.nativeElement.focus(gt)}_focusChanged(gt){gt!==this.focused&&(this.focused=gt,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const gt=this._formField,Pt=gt&&"legacy"===gt.appearance&&!gt._hasLabel?.()?null:this.placeholder;if(Pt!==this._previousPlaceholder){const St=this._elementRef.nativeElement;this._previousPlaceholder=Pt,Pt?St.setAttribute("placeholder",Pt):St.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const gt=this._elementRef.nativeElement.value;this._previousNativeValue!==gt&&(this._previousNativeValue=gt,this.stateChanges.next())}_validateType(){P.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let gt=this._elementRef.nativeElement.validity;return gt&>.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const gt=this._elementRef.nativeElement,Pt=gt.options[0];return this.focused||gt.multiple||!this.empty||!!(gt.selectedIndex>-1&&Pt&&Pt.label)}return this.focused||!this.empty}setDescribedByIds(gt){gt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",gt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const gt=this._elementRef.nativeElement;return this._isNativeSelect&&(gt.multiple||gt.size>1)}}return ot.\u0275fac=function(gt){return new(gt||ot)(T.Y36(T.SBq),T.Y36(p.t4),T.Y36(t.a5,10),T.Y36(t.F,8),T.Y36(t.sg,8),T.Y36(A.rD),T.Y36(D,10),T.Y36(v.Lq),T.Y36(T.R0b),T.Y36(x.G_,8))},ot.\u0275dir=T.lG2({type:ot,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(gt,Pt){1>&&T.NdJ("focus",function(){return Pt._focusChanged(!0)})("blur",function(){return Pt._focusChanged(!1)})("input",function(){return Pt._onInput()}),2>&&(T.Ikx("disabled",Pt.disabled)("required",Pt.required),T.uIk("id",Pt.id)("data-placeholder",Pt.placeholder)("name",Pt.name||null)("readonly",Pt.readonly&&!Pt._isNativeSelect||null)("aria-invalid",Pt.empty&&Pt.required?null:Pt.errorState)("aria-required",Pt.required),T.ekj("mat-input-server",Pt._isServer)("mat-native-select-inline",Pt._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[T._Bn([{provide:x.Eo,useExisting:ot}]),T.qOj,T.TTD]}),ot})(),W=(()=>{class ot{}return ot.\u0275fac=function(gt){return new(gt||ot)},ot.\u0275mod=T.oAB({type:ot}),ot.\u0275inj=T.cJS({providers:[A.rD],imports:[v.Ky,x.lN,A.BQ,v.Ky,x.lN]}),ot})()},96338:(rt,it,b)=>{"use strict";b.d(it,{Hk:()=>wt,Nh:()=>Qt,Tg:()=>le,gs:()=>qt,i$:()=>_t,ie:()=>ie});var d=b(36895),p=b(94650),v=b(3238),T=b(21281),t=b(8929),A=b(7625),I=(b(1059),b(12687),b(95017),b(29521),b(24006),b(44850));const z=["*"],W=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],ot=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Ht=(0,v.Id)((0,v.Kr)(class{})),Jt=(0,v.Kr)(class{}),at=new p.OlP("MatList"),Zt=new p.OlP("MatNavList");let wt=(()=>{class Te extends Ht{constructor(){super(...arguments),this._stateChanges=new t.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Te.\u0275fac=function(){let re;return function(ue){return(re||(re=p.n5z(Te)))(ue||Te)}}(),Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[p._Bn([{provide:Zt,useExisting:Te}]),p.qOj,p.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(ee,ue){1&ee&&(p.F$t(),p.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Te})(),_t=(()=>{class Te extends Ht{constructor(ee){super(),this._elementRef=ee,this._stateChanges=new t.xQ,"action-list"===this._getListType()&&(ee.nativeElement.classList.add("mat-action-list"),ee.nativeElement.setAttribute("role","group"))}_getListType(){const ee=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===ee?"list":"mat-action-list"===ee?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Te.\u0275fac=function(ee){return new(ee||Te)(p.Y36(p.SBq))},Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[p._Bn([{provide:at,useExisting:Te}]),p.qOj,p.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(ee,ue){1&ee&&(p.F$t(),p.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Te})(),Nt=(()=>{class Te{}return Te.\u0275fac=function(ee){return new(ee||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Te})(),Qt=(()=>{class Te{}return Te.\u0275fac=function(ee){return new(ee||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Te})(),qt=(()=>{class Te{}return Te.\u0275fac=function(ee){return new(ee||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Te})(),le=(()=>{class Te extends Jt{constructor(ee,ue,Kt,ce){super(),this._element=ee,this._isInteractiveList=!1,this._destroyed=new t.xQ,this._disabled=!1,this._isInteractiveList=!!(Kt||ce&&"action-list"===ce._getListType()),this._list=Kt||ce;const Le=this._getHostElement();"button"===Le.nodeName.toLowerCase()&&!Le.hasAttribute("type")&&Le.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>{ue.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(ee){this._disabled=(0,T.Ig)(ee)}ngAfterContentInit(){(0,v.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return Te.\u0275fac=function(ee){return new(ee||Te)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Zt,8),p.Y36(at,8))},Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(ee,ue,Kt){if(1&ee&&(p.Suo(Kt,Nt,5),p.Suo(Kt,Qt,5),p.Suo(Kt,v.X2,5)),2&ee){let ce;p.iGM(ce=p.CRH())&&(ue._avatar=ce.first),p.iGM(ce=p.CRH())&&(ue._icon=ce.first),p.iGM(ce=p.CRH())&&(ue._lines=ce)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(ee,ue){2&ee&&p.ekj("mat-list-item-disabled",ue.disabled)("mat-list-item-with-avatar",ue._avatar||ue._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[p.qOj],ngContentSelectors:ot,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(ee,ue){1&ee&&(p.F$t(W),p.TgZ(0,"span",0),p._UZ(1,"span",1),p.Hsn(2),p.TgZ(3,"span",2),p.Hsn(4,1),p.qZA(),p.Hsn(5,2),p.qZA()),2&ee&&(p.xp6(1),p.Q6J("matRippleTrigger",ue._getHostElement())("matRippleDisabled",ue._isRippleDisabled()))},dependencies:[v.wG],encapsulation:2,changeDetection:0}),Te})(),ie=(()=>{class Te{}return Te.\u0275fac=function(ee){return new(ee||Te)},Te.\u0275mod=p.oAB({type:Te}),Te.\u0275inj=p.cJS({imports:[v.uc,v.si,v.BQ,v.us,d.ez,v.uc,v.BQ,v.us,I.t]}),Te})()},28255:(rt,it,b)=>{"use strict";b.d(it,{OP:()=>re,Tx:()=>ri,VK:()=>Le,p6:()=>kn});var d=b(12687),p=b(21281),v=b(29521),T=b(94650),t=b(8929),A=b(42654),x=b(36787),w=b(21086),k=b(8139),D=b(1059),P=b(87545),I=b(72986),z=b(7625),G=b(92198),W=b(18583),ot=b(37340),ct=b(84080),gt=b(36895),Pt=b(3238),St=b(40445),Ht=b(98184),Jt=b(83353),at=b(67376);const Zt=["mat-menu-item",""];function wt(Ee,Ft){1&Ee&&(T.O4$(),T.TgZ(0,"svg",2),T._UZ(1,"polygon",3),T.qZA())}const _t=["*"];function Nt(Ee,Ft){if(1&Ee){const vt=T.EpF();T.TgZ(0,"div",0),T.NdJ("keydown",function(tt){T.CHM(vt);const et=T.oxw();return T.KtG(et._handleKeydown(tt))})("click",function(){T.CHM(vt);const tt=T.oxw();return T.KtG(tt.closed.emit("click"))})("@transformMenu.start",function(tt){T.CHM(vt);const et=T.oxw();return T.KtG(et._onAnimationStart(tt))})("@transformMenu.done",function(tt){T.CHM(vt);const et=T.oxw();return T.KtG(et._onAnimationDone(tt))}),T.TgZ(1,"div",1),T.Hsn(2),T.qZA()()}if(2&Ee){const vt=T.oxw();T.Q6J("id",vt.panelId)("ngClass",vt._classList)("@transformMenu",vt._panelAnimationState),T.uIk("aria-label",vt.ariaLabel||null)("aria-labelledby",vt.ariaLabelledby||null)("aria-describedby",vt.ariaDescribedby||null)}}const Qt={transformMenu:(0,ot.X$)("transformMenu",[(0,ot.SB)("void",(0,ot.oB)({opacity:0,transform:"scale(0.8)"})),(0,ot.eR)("void => enter",(0,ot.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ot.oB)({opacity:1,transform:"scale(1)"}))),(0,ot.eR)("* => void",(0,ot.jt)("100ms 25ms linear",(0,ot.oB)({opacity:0})))]),fadeInItems:(0,ot.X$)("fadeInItems",[(0,ot.SB)("showing",(0,ot.oB)({opacity:1})),(0,ot.eR)("void => *",[(0,ot.oB)({opacity:0}),(0,ot.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Wt=new T.OlP("MatMenuContent"),ie=new T.OlP("MAT_MENU_PANEL"),Te=(0,Pt.Kr)((0,Pt.Id)(class{}));let re=(()=>{class Ee extends Te{constructor(vt,xt,tt,et,Ct){super(),this._elementRef=vt,this._document=xt,this._focusMonitor=tt,this._parentMenu=et,this._changeDetectorRef=Ct,this.role="menuitem",this._hovered=new t.xQ,this._focused=new t.xQ,this._highlighted=!1,this._triggersSubmenu=!1,et?.addItem?.(this)}focus(vt,xt){this._focusMonitor&&vt?this._focusMonitor.focusVia(this._getHostElement(),vt,xt):this._getHostElement().focus(xt),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(vt){this.disabled&&(vt.preventDefault(),vt.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const vt=this._elementRef.nativeElement.cloneNode(!0),xt=vt.querySelectorAll("mat-icon, .material-icons");for(let tt=0;tt{class Ee{constructor(vt,xt,tt,et){this._elementRef=vt,this._ngZone=xt,this._defaultOptions=tt,this._changeDetectorRef=et,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new T.n_E,this._tabSubscription=A.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new t.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new T.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Kt++}get xPosition(){return this._xPosition}set xPosition(vt){this._xPosition=vt,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(vt){this._yPosition=vt,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(vt){this._overlapTrigger=(0,p.Ig)(vt)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(vt){this._hasBackdrop=(0,p.Ig)(vt)}set panelClass(vt){const xt=this._previousPanelClass;xt&&xt.length&&xt.split(" ").forEach(tt=>{this._classList[tt]=!1}),this._previousPanelClass=vt,vt&&vt.length&&(vt.split(" ").forEach(tt=>{this._classList[tt]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(vt){this.panelClass=vt}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new d.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,D.O)(this._directDescendantItems),(0,P.w)(vt=>(0,x.T)(...vt.map(xt=>xt._focused)))).subscribe(vt=>this._keyManager.updateActiveItem(vt)),this._directDescendantItems.changes.subscribe(vt=>{const xt=this._keyManager;if("enter"===this._panelAnimationState&&xt.activeItem?._hasFocus()){const tt=vt.toArray(),et=Math.max(0,Math.min(tt.length-1,xt.activeItemIndex||0));tt[et]&&!tt[et].disabled?xt.setActiveItem(et):xt.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,D.O)(this._directDescendantItems),(0,P.w)(xt=>(0,x.T)(...xt.map(tt=>tt._hovered))))}addItem(vt){}removeItem(vt){}_handleKeydown(vt){const xt=vt.keyCode,tt=this._keyManager;switch(xt){case v.hY:(0,v.Vb)(vt)||(vt.preventDefault(),this.closed.emit("keydown"));break;case v.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case v.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(xt===v.LH||xt===v.JH)&&tt.setFocusOrigin("keyboard"),void tt.onKeydown(vt)}vt.stopPropagation()}focusFirstItem(vt="program"){this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>{let xt=null;if(this._directDescendantItems.length&&(xt=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!xt||!xt.contains(document.activeElement)){const tt=this._keyManager;tt.setFocusOrigin(vt).setFirstItemActive(),!tt.activeItem&&xt&&xt.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(vt){const xt=Math.min(this._baseElevation+vt,24),tt=`${this._elevationPrefix}${xt}`,et=Object.keys(this._classList).find(Ct=>Ct.startsWith(this._elevationPrefix));(!et||et===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[tt]=!0,this._previousElevation=tt)}setPositionClasses(vt=this.xPosition,xt=this.yPosition){const tt=this._classList;tt["mat-menu-before"]="before"===vt,tt["mat-menu-after"]="after"===vt,tt["mat-menu-above"]="above"===xt,tt["mat-menu-below"]="below"===xt,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(vt){this._animationDone.next(vt),this._isAnimating=!1}_onAnimationStart(vt){this._isAnimating=!0,"enter"===vt.toState&&0===this._keyManager.activeItemIndex&&(vt.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,D.O)(this._allItems)).subscribe(vt=>{this._directDescendantItems.reset(vt.filter(xt=>xt._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Ee.\u0275fac=function(vt){return new(vt||Ee)(T.Y36(T.SBq),T.Y36(T.R0b),T.Y36(ee),T.Y36(T.sBO))},Ee.\u0275dir=T.lG2({type:Ee,contentQueries:function(vt,xt,tt){if(1&vt&&(T.Suo(tt,Wt,5),T.Suo(tt,re,5),T.Suo(tt,re,4)),2&vt){let et;T.iGM(et=T.CRH())&&(xt.lazyContent=et.first),T.iGM(et=T.CRH())&&(xt._allItems=et),T.iGM(et=T.CRH())&&(xt.items=et)}},viewQuery:function(vt,xt){if(1&vt&&T.Gf(T.Rgc,5),2&vt){let tt;T.iGM(tt=T.CRH())&&(xt.templateRef=tt.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Ee})(),Le=(()=>{class Ee extends ce{constructor(vt,xt,tt,et){super(vt,xt,tt,et),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return Ee.\u0275fac=function(vt){return new(vt||Ee)(T.Y36(T.SBq),T.Y36(T.R0b),T.Y36(ee),T.Y36(T.sBO))},Ee.\u0275cmp=T.Xpm({type:Ee,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(vt,xt){2&vt&&T.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[T._Bn([{provide:ie,useExisting:Ee}]),T.qOj],ngContentSelectors:_t,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(vt,xt){1&vt&&(T.F$t(),T.YNc(0,Nt,3,6,"ng-template"))},dependencies:[gt.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Qt.transformMenu,Qt.fadeInItems]},changeDetection:0}),Ee})();const on=new T.OlP("mat-menu-scroll-strategy"),we={provide:on,deps:[Ht.aV],useFactory:function hn(Ee){return()=>Ee.scrollStrategies.reposition()}},Ze=(0,Jt.i$)({passive:!0});let dn=(()=>{class Ee{constructor(vt,xt,tt,et,Ct,Bt,ne,he,Oe){this._overlay=vt,this._element=xt,this._viewContainerRef=tt,this._menuItemInstance=Bt,this._dir=ne,this._focusMonitor=he,this._ngZone=Oe,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.w.EMPTY,this._hoverSubscription=A.w.EMPTY,this._menuCloseSubscription=A.w.EMPTY,this._handleTouchStart=yn=>{(0,d.yG)(yn)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new T.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new T.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=et,this._parentMaterialMenu=Ct instanceof ce?Ct:void 0,xt.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ze),Bt&&(Bt._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(vt){this.menu=vt}get menu(){return this._menu}set menu(vt){vt!==this._menu&&(this._menu=vt,this._menuCloseSubscription.unsubscribe(),vt&&(this._menuCloseSubscription=vt.close.subscribe(xt=>{this._destroyMenu(xt),("click"===xt||"tab"===xt)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(xt)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ze),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const vt=this.menu;if(this._menuOpen||!vt)return;const xt=this._createOverlay(vt),tt=xt.getConfig(),et=tt.positionStrategy;this._setPosition(vt,et),tt.hasBackdrop=vt.hasBackdrop??!this.triggersSubmenu(),xt.attach(this._getPortal(vt)),vt.lazyContent&&vt.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(vt),vt instanceof ce&&(vt._startAnimation(),vt._directDescendantItems.changes.pipe((0,z.R)(vt.close)).subscribe(()=>{et.withLockedPosition(!1).reapplyLastPosition(),et.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(vt,xt){this._focusMonitor&&vt?this._focusMonitor.focusVia(this._element,vt,xt):this._element.nativeElement.focus(xt)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(vt){if(!this._overlayRef||!this.menuOpen)return;const xt=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===vt||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,xt instanceof ce?(xt._resetAnimation(),xt.lazyContent?xt._animationDone.pipe((0,G.h)(tt=>"void"===tt.toState),(0,I.q)(1),(0,z.R)(xt.lazyContent._attached)).subscribe({next:()=>xt.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),xt?.lazyContent?.detach())}_initMenu(vt){vt.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,vt.direction=this.dir,this._setMenuElevation(vt),vt.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(vt){if(vt.setElevation){let xt=0,tt=vt.parentMenu;for(;tt;)xt++,tt=tt.parentMenu;vt.setElevation(xt)}}_setIsMenuOpen(vt){this._menuOpen=vt,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(vt)}_createOverlay(vt){if(!this._overlayRef){const xt=this._getOverlayConfig(vt);this._subscribeToPositions(vt,xt.positionStrategy),this._overlayRef=this._overlay.create(xt),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(vt){return new Ht.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:vt.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:vt.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(vt,xt){vt.setPositionClasses&&xt.positionChanges.subscribe(tt=>{const et="start"===tt.connectionPair.overlayX?"after":"before",Ct="top"===tt.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>vt.setPositionClasses(et,Ct)):vt.setPositionClasses(et,Ct)})}_setPosition(vt,xt){let[tt,et]="before"===vt.xPosition?["end","start"]:["start","end"],[Ct,Bt]="above"===vt.yPosition?["bottom","top"]:["top","bottom"],[ne,he]=[Ct,Bt],[Oe,yn]=[tt,et],On=0;if(this.triggersSubmenu()){if(yn=tt="before"===vt.xPosition?"start":"end",et=Oe="end"===tt?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const _i=this._parentMaterialMenu.items.first;this._parentInnerPadding=_i?_i._getHostElement().offsetTop:0}On="bottom"===Ct?this._parentInnerPadding:-this._parentInnerPadding}}else vt.overlapTrigger||(ne="top"===Ct?"bottom":"top",he="top"===Bt?"bottom":"top");xt.withPositions([{originX:tt,originY:ne,overlayX:Oe,overlayY:Ct,offsetY:On},{originX:et,originY:ne,overlayX:yn,overlayY:Ct,offsetY:On},{originX:tt,originY:he,overlayX:Oe,overlayY:Bt,offsetY:-On},{originX:et,originY:he,overlayX:yn,overlayY:Bt,offsetY:-On}])}_menuClosingActions(){const vt=this._overlayRef.backdropClick(),xt=this._overlayRef.detachments(),tt=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,w.of)(),et=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,G.h)(Ct=>Ct!==this._menuItemInstance),(0,G.h)(()=>this._menuOpen)):(0,w.of)();return(0,x.T)(vt,tt,et,xt)}_handleMousedown(vt){(0,d.X6)(vt)||(this._openedBy=0===vt.button?"mouse":void 0,this.triggersSubmenu()&&vt.preventDefault())}_handleKeydown(vt){const xt=vt.keyCode;(xt===v.K5||xt===v.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(xt===v.SV&&"ltr"===this.dir||xt===v.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(vt){this.triggersSubmenu()?(vt.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,G.h)(vt=>vt===this._menuItemInstance&&!vt.disabled),(0,W.g)(0,k.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ce&&this.menu._isAnimating?this.menu._animationDone.pipe((0,I.q)(1),(0,W.g)(0,k.E),(0,z.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(vt){return(!this._portal||this._portal.templateRef!==vt.templateRef)&&(this._portal=new ct.UE(vt.templateRef,this._viewContainerRef)),this._portal}}return Ee.\u0275fac=function(vt){return new(vt||Ee)(T.Y36(Ht.aV),T.Y36(T.SBq),T.Y36(T.s_b),T.Y36(on),T.Y36(ie,8),T.Y36(re,10),T.Y36(St.Is,8),T.Y36(d.tE),T.Y36(T.R0b))},Ee.\u0275dir=T.lG2({type:Ee,hostVars:3,hostBindings:function(vt,xt){1&vt&&T.NdJ("click",function(et){return xt._handleClick(et)})("mousedown",function(et){return xt._handleMousedown(et)})("keydown",function(et){return xt._handleKeydown(et)}),2&vt&&T.uIk("aria-haspopup",xt.menu?"menu":null)("aria-expanded",xt.menuOpen||null)("aria-controls",xt.menuOpen?xt.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),Ee})(),kn=(()=>{class Ee extends dn{}return Ee.\u0275fac=function(){let Ft;return function(xt){return(Ft||(Ft=T.n5z(Ee)))(xt||Ee)}}(),Ee.\u0275dir=T.lG2({type:Ee,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[T.qOj]}),Ee})(),ri=(()=>{class Ee{}return Ee.\u0275fac=function(vt){return new(vt||Ee)},Ee.\u0275mod=T.oAB({type:Ee}),Ee.\u0275inj=T.cJS({providers:[we],imports:[gt.ez,Pt.BQ,Pt.si,Ht.U8,at.ZD,Pt.BQ]}),Ee})()},98739:(rt,it,b)=>{"use strict";b.d(it,{NW:()=>Zt,TU:()=>wt});var d=b(36895),p=b(94650),v=b(3238),T=b(4859),t=b(84385),A=b(10266),x=b(21281),w=b(8929),k=b(59549);function D(_t,Nt){if(1&_t&&(p.TgZ(0,"mat-option",19),p._uU(1),p.qZA()),2&_t){const Qt=Nt.$implicit;p.Q6J("value",Qt),p.xp6(1),p.hij(" ",Qt," ")}}function P(_t,Nt){if(1&_t){const Qt=p.EpF();p.TgZ(0,"mat-form-field",16)(1,"mat-select",17),p.NdJ("selectionChange",function(le){p.CHM(Qt);const Wt=p.oxw(2);return p.KtG(Wt._changePageSize(le.value))}),p.YNc(2,D,2,2,"mat-option",18),p.qZA()()}if(2&_t){const Qt=p.oxw(2);p.Q6J("appearance",Qt._formFieldAppearance)("color",Qt.color),p.xp6(1),p.Q6J("value",Qt.pageSize)("disabled",Qt.disabled)("panelClass",Qt.selectConfig.panelClass||"")("disableOptionCentering",Qt.selectConfig.disableOptionCentering)("aria-label",Qt._intl.itemsPerPageLabel),p.xp6(1),p.Q6J("ngForOf",Qt._displayedPageSizeOptions)}}function I(_t,Nt){if(1&_t&&(p.TgZ(0,"div",20),p._uU(1),p.qZA()),2&_t){const Qt=p.oxw(2);p.xp6(1),p.Oqu(Qt.pageSize)}}function z(_t,Nt){if(1&_t&&(p.TgZ(0,"div",12)(1,"div",13),p._uU(2),p.qZA(),p.YNc(3,P,3,8,"mat-form-field",14),p.YNc(4,I,2,1,"div",15),p.qZA()),2&_t){const Qt=p.oxw();p.xp6(2),p.hij(" ",Qt._intl.itemsPerPageLabel," "),p.xp6(1),p.Q6J("ngIf",Qt._displayedPageSizeOptions.length>1),p.xp6(1),p.Q6J("ngIf",Qt._displayedPageSizeOptions.length<=1)}}function G(_t,Nt){if(1&_t){const Qt=p.EpF();p.TgZ(0,"button",21),p.NdJ("click",function(){p.CHM(Qt);const le=p.oxw();return p.KtG(le.firstPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",22),p.qZA()()}if(2&_t){const Qt=p.oxw();p.Q6J("matTooltip",Qt._intl.firstPageLabel)("matTooltipDisabled",Qt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Qt._previousButtonsDisabled()),p.uIk("aria-label",Qt._intl.firstPageLabel)}}function W(_t,Nt){if(1&_t){const Qt=p.EpF();p.O4$(),p.kcU(),p.TgZ(0,"button",23),p.NdJ("click",function(){p.CHM(Qt);const le=p.oxw();return p.KtG(le.lastPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",24),p.qZA()()}if(2&_t){const Qt=p.oxw();p.Q6J("matTooltip",Qt._intl.lastPageLabel)("matTooltipDisabled",Qt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Qt._nextButtonsDisabled()),p.uIk("aria-label",Qt._intl.lastPageLabel)}}let ot=(()=>{class _t{constructor(){this.changes=new w.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Qt,qt,le)=>{if(0==le||0==qt)return`0 of ${le}`;const Wt=Qt*qt;return`${Wt+1} \u2013 ${Wt<(le=Math.max(le,0))?Math.min(Wt+qt,le):Wt+qt} of ${le}`}}}return _t.\u0275fac=function(Qt){return new(Qt||_t)},_t.\u0275prov=p.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"}),_t})();const gt={provide:ot,deps:[[new p.FiY,new p.tp0,ot]],useFactory:function ct(_t){return _t||new ot}},Ht=new p.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Jt=(0,v.Id)((0,v.dB)(class{}));let at=(()=>{class _t extends Jt{constructor(Qt,qt,le){if(super(),this._intl=Qt,this._changeDetectorRef=qt,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new p.vpe,this._intlChanges=Qt.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),le){const{pageSize:Wt,pageSizeOptions:Ce,hidePageSize:Ae,showFirstLastButtons:Ne}=le;null!=Wt&&(this._pageSize=Wt),null!=Ce&&(this._pageSizeOptions=Ce),null!=Ae&&(this._hidePageSize=Ae),null!=Ne&&(this._showFirstLastButtons=Ne)}}get pageIndex(){return this._pageIndex}set pageIndex(Qt){this._pageIndex=Math.max((0,x.su)(Qt),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Qt){this._length=(0,x.su)(Qt),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Qt){this._pageSize=Math.max((0,x.su)(Qt),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Qt){this._pageSizeOptions=(Qt||[]).map(qt=>(0,x.su)(qt)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Qt){this._hidePageSize=(0,x.Ig)(Qt)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Qt){this._showFirstLastButtons=(0,x.Ig)(Qt)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Qt=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Qt)}previousPage(){if(!this.hasPreviousPage())return;const Qt=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Qt)}firstPage(){if(!this.hasPreviousPage())return;const Qt=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Qt)}lastPage(){if(!this.hasNextPage())return;const Qt=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Qt)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Qt=this.getNumberOfPages()-1;return this.pageIndexQt-qt),this._changeDetectorRef.markForCheck())}_emitPageEvent(Qt){this.page.emit({previousPageIndex:Qt,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return _t.\u0275fac=function(Qt){p.$Z()},_t.\u0275dir=p.lG2({type:_t,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[p.qOj]}),_t})(),Zt=(()=>{class _t extends at{constructor(Qt,qt,le){super(Qt,qt,le),le&&null!=le.formFieldAppearance&&(this._formFieldAppearance=le.formFieldAppearance)}}return _t.\u0275fac=function(Qt){return new(Qt||_t)(p.Y36(ot),p.Y36(p.sBO),p.Y36(Ht,8))},_t.\u0275cmp=p.Xpm({type:_t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[p.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(Qt,qt){1&Qt&&(p.TgZ(0,"div",0)(1,"div",1),p.YNc(2,z,5,3,"div",2),p.TgZ(3,"div",3)(4,"div",4),p._uU(5),p.qZA(),p.YNc(6,G,3,5,"button",5),p.TgZ(7,"button",6),p.NdJ("click",function(){return qt.previousPage()}),p.O4$(),p.TgZ(8,"svg",7),p._UZ(9,"path",8),p.qZA()(),p.kcU(),p.TgZ(10,"button",9),p.NdJ("click",function(){return qt.nextPage()}),p.O4$(),p.TgZ(11,"svg",7),p._UZ(12,"path",10),p.qZA()(),p.YNc(13,W,3,5,"button",11),p.qZA()()()),2&Qt&&(p.xp6(2),p.Q6J("ngIf",!qt.hidePageSize),p.xp6(3),p.hij(" ",qt._intl.getRangeLabel(qt.pageIndex,qt.pageSize,qt.length)," "),p.xp6(1),p.Q6J("ngIf",qt.showFirstLastButtons),p.xp6(1),p.Q6J("matTooltip",qt._intl.previousPageLabel)("matTooltipDisabled",qt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",qt._previousButtonsDisabled()),p.uIk("aria-label",qt._intl.previousPageLabel),p.xp6(3),p.Q6J("matTooltip",qt._intl.nextPageLabel)("matTooltipDisabled",qt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",qt._nextButtonsDisabled()),p.uIk("aria-label",qt._intl.nextPageLabel),p.xp6(3),p.Q6J("ngIf",qt.showFirstLastButtons))},dependencies:[d.sg,d.O5,T.lW,k.KE,t.gD,v.ey,A.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),_t})(),wt=(()=>{class _t{}return _t.\u0275fac=function(Qt){return new(Qt||_t)},_t.\u0275mod=p.oAB({type:_t}),_t.\u0275inj=p.cJS({providers:[gt],imports:[d.ez,T.ot,t.LD,A.AV,v.BQ]}),_t})()},73162:(rt,it,b)=>{"use strict";b.d(it,{Cv:()=>ot,pW:()=>G});var d=b(94650),p=b(36895),v=b(3238),T=b(21281),t=b(42654),A=b(23753),x=b(92198);const w=["primaryValueBar"],k=(0,v.pj)(class{constructor(ct){this._elementRef=ct}},"primary"),D=new d.OlP("mat-progress-bar-location",{providedIn:"root",factory:function P(){const ct=(0,d.f3M)(p.K0),gt=ct?ct.location:null;return{getPathname:()=>gt?gt.pathname+gt.search:""}}}),I=new d.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let z=0,G=(()=>{class ct extends k{constructor(Pt,St,Ht,Jt,at,Zt){super(Pt),this._ngZone=St,this._animationMode=Ht,this._changeDetectorRef=Zt,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new d.vpe,this._animationEndSubscription=t.w.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+z++;const wt=Jt?Jt.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${wt}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===Ht,at&&(at.color&&(this.color=this.defaultColor=at.color),this.mode=at.mode||this.mode)}get value(){return this._value}set value(Pt){this._value=W((0,T.su)(Pt)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Pt){this._bufferValue=W(Pt||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const Pt=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,A.R)(Pt,"transitionend").pipe((0,x.h)(St=>St.target===Pt)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return ct.\u0275fac=function(Pt){return new(Pt||ct)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(d.QbO,8),d.Y36(D,8),d.Y36(I,8),d.Y36(d.sBO))},ct.\u0275cmp=d.Xpm({type:ct,selectors:[["mat-progress-bar"]],viewQuery:function(Pt,St){if(1&Pt&&d.Gf(w,5),2&Pt){let Ht;d.iGM(Ht=d.CRH())&&(St._primaryValueBar=Ht.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Pt,St){2&Pt&&(d.uIk("aria-valuenow","indeterminate"===St.mode||"query"===St.mode?null:St.value)("mode",St.mode),d.ekj("_mat-animation-noopable",St._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[d.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(Pt,St){1&Pt&&(d.TgZ(0,"div",0),d.O4$(),d.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),d._UZ(4,"circle",3),d.qZA()(),d._UZ(5,"rect",4),d.qZA(),d.kcU(),d._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),d.qZA()),2&Pt&&(d.xp6(3),d.Q6J("id",St.progressbarId),d.xp6(2),d.uIk("fill",St._rectangleFillValue),d.xp6(1),d.Q6J("ngStyle",St._bufferTransform()),d.xp6(1),d.Q6J("ngStyle",St._primaryTransform()))},dependencies:[p.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),ct})();function W(ct,gt=0,Pt=100){return Math.max(gt,Math.min(Pt,ct))}let ot=(()=>{class ct{}return ct.\u0275fac=function(Pt){return new(Pt||ct)},ct.\u0275mod=d.oAB({type:ct}),ct.\u0275inj=d.cJS({imports:[p.ez,v.BQ,v.BQ]}),ct})()},51572:(rt,it,b)=>{"use strict";b.d(it,{Cq:()=>ct,Ou:()=>ot});var d=b(21281),p=b(83353),v=b(67376),T=b(36895),t=b(94650),A=b(3238),x=b(42654);function w(Pt,St){if(1&Pt&&(t.O4$(),t._UZ(0,"circle",4)),2&Pt){const Ht=t.oxw(),Jt=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+Ht._spinnerAnimationLabel)("stroke-dashoffset",Ht._getStrokeDashOffset(),"px")("stroke-dasharray",Ht._getStrokeCircumference(),"px")("stroke-width",Ht._getCircleStrokeWidth(),"%")("transform-origin",Ht._getCircleTransformOrigin(Jt)),t.uIk("r",Ht._getCircleRadius())}}function k(Pt,St){if(1&Pt&&(t.O4$(),t._UZ(0,"circle",4)),2&Pt){const Ht=t.oxw(),Jt=t.MAs(1);t.Udp("stroke-dashoffset",Ht._getStrokeDashOffset(),"px")("stroke-dasharray",Ht._getStrokeCircumference(),"px")("stroke-width",Ht._getCircleStrokeWidth(),"%")("transform-origin",Ht._getCircleTransformOrigin(Jt)),t.uIk("r",Ht._getCircleRadius())}}const I=(0,A.pj)(class{constructor(Pt){this._elementRef=Pt}},"primary"),z=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function G(){return{diameter:100}}});class ot extends I{constructor(St,Ht,Jt,at,Zt,wt,_t,Nt){super(St),this._document=Jt,this._diameter=100,this._value=0,this._resizeSubscription=x.w.EMPTY,this.mode="determinate";const Qt=ot._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Qt.has(Jt.head)||Qt.set(Jt.head,new Set([100])),this._noopAnimations="NoopAnimations"===at&&!!Zt&&!Zt._forceAnimations,"mat-spinner"===St.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Zt&&(Zt.color&&(this.color=this.defaultColor=Zt.color),Zt.diameter&&(this.diameter=Zt.diameter),Zt.strokeWidth&&(this.strokeWidth=Zt.strokeWidth)),Ht.isBrowser&&Ht.SAFARI&&_t&&wt&&Nt&&(this._resizeSubscription=_t.change(150).subscribe(()=>{"indeterminate"===this.mode&&Nt.run(()=>wt.markForCheck())}))}get diameter(){return this._diameter}set diameter(St){this._diameter=(0,d.su)(St),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(St){this._strokeWidth=(0,d.su)(St)}get value(){return"determinate"===this.mode?this._value:0}set value(St){this._value=Math.max(0,Math.min(100,(0,d.su)(St)))}ngOnInit(){const St=this._elementRef.nativeElement;this._styleRoot=(0,p.kV)(St)||this._document.head,this._attachStyleNode(),St.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const St=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${St} ${St}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(St){const Ht=50*(St.currentScale??1);return`${Ht}% ${Ht}%`}_attachStyleNode(){const St=this._styleRoot,Ht=this._diameter,Jt=ot._diameters;let at=Jt.get(St);if(!at||!at.has(Ht)){const Zt=this._document.createElement("style");Zt.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Zt.textContent=this._getAnimationText(),St.appendChild(Zt),at||(at=new Set,Jt.set(St,at)),at.add(Ht)}}_getAnimationText(){const St=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*St).replace(/END_VALUE/g,""+.2*St).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}ot._diameters=new WeakMap,ot.\u0275fac=function(St){return new(St||ot)(t.Y36(t.SBq),t.Y36(p.t4),t.Y36(T.K0,8),t.Y36(t.QbO,8),t.Y36(z),t.Y36(t.sBO),t.Y36(v.rL),t.Y36(t.R0b))},ot.\u0275cmp=t.Xpm({type:ot,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(St,Ht){2&St&&(t.uIk("aria-valuemin","determinate"===Ht.mode?0:null)("aria-valuemax","determinate"===Ht.mode?100:null)("aria-valuenow","determinate"===Ht.mode?Ht.value:null)("mode",Ht.mode),t.Udp("width",Ht.diameter,"px")("height",Ht.diameter,"px"),t.ekj("_mat-animation-noopable",Ht._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(St,Ht){1&St&&(t.O4$(),t.TgZ(0,"svg",0,1),t.YNc(2,w,1,11,"circle",2),t.YNc(3,k,1,9,"circle",3),t.qZA()),2&St&&(t.Udp("width",Ht.diameter,"px")("height",Ht.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===Ht.mode),t.uIk("viewBox",Ht._getViewBox()),t.xp6(2),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let ct=(()=>{class Pt{}return Pt.\u0275fac=function(Ht){return new(Ht||Pt)},Pt.\u0275mod=t.oAB({type:Pt}),Pt.\u0275inj=t.cJS({imports:[A.BQ,T.ez,A.BQ]}),Pt})()},71948:(rt,it,b)=>{"use strict";b.d(it,{Fk:()=>Jt,U0:()=>Ht,VQ:()=>ct});var d=b(94650),p=b(3238),v=b(12687),T=b(21281),t=b(95017),A=b(24006);const x=["input"],w=function(at){return{enterDuration:at}},k=["*"],D=new d.OlP("mat-radio-default-options",{providedIn:"root",factory:function P(){return{color:"accent"}}});let I=0;const z={provide:A.JU,useExisting:(0,d.Gpc)(()=>ct),multi:!0};class G{constructor(Zt,wt){this.source=Zt,this.value=wt}}const W=new d.OlP("MatRadioGroup");let ot=(()=>{class at{constructor(wt){this._changeDetector=wt,this._value=null,this._name="mat-radio-group-"+I++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new d.vpe}get name(){return this._name}set name(wt){this._name=wt,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(wt){this._labelPosition="before"===wt?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(wt){this._value!==wt&&(this._value=wt,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(wt){this._selected=wt,this.value=wt?wt.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(wt){this._disabled=(0,T.Ig)(wt),this._markRadiosForCheck()}get required(){return this._required}set required(wt){this._required=(0,T.Ig)(wt),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(wt=>{wt.name=this.name,wt._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(_t=>{_t.checked=this.value===_t.value,_t.checked&&(this._selected=_t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new G(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(wt=>wt._markForCheck())}writeValue(wt){this.value=wt,this._changeDetector.markForCheck()}registerOnChange(wt){this._controlValueAccessorChangeFn=wt}registerOnTouched(wt){this.onTouched=wt}setDisabledState(wt){this.disabled=wt,this._changeDetector.markForCheck()}}return at.\u0275fac=function(wt){return new(wt||at)(d.Y36(d.sBO))},at.\u0275dir=d.lG2({type:at,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),at})(),ct=(()=>{class at extends ot{}return at.\u0275fac=function(){let Zt;return function(_t){return(Zt||(Zt=d.n5z(at)))(_t||at)}}(),at.\u0275dir=d.lG2({type:at,selectors:[["mat-radio-group"]],contentQueries:function(wt,_t,Nt){if(1&wt&&d.Suo(Nt,Ht,5),2&wt){let Qt;d.iGM(Qt=d.CRH())&&(_t._radios=Qt)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[d._Bn([z,{provide:W,useExisting:at}]),d.qOj]}),at})();class gt{constructor(Zt){this._elementRef=Zt}}const Pt=(0,p.Kr)((0,p.sb)(gt));let St=(()=>{class at extends Pt{constructor(wt,_t,Nt,Qt,qt,le,Wt,Ce){super(_t),this._changeDetector=Nt,this._focusMonitor=Qt,this._radioDispatcher=qt,this._providerOverride=Wt,this._uniqueId="mat-radio-"+ ++I,this.id=this._uniqueId,this.change=new d.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=wt,this._noopAnimations="NoopAnimations"===le,Ce&&(this.tabIndex=(0,T.su)(Ce,0)),this._removeUniqueSelectionListener=qt.listen((Ae,Ne)=>{Ae!==this.id&&Ne===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(wt){const _t=(0,T.Ig)(wt);this._checked!==_t&&(this._checked=_t,_t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!_t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),_t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(wt){this._value!==wt&&(this._value=wt,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===wt),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(wt){this._labelPosition=wt}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(wt){this._setDisabled((0,T.Ig)(wt))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(wt){this._required=(0,T.Ig)(wt)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(wt){this._color=wt}get inputId(){return`${this.id||this._uniqueId}-input`}focus(wt,_t){_t?this._focusMonitor.focusVia(this._inputElement,_t,wt):this._inputElement.nativeElement.focus(wt)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(wt=>{!wt&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new G(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(wt){wt.stopPropagation()}_onInputInteraction(wt){if(wt.stopPropagation(),!this.checked&&!this.disabled){const _t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),_t&&this.radioGroup._emitChangeEvent())}}_setDisabled(wt){this._disabled!==wt&&(this._disabled=wt,this._changeDetector.markForCheck())}_updateTabIndex(){const wt=this.radioGroup;let _t;if(_t=wt&&wt.selected&&!this.disabled?wt.selected===this?this.tabIndex:-1:this.tabIndex,_t!==this._previousTabIndex){const Nt=this._inputElement?.nativeElement;Nt&&(Nt.setAttribute("tabindex",_t+""),this._previousTabIndex=_t)}}}return at.\u0275fac=function(wt){d.$Z()},at.\u0275dir=d.lG2({type:at,viewQuery:function(wt,_t){if(1&wt&&d.Gf(x,5),2&wt){let Nt;d.iGM(Nt=d.CRH())&&(_t._inputElement=Nt.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[d.qOj]}),at})(),Ht=(()=>{class at extends St{constructor(wt,_t,Nt,Qt,qt,le,Wt,Ce){super(wt,_t,Nt,Qt,qt,le,Wt,Ce)}}return at.\u0275fac=function(wt){return new(wt||at)(d.Y36(W,8),d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(v.tE),d.Y36(t.A8),d.Y36(d.QbO,8),d.Y36(D,8),d.$8M("tabindex"))},at.\u0275cmp=d.Xpm({type:at,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(wt,_t){1&wt&&d.NdJ("focus",function(){return _t._inputElement.nativeElement.focus()}),2&wt&&(d.uIk("tabindex",null)("id",_t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),d.ekj("mat-radio-checked",_t.checked)("mat-radio-disabled",_t.disabled)("_mat-animation-noopable",_t._noopAnimations)("mat-primary","primary"===_t.color)("mat-accent","accent"===_t.color)("mat-warn","warn"===_t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[d.qOj],ngContentSelectors:k,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(wt,_t){if(1&wt&&(d.F$t(),d.TgZ(0,"label",0,1)(2,"span",2),d._UZ(3,"span",3)(4,"span",4),d.TgZ(5,"input",5,6),d.NdJ("change",function(Qt){return _t._onInputInteraction(Qt)})("click",function(Qt){return _t._onInputClick(Qt)}),d.qZA(),d.TgZ(7,"span",7),d._UZ(8,"span",8),d.qZA()(),d.TgZ(9,"span",9)(10,"span",10),d._uU(11,"\xa0"),d.qZA(),d.Hsn(12),d.qZA()()),2&wt){const Nt=d.MAs(1);d.uIk("for",_t.inputId),d.xp6(5),d.Q6J("id",_t.inputId)("checked",_t.checked)("disabled",_t.disabled)("required",_t.required),d.uIk("name",_t.name)("value",_t.value)("aria-label",_t.ariaLabel)("aria-labelledby",_t.ariaLabelledby)("aria-describedby",_t.ariaDescribedby),d.xp6(2),d.Q6J("matRippleTrigger",Nt)("matRippleDisabled",_t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",d.VKq(17,w,_t._noopAnimations?0:150)),d.xp6(2),d.ekj("mat-radio-label-before","before"==_t.labelPosition)}},dependencies:[p.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),at})(),Jt=(()=>{class at{}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275mod=d.oAB({type:at}),at.\u0275inj=d.cJS({imports:[p.si,p.BQ,p.BQ]}),at})()},84385:(rt,it,b)=>{"use strict";b.d(it,{LD:()=>Ft,gD:()=>Ee});var d=b(98184),p=b(36895),v=b(94650),T=b(3238),t=b(59549),A=b(67376),x=b(12687),w=b(40445),k=b(21281),D=b(95017),P=b(29521),I=b(24006),z=b(8929),G=b(88514),W=b(36787),ot=b(1059),ct=b(87545),gt=b(72986),Pt=b(92198),St=b(24850),Ht=b(75778),Jt=b(7625),at=b(37340);const Zt=["trigger"],wt=["panel"];function _t(vt,xt){if(1&vt&&(v.TgZ(0,"span",8),v._uU(1),v.qZA()),2&vt){const tt=v.oxw();v.xp6(1),v.Oqu(tt.placeholder)}}function Nt(vt,xt){if(1&vt&&(v.TgZ(0,"span",12),v._uU(1),v.qZA()),2&vt){const tt=v.oxw(2);v.xp6(1),v.Oqu(tt.triggerValue)}}function Qt(vt,xt){1&vt&&v.Hsn(0,0,["*ngSwitchCase","true"])}function qt(vt,xt){if(1&vt&&(v.TgZ(0,"span",9),v.YNc(1,Nt,2,1,"span",10),v.YNc(2,Qt,1,0,"ng-content",11),v.qZA()),2&vt){const tt=v.oxw();v.Q6J("ngSwitch",!!tt.customTrigger),v.xp6(2),v.Q6J("ngSwitchCase",!0)}}function le(vt,xt){if(1&vt){const tt=v.EpF();v.TgZ(0,"div",13)(1,"div",14,15),v.NdJ("@transformPanel.done",function(Ct){v.CHM(tt);const Bt=v.oxw();return v.KtG(Bt._panelDoneAnimatingStream.next(Ct.toState))})("keydown",function(Ct){v.CHM(tt);const Bt=v.oxw();return v.KtG(Bt._handleKeydown(Ct))}),v.Hsn(3,1),v.qZA()()}if(2&vt){const tt=v.oxw();v.Q6J("@transformPanelWrap",void 0),v.xp6(1),v.Gre("mat-select-panel ",tt._getPanelTheme(),""),v.Udp("transform-origin",tt._transformOrigin)("font-size",tt._triggerFontSize,"px"),v.Q6J("ngClass",tt.panelClass)("@transformPanel",tt.multiple?"showing-multiple":"showing"),v.uIk("id",tt.id+"-panel")("aria-multiselectable",tt.multiple)("aria-label",tt.ariaLabel||null)("aria-labelledby",tt._getPanelAriaLabelledby())}}const Wt=[[["mat-select-trigger"]],"*"],Ce=["mat-select-trigger","*"],Ae={transformPanelWrap:(0,at.X$)("transformPanelWrap",[(0,at.eR)("* => void",(0,at.IO)("@transformPanel",[(0,at.pV)()],{optional:!0}))]),transformPanel:(0,at.X$)("transformPanel",[(0,at.SB)("void",(0,at.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,at.SB)("showing",(0,at.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,at.SB)("showing-multiple",(0,at.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,at.eR)("void => *",(0,at.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,at.eR)("* => void",(0,at.jt)("100ms 25ms linear",(0,at.oB)({opacity:0})))])};let ie=0;const Le=new v.OlP("mat-select-scroll-strategy"),hn=new v.OlP("MAT_SELECT_CONFIG"),we={provide:Le,deps:[d.aV],useFactory:function on(vt){return()=>vt.scrollStrategies.reposition()}};class bn{constructor(xt,tt){this.source=xt,this.value=tt}}const Ze=(0,T.Kr)((0,T.sb)((0,T.Id)((0,T.FD)(class{constructor(vt,xt,tt,et,Ct){this._elementRef=vt,this._defaultErrorStateMatcher=xt,this._parentForm=tt,this._parentFormGroup=et,this.ngControl=Ct,this.stateChanges=new z.xQ}})))),dn=new v.OlP("MatSelectTrigger");let ri=(()=>{class vt extends Ze{constructor(tt,et,Ct,Bt,ne,he,Oe,yn,On,_i,Si,ho,hi,Vn){super(ne,Bt,Oe,yn,_i),this._viewportRuler=tt,this._changeDetectorRef=et,this._ngZone=Ct,this._dir=he,this._parentFormField=On,this._liveAnnouncer=hi,this._defaultOptions=Vn,this._panelOpen=!1,this._compareWith=(Gn,je)=>Gn===je,this._uid="mat-select-"+ie++,this._triggerAriaLabelledBy=null,this._destroy=new z.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ie++,this._panelDoneAnimatingStream=new z.xQ,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,G.P)(()=>{const Gn=this.options;return Gn?Gn.changes.pipe((0,ot.O)(Gn),(0,ct.w)(()=>(0,W.T)(...Gn.map(je=>je.onSelectionChange)))):this._ngZone.onStable.pipe((0,gt.q)(1),(0,ct.w)(()=>this.optionSelectionChanges))}),this.openedChange=new v.vpe,this._openedStream=this.openedChange.pipe((0,Pt.h)(Gn=>Gn),(0,St.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Pt.h)(Gn=>!Gn),(0,St.U)(()=>{})),this.selectionChange=new v.vpe,this.valueChange=new v.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Vn?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Vn.typeaheadDebounceInterval),this._scrollStrategyFactory=ho,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Si)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(tt){this._placeholder=tt,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(I.kI.required)??!1}set required(tt){this._required=(0,k.Ig)(tt),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(tt){this._multiple=(0,k.Ig)(tt)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(tt){this._disableOptionCentering=(0,k.Ig)(tt)}get compareWith(){return this._compareWith}set compareWith(tt){this._compareWith=tt,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(tt){this._assignValue(tt)&&this._onChange(tt)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(tt){this._typeaheadDebounceInterval=(0,k.su)(tt)}get id(){return this._id}set id(tt){this._id=tt||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new D.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Ht.x)(),(0,Jt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Jt.R)(this._destroy)).subscribe(tt=>{tt.added.forEach(et=>et.select()),tt.removed.forEach(et=>et.deselect())}),this.options.changes.pipe((0,ot.O)(null),(0,Jt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const tt=this._getTriggerAriaLabelledby(),et=this.ngControl;if(tt!==this._triggerAriaLabelledBy){const Ct=this._elementRef.nativeElement;this._triggerAriaLabelledBy=tt,tt?Ct.setAttribute("aria-labelledby",tt):Ct.removeAttribute("aria-labelledby")}et&&(this._previousControl!==et.control&&(void 0!==this._previousControl&&null!==et.disabled&&et.disabled!==this.disabled&&(this.disabled=et.disabled),this._previousControl=et.control),this.updateErrorState())}ngOnChanges(tt){(tt.disabled||tt.userAriaDescribedBy)&&this.stateChanges.next(),tt.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(tt){this._assignValue(tt)}registerOnChange(tt){this._onChange=tt}registerOnTouched(tt){this._onTouched=tt}setDisabledState(tt){this.disabled=tt,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const tt=this._selectionModel.selected.map(et=>et.viewValue);return this._isRtl()&&tt.reverse(),tt.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(tt){this.disabled||(this.panelOpen?this._handleOpenKeydown(tt):this._handleClosedKeydown(tt))}_handleClosedKeydown(tt){const et=tt.keyCode,Ct=et===P.JH||et===P.LH||et===P.oh||et===P.SV,Bt=et===P.K5||et===P.L_,ne=this._keyManager;if(!ne.isTyping()&&Bt&&!(0,P.Vb)(tt)||(this.multiple||tt.altKey)&&Ct)tt.preventDefault(),this.open();else if(!this.multiple){const he=this.selected;ne.onKeydown(tt);const Oe=this.selected;Oe&&he!==Oe&&this._liveAnnouncer.announce(Oe.viewValue,1e4)}}_handleOpenKeydown(tt){const et=this._keyManager,Ct=tt.keyCode,Bt=Ct===P.JH||Ct===P.LH,ne=et.isTyping();if(Bt&&tt.altKey)tt.preventDefault(),this.close();else if(ne||Ct!==P.K5&&Ct!==P.L_||!et.activeItem||(0,P.Vb)(tt))if(!ne&&this._multiple&&Ct===P.A&&tt.ctrlKey){tt.preventDefault();const he=this.options.some(Oe=>!Oe.disabled&&!Oe.selected);this.options.forEach(Oe=>{Oe.disabled||(he?Oe.select():Oe.deselect())})}else{const he=et.activeItemIndex;et.onKeydown(tt),this._multiple&&Bt&&tt.shiftKey&&et.activeItem&&et.activeItemIndex!==he&&et.activeItem._selectViaInteraction()}else tt.preventDefault(),et.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,gt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(tt){if(this._selectionModel.selected.forEach(et=>et.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&tt)Array.isArray(tt),tt.forEach(et=>this._selectOptionByValue(et)),this._sortValues();else{const et=this._selectOptionByValue(tt);et?this._keyManager.updateActiveItem(et):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(tt){const et=this.options.find(Ct=>{if(this._selectionModel.isSelected(Ct))return!1;try{return null!=Ct.value&&this._compareWith(Ct.value,tt)}catch{return!1}});return et&&this._selectionModel.select(et),et}_assignValue(tt){return!!(tt!==this._value||this._multiple&&Array.isArray(tt))&&(this.options&&this._setSelectionByValue(tt),this._value=tt,!0)}_initKeyManager(){this._keyManager=new x.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,Jt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,Jt.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const tt=(0,W.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Jt.R)(tt)).subscribe(et=>{this._onSelect(et.source,et.isUserInput),et.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,W.T)(...this.options.map(et=>et._stateChanges)).pipe((0,Jt.R)(tt)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(tt,et){const Ct=this._selectionModel.isSelected(tt);null!=tt.value||this._multiple?(Ct!==tt.selected&&(tt.selected?this._selectionModel.select(tt):this._selectionModel.deselect(tt)),et&&this._keyManager.setActiveItem(tt),this.multiple&&(this._sortValues(),et&&this.focus())):(tt.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(tt.value)),Ct!==this._selectionModel.isSelected(tt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const tt=this.options.toArray();this._selectionModel.sort((et,Ct)=>this.sortComparator?this.sortComparator(et,Ct,tt):tt.indexOf(et)-tt.indexOf(Ct)),this.stateChanges.next()}}_propagateChanges(tt){let et=null;et=this.multiple?this.selected.map(Ct=>Ct.value):this.selected?this.selected.value:tt,this._value=et,this.valueChange.emit(et),this._onChange(et),this.selectionChange.emit(this._getChangeEvent(et)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(tt){this._elementRef.nativeElement.focus(tt)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const tt=this._parentFormField?.getLabelId();return this.ariaLabelledby?(tt?tt+" ":"")+this.ariaLabelledby:tt}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const tt=this._parentFormField?.getLabelId();let et=(tt?tt+" ":"")+this._valueId;return this.ariaLabelledby&&(et+=" "+this.ariaLabelledby),et}_panelDoneAnimating(tt){this.openedChange.emit(tt)}setDescribedByIds(tt){tt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",tt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return vt.\u0275fac=function(tt){return new(tt||vt)(v.Y36(A.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(T.rD),v.Y36(v.SBq),v.Y36(w.Is,8),v.Y36(I.F,8),v.Y36(I.sg,8),v.Y36(t.G_,8),v.Y36(I.a5,10),v.$8M("tabindex"),v.Y36(Le),v.Y36(x.Kd),v.Y36(hn,8))},vt.\u0275dir=v.lG2({type:vt,viewQuery:function(tt,et){if(1&tt&&(v.Gf(Zt,5),v.Gf(wt,5),v.Gf(d.pI,5)),2&tt){let Ct;v.iGM(Ct=v.CRH())&&(et.trigger=Ct.first),v.iGM(Ct=v.CRH())&&(et.panel=Ct.first),v.iGM(Ct=v.CRH())&&(et._overlayDir=Ct.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[v.qOj,v.TTD]}),vt})(),Ee=(()=>{class vt extends ri{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(tt,et,Ct){const Bt=this._getItemHeight();return Math.min(Math.max(0,Bt*tt-et+Bt/2),Ct)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Jt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,gt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(tt){const et=(0,T.CB)(tt,this.options,this.optionGroups),Ct=this._getItemHeight();this.panel.nativeElement.scrollTop=0===tt&&1===et?0:(0,T.jH)((tt+et)*Ct,Ct,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(tt){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(tt)}_getChangeEvent(tt){return new bn(this,tt)}_calculateOverlayOffsetX(){const tt=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),et=this._viewportRuler.getViewportSize(),Ct=this._isRtl(),Bt=this.multiple?56:32;let ne;if(this.multiple)ne=40;else if(this.disableOptionCentering)ne=16;else{let yn=this._selectionModel.selected[0]||this.options.first;ne=yn&&yn.group?32:16}Ct||(ne*=-1);const he=0-(tt.left+ne-(Ct?Bt:0)),Oe=tt.right+ne-et.width+(Ct?0:Bt);he>0?ne+=he+8:Oe>0&&(ne-=Oe+8),this._overlayDir.offsetX=Math.round(ne),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(tt,et,Ct){const Bt=this._getItemHeight(),ne=(Bt-this._triggerRect.height)/2,he=Math.floor(256/Bt);let Oe;return this.disableOptionCentering?0:(Oe=0===this._scrollTop?tt*Bt:this._scrollTop===Ct?(tt-(this._getItemCount()-he))*Bt+(Bt-(this._getItemCount()*Bt-256)%Bt):et-Bt/2,Math.round(-1*Oe-ne))}_checkOverlayWithinViewport(tt){const et=this._getItemHeight(),Ct=this._viewportRuler.getViewportSize(),Bt=this._triggerRect.top-8,ne=Ct.height-this._triggerRect.bottom-8,he=Math.abs(this._offsetY),yn=Math.min(this._getItemCount()*et,256)-he-this._triggerRect.height;yn>ne?this._adjustPanelUp(yn,ne):he>Bt?this._adjustPanelDown(he,Bt,tt):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(tt,et){const Ct=Math.round(tt-et);this._scrollTop-=Ct,this._offsetY-=Ct,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(tt,et,Ct){const Bt=Math.round(tt-et);if(this._scrollTop+=Bt,this._offsetY+=Bt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Ct)return this._scrollTop=Ct,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const tt=this._getItemHeight(),et=this._getItemCount(),Ct=Math.min(et*tt,256),ne=et*tt-Ct;let he;he=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),he+=(0,T.CB)(he,this.options,this.optionGroups);const Oe=Ct/2;this._scrollTop=this._calculateOverlayScroll(he,Oe,ne),this._offsetY=this._calculateOverlayOffsetY(he,Oe,ne),this._checkOverlayWithinViewport(ne)}_getOriginBasedOnOption(){const tt=this._getItemHeight(),et=(tt-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-et+tt/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return vt.\u0275fac=function(){let xt;return function(et){return(xt||(xt=v.n5z(vt)))(et||vt)}}(),vt.\u0275cmp=v.Xpm({type:vt,selectors:[["mat-select"]],contentQueries:function(tt,et,Ct){if(1&tt&&(v.Suo(Ct,dn,5),v.Suo(Ct,T.ey,5),v.Suo(Ct,T.K7,5)),2&tt){let Bt;v.iGM(Bt=v.CRH())&&(et.customTrigger=Bt.first),v.iGM(Bt=v.CRH())&&(et.options=Bt),v.iGM(Bt=v.CRH())&&(et.optionGroups=Bt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(tt,et){1&tt&&v.NdJ("keydown",function(Bt){return et._handleKeydown(Bt)})("focus",function(){return et._onFocus()})("blur",function(){return et._onBlur()}),2&tt&&(v.uIk("id",et.id)("tabindex",et.tabIndex)("aria-controls",et.panelOpen?et.id+"-panel":null)("aria-expanded",et.panelOpen)("aria-label",et.ariaLabel||null)("aria-required",et.required.toString())("aria-disabled",et.disabled.toString())("aria-invalid",et.errorState)("aria-activedescendant",et._getAriaActiveDescendant()),v.ekj("mat-select-disabled",et.disabled)("mat-select-invalid",et.errorState)("mat-select-required",et.required)("mat-select-empty",et.empty)("mat-select-multiple",et.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v._Bn([{provide:t.Eo,useExisting:vt},{provide:T.HF,useExisting:vt}]),v.qOj],ngContentSelectors:Ce,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(tt,et){if(1&tt&&(v.F$t(Wt),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return et.toggle()}),v.TgZ(3,"div",2),v.YNc(4,_t,2,1,"span",3),v.YNc(5,qt,3,2,"span",4),v.qZA(),v.TgZ(6,"div",5),v._UZ(7,"div",6),v.qZA()(),v.YNc(8,le,4,14,"ng-template",7),v.NdJ("backdropClick",function(){return et.close()})("attach",function(){return et._onAttached()})("detach",function(){return et.close()})),2&tt){const Ct=v.MAs(1);v.uIk("aria-owns",et.panelOpen?et.id+"-panel":null),v.xp6(3),v.Q6J("ngSwitch",et.empty),v.uIk("id",et._valueId),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngSwitchCase",!1),v.xp6(3),v.Q6J("cdkConnectedOverlayPanelClass",et._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",et._scrollStrategy)("cdkConnectedOverlayOrigin",Ct)("cdkConnectedOverlayOpen",et.panelOpen)("cdkConnectedOverlayPositions",et._positions)("cdkConnectedOverlayMinWidth",null==et._triggerRect?null:et._triggerRect.width)("cdkConnectedOverlayOffsetY",et._offsetY)}},dependencies:[p.mk,p.RF,p.n9,p.ED,d.pI,d.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Ae.transformPanelWrap,Ae.transformPanel]},changeDetection:0}),vt})(),Ft=(()=>{class vt{}return vt.\u0275fac=function(tt){return new(tt||vt)},vt.\u0275mod=v.oAB({type:vt}),vt.\u0275inj=v.cJS({providers:[we],imports:[p.ez,d.U8,T.Ng,T.BQ,A.ZD,t.lN,T.Ng,T.BQ]}),vt})()},23267:(rt,it,b)=>{"use strict";b.d(it,{JX:()=>Kt,Rh:()=>ue,SJ:()=>Le,TM:()=>ce});var d=b(67376),p=b(36895),v=b(94650),T=b(3238),t=b(12687),A=b(40445),x=b(21281),w=b(29521),k=b(83353),D=b(8929),P=b(23753),I=b(36787),z=b(92198),G=b(24850),W=b(77604),ot=b(7625),ct=b(75778),gt=b(72986),Pt=b(1059),St=b(80013),Ht=b(37340);const Jt=["*"],at=["content"];function Zt(on,hn){if(1&on){const we=v.EpF();v.TgZ(0,"div",2),v.NdJ("click",function(){v.CHM(we);const Ze=v.oxw();return v.KtG(Ze._onBackdropClicked())}),v.qZA()}if(2&on){const we=v.oxw();v.ekj("mat-drawer-shown",we._isShowingBackdrop())}}function wt(on,hn){1&on&&(v.TgZ(0,"mat-drawer-content"),v.Hsn(1,2),v.qZA())}const _t=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Nt=["mat-drawer","mat-drawer-content","*"];function Qt(on,hn){if(1&on){const we=v.EpF();v.TgZ(0,"div",2),v.NdJ("click",function(){v.CHM(we);const Ze=v.oxw();return v.KtG(Ze._onBackdropClicked())}),v.qZA()}if(2&on){const we=v.oxw();v.ekj("mat-drawer-shown",we._isShowingBackdrop())}}function qt(on,hn){1&on&&(v.TgZ(0,"mat-sidenav-content"),v.Hsn(1,2),v.qZA())}const le=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Wt=["mat-sidenav","mat-sidenav-content","*"],Ae={transformDrawer:(0,Ht.X$)("transform",[(0,Ht.SB)("open, open-instant",(0,Ht.oB)({transform:"none",visibility:"visible"})),(0,Ht.SB)("void",(0,Ht.oB)({"box-shadow":"none",visibility:"hidden"})),(0,Ht.eR)("void => open-instant",(0,Ht.jt)("0ms")),(0,Ht.eR)("void <=> open, open-instant => void",(0,Ht.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},ze=new v.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function ie(){return!1}}),Xe=new v.OlP("MAT_DRAWER_CONTAINER");let Te=(()=>{class on extends d.PQ{constructor(we,bn,Ze,dn,kn){super(Ze,dn,kn),this._changeDetectorRef=we,this._container=bn}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return on.\u0275fac=function(we){return new(we||on)(v.Y36(v.sBO),v.Y36((0,v.Gpc)(()=>ee)),v.Y36(v.SBq),v.Y36(d.mF),v.Y36(v.R0b))},on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(we,bn){2&we&&v.Udp("margin-left",bn._container._contentMargins.left,"px")("margin-right",bn._container._contentMargins.right,"px")},features:[v._Bn([{provide:d.PQ,useExisting:on}]),v.qOj],ngContentSelectors:Jt,decls:1,vars:0,template:function(we,bn){1&we&&(v.F$t(),v.Hsn(0))},encapsulation:2,changeDetection:0}),on})(),re=(()=>{class on{constructor(we,bn,Ze,dn,kn,ri,Ee,Ft){this._elementRef=we,this._focusTrapFactory=bn,this._focusMonitor=Ze,this._platform=dn,this._ngZone=kn,this._interactivityChecker=ri,this._doc=Ee,this._container=Ft,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new D.xQ,this._animationEnd=new D.xQ,this._animationState="void",this.openedChange=new v.vpe(!0),this._openedStream=this.openedChange.pipe((0,z.h)(vt=>vt),(0,G.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,z.h)(vt=>vt.fromState!==vt.toState&&0===vt.toState.indexOf("open")),(0,W.h)(void 0)),this._closedStream=this.openedChange.pipe((0,z.h)(vt=>!vt),(0,G.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,z.h)(vt=>vt.fromState!==vt.toState&&"void"===vt.toState),(0,W.h)(void 0)),this._destroyed=new D.xQ,this.onPositionChanged=new v.vpe,this._modeChanged=new D.xQ,this.openedChange.subscribe(vt=>{vt?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,P.R)(this._elementRef.nativeElement,"keydown").pipe((0,z.h)(vt=>vt.keyCode===w.hY&&!this.disableClose&&!(0,w.Vb)(vt)),(0,ot.R)(this._destroyed)).subscribe(vt=>this._ngZone.run(()=>{this.close(),vt.stopPropagation(),vt.preventDefault()}))}),this._animationEnd.pipe((0,ct.x)((vt,xt)=>vt.fromState===xt.fromState&&vt.toState===xt.toState)).subscribe(vt=>{const{fromState:xt,toState:tt}=vt;(0===tt.indexOf("open")&&"void"===xt||"void"===tt&&0===xt.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(we){(we="end"===we?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(we),this._position=we,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(we){this._mode=we,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(we){this._disableClose=(0,x.Ig)(we)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(we){("true"===we||"false"===we||null==we)&&(we=(0,x.Ig)(we)),this._autoFocus=we}get opened(){return this._opened}set opened(we){this.toggle((0,x.Ig)(we))}_forceFocus(we,bn){this._interactivityChecker.isFocusable(we)||(we.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ze=()=>{we.removeEventListener("blur",Ze),we.removeEventListener("mousedown",Ze),we.removeAttribute("tabindex")};we.addEventListener("blur",Ze),we.addEventListener("mousedown",Ze)})),we.focus(bn)}_focusByCssSelector(we,bn){let Ze=this._elementRef.nativeElement.querySelector(we);Ze&&this._forceFocus(Ze,bn)}_takeFocus(){if(!this._focusTrap)return;const we=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(bn=>{!bn&&"function"==typeof this._elementRef.nativeElement.focus&&we.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(we){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,we):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const we=this._doc.activeElement;return!!we&&this._elementRef.nativeElement.contains(we)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(we){return this.toggle(!0,we)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(we=!this.opened,bn){we&&bn&&(this._openedVia=bn);const Ze=this._setOpen(we,!we&&this._isFocusWithinDrawer(),this._openedVia||"program");return we||(this._openedVia=null),Ze}_setOpen(we,bn,Ze){return this._opened=we,we?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",bn&&this._restoreFocus(Ze)),this._updateFocusTrapState(),new Promise(dn=>{this.openedChange.pipe((0,gt.q)(1)).subscribe(kn=>dn(kn?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(we){const bn=this._elementRef.nativeElement,Ze=bn.parentNode;"end"===we?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ze.insertBefore(this._anchor,bn)),Ze.appendChild(bn)):this._anchor&&this._anchor.parentNode.insertBefore(bn,this._anchor)}}return on.\u0275fac=function(we){return new(we||on)(v.Y36(v.SBq),v.Y36(t.qV),v.Y36(t.tE),v.Y36(k.t4),v.Y36(v.R0b),v.Y36(t.ic),v.Y36(p.K0,8),v.Y36(Xe,8))},on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-drawer"]],viewQuery:function(we,bn){if(1&we&&v.Gf(at,5),2&we){let Ze;v.iGM(Ze=v.CRH())&&(bn._content=Ze.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(we,bn){1&we&&v.WFA("@transform.start",function(dn){return bn._animationStarted.next(dn)})("@transform.done",function(dn){return bn._animationEnd.next(dn)}),2&we&&(v.uIk("align",null),v.d8E("@transform",bn._animationState),v.ekj("mat-drawer-end","end"===bn.position)("mat-drawer-over","over"===bn.mode)("mat-drawer-push","push"===bn.mode)("mat-drawer-side","side"===bn.mode)("mat-drawer-opened",bn.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Jt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(we,bn){1&we&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[Ae.transformDrawer]},changeDetection:0}),on})(),ee=(()=>{class on{constructor(we,bn,Ze,dn,kn,ri=!1,Ee){this._dir=we,this._element=bn,this._ngZone=Ze,this._changeDetectorRef=dn,this._animationMode=Ee,this._drawers=new v.n_E,this.backdropClick=new v.vpe,this._destroyed=new D.xQ,this._doCheckSubject=new D.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new D.xQ,we&&we.change.pipe((0,ot.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),kn.change().pipe((0,ot.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=ri}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(we){this._autosize=(0,x.Ig)(we)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(we){this._backdropOverride=null==we?null:(0,x.Ig)(we)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Pt.O)(this._allDrawers),(0,ot.R)(this._destroyed)).subscribe(we=>{this._drawers.reset(we.filter(bn=>!bn._container||bn._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Pt.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(we=>{this._watchDrawerToggle(we),this._watchDrawerPosition(we),this._watchDrawerMode(we)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,St.b)(10),(0,ot.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(we=>we.open())}close(){this._drawers.forEach(we=>we.close())}updateContentMargins(){let we=0,bn=0;if(this._left&&this._left.opened)if("side"==this._left.mode)we+=this._left._getWidth();else if("push"==this._left.mode){const Ze=this._left._getWidth();we+=Ze,bn-=Ze}if(this._right&&this._right.opened)if("side"==this._right.mode)bn+=this._right._getWidth();else if("push"==this._right.mode){const Ze=this._right._getWidth();bn+=Ze,we-=Ze}we=we||null,bn=bn||null,(we!==this._contentMargins.left||bn!==this._contentMargins.right)&&(this._contentMargins={left:we,right:bn},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(we){we._animationStarted.pipe((0,z.h)(bn=>bn.fromState!==bn.toState),(0,ot.R)(this._drawers.changes)).subscribe(bn=>{"open-instant"!==bn.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==we.mode&&we.openedChange.pipe((0,ot.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(we.opened))}_watchDrawerPosition(we){!we||we.onPositionChanged.pipe((0,ot.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,gt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(we){we&&we._modeChanged.pipe((0,ot.R)((0,I.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(we){const bn=this._element.nativeElement.classList,Ze="mat-drawer-container-has-open";we?bn.add(Ze):bn.remove(Ze)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(we=>{"end"==we.position?this._end=we:this._start=we}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(we=>we&&!we.disableClose&&this._canHaveBackdrop(we)).forEach(we=>we._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(we){return"side"!==we.mode||!!this._backdropOverride}_isDrawerOpen(we){return null!=we&&we.opened}}return on.\u0275fac=function(we){return new(we||on)(v.Y36(A.Is,8),v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(v.sBO),v.Y36(d.rL),v.Y36(ze),v.Y36(v.QbO,8))},on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-drawer-container"]],contentQueries:function(we,bn,Ze){if(1&we&&(v.Suo(Ze,Te,5),v.Suo(Ze,re,5)),2&we){let dn;v.iGM(dn=v.CRH())&&(bn._content=dn.first),v.iGM(dn=v.CRH())&&(bn._allDrawers=dn)}},viewQuery:function(we,bn){if(1&we&&v.Gf(Te,5),2&we){let Ze;v.iGM(Ze=v.CRH())&&(bn._userContent=Ze.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(we,bn){2&we&&v.ekj("mat-drawer-container-explicit-backdrop",bn._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[v._Bn([{provide:Xe,useExisting:on}])],ngContentSelectors:Nt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(we,bn){1&we&&(v.F$t(_t),v.YNc(0,Zt,1,2,"div",0),v.Hsn(1),v.Hsn(2,1),v.YNc(3,wt,2,0,"mat-drawer-content",1)),2&we&&(v.Q6J("ngIf",bn.hasBackdrop),v.xp6(3),v.Q6J("ngIf",!bn._content))},dependencies:[p.O5,Te],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),on})(),ue=(()=>{class on extends Te{constructor(we,bn,Ze,dn,kn){super(we,bn,Ze,dn,kn)}}return on.\u0275fac=function(we){return new(we||on)(v.Y36(v.sBO),v.Y36((0,v.Gpc)(()=>ce)),v.Y36(v.SBq),v.Y36(d.mF),v.Y36(v.R0b))},on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(we,bn){2&we&&v.Udp("margin-left",bn._container._contentMargins.left,"px")("margin-right",bn._container._contentMargins.right,"px")},features:[v._Bn([{provide:d.PQ,useExisting:on}]),v.qOj],ngContentSelectors:Jt,decls:1,vars:0,template:function(we,bn){1&we&&(v.F$t(),v.Hsn(0))},encapsulation:2,changeDetection:0}),on})(),Kt=(()=>{class on extends re{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(we){this._fixedInViewport=(0,x.Ig)(we)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(we){this._fixedTopGap=(0,x.su)(we)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(we){this._fixedBottomGap=(0,x.su)(we)}}return on.\u0275fac=function(){let hn;return function(bn){return(hn||(hn=v.n5z(on)))(bn||on)}}(),on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(we,bn){2&we&&(v.uIk("align",null),v.Udp("top",bn.fixedInViewport?bn.fixedTopGap:null,"px")("bottom",bn.fixedInViewport?bn.fixedBottomGap:null,"px"),v.ekj("mat-drawer-end","end"===bn.position)("mat-drawer-over","over"===bn.mode)("mat-drawer-push","push"===bn.mode)("mat-drawer-side","side"===bn.mode)("mat-drawer-opened",bn.opened)("mat-sidenav-fixed",bn.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[v.qOj],ngContentSelectors:Jt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(we,bn){1&we&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[Ae.transformDrawer]},changeDetection:0}),on})(),ce=(()=>{class on extends ee{}return on.\u0275fac=function(){let hn;return function(bn){return(hn||(hn=v.n5z(on)))(bn||on)}}(),on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-sidenav-container"]],contentQueries:function(we,bn,Ze){if(1&we&&(v.Suo(Ze,ue,5),v.Suo(Ze,Kt,5)),2&we){let dn;v.iGM(dn=v.CRH())&&(bn._content=dn.first),v.iGM(dn=v.CRH())&&(bn._allDrawers=dn)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(we,bn){2&we&&v.ekj("mat-drawer-container-explicit-backdrop",bn._backdropOverride)},exportAs:["matSidenavContainer"],features:[v._Bn([{provide:Xe,useExisting:on}]),v.qOj],ngContentSelectors:Wt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(we,bn){1&we&&(v.F$t(le),v.YNc(0,Qt,1,2,"div",0),v.Hsn(1),v.Hsn(2,1),v.YNc(3,qt,2,0,"mat-sidenav-content",1)),2&we&&(v.Q6J("ngIf",bn.hasBackdrop),v.xp6(3),v.Q6J("ngIf",!bn._content))},dependencies:[p.O5,ue],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),on})(),Le=(()=>{class on{}return on.\u0275fac=function(we){return new(we||on)},on.\u0275mod=v.oAB({type:on}),on.\u0275inj=v.cJS({imports:[p.ez,T.BQ,d.ZD,d.ZD,T.BQ]}),on})()},90455:(rt,it,b)=>{"use strict";b.d(it,{Rr:()=>ot,rP:()=>St});var d=b(49643),p=b(94650),v=b(3238),T=b(12687),t=b(21281),A=b(24006);const x=["input"],w=function(Ht){return{enterDuration:Ht}},k=["*"],D=new p.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let P=0;const I={provide:A.JU,useExisting:(0,p.Gpc)(()=>ot),multi:!0};class z{constructor(Jt,at){this.source=Jt,this.checked=at}}const G=(0,v.sb)((0,v.pj)((0,v.Kr)((0,v.Id)(class{constructor(Ht){this._elementRef=Ht}}))));let W=(()=>{class Ht extends G{constructor(at,Zt,wt,_t,Nt,Qt,qt){super(at),this._focusMonitor=Zt,this._changeDetectorRef=wt,this.defaults=Nt,this._onChange=le=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new p.vpe,this.toggleChange=new p.vpe,this.tabIndex=parseInt(_t)||0,this.color=this.defaultColor=Nt.color||"accent",this._noopAnimations="NoopAnimations"===Qt,this.id=this._uniqueId=`${qt}${++P}`}get required(){return this._required}set required(at){this._required=(0,t.Ig)(at)}get checked(){return this._checked}set checked(at){this._checked=(0,t.Ig)(at),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(at=>{"keyboard"===at||"program"===at?this._focused=!0:at||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(at){this.checked=!!at}registerOnChange(at){this._onChange=at}registerOnTouched(at){this._onTouched=at}setDisabledState(at){this.disabled=at,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return Ht.\u0275fac=function(at){p.$Z()},Ht.\u0275dir=p.lG2({type:Ht,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[p.qOj]}),Ht})(),ot=(()=>{class Ht extends W{constructor(at,Zt,wt,_t,Nt,Qt){super(at,Zt,wt,_t,Nt,Qt,"mat-slide-toggle-")}_createChangeEvent(at){return new z(this,at)}_onChangeEvent(at){at.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(at){at.stopPropagation()}focus(at,Zt){Zt?this._focusMonitor.focusVia(this._inputElement,Zt,at):this._inputElement.nativeElement.focus(at)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return Ht.\u0275fac=function(at){return new(at||Ht)(p.Y36(p.SBq),p.Y36(T.tE),p.Y36(p.sBO),p.$8M("tabindex"),p.Y36(D),p.Y36(p.QbO,8))},Ht.\u0275cmp=p.Xpm({type:Ht,selectors:[["mat-slide-toggle"]],viewQuery:function(at,Zt){if(1&at&&p.Gf(x,5),2&at){let wt;p.iGM(wt=p.CRH())&&(Zt._inputElement=wt.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(at,Zt){2&at&&(p.Ikx("id",Zt.id),p.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),p.ekj("mat-checked",Zt.checked)("mat-disabled",Zt.disabled)("mat-slide-toggle-label-before","before"==Zt.labelPosition)("_mat-animation-noopable",Zt._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[p._Bn([I]),p.qOj],ngContentSelectors:k,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(at,Zt){if(1&at&&(p.F$t(),p.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),p.NdJ("change",function(_t){return Zt._onChangeEvent(_t)})("click",function(_t){return Zt._onInputClick(_t)}),p.qZA(),p.TgZ(5,"span",5),p._UZ(6,"span",6),p.TgZ(7,"span",7),p._UZ(8,"span",8),p.qZA()()(),p.TgZ(9,"span",9,10),p.NdJ("cdkObserveContent",function(){return Zt._onLabelTextChange()}),p.TgZ(11,"span",11),p._uU(12,"\xa0"),p.qZA(),p.Hsn(13),p.qZA()()),2&at){const wt=p.MAs(1),_t=p.MAs(10);p.uIk("for",Zt.inputId),p.xp6(2),p.ekj("mat-slide-toggle-bar-no-side-margin",!_t.textContent||!_t.textContent.trim()),p.xp6(1),p.Q6J("id",Zt.inputId)("required",Zt.required)("tabIndex",Zt.tabIndex)("checked",Zt.checked)("disabled",Zt.disabled),p.uIk("name",Zt.name)("aria-checked",Zt.checked)("aria-label",Zt.ariaLabel)("aria-labelledby",Zt.ariaLabelledby)("aria-describedby",Zt.ariaDescribedby),p.xp6(4),p.Q6J("matRippleTrigger",wt)("matRippleDisabled",Zt.disableRipple||Zt.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",p.VKq(18,w,Zt._noopAnimations?0:150))}},dependencies:[v.wG,d.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),Ht})(),Pt=(()=>{class Ht{}return Ht.\u0275fac=function(at){return new(at||Ht)},Ht.\u0275mod=p.oAB({type:Ht}),Ht.\u0275inj=p.cJS({}),Ht})(),St=(()=>{class Ht{}return Ht.\u0275fac=function(at){return new(at||Ht)},Ht.\u0275mod=p.oAB({type:Ht}),Ht.\u0275inj=p.cJS({imports:[Pt,v.si,v.BQ,d.Q8,Pt,v.BQ]}),Ht})()},17009:(rt,it,b)=>{"use strict";b.d(it,{ZX:()=>Zt,ux:()=>Qt});var d=b(98184),p=b(84080),v=b(36895),T=b(94650),t=b(3238),A=b(4859),x=b(8929),w=b(83353),k=b(72986),D=b(7625),P=b(37340),I=b(12687),z=b(62289);function G(qt,le){if(1&qt){const Wt=T.EpF();T.TgZ(0,"div",2)(1,"button",3),T.NdJ("click",function(){T.CHM(Wt);const Ae=T.oxw();return T.KtG(Ae.action())}),T._uU(2),T.qZA()()}if(2&qt){const Wt=T.oxw();T.xp6(2),T.Oqu(Wt.data.action)}}function W(qt,le){}const ot=new T.OlP("MatSnackBarData");class ct{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const gt=Math.pow(2,31)-1;class Pt{constructor(le,Wt){this._overlayRef=Wt,this._afterDismissed=new x.xQ,this._afterOpened=new x.xQ,this._onAction=new x.xQ,this._dismissedByAction=!1,this.containerInstance=le,le._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(le){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(le,gt))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let St=(()=>{class qt{constructor(Wt,Ce){this.snackBarRef=Wt,this.data=Ce}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return qt.\u0275fac=function(Wt){return new(Wt||qt)(T.Y36(Pt),T.Y36(ot))},qt.\u0275cmp=T.Xpm({type:qt,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(Wt,Ce){1&Wt&&(T.TgZ(0,"span",0),T._uU(1),T.qZA(),T.YNc(2,G,3,1,"div",1)),2&Wt&&(T.xp6(1),T.Oqu(Ce.data.message),T.xp6(1),T.Q6J("ngIf",Ce.hasAction))},dependencies:[v.O5,A.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),qt})();const Ht={snackBarState:(0,P.X$)("state",[(0,P.SB)("void, hidden",(0,P.oB)({transform:"scale(0.8)",opacity:0})),(0,P.SB)("visible",(0,P.oB)({transform:"scale(1)",opacity:1})),(0,P.eR)("* => visible",(0,P.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,P.eR)("* => void, * => hidden",(0,P.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,P.oB)({opacity:0})))])};let Jt=(()=>{class qt extends p.en{constructor(Wt,Ce,Ae,Ne,ze){super(),this._ngZone=Wt,this._elementRef=Ce,this._changeDetectorRef=Ae,this._platform=Ne,this.snackBarConfig=ze,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new x.xQ,this._onExit=new x.xQ,this._onEnter=new x.xQ,this._animationState="void",this.attachDomPortal=Xe=>{this._assertNotAttached();const ie=this._portalOutlet.attachDomPortal(Xe);return this._afterPortalAttached(),ie},this._live="assertive"!==ze.politeness||ze.announcementMessage?"off"===ze.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Wt){this._assertNotAttached();const Ce=this._portalOutlet.attachComponentPortal(Wt);return this._afterPortalAttached(),Ce}attachTemplatePortal(Wt){this._assertNotAttached();const Ce=this._portalOutlet.attachTemplatePortal(Wt);return this._afterPortalAttached(),Ce}onAnimationEnd(Wt){const{fromState:Ce,toState:Ae}=Wt;if(("void"===Ae&&"void"!==Ce||"hidden"===Ae)&&this._completeExit(),"visible"===Ae){const Ne=this._onEnter;this._ngZone.run(()=>{Ne.next(),Ne.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,k.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const Wt=this._elementRef.nativeElement,Ce=this.snackBarConfig.panelClass;Ce&&(Array.isArray(Ce)?Ce.forEach(Ae=>Wt.classList.add(Ae)):Wt.classList.add(Ce))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Wt=this._elementRef.nativeElement.querySelector("[aria-hidden]"),Ce=this._elementRef.nativeElement.querySelector("[aria-live]");if(Wt&&Ce){let Ae=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Wt.contains(document.activeElement)&&(Ae=document.activeElement),Wt.removeAttribute("aria-hidden"),Ce.appendChild(Wt),Ae?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return qt.\u0275fac=function(Wt){return new(Wt||qt)(T.Y36(T.R0b),T.Y36(T.SBq),T.Y36(T.sBO),T.Y36(w.t4),T.Y36(ct))},qt.\u0275dir=T.lG2({type:qt,viewQuery:function(Wt,Ce){if(1&Wt&&T.Gf(p.Pl,7),2&Wt){let Ae;T.iGM(Ae=T.CRH())&&(Ce._portalOutlet=Ae.first)}},features:[T.qOj]}),qt})(),at=(()=>{class qt extends Jt{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return qt.\u0275fac=function(){let le;return function(Ce){return(le||(le=T.n5z(qt)))(Ce||qt)}}(),qt.\u0275cmp=T.Xpm({type:qt,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Wt,Ce){1&Wt&&T.WFA("@state.done",function(Ne){return Ce.onAnimationEnd(Ne)}),2&Wt&&T.d8E("@state",Ce._animationState)},features:[T.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Wt,Ce){1&Wt&&(T.TgZ(0,"div",0),T.YNc(1,W,0,0,"ng-template",1),T.qZA(),T._UZ(2,"div")),2&Wt&&(T.xp6(2),T.uIk("aria-live",Ce._live)("role",Ce._role))},dependencies:[p.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[Ht.snackBarState]}}),qt})(),Zt=(()=>{class qt{}return qt.\u0275fac=function(Wt){return new(Wt||qt)},qt.\u0275mod=T.oAB({type:qt}),qt.\u0275inj=T.cJS({imports:[d.U8,p.eL,v.ez,A.ot,t.BQ,t.BQ]}),qt})();const wt=new T.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function _t(){return new ct}});let Nt=(()=>{class qt{constructor(Wt,Ce,Ae,Ne,ze,Xe){this._overlay=Wt,this._live=Ce,this._injector=Ae,this._breakpointObserver=Ne,this._parentSnackBar=ze,this._defaultConfig=Xe,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const Wt=this._parentSnackBar;return Wt?Wt._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(Wt){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=Wt:this._snackBarRefAtThisLevel=Wt}openFromComponent(Wt,Ce){return this._attach(Wt,Ce)}openFromTemplate(Wt,Ce){return this._attach(Wt,Ce)}open(Wt,Ce="",Ae){const Ne={...this._defaultConfig,...Ae};return Ne.data={message:Wt,action:Ce},Ne.announcementMessage===Wt&&(Ne.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Ne)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Wt,Ce){const Ne=T.zs3.create({parent:Ce&&Ce.viewContainerRef&&Ce.viewContainerRef.injector||this._injector,providers:[{provide:ct,useValue:Ce}]}),ze=new p.C5(this.snackBarContainerComponent,Ce.viewContainerRef,Ne),Xe=Wt.attach(ze);return Xe.instance.snackBarConfig=Ce,Xe.instance}_attach(Wt,Ce){const Ae={...new ct,...this._defaultConfig,...Ce},Ne=this._createOverlay(Ae),ze=this._attachSnackBarContainer(Ne,Ae),Xe=new Pt(ze,Ne);if(Wt instanceof T.Rgc){const ie=new p.UE(Wt,null,{$implicit:Ae.data,snackBarRef:Xe});Xe.instance=ze.attachTemplatePortal(ie)}else{const ie=this._createInjector(Ae,Xe),Te=new p.C5(Wt,void 0,ie),re=ze.attachComponentPortal(Te);Xe.instance=re.instance}return this._breakpointObserver.observe(z.u3.HandsetPortrait).pipe((0,D.R)(Ne.detachments())).subscribe(ie=>{Ne.overlayElement.classList.toggle(this.handsetCssClass,ie.matches)}),Ae.announcementMessage&&ze._onAnnounce.subscribe(()=>{this._live.announce(Ae.announcementMessage,Ae.politeness)}),this._animateSnackBar(Xe,Ae),this._openedSnackBarRef=Xe,this._openedSnackBarRef}_animateSnackBar(Wt,Ce){Wt.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Wt&&(this._openedSnackBarRef=null),Ce.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Wt.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Wt.containerInstance.enter(),Ce.duration&&Ce.duration>0&&Wt.afterOpened().subscribe(()=>Wt._dismissAfter(Ce.duration))}_createOverlay(Wt){const Ce=new d.X_;Ce.direction=Wt.direction;let Ae=this._overlay.position().global();const Ne="rtl"===Wt.direction,ze="left"===Wt.horizontalPosition||"start"===Wt.horizontalPosition&&!Ne||"end"===Wt.horizontalPosition&&Ne,Xe=!ze&&"center"!==Wt.horizontalPosition;return ze?Ae.left("0"):Xe?Ae.right("0"):Ae.centerHorizontally(),"top"===Wt.verticalPosition?Ae.top("0"):Ae.bottom("0"),Ce.positionStrategy=Ae,this._overlay.create(Ce)}_createInjector(Wt,Ce){return T.zs3.create({parent:Wt&&Wt.viewContainerRef&&Wt.viewContainerRef.injector||this._injector,providers:[{provide:Pt,useValue:Ce},{provide:ot,useValue:Wt.data}]})}}return qt.\u0275fac=function(Wt){return new(Wt||qt)(T.LFG(d.aV),T.LFG(I.Kd),T.LFG(T.zs3),T.LFG(z.Yg),T.LFG(qt,12),T.LFG(wt))},qt.\u0275prov=T.Yz7({token:qt,factory:qt.\u0275fac}),qt})(),Qt=(()=>{class qt extends Nt{constructor(Wt,Ce,Ae,Ne,ze,Xe){super(Wt,Ce,Ae,Ne,ze,Xe),this.simpleSnackBarComponent=St,this.snackBarContainerComponent=at,this.handsetCssClass="mat-snack-bar-handset"}}return qt.\u0275fac=function(Wt){return new(Wt||qt)(T.LFG(d.aV),T.LFG(I.Kd),T.LFG(T.zs3),T.LFG(z.Yg),T.LFG(qt,12),T.LFG(wt))},qt.\u0275prov=T.Yz7({token:qt,factory:qt.\u0275fac,providedIn:Zt}),qt})()},96308:(rt,it,b)=>{"use strict";b.d(it,{JX:()=>Qt,YE:()=>Pt,nU:()=>Nt});var d=b(94650),p=b(12687),v=b(21281),T=b(29521),t=b(3238),A=b(8929),x=b(36787),w=b(37340),k=b(36895);const D=["mat-sort-header",""];function P(qt,le){if(1&qt){const Wt=d.EpF();d.TgZ(0,"div",3),d.NdJ("@arrowPosition.start",function(){d.CHM(Wt);const Ae=d.oxw();return d.KtG(Ae._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){d.CHM(Wt);const Ae=d.oxw();return d.KtG(Ae._disableViewStateAnimation=!1)}),d._UZ(1,"div",4),d.TgZ(2,"div",5),d._UZ(3,"div",6)(4,"div",7)(5,"div",8),d.qZA()()}if(2&qt){const Wt=d.oxw();d.Q6J("@arrowOpacity",Wt._getArrowViewState())("@arrowPosition",Wt._getArrowViewState())("@allowChildren",Wt._getArrowDirectionState()),d.xp6(2),d.Q6J("@indicator",Wt._getArrowDirectionState()),d.xp6(1),d.Q6J("@leftPointer",Wt._getArrowDirectionState()),d.xp6(1),d.Q6J("@rightPointer",Wt._getArrowDirectionState())}}const I=["*"],ct=new d.OlP("MAT_SORT_DEFAULT_OPTIONS"),gt=(0,t.dB)((0,t.Id)(class{}));let Pt=(()=>{class qt extends gt{constructor(Wt){super(),this._defaultOptions=Wt,this.sortables=new Map,this._stateChanges=new A.xQ,this.start="asc",this._direction="",this.sortChange=new d.vpe}get direction(){return this._direction}set direction(Wt){this._direction=Wt}get disableClear(){return this._disableClear}set disableClear(Wt){this._disableClear=(0,v.Ig)(Wt)}register(Wt){this.sortables.set(Wt.id,Wt)}deregister(Wt){this.sortables.delete(Wt.id)}sort(Wt){this.active!=Wt.id?(this.active=Wt.id,this.direction=Wt.start?Wt.start:this.start):this.direction=this.getNextSortDirection(Wt),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(Wt){if(!Wt)return"";let Ae=function St(qt,le){let Wt=["asc","desc"];return"desc"==qt&&Wt.reverse(),le||Wt.push(""),Wt}(Wt.start||this.start,Wt?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Ne=Ae.indexOf(this.direction)+1;return Ne>=Ae.length&&(Ne=0),Ae[Ne]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return qt.\u0275fac=function(Wt){return new(Wt||qt)(d.Y36(ct,8))},qt.\u0275dir=d.lG2({type:qt,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[d.qOj,d.TTD]}),qt})();const Ht=t.mZ.ENTERING+" "+t.yN.STANDARD_CURVE,Jt={indicator:(0,w.X$)("indicator",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"translateY(0px)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"translateY(10px)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(Ht))]),leftPointer:(0,w.X$)("leftPointer",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"rotate(-45deg)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"rotate(45deg)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(Ht))]),rightPointer:(0,w.X$)("rightPointer",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"rotate(45deg)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"rotate(-45deg)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(Ht))]),arrowOpacity:(0,w.X$)("arrowOpacity",[(0,w.SB)("desc-to-active, asc-to-active, active",(0,w.oB)({opacity:1})),(0,w.SB)("desc-to-hint, asc-to-hint, hint",(0,w.oB)({opacity:.54})),(0,w.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,w.oB)({opacity:0})),(0,w.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,w.jt)("0ms")),(0,w.eR)("* <=> *",(0,w.jt)(Ht))]),arrowPosition:(0,w.X$)("arrowPosition",[(0,w.eR)("* => desc-to-hint, * => desc-to-active",(0,w.jt)(Ht,(0,w.F4)([(0,w.oB)({transform:"translateY(-25%)"}),(0,w.oB)({transform:"translateY(0)"})]))),(0,w.eR)("* => hint-to-desc, * => active-to-desc",(0,w.jt)(Ht,(0,w.F4)([(0,w.oB)({transform:"translateY(0)"}),(0,w.oB)({transform:"translateY(25%)"})]))),(0,w.eR)("* => asc-to-hint, * => asc-to-active",(0,w.jt)(Ht,(0,w.F4)([(0,w.oB)({transform:"translateY(25%)"}),(0,w.oB)({transform:"translateY(0)"})]))),(0,w.eR)("* => hint-to-asc, * => active-to-asc",(0,w.jt)(Ht,(0,w.F4)([(0,w.oB)({transform:"translateY(0)"}),(0,w.oB)({transform:"translateY(-25%)"})]))),(0,w.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,w.oB)({transform:"translateY(0)"})),(0,w.SB)("hint-to-desc, active-to-desc, desc",(0,w.oB)({transform:"translateY(-25%)"})),(0,w.SB)("hint-to-asc, active-to-asc, asc",(0,w.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,w.X$)("allowChildren",[(0,w.eR)("* <=> *",[(0,w.IO)("@*",(0,w.pV)(),{optional:!0})])])};let at=(()=>{class qt{constructor(){this.changes=new A.xQ}}return qt.\u0275fac=function(Wt){return new(Wt||qt)},qt.\u0275prov=d.Yz7({token:qt,factory:qt.\u0275fac,providedIn:"root"}),qt})();const wt={provide:at,deps:[[new d.FiY,new d.tp0,at]],useFactory:function Zt(qt){return qt||new at}},_t=(0,t.Id)(class{});let Nt=(()=>{class qt extends _t{constructor(Wt,Ce,Ae,Ne,ze,Xe,ie,Te){super(),this._intl=Wt,this._changeDetectorRef=Ce,this._sort=Ae,this._columnDef=Ne,this._focusMonitor=ze,this._elementRef=Xe,this._ariaDescriber=ie,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",Te?.arrowPosition&&(this.arrowPosition=Te?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(Wt){this._updateSortActionDescription(Wt)}get disableClear(){return this._disableClear}set disableClear(Wt){this._disableClear=(0,v.Ig)(Wt)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Wt=>{const Ce=!!Wt;Ce!==this._showIndicatorHint&&(this._setIndicatorHintVisible(Ce),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(Wt){this._isDisabled()&&Wt||(this._showIndicatorHint=Wt,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(Wt){this._viewState=Wt||{},this._disableViewStateAnimation&&(this._viewState={toState:Wt.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(Wt){!this._isDisabled()&&(Wt.keyCode===T.L_||Wt.keyCode===T.K5)&&(Wt.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const Wt=this._viewState.fromState;return(Wt?`${Wt}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(Wt){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,Wt)),this._sortActionDescription=Wt}_handleStateChanges(){this._rerenderSubscription=(0,x.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return qt.\u0275fac=function(Wt){return new(Wt||qt)(d.Y36(at),d.Y36(d.sBO),d.Y36(Pt,8),d.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),d.Y36(p.tE),d.Y36(d.SBq),d.Y36(p.$s,8),d.Y36(ct,8))},qt.\u0275cmp=d.Xpm({type:qt,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Wt,Ce){1&Wt&&d.NdJ("click",function(){return Ce._handleClick()})("keydown",function(Ne){return Ce._handleKeydown(Ne)})("mouseenter",function(){return Ce._setIndicatorHintVisible(!0)})("mouseleave",function(){return Ce._setIndicatorHintVisible(!1)}),2&Wt&&(d.uIk("aria-sort",Ce._getAriaSortAttribute()),d.ekj("mat-sort-header-disabled",Ce._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[d.qOj],attrs:D,ngContentSelectors:I,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(Wt,Ce){1&Wt&&(d.F$t(),d.TgZ(0,"div",0)(1,"div",1),d.Hsn(2),d.qZA(),d.YNc(3,P,6,6,"div",2),d.qZA()),2&Wt&&(d.ekj("mat-sort-header-sorted",Ce._isSorted())("mat-sort-header-position-before","before"===Ce.arrowPosition),d.uIk("tabindex",Ce._isDisabled()?null:0)("role",Ce._isDisabled()?null:"button"),d.xp6(3),d.Q6J("ngIf",Ce._renderArrow()))},dependencies:[k.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Jt.indicator,Jt.leftPointer,Jt.rightPointer,Jt.arrowOpacity,Jt.arrowPosition,Jt.allowChildren]},changeDetection:0}),qt})(),Qt=(()=>{class qt{}return qt.\u0275fac=function(Wt){return new(Wt||qt)},qt.\u0275mod=d.oAB({type:qt}),qt.\u0275inj=d.cJS({providers:[wt],imports:[k.ez,t.BQ]}),qt})()},58425:(rt,it,b)=>{"use strict";b.d(it,{C0:()=>ri,Ic:()=>Ft,T5:()=>xt,VY:()=>ue,Vq:()=>Ee,fd:()=>vt,z9:()=>dn});var d=b(84080),p=b(12138),v=b(36895),T=b(94650),t=b(4859),A=b(3238),x=b(97392),w=b(12687),k=b(8929),D=b(42654),P=b(40445),I=b(87545),z=b(24850),G=b(1059),W=b(7625),ot=b(75778),ct=b(37340);function gt(tt,et){if(1&tt&&T.GkF(0,8),2&tt){const Ct=T.oxw();T.Q6J("ngTemplateOutlet",Ct.iconOverrides[Ct.state])("ngTemplateOutletContext",Ct._getIconContext())}}function Pt(tt,et){if(1&tt&&(T.TgZ(0,"span",13),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw(2);T.xp6(1),T.Oqu(Ct._getDefaultTextForState(Ct.state))}}function St(tt,et){if(1&tt&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw(2);T.xp6(1),T.Oqu(Ct._intl.completedLabel)}}function Ht(tt,et){if(1&tt&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw(2);T.xp6(1),T.Oqu(Ct._intl.editableLabel)}}function Jt(tt,et){if(1&tt&&(T.TgZ(0,"mat-icon",13),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw(2);T.xp6(1),T.Oqu(Ct._getDefaultTextForState(Ct.state))}}function at(tt,et){if(1&tt&&(T.ynx(0,9),T.YNc(1,Pt,2,1,"span",10),T.YNc(2,St,2,1,"span",11),T.YNc(3,Ht,2,1,"span",11),T.YNc(4,Jt,2,1,"mat-icon",12),T.BQk()),2&tt){const Ct=T.oxw();T.Q6J("ngSwitch",Ct.state),T.xp6(1),T.Q6J("ngSwitchCase","number"),T.xp6(1),T.Q6J("ngIf","done"===Ct.state),T.xp6(1),T.Q6J("ngIf","edit"===Ct.state)}}function Zt(tt,et){if(1&tt&&(T.TgZ(0,"div",15),T.GkF(1,16),T.qZA()),2&tt){const Ct=T.oxw();T.xp6(1),T.Q6J("ngTemplateOutlet",Ct._templateLabel().template)}}function wt(tt,et){if(1&tt&&(T.TgZ(0,"div",15),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw();T.xp6(1),T.Oqu(Ct.label)}}function _t(tt,et){if(1&tt&&(T.TgZ(0,"div",17),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw();T.xp6(1),T.Oqu(Ct._intl.optionalLabel)}}function Nt(tt,et){if(1&tt&&(T.TgZ(0,"div",18),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw();T.xp6(1),T.Oqu(Ct.errorMessage)}}function Qt(tt,et){}function qt(tt,et){if(1&tt&&(T.Hsn(0),T.YNc(1,Qt,0,0,"ng-template",0)),2&tt){const Ct=T.oxw();T.xp6(1),T.Q6J("cdkPortalOutlet",Ct._portal)}}const le=["*"];function Wt(tt,et){1&tt&&T._UZ(0,"div",11)}const Ce=function(tt,et){return{step:tt,i:et}};function Ae(tt,et){if(1&tt&&(T.ynx(0),T.GkF(1,9),T.YNc(2,Wt,1,0,"div",10),T.BQk()),2&tt){const Ct=et.$implicit,Bt=et.index,ne=et.last;T.oxw(2);const he=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",he)("ngTemplateOutletContext",T.WLB(3,Ce,Ct,Bt)),T.xp6(1),T.Q6J("ngIf",!ne)}}const Ne=function(tt){return{animationDuration:tt}},ze=function(tt,et){return{value:tt,params:et}};function Xe(tt,et){if(1&tt){const Ct=T.EpF();T.TgZ(0,"div",12),T.NdJ("@horizontalStepTransition.done",function(ne){T.CHM(Ct);const he=T.oxw(2);return T.KtG(he._animationDone.next(ne))}),T.GkF(1,13),T.qZA()}if(2&tt){const Ct=et.$implicit,Bt=et.index,ne=T.oxw(2);T.ekj("mat-horizontal-stepper-content-inactive",ne.selectedIndex!==Bt),T.Q6J("@horizontalStepTransition",T.WLB(8,ze,ne._getAnimationDirection(Bt),T.VKq(6,Ne,ne._getAnimationDuration())))("id",ne._getStepContentId(Bt)),T.uIk("aria-labelledby",ne._getStepLabelId(Bt)),T.xp6(1),T.Q6J("ngTemplateOutlet",Ct.content)}}function ie(tt,et){if(1&tt&&(T.TgZ(0,"div",4)(1,"div",5),T.YNc(2,Ae,3,6,"ng-container",6),T.qZA(),T.TgZ(3,"div",7),T.YNc(4,Xe,2,11,"div",8),T.qZA()()),2&tt){const Ct=T.oxw();T.xp6(2),T.Q6J("ngForOf",Ct.steps),T.xp6(2),T.Q6J("ngForOf",Ct.steps)}}function Te(tt,et){if(1&tt){const Ct=T.EpF();T.TgZ(0,"div",15),T.GkF(1,9),T.TgZ(2,"div",16)(3,"div",17),T.NdJ("@verticalStepTransition.done",function(ne){T.CHM(Ct);const he=T.oxw(2);return T.KtG(he._animationDone.next(ne))}),T.TgZ(4,"div",18),T.GkF(5,13),T.qZA()()()()}if(2&tt){const Ct=et.$implicit,Bt=et.index,ne=et.last,he=T.oxw(2),Oe=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",Oe)("ngTemplateOutletContext",T.WLB(10,Ce,Ct,Bt)),T.xp6(1),T.ekj("mat-stepper-vertical-line",!ne),T.xp6(1),T.ekj("mat-vertical-stepper-content-inactive",he.selectedIndex!==Bt),T.Q6J("@verticalStepTransition",T.WLB(15,ze,he._getAnimationDirection(Bt),T.VKq(13,Ne,he._getAnimationDuration())))("id",he._getStepContentId(Bt)),T.uIk("aria-labelledby",he._getStepLabelId(Bt)),T.xp6(2),T.Q6J("ngTemplateOutlet",Ct.content)}}function re(tt,et){if(1&tt&&(T.ynx(0),T.YNc(1,Te,6,18,"div",14),T.BQk()),2&tt){const Ct=T.oxw();T.xp6(1),T.Q6J("ngForOf",Ct.steps)}}function ee(tt,et){if(1&tt){const Ct=T.EpF();T.TgZ(0,"mat-step-header",19),T.NdJ("click",function(){const he=T.CHM(Ct).step;return T.KtG(he.select())})("keydown",function(ne){T.CHM(Ct);const he=T.oxw();return T.KtG(he._onKeydown(ne))}),T.qZA()}if(2&tt){const Ct=et.step,Bt=et.i,ne=T.oxw();T.ekj("mat-horizontal-stepper-header","horizontal"===ne.orientation)("mat-vertical-stepper-header","vertical"===ne.orientation),T.Q6J("tabIndex",ne._getFocusIndex()===Bt?0:-1)("id",ne._getStepLabelId(Bt))("index",Bt)("state",ne._getIndicatorType(Bt,Ct.state))("label",Ct.stepLabel||Ct.label)("selected",ne.selectedIndex===Bt)("active",ne._stepIsNavigable(Bt,Ct))("optional",Ct.optional)("errorMessage",Ct.errorMessage)("iconOverrides",ne._iconOverrides)("disableRipple",ne.disableRipple||!ne._stepIsNavigable(Bt,Ct))("color",Ct.color||ne.color),T.uIk("aria-posinset",Bt+1)("aria-setsize",ne.steps.length)("aria-controls",ne._getStepContentId(Bt))("aria-selected",ne.selectedIndex==Bt)("aria-label",Ct.ariaLabel||null)("aria-labelledby",!Ct.ariaLabel&&Ct.ariaLabelledby?Ct.ariaLabelledby:null)("aria-disabled",!ne._stepIsNavigable(Bt,Ct)||null)}}let ue=(()=>{class tt extends p.u6{}return tt.\u0275fac=function(){let et;return function(Bt){return(et||(et=T.n5z(tt)))(Bt||tt)}}(),tt.\u0275dir=T.lG2({type:tt,selectors:[["","matStepLabel",""]],features:[T.qOj]}),tt})(),Kt=(()=>{class tt{constructor(){this.changes=new k.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return tt.\u0275fac=function(Ct){return new(Ct||tt)},tt.\u0275prov=T.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})();const Le={provide:Kt,deps:[[new T.FiY,new T.tp0,Kt]],useFactory:function ce(tt){return tt||new Kt}},on=(0,A.pj)(class extends p.KL{constructor(et){super(et)}},"primary");let hn=(()=>{class tt extends on{constructor(Ct,Bt,ne,he){super(ne),this._intl=Ct,this._focusMonitor=Bt,this._intlSubscription=Ct.changes.subscribe(()=>he.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(Ct,Bt){Ct?this._focusMonitor.focusVia(this._elementRef,Ct,Bt):this._elementRef.nativeElement.focus(Bt)}_stringLabel(){return this.label instanceof ue?null:this.label}_templateLabel(){return this.label instanceof ue?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(Ct){return"number"==Ct?`${this.index+1}`:"edit"==Ct?"create":"error"==Ct?"warning":Ct}}return tt.\u0275fac=function(Ct){return new(Ct||tt)(T.Y36(Kt),T.Y36(w.tE),T.Y36(T.SBq),T.Y36(T.sBO))},tt.\u0275cmp=T.Xpm({type:tt,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[T.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(Ct,Bt){1&Ct&&(T._UZ(0,"div",0),T.TgZ(1,"div")(2,"div",1),T.YNc(3,gt,1,2,"ng-container",2),T.YNc(4,at,5,4,"ng-container",3),T.qZA()(),T.TgZ(5,"div",4),T.YNc(6,Zt,2,1,"div",5),T.YNc(7,wt,2,1,"div",5),T.YNc(8,_t,2,1,"div",6),T.YNc(9,Nt,2,1,"div",7),T.qZA()),2&Ct&&(T.Q6J("matRippleTrigger",Bt._getHostElement())("matRippleDisabled",Bt.disableRipple),T.xp6(1),T.Gre("mat-step-icon-state-",Bt.state," mat-step-icon"),T.ekj("mat-step-icon-selected",Bt.selected),T.xp6(1),T.Q6J("ngSwitch",!(!Bt.iconOverrides||!Bt.iconOverrides[Bt.state])),T.xp6(1),T.Q6J("ngSwitchCase",!0),T.xp6(2),T.ekj("mat-step-label-active",Bt.active)("mat-step-label-selected",Bt.selected)("mat-step-label-error","error"==Bt.state),T.xp6(1),T.Q6J("ngIf",Bt._templateLabel()),T.xp6(1),T.Q6J("ngIf",Bt._stringLabel()),T.xp6(1),T.Q6J("ngIf",Bt.optional&&"error"!=Bt.state),T.xp6(1),T.Q6J("ngIf","error"==Bt.state))},dependencies:[v.O5,v.tP,v.RF,v.n9,v.ED,x.Hw,A.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),tt})();const Ze={horizontalStepTransition:(0,ct.X$)("horizontalStepTransition",[(0,ct.SB)("previous",(0,ct.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,ct.SB)("current",(0,ct.oB)({transform:"none",visibility:"inherit"})),(0,ct.SB)("next",(0,ct.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,ct.eR)("* => *",(0,ct.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,ct.X$)("verticalStepTransition",[(0,ct.SB)("previous",(0,ct.oB)({height:"0px",visibility:"hidden"})),(0,ct.SB)("next",(0,ct.oB)({height:"0px",visibility:"hidden"})),(0,ct.SB)("current",(0,ct.oB)({height:"*",visibility:"inherit"})),(0,ct.eR)("* <=> current",(0,ct.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let dn=(()=>{class tt{constructor(Ct){this.templateRef=Ct}}return tt.\u0275fac=function(Ct){return new(Ct||tt)(T.Y36(T.Rgc))},tt.\u0275dir=T.lG2({type:tt,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),tt})(),kn=(()=>{class tt{constructor(Ct){this._template=Ct}}return tt.\u0275fac=function(Ct){return new(Ct||tt)(T.Y36(T.Rgc))},tt.\u0275dir=T.lG2({type:tt,selectors:[["ng-template","matStepContent",""]]}),tt})(),ri=(()=>{class tt extends p.be{constructor(Ct,Bt,ne,he){super(Ct,he),this._errorStateMatcher=Bt,this._viewContainerRef=ne,this._isSelected=D.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,I.w)(()=>this._stepper.selectionChange.pipe((0,z.U)(Ct=>Ct.selectedStep===this),(0,G.O)(this._stepper.selected===this)))).subscribe(Ct=>{Ct&&this._lazyContent&&!this._portal&&(this._portal=new d.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(Ct,Bt){return this._errorStateMatcher.isErrorState(Ct,Bt)||!!(Ct&&Ct.invalid&&this.interacted)}}return tt.\u0275fac=function(Ct){return new(Ct||tt)(T.Y36((0,T.Gpc)(()=>Ee)),T.Y36(A.rD,4),T.Y36(T.s_b),T.Y36(p.gx,8))},tt.\u0275cmp=T.Xpm({type:tt,selectors:[["mat-step"]],contentQueries:function(Ct,Bt,ne){if(1&Ct&&(T.Suo(ne,ue,5),T.Suo(ne,kn,5)),2&Ct){let he;T.iGM(he=T.CRH())&&(Bt.stepLabel=he.first),T.iGM(he=T.CRH())&&(Bt._lazyContent=he.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[T._Bn([{provide:A.rD,useExisting:tt},{provide:p.be,useExisting:tt}]),T.qOj],ngContentSelectors:le,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(Ct,Bt){1&Ct&&(T.F$t(),T.YNc(0,qt,2,1,"ng-template"))},dependencies:[d.Pl],encapsulation:2,changeDetection:0}),tt})(),Ee=(()=>{class tt extends p.B8{constructor(Ct,Bt,ne){super(Ct,Bt,ne),this.steps=new T.n_E,this.animationDone=new T.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new k.xQ,this._animationDuration="";const he=ne.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===he?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(Ct){this._animationDuration=/^\d+$/.test(Ct)?Ct+"ms":Ct}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:Ct,templateRef:Bt})=>this._iconOverrides[Ct]=Bt),this.steps.changes.pipe((0,W.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,ot.x)((Ct,Bt)=>Ct.fromState===Bt.fromState&&Ct.toState===Bt.toState),(0,W.R)(this._destroyed)).subscribe(Ct=>{"current"===Ct.toState&&this.animationDone.emit()})}_stepIsNavigable(Ct,Bt){return Bt.completed||this.selectedIndex===Ct||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return tt.\u0275fac=function(Ct){return new(Ct||tt)(T.Y36(P.Is,8),T.Y36(T.sBO),T.Y36(T.SBq))},tt.\u0275cmp=T.Xpm({type:tt,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(Ct,Bt,ne){if(1&Ct&&(T.Suo(ne,ri,5),T.Suo(ne,dn,5)),2&Ct){let he;T.iGM(he=T.CRH())&&(Bt._steps=he),T.iGM(he=T.CRH())&&(Bt._icons=he)}},viewQuery:function(Ct,Bt){if(1&Ct&&T.Gf(hn,5),2&Ct){let ne;T.iGM(ne=T.CRH())&&(Bt._stepHeader=ne)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(Ct,Bt){2&Ct&&(T.uIk("aria-orientation",Bt.orientation),T.ekj("mat-stepper-horizontal","horizontal"===Bt.orientation)("mat-stepper-vertical","vertical"===Bt.orientation)("mat-stepper-label-position-end","horizontal"===Bt.orientation&&"end"==Bt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Bt.orientation&&"bottom"==Bt.labelPosition)("mat-stepper-header-position-bottom","bottom"===Bt.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[T._Bn([{provide:p.B8,useExisting:tt}]),T.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(Ct,Bt){1&Ct&&(T.ynx(0,0),T.YNc(1,ie,5,2,"div",1),T.YNc(2,re,2,1,"ng-container",2),T.BQk(),T.YNc(3,ee,1,23,"ng-template",null,3,T.W1O)),2&Ct&&(T.Q6J("ngSwitch",Bt.orientation),T.xp6(1),T.Q6J("ngSwitchCase","horizontal"),T.xp6(1),T.Q6J("ngSwitchCase","vertical"))},dependencies:[v.sg,v.O5,v.tP,v.RF,v.n9,hn],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Ze.horizontalStepTransition,Ze.verticalStepTransition]},changeDetection:0}),tt})(),Ft=(()=>{class tt extends p.st{}return tt.\u0275fac=function(){let et;return function(Bt){return(et||(et=T.n5z(tt)))(Bt||tt)}}(),tt.\u0275dir=T.lG2({type:tt,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(Ct,Bt){2&Ct&&T.Ikx("type",Bt.type)},inputs:{type:"type"},features:[T.qOj]}),tt})(),vt=(()=>{class tt extends p.po{}return tt.\u0275fac=function(){let et;return function(Bt){return(et||(et=T.n5z(tt)))(Bt||tt)}}(),tt.\u0275dir=T.lG2({type:tt,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(Ct,Bt){2&Ct&&T.Ikx("type",Bt.type)},inputs:{type:"type"},features:[T.qOj]}),tt})(),xt=(()=>{class tt{}return tt.\u0275fac=function(Ct){return new(Ct||tt)},tt.\u0275mod=T.oAB({type:tt}),tt.\u0275inj=T.cJS({providers:[Le,A.rD],imports:[A.BQ,v.ez,d.eL,t.ot,p.U5,x.Ps,A.si,A.BQ]}),tt})()},30671:(rt,it,b)=>{"use strict";b.d(it,{ev:()=>Fn,Dz:()=>Me,w1:()=>Zn,yh:()=>Be,mD:()=>He,Q2:()=>wn,Ke:()=>go,ge:()=>ve,fO:()=>en,XQ:()=>fn,as:()=>bi,Gk:()=>ln,nj:()=>_o,BZ:()=>It,by:()=>fr,p0:()=>No});var d=b(94650),p=b(40445),v=b(21281),T=b(95017),t=b(83353),A=b(67376),x=b(36895),w=b(8929),k=b(5254),D=b(591),P=b(54715),I=b(21086),z=b(7625),G=b(72986);const W=[[["caption"]],[["colgroup"],["col"]]],ot=["caption","colgroup, col"];function Pt($e){return class extends $e{constructor(...Nn){super(...Nn),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Nn){const Ye=this._sticky;this._sticky=(0,v.Ig)(Nn),this._hasStickyChanged=Ye!==this._sticky}hasStickyChanged(){const Nn=this._hasStickyChanged;return this._hasStickyChanged=!1,Nn}resetStickyChanged(){this._hasStickyChanged=!1}}}const St=new d.OlP("CDK_TABLE");let Jt=(()=>{class $e{constructor(Ye){this.template=Ye}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkCellDef",""]]}),$e})(),at=(()=>{class $e{constructor(Ye){this.template=Ye}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkHeaderCellDef",""]]}),$e})(),Zt=(()=>{class $e{constructor(Ye){this.template=Ye}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkFooterCellDef",""]]}),$e})();class wt{}const _t=Pt(wt);let Nt=(()=>{class $e extends _t{constructor(Ye){super(),this._table=Ye,this._stickyEnd=!1}get name(){return this._name}set name(Ye){this._setNameInput(Ye)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Ye){const Pe=this._stickyEnd;this._stickyEnd=(0,v.Ig)(Ye),this._hasStickyChanged=Pe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Ye){Ye&&(this._name=Ye,this.cssClassFriendlyName=Ye.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(St,8))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkColumnDef",""]],contentQueries:function(Ye,Pe,mn){if(1&Ye&&(d.Suo(mn,Jt,5),d.Suo(mn,at,5),d.Suo(mn,Zt,5)),2&Ye){let nt;d.iGM(nt=d.CRH())&&(Pe.cell=nt.first),d.iGM(nt=d.CRH())&&(Pe.headerCell=nt.first),d.iGM(nt=d.CRH())&&(Pe.footerCell=nt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[d._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:$e}]),d.qOj]}),$e})();class Qt{constructor(Nn,Ye){Ye.nativeElement.classList.add(...Nn._columnCssClassName)}}let qt=(()=>{class $e extends Qt{constructor(Ye,Pe){super(Ye,Pe)}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(Nt),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[d.qOj]}),$e})(),le=(()=>{class $e extends Qt{constructor(Ye,Pe){if(super(Ye,Pe),1===Ye._table?._elementRef.nativeElement.nodeType){const mn=Ye._table._elementRef.nativeElement.getAttribute("role");Pe.nativeElement.setAttribute("role","grid"===mn||"treegrid"===mn?"gridcell":"cell")}}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(Nt),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[d.qOj]}),$e})(),Wt=(()=>{class $e extends Qt{constructor(Ye,Pe){if(super(Ye,Pe),1===Ye._table?._elementRef.nativeElement.nodeType){const mn=Ye._table._elementRef.nativeElement.getAttribute("role");Pe.nativeElement.setAttribute("role","grid"===mn||"treegrid"===mn?"gridcell":"cell")}}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(Nt),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[d.qOj]}),$e})();class Ce{constructor(){this.tasks=[],this.endTasks=[]}}const Ae=new d.OlP("_COALESCED_STYLE_SCHEDULER");let Ne=(()=>{class $e{constructor(Ye){this._ngZone=Ye,this._currentSchedule=null,this._destroyed=new w.xQ}schedule(Ye){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Ye)}scheduleEnd(Ye){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Ye)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Ce,this._getScheduleObservable().pipe((0,z.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Ye=this._currentSchedule;this._currentSchedule=new Ce;for(const Pe of Ye.tasks)Pe();for(const Pe of Ye.endTasks)Pe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,k.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,G.q)(1))}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.LFG(d.R0b))},$e.\u0275prov=d.Yz7({token:$e,factory:$e.\u0275fac}),$e})(),Xe=(()=>{class $e{constructor(Ye,Pe){this.template=Ye,this._differs=Pe}ngOnChanges(Ye){if(!this._columnsDiffer){const Pe=Ye.columns&&Ye.columns.currentValue||[];this._columnsDiffer=this._differs.find(Pe).create(),this._columnsDiffer.diff(Pe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Ye){return this instanceof re?Ye.headerCell.template:this instanceof Kt?Ye.footerCell.template:Ye.cell.template}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc),d.Y36(d.ZZ4))},$e.\u0275dir=d.lG2({type:$e,features:[d.TTD]}),$e})();class ie extends Xe{}const Te=Pt(ie);let re=(()=>{class $e extends Te{constructor(Ye,Pe,mn){super(Ye,Pe),this._table=mn}ngOnChanges(Ye){super.ngOnChanges(Ye)}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(St,8))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),$e})();class ee extends Xe{}const ue=Pt(ee);let Kt=(()=>{class $e extends ue{constructor(Ye,Pe,mn){super(Ye,Pe),this._table=mn}ngOnChanges(Ye){super.ngOnChanges(Ye)}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(St,8))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),$e})(),ce=(()=>{class $e extends Xe{constructor(Ye,Pe,mn){super(Ye,Pe),this._table=mn}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(St,8))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[d.qOj]}),$e})(),Le=(()=>{class $e{constructor(Ye){this._viewContainer=Ye,$e.mostRecentCellOutlet=this}ngOnDestroy(){$e.mostRecentCellOutlet===this&&($e.mostRecentCellOutlet=null)}}return $e.mostRecentCellOutlet=null,$e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.s_b))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkCellOutlet",""]]}),$e})(),on=(()=>{class $e{}return $e.\u0275fac=function(Ye){return new(Ye||$e)},$e.\u0275cmp=d.Xpm({type:$e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Pe){1&Ye&&d.GkF(0,0)},dependencies:[Le],encapsulation:2}),$e})(),hn=(()=>{class $e{}return $e.\u0275fac=function(Ye){return new(Ye||$e)},$e.\u0275cmp=d.Xpm({type:$e,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Pe){1&Ye&&d.GkF(0,0)},dependencies:[Le],encapsulation:2}),$e})(),we=(()=>{class $e{}return $e.\u0275fac=function(Ye){return new(Ye||$e)},$e.\u0275cmp=d.Xpm({type:$e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Pe){1&Ye&&d.GkF(0,0)},dependencies:[Le],encapsulation:2}),$e})(),bn=(()=>{class $e{constructor(Ye){this.templateRef=Ye,this._contentClassName="cdk-no-data-row"}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc))},$e.\u0275dir=d.lG2({type:$e,selectors:[["ng-template","cdkNoDataRow",""]]}),$e})();const Ze=["top","bottom","left","right"];class dn{constructor(Nn,Ye,Pe,mn,nt=!0,Vt=!0,Q){this._isNativeHtmlTable=Nn,this._stickCellCss=Ye,this.direction=Pe,this._coalescedStyleScheduler=mn,this._isBrowser=nt,this._needsPositionStickyOnElement=Vt,this._positionListener=Q,this._cachedCellWidths=[],this._borderCellCss={top:`${Ye}-border-elem-top`,bottom:`${Ye}-border-elem-bottom`,left:`${Ye}-border-elem-left`,right:`${Ye}-border-elem-right`}}clearStickyPositioning(Nn,Ye){const Pe=[];for(const mn of Nn)if(mn.nodeType===mn.ELEMENT_NODE){Pe.push(mn);for(let nt=0;nt{for(const mn of Pe)this._removeStickyStyle(mn,Ye)})}updateStickyColumns(Nn,Ye,Pe,mn=!0){if(!Nn.length||!this._isBrowser||!Ye.some(Co=>Co)&&!Pe.some(Co=>Co))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const nt=Nn[0],Vt=nt.children.length,Q=this._getCellWidths(nt,mn),zt=this._getStickyStartColumnPositions(Q,Ye),Je=this._getStickyEndColumnPositions(Q,Pe),zn=Ye.lastIndexOf(!0),Gi=Pe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Co="rtl"===this.direction,gr=Co?"right":"left",br=Co?"left":"right";for(const cs of Nn)for(let or=0;orYe[or]?cs:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Gi?[]:Q.slice(Gi).map((cs,or)=>Pe[or+Gi]?cs:null).reverse()}))})}stickRows(Nn,Ye,Pe){if(!this._isBrowser)return;const mn="bottom"===Pe?Nn.slice().reverse():Nn,nt="bottom"===Pe?Ye.slice().reverse():Ye,Vt=[],Q=[],zt=[];for(let zn=0,Gi=0;zn{for(let zn=0;zn{Ye.some(mn=>!mn)?this._removeStickyStyle(Pe,["bottom"]):this._addStickyStyle(Pe,"bottom",0,!1)})}_removeStickyStyle(Nn,Ye){for(const mn of Ye)Nn.style[mn]="",Nn.classList.remove(this._borderCellCss[mn]);Ze.some(mn=>-1===Ye.indexOf(mn)&&Nn.style[mn])?Nn.style.zIndex=this._getCalculatedZIndex(Nn):(Nn.style.zIndex="",this._needsPositionStickyOnElement&&(Nn.style.position=""),Nn.classList.remove(this._stickCellCss))}_addStickyStyle(Nn,Ye,Pe,mn){Nn.classList.add(this._stickCellCss),mn&&Nn.classList.add(this._borderCellCss[Ye]),Nn.style[Ye]=`${Pe}px`,Nn.style.zIndex=this._getCalculatedZIndex(Nn),this._needsPositionStickyOnElement&&(Nn.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Nn){const Ye={top:100,bottom:10,left:1,right:1};let Pe=0;for(const mn of Ze)Nn.style[mn]&&(Pe+=Ye[mn]);return Pe?`${Pe}`:""}_getCellWidths(Nn,Ye=!0){if(!Ye&&this._cachedCellWidths.length)return this._cachedCellWidths;const Pe=[],mn=Nn.children;for(let nt=0;nt0;nt--)Ye[nt]&&(Pe[nt]=mn,mn+=Nn[nt]);return Pe}}const Ct=new d.OlP("CDK_SPL");let ne=(()=>{class $e{constructor(Ye,Pe){this.viewContainer=Ye,this.elementRef=Pe}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.s_b),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","rowOutlet",""]]}),$e})(),he=(()=>{class $e{constructor(Ye,Pe){this.viewContainer=Ye,this.elementRef=Pe}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.s_b),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","headerRowOutlet",""]]}),$e})(),Oe=(()=>{class $e{constructor(Ye,Pe){this.viewContainer=Ye,this.elementRef=Pe}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.s_b),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","footerRowOutlet",""]]}),$e})(),yn=(()=>{class $e{constructor(Ye,Pe){this.viewContainer=Ye,this.elementRef=Pe}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.s_b),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","noDataRowOutlet",""]]}),$e})(),Si=(()=>{class $e{constructor(Ye,Pe,mn,nt,Vt,Q,zt,Je,zn,Gi,Co,gr){this._differs=Ye,this._changeDetectorRef=Pe,this._elementRef=mn,this._dir=Vt,this._platform=zt,this._viewRepeater=Je,this._coalescedStyleScheduler=zn,this._viewportRuler=Gi,this._stickyPositioningListener=Co,this._ngZone=gr,this._onDestroy=new w.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new d.vpe,this.viewChange=new D.X({start:0,end:Number.MAX_VALUE}),nt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Q,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(Ye){this._trackByFn=Ye}get dataSource(){return this._dataSource}set dataSource(Ye){this._dataSource!==Ye&&this._switchDataSource(Ye)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Ye){this._multiTemplateDataRows=(0,v.Ig)(Ye),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Ye){this._fixedLayout=(0,v.Ig)(Ye),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Ye,Pe)=>this.trackBy?this.trackBy(Pe.dataIndex,Pe.data):Pe),this._viewportRuler.change().pipe((0,z.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Pe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Pe,this._forceRecalculateCellWidths=Pe,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Ye=>{Ye.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Ye=this._dataDiffer.diff(this._renderRows);if(!Ye)return this._updateNoDataRow(),void this.contentChanged.next();const Pe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Ye,Pe,(mn,nt,Vt)=>this._getEmbeddedViewArgs(mn.item,Vt),mn=>mn.item.data,mn=>{1===mn.operation&&mn.context&&this._renderCellTemplateForItem(mn.record.item.rowDef,mn.context)}),this._updateRowIndexContext(),Ye.forEachIdentityChange(mn=>{Pe.get(mn.currentIndex).context.$implicit=mn.item.data}),this._updateNoDataRow(),this._ngZone&&d.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,G.q)(1),(0,z.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Ye){this._customColumnDefs.add(Ye)}removeColumnDef(Ye){this._customColumnDefs.delete(Ye)}addRowDef(Ye){this._customRowDefs.add(Ye)}removeRowDef(Ye){this._customRowDefs.delete(Ye)}addHeaderRowDef(Ye){this._customHeaderRowDefs.add(Ye),this._headerRowDefChanged=!0}removeHeaderRowDef(Ye){this._customHeaderRowDefs.delete(Ye),this._headerRowDefChanged=!0}addFooterRowDef(Ye){this._customFooterRowDefs.add(Ye),this._footerRowDefChanged=!0}removeFooterRowDef(Ye){this._customFooterRowDefs.delete(Ye),this._footerRowDefChanged=!0}setNoDataRow(Ye){this._customNoDataRow=Ye}updateStickyHeaderRowStyles(){const Ye=this._getRenderedRows(this._headerRowOutlet),mn=this._elementRef.nativeElement.querySelector("thead");mn&&(mn.style.display=Ye.length?"":"none");const nt=this._headerRowDefs.map(Vt=>Vt.sticky);this._stickyStyler.clearStickyPositioning(Ye,["top"]),this._stickyStyler.stickRows(Ye,nt,"top"),this._headerRowDefs.forEach(Vt=>Vt.resetStickyChanged())}updateStickyFooterRowStyles(){const Ye=this._getRenderedRows(this._footerRowOutlet),mn=this._elementRef.nativeElement.querySelector("tfoot");mn&&(mn.style.display=Ye.length?"":"none");const nt=this._footerRowDefs.map(Vt=>Vt.sticky);this._stickyStyler.clearStickyPositioning(Ye,["bottom"]),this._stickyStyler.stickRows(Ye,nt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,nt),this._footerRowDefs.forEach(Vt=>Vt.resetStickyChanged())}updateStickyColumnStyles(){const Ye=this._getRenderedRows(this._headerRowOutlet),Pe=this._getRenderedRows(this._rowOutlet),mn=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Ye,...Pe,...mn],["left","right"]),this._stickyColumnStylesNeedReset=!1),Ye.forEach((nt,Vt)=>{this._addStickyColumnStyles([nt],this._headerRowDefs[Vt])}),this._rowDefs.forEach(nt=>{const Vt=[];for(let Q=0;Q{this._addStickyColumnStyles([nt],this._footerRowDefs[Vt])}),Array.from(this._columnDefsByName.values()).forEach(nt=>nt.resetStickyChanged())}_getAllRenderRows(){const Ye=[],Pe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let mn=0;mn{const Q=mn&&mn.has(Vt)?mn.get(Vt):[];if(Q.length){const zt=Q.shift();return zt.dataIndex=Pe,zt}return{data:Ye,rowDef:Vt,dataIndex:Pe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ho(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Pe=>{this._columnDefsByName.has(Pe.name),this._columnDefsByName.set(Pe.name,Pe)})}_cacheRowDefs(){this._headerRowDefs=ho(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ho(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ho(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Ye=this._rowDefs.filter(Pe=>!Pe.when);this._defaultRowDef=Ye[0]}_renderUpdatedColumns(){const Ye=(Vt,Q)=>Vt||!!Q.getColumnsDiff(),Pe=this._rowDefs.reduce(Ye,!1);Pe&&this._forceRenderDataRows();const mn=this._headerRowDefs.reduce(Ye,!1);mn&&this._forceRenderHeaderRows();const nt=this._footerRowDefs.reduce(Ye,!1);return nt&&this._forceRenderFooterRows(),Pe||mn||nt}_switchDataSource(Ye){this._data=[],(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Ye||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Ye}_observeRenderChanges(){if(!this.dataSource)return;let Ye;(0,T.Z9)(this.dataSource)?Ye=this.dataSource.connect(this):(0,P.b)(this.dataSource)?Ye=this.dataSource:Array.isArray(this.dataSource)&&(Ye=(0,I.of)(this.dataSource)),this._renderChangeSubscription=Ye.pipe((0,z.R)(this._onDestroy)).subscribe(Pe=>{this._data=Pe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Ye,Pe)=>this._renderRow(this._headerRowOutlet,Ye,Pe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Ye,Pe)=>this._renderRow(this._footerRowOutlet,Ye,Pe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Ye,Pe){const mn=Array.from(Pe.columns||[]).map(Q=>this._columnDefsByName.get(Q)),nt=mn.map(Q=>Q.sticky),Vt=mn.map(Q=>Q.stickyEnd);this._stickyStyler.updateStickyColumns(Ye,nt,Vt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Ye){const Pe=[];for(let mn=0;mn!nt.when||nt.when(Pe,Ye));else{let nt=this._rowDefs.find(Vt=>Vt.when&&Vt.when(Pe,Ye))||this._defaultRowDef;nt&&mn.push(nt)}return mn}_getEmbeddedViewArgs(Ye,Pe){return{templateRef:Ye.rowDef.template,context:{$implicit:Ye.data},index:Pe}}_renderRow(Ye,Pe,mn,nt={}){const Vt=Ye.viewContainer.createEmbeddedView(Pe.template,nt,mn);return this._renderCellTemplateForItem(Pe,nt),Vt}_renderCellTemplateForItem(Ye,Pe){for(let mn of this._getCellTemplates(Ye))Le.mostRecentCellOutlet&&Le.mostRecentCellOutlet._viewContainer.createEmbeddedView(mn,Pe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Ye=this._rowOutlet.viewContainer;for(let Pe=0,mn=Ye.length;Pe{const mn=this._columnDefsByName.get(Pe);return Ye.extractCellTemplate(mn)}):[]}_applyNativeTableSections(){const Ye=this._document.createDocumentFragment(),Pe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const mn of Pe){const nt=this._document.createElement(mn.tag);nt.setAttribute("role","rowgroup");for(const Vt of mn.outlets)nt.appendChild(Vt.elementRef.nativeElement);Ye.appendChild(nt)}this._elementRef.nativeElement.appendChild(Ye)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Ye=(Pe,mn)=>Pe||mn.hasStickyChanged();this._headerRowDefs.reduce(Ye,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Ye,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Ye,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new dn(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,I.of)()).pipe((0,z.R)(this._onDestroy)).subscribe(Pe=>{this._stickyStyler.direction=Pe,this.updateStickyColumnStyles()})}_getOwnDefs(Ye){return Ye.filter(Pe=>!Pe._table||Pe._table===this)}_updateNoDataRow(){const Ye=this._customNoDataRow||this._noDataRow;if(!Ye)return;const Pe=0===this._rowOutlet.viewContainer.length;if(Pe===this._isShowingNoDataRow)return;const mn=this._noDataRowOutlet.viewContainer;if(Pe){const nt=mn.createEmbeddedView(Ye.templateRef),Vt=nt.rootNodes[0];1===nt.rootNodes.length&&Vt?.nodeType===this._document.ELEMENT_NODE&&(Vt.setAttribute("role","row"),Vt.classList.add(Ye._contentClassName))}else mn.clear();this._isShowingNoDataRow=Pe}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.ZZ4),d.Y36(d.sBO),d.Y36(d.SBq),d.$8M("role"),d.Y36(p.Is,8),d.Y36(x.K0),d.Y36(t.t4),d.Y36(T.k),d.Y36(Ae),d.Y36(A.rL),d.Y36(Ct,12),d.Y36(d.R0b,8))},$e.\u0275cmp=d.Xpm({type:$e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Ye,Pe,mn){if(1&Ye&&(d.Suo(mn,bn,5),d.Suo(mn,Nt,5),d.Suo(mn,ce,5),d.Suo(mn,re,5),d.Suo(mn,Kt,5)),2&Ye){let nt;d.iGM(nt=d.CRH())&&(Pe._noDataRow=nt.first),d.iGM(nt=d.CRH())&&(Pe._contentColumnDefs=nt),d.iGM(nt=d.CRH())&&(Pe._contentRowDefs=nt),d.iGM(nt=d.CRH())&&(Pe._contentHeaderRowDefs=nt),d.iGM(nt=d.CRH())&&(Pe._contentFooterRowDefs=nt)}},viewQuery:function(Ye,Pe){if(1&Ye&&(d.Gf(ne,7),d.Gf(he,7),d.Gf(Oe,7),d.Gf(yn,7)),2&Ye){let mn;d.iGM(mn=d.CRH())&&(Pe._rowOutlet=mn.first),d.iGM(mn=d.CRH())&&(Pe._headerRowOutlet=mn.first),d.iGM(mn=d.CRH())&&(Pe._footerRowOutlet=mn.first),d.iGM(mn=d.CRH())&&(Pe._noDataRowOutlet=mn.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Ye,Pe){2&Ye&&d.ekj("cdk-table-fixed-layout",Pe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[d._Bn([{provide:St,useExisting:$e},{provide:T.k,useClass:T.yy},{provide:Ae,useClass:Ne},{provide:Ct,useValue:null}])],ngContentSelectors:ot,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ye,Pe){1&Ye&&(d.F$t(W),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[ne,he,Oe,yn],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),$e})();function ho($e,Nn){return $e.concat(Array.from(Nn))}let Gn=(()=>{class $e{}return $e.\u0275fac=function(Ye){return new(Ye||$e)},$e.\u0275mod=d.oAB({type:$e}),$e.\u0275inj=d.cJS({imports:[A.Cl]}),$e})();var je=b(3238),gn=b(36787),Ve=b(23426),tn=b(24850);const an=[[["caption"]],[["colgroup"],["col"]]],pe=["caption","colgroup, col"];let It=(()=>{class $e extends Si{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275cmp=d.Xpm({type:$e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(Ye,Pe){2&Ye&&d.ekj("mat-table-fixed-layout",Pe.fixedLayout)},exportAs:["matTable"],features:[d._Bn([{provide:T.k,useClass:T.yy},{provide:Si,useExisting:$e},{provide:St,useExisting:$e},{provide:Ae,useClass:Ne},{provide:Ct,useValue:null}]),d.qOj],ngContentSelectors:pe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ye,Pe){1&Ye&&(d.F$t(an),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[ne,he,Oe,yn],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),$e})(),Me=(()=>{class $e extends Jt{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matCellDef",""]],features:[d._Bn([{provide:Jt,useExisting:$e}]),d.qOj]}),$e})(),en=(()=>{class $e extends at{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matHeaderCellDef",""]],features:[d._Bn([{provide:at,useExisting:$e}]),d.qOj]}),$e})(),He=(()=>{class $e extends Zt{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matFooterCellDef",""]],features:[d._Bn([{provide:Zt,useExisting:$e}]),d.qOj]}),$e})(),Zn=(()=>{class $e extends Nt{get name(){return this._name}set name(Ye){this._setNameInput(Ye)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[d._Bn([{provide:Nt,useExisting:$e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:$e}]),d.qOj]}),$e})(),ve=(()=>{class $e extends qt{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[d.qOj]}),$e})(),Be=(()=>{class $e extends le{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[d.qOj]}),$e})(),Fn=(()=>{class $e extends Wt{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[d.qOj]}),$e})(),bi=(()=>{class $e extends re{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[d._Bn([{provide:re,useExisting:$e}]),d.qOj]}),$e})(),go=(()=>{class $e extends Kt{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[d._Bn([{provide:Kt,useExisting:$e}]),d.qOj]}),$e})(),_o=(()=>{class $e extends ce{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[d._Bn([{provide:ce,useExisting:$e}]),d.qOj]}),$e})(),fn=(()=>{class $e extends on{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275cmp=d.Xpm({type:$e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[d._Bn([{provide:on,useExisting:$e}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Pe){1&Ye&&d.GkF(0,0)},dependencies:[Le],encapsulation:2}),$e})(),wn=(()=>{class $e extends hn{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275cmp=d.Xpm({type:$e,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[d._Bn([{provide:hn,useExisting:$e}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Pe){1&Ye&&d.GkF(0,0)},dependencies:[Le],encapsulation:2}),$e})(),ln=(()=>{class $e extends we{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275cmp=d.Xpm({type:$e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[d._Bn([{provide:we,useExisting:$e}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Pe){1&Ye&&d.GkF(0,0)},dependencies:[Le],encapsulation:2}),$e})(),No=(()=>{class $e{}return $e.\u0275fac=function(Ye){return new(Ye||$e)},$e.\u0275mod=d.oAB({type:$e}),$e.\u0275inj=d.cJS({imports:[Gn,je.BQ,je.BQ]}),$e})();class Ea extends T.o2{constructor(Nn=[]){super(),this._renderData=new D.X([]),this._filter=new D.X(""),this._internalPageChanges=new w.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(Ye,Pe)=>{const mn=Ye[Pe];if((0,v.t6)(mn)){const nt=Number(mn);return nt<9007199254740991?nt:mn}return mn},this.sortData=(Ye,Pe)=>{const mn=Pe.active,nt=Pe.direction;return mn&&""!=nt?Ye.sort((Vt,Q)=>{let zt=this.sortingDataAccessor(Vt,mn),Je=this.sortingDataAccessor(Q,mn);const zn=typeof zt,Gi=typeof Je;zn!==Gi&&("number"===zn&&(zt+=""),"number"===Gi&&(Je+=""));let Co=0;return null!=zt&&null!=Je?zt>Je?Co=1:zt{const mn=Object.keys(Ye).reduce((Vt,Q)=>Vt+Ye[Q]+"\u25ec","").toLowerCase(),nt=Pe.trim().toLowerCase();return-1!=mn.indexOf(nt)},this._data=new D.X(Nn),this._updateChangeSubscription()}get data(){return this._data.value}set data(Nn){Nn=Array.isArray(Nn)?Nn:[],this._data.next(Nn),this._renderChangesSubscription||this._filterData(Nn)}get filter(){return this._filter.value}set filter(Nn){this._filter.next(Nn),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Nn){this._sort=Nn,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Nn){this._paginator=Nn,this._updateChangeSubscription()}_updateChangeSubscription(){const Nn=this._sort?(0,gn.T)(this._sort.sortChange,this._sort.initialized):(0,I.of)(null),Ye=this._paginator?(0,gn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,I.of)(null),mn=(0,Ve.aj)([this._data,this._filter]).pipe((0,tn.U)(([Q])=>this._filterData(Q))),nt=(0,Ve.aj)([mn,Nn]).pipe((0,tn.U)(([Q])=>this._orderData(Q))),Vt=(0,Ve.aj)([nt,Ye]).pipe((0,tn.U)(([Q])=>this._pageData(Q)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Vt.subscribe(Q=>this._renderData.next(Q))}_filterData(Nn){return this.filteredData=null==this.filter||""===this.filter?Nn:Nn.filter(Ye=>this.filterPredicate(Ye,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Nn){return this.sort?this.sortData(Nn.slice(),this.sort):Nn}_pageData(Nn){if(!this.paginator)return Nn;const Ye=this.paginator.pageIndex*this.paginator.pageSize;return Nn.slice(Ye,Ye+this.paginator.pageSize)}_updatePaginator(Nn){Promise.resolve().then(()=>{const Ye=this.paginator;if(Ye&&(Ye.length=Nn,Ye.pageIndex>0)){const Pe=Math.ceil(Ye.length/Ye.pageSize)-1||0,mn=Math.min(Ye.pageIndex,Pe);mn!==Ye.pageIndex&&(Ye.pageIndex=mn,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class fr extends Ea{}},3848:(rt,it,b)=>{"use strict";b.d(it,{BU:()=>We,Nh:()=>en,Nj:()=>It,SP:()=>tn,uD:()=>Ee,uX:()=>xt});var d=b(12687),p=b(49643),v=b(84080),T=b(36895),t=b(94650),A=b(3238),x=b(72986),w=b(1059),k=b(75778),D=b(7625),P=b(87545),I=b(31307),z=b(92198),G=b(8929),W=b(42654),ot=b(23753),ct=b(21086),gt=b(36787),Pt=b(68896),St=b(56498),Ht=b(98723),Jt=b(40445),at=b(37340),Zt=b(21281),wt=b(67376),_t=b(83353),Nt=b(29521);function Qt(He,Zn){1&He&&t.Hsn(0)}const qt=["*"];function le(He,Zn){}const Wt=function(He){return{animationDuration:He}},Ce=function(He,Zn){return{value:He,params:Zn}},Ae=["tabListContainer"],Ne=["tabList"],ze=["tabListInner"],Xe=["nextPaginator"],ie=["previousPaginator"],Te=["tabBodyWrapper"],re=["tabHeader"];function ee(He,Zn){}function ue(He,Zn){if(1&He&&t.YNc(0,ee,0,0,"ng-template",10),2&He){const ve=t.oxw().$implicit;t.Q6J("cdkPortalOutlet",ve.templateLabel)}}function Kt(He,Zn){if(1&He&&t._uU(0),2&He){const ve=t.oxw().$implicit;t.Oqu(ve.textLabel)}}function ce(He,Zn){if(1&He){const ve=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){const Fn=t.CHM(ve),bi=Fn.$implicit,go=Fn.index,_o=t.oxw(),fn=t.MAs(1);return t.KtG(_o._handleClick(bi,fn,go))})("cdkFocusChange",function(Fn){const go=t.CHM(ve).index,_o=t.oxw();return t.KtG(_o._tabFocusChanged(Fn,go))}),t.TgZ(1,"div",7),t.YNc(2,ue,1,1,"ng-template",8),t.YNc(3,Kt,1,1,"ng-template",null,9,t.W1O),t.qZA()()}if(2&He){const ve=Zn.$implicit,Be=Zn.index,Fn=t.MAs(4),bi=t.oxw();t.ekj("mat-tab-label-active",bi.selectedIndex===Be),t.Q6J("id",bi._getTabLabelId(Be))("ngClass",ve.labelClass)("disabled",ve.disabled)("matRippleDisabled",ve.disabled||bi.disableRipple),t.uIk("tabIndex",bi._getTabIndex(ve,Be))("aria-posinset",Be+1)("aria-setsize",bi._tabs.length)("aria-controls",bi._getTabContentId(Be))("aria-selected",bi.selectedIndex===Be)("aria-label",ve.ariaLabel||null)("aria-labelledby",!ve.ariaLabel&&ve.ariaLabelledby?ve.ariaLabelledby:null),t.xp6(2),t.Q6J("ngIf",ve.templateLabel)("ngIfElse",Fn)}}function Le(He,Zn){if(1&He){const ve=t.EpF();t.TgZ(0,"mat-tab-body",11),t.NdJ("_onCentered",function(){t.CHM(ve);const Fn=t.oxw();return t.KtG(Fn._removeTabBodyWrapperHeight())})("_onCentering",function(Fn){t.CHM(ve);const bi=t.oxw();return t.KtG(bi._setTabBodyWrapperHeight(Fn))}),t.qZA()}if(2&He){const ve=Zn.$implicit,Be=Zn.index,Fn=t.oxw();t.ekj("mat-tab-body-active",Fn.selectedIndex===Be),t.Q6J("id",Fn._getTabContentId(Be))("ngClass",ve.bodyClass)("content",ve.content)("position",ve.position)("origin",ve.origin)("animationDuration",Fn.animationDuration)("preserveContent",Fn.preserveContent),t.uIk("tabindex",null!=Fn.contentTabIndex&&Fn.selectedIndex===Be?Fn.contentTabIndex:null)("aria-labelledby",Fn._getTabLabelId(Be))}}const on=["mat-tab-nav-bar",""],hn=new t.OlP("MatInkBarPositioner",{providedIn:"root",factory:function we(){return Zn=>({left:Zn?(Zn.offsetLeft||0)+"px":"0",width:Zn?(Zn.offsetWidth||0)+"px":"0"})}});let bn=(()=>{class He{constructor(ve,Be,Fn,bi){this._elementRef=ve,this._ngZone=Be,this._inkBarPositioner=Fn,this._animationMode=bi}alignToElement(ve){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(()=>{const Be=this._inkBarPositioner(ve),Fn=this._elementRef.nativeElement;Fn.style.left=Be.left,Fn.style.width=Be.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(hn),t.Y36(t.QbO,8))},He.\u0275dir=t.lG2({type:He,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(ve,Be){2&ve&&t.ekj("_mat-animation-noopable","NoopAnimations"===Be._animationMode)}}),He})();const Ze=new t.OlP("MatTabContent"),kn=new t.OlP("MatTabLabel"),ri=new t.OlP("MAT_TAB");let Ee=(()=>{class He extends v.ig{constructor(ve,Be,Fn){super(ve,Be),this._closestTab=Fn}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(ri,8))},He.\u0275dir=t.lG2({type:He,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[t._Bn([{provide:kn,useExisting:He}]),t.qOj]}),He})();const Ft=(0,A.Id)(class{}),vt=new t.OlP("MAT_TAB_GROUP");let xt=(()=>{class He extends Ft{constructor(ve,Be){super(),this._viewContainerRef=ve,this._closestTabGroup=Be,this.textLabel="",this._contentPortal=null,this._stateChanges=new G.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(ve){this._setTemplateLabelInput(ve)}get content(){return this._contentPortal}ngOnChanges(ve){(ve.hasOwnProperty("textLabel")||ve.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(ve){ve&&ve._closestTab===this&&(this._templateLabel=ve)}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.s_b),t.Y36(vt,8))},He.\u0275cmp=t.Xpm({type:He,selectors:[["mat-tab"]],contentQueries:function(ve,Be,Fn){if(1&ve&&(t.Suo(Fn,kn,5),t.Suo(Fn,Ze,7,t.Rgc)),2&ve){let bi;t.iGM(bi=t.CRH())&&(Be.templateLabel=bi.first),t.iGM(bi=t.CRH())&&(Be._explicitContent=bi.first)}},viewQuery:function(ve,Be){if(1&ve&&t.Gf(t.Rgc,7),2&ve){let Fn;t.iGM(Fn=t.CRH())&&(Be._implicitContent=Fn.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[t._Bn([{provide:ri,useExisting:He}]),t.qOj,t.TTD],ngContentSelectors:qt,decls:1,vars:0,template:function(ve,Be){1&ve&&(t.F$t(),t.YNc(0,Qt,1,0,"ng-template"))},encapsulation:2}),He})();const tt={translateTab:(0,at.X$)("translateTab",[(0,at.SB)("center, void, left-origin-center, right-origin-center",(0,at.oB)({transform:"none"})),(0,at.SB)("left",(0,at.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,at.SB)("right",(0,at.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,at.eR)("* => left, * => right, left => center, right => center",(0,at.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,at.eR)("void => left-origin-center",[(0,at.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,at.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,at.eR)("void => right-origin-center",[(0,at.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,at.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let et=(()=>{class He extends v.Pl{constructor(ve,Be,Fn,bi){super(ve,Be,bi),this._host=Fn,this._centeringSub=W.w.EMPTY,this._leavingSub=W.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,w.O)(this._host._isCenterPosition(this._host._position))).subscribe(ve=>{ve&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36((0,t.Gpc)(()=>Bt)),t.Y36(T.K0))},He.\u0275dir=t.lG2({type:He,selectors:[["","matTabBodyHost",""]],features:[t.qOj]}),He})(),Ct=(()=>{class He{constructor(ve,Be,Fn){this._elementRef=ve,this._dir=Be,this._dirChangeSubscription=W.w.EMPTY,this._translateTabComplete=new G.xQ,this._onCentering=new t.vpe,this._beforeCentering=new t.vpe,this._afterLeavingCenter=new t.vpe,this._onCentered=new t.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,Be&&(this._dirChangeSubscription=Be.change.subscribe(bi=>{this._computePositionAnimationState(bi),Fn.markForCheck()})),this._translateTabComplete.pipe((0,k.x)((bi,go)=>bi.fromState===go.fromState&&bi.toState===go.toState)).subscribe(bi=>{this._isCenterPosition(bi.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(bi.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(ve){this._positionIndex=ve,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(ve){const Be=this._isCenterPosition(ve.toState);this._beforeCentering.emit(Be),Be&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(ve){return"center"==ve||"left-origin-center"==ve||"right-origin-center"==ve}_computePositionAnimationState(ve=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==ve?"left":"right":this._positionIndex>0?"ltr"==ve?"right":"left":"center"}_computePositionFromOrigin(ve){const Be=this._getLayoutDirection();return"ltr"==Be&&ve<=0||"rtl"==Be&&ve>0?"left-origin-center":"right-origin-center"}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(Jt.Is,8),t.Y36(t.sBO))},He.\u0275dir=t.lG2({type:He,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),He})(),Bt=(()=>{class He extends Ct{constructor(ve,Be,Fn){super(ve,Be,Fn)}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(Jt.Is,8),t.Y36(t.sBO))},He.\u0275cmp=t.Xpm({type:He,selectors:[["mat-tab-body"]],viewQuery:function(ve,Be){if(1&ve&&t.Gf(v.Pl,5),2&ve){let Fn;t.iGM(Fn=t.CRH())&&(Be._portalHost=Fn.first)}},hostAttrs:[1,"mat-tab-body"],features:[t.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ve,Be){1&ve&&(t.TgZ(0,"div",0,1),t.NdJ("@translateTab.start",function(bi){return Be._onTranslateTabStarted(bi)})("@translateTab.done",function(bi){return Be._translateTabComplete.next(bi)}),t.YNc(2,le,0,0,"ng-template",2),t.qZA()),2&ve&&t.Q6J("@translateTab",t.WLB(3,Ce,Be._position,t.VKq(1,Wt,Be.animationDuration)))},dependencies:[et],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[tt.translateTab]}}),He})();const ne=new t.OlP("MAT_TABS_CONFIG"),he=(0,A.Id)(class{});let Oe=(()=>{class He extends he{constructor(ve){super(),this.elementRef=ve}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq))},He.\u0275dir=t.lG2({type:He,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ve,Be){2&ve&&(t.uIk("aria-disabled",!!Be.disabled),t.ekj("mat-tab-disabled",Be.disabled))},inputs:{disabled:"disabled"},features:[t.qOj]}),He})();const yn=(0,_t.i$)({passive:!0});let ho=(()=>{class He{constructor(ve,Be,Fn,bi,go,_o,fn){this._elementRef=ve,this._changeDetectorRef=Be,this._viewportRuler=Fn,this._dir=bi,this._ngZone=go,this._platform=_o,this._animationMode=fn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new G.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new G.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t.vpe,this.indexFocused=new t.vpe,go.runOutsideAngular(()=>{(0,ot.R)(ve.nativeElement,"mouseleave").pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(ve){this._disablePagination=(0,Zt.Ig)(ve)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ve){ve=(0,Zt.su)(ve),this._selectedIndex!=ve&&(this._selectedIndexChanged=!0,this._selectedIndex=ve,this._keyManager&&this._keyManager.updateActiveItem(ve))}ngAfterViewInit(){(0,ot.R)(this._previousPaginator.nativeElement,"touchstart",yn).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,ot.R)(this._nextPaginator.nativeElement,"touchstart",yn).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const ve=this._dir?this._dir.change:(0,ct.of)("ltr"),Be=this._viewportRuler.change(150),Fn=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new d.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(Fn),(0,gt.T)(ve,Be,this._items.changes,this._itemsResized()).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Fn()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,D.R)(this._destroyed)).subscribe(bi=>{this.indexFocused.emit(bi),this._setTabFocus(bi)})}_itemsResized(){return"function"!=typeof ResizeObserver?Pt.E:this._items.changes.pipe((0,w.O)(this._items),(0,P.w)(ve=>new St.y(Be=>this._ngZone.runOutsideAngular(()=>{const Fn=new ResizeObserver(bi=>Be.next(bi));return ve.forEach(bi=>Fn.observe(bi.elementRef.nativeElement)),()=>{Fn.disconnect()}}))),(0,I.T)(1),(0,z.h)(ve=>ve.some(Be=>Be.contentRect.width>0&&Be.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(ve){if(!(0,Nt.Vb)(ve))switch(ve.keyCode){case Nt.K5:case Nt.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(ve));break;default:this._keyManager.onKeydown(ve)}}_onContentChanges(){const ve=this._elementRef.nativeElement.textContent;ve!==this._currentTextContent&&(this._currentTextContent=ve||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(ve){!this._isValidIndex(ve)||this.focusIndex===ve||!this._keyManager||this._keyManager.setActiveItem(ve)}_isValidIndex(ve){if(!this._items)return!0;const Be=this._items?this._items.toArray()[ve]:null;return!!Be&&!Be.disabled}_setTabFocus(ve){if(this._showPaginationControls&&this._scrollToLabel(ve),this._items&&this._items.length){this._items.toArray()[ve].focus();const Be=this._tabListContainer.nativeElement;Be.scrollLeft="ltr"==this._getLayoutDirection()?0:Be.scrollWidth-Be.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const ve=this.scrollDistance,Be="ltr"===this._getLayoutDirection()?-ve:ve;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Be)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(ve){this._scrollTo(ve)}_scrollHeader(ve){return this._scrollTo(this._scrollDistance+("before"==ve?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(ve){this._stopInterval(),this._scrollHeader(ve)}_scrollToLabel(ve){if(this.disablePagination)return;const Be=this._items?this._items.toArray()[ve]:null;if(!Be)return;const Fn=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:bi,offsetWidth:go}=Be.elementRef.nativeElement;let _o,fn;"ltr"==this._getLayoutDirection()?(_o=bi,fn=_o+go):(fn=this._tabListInner.nativeElement.offsetWidth-bi,_o=fn-go);const wn=this.scrollDistance,ln=this.scrollDistance+Fn;_oln&&(this.scrollDistance+=fn-ln+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const ve=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;ve||(this.scrollDistance=0),ve!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=ve}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const ve=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Be=ve?ve.elementRef.nativeElement:null;Be?this._inkBar.alignToElement(Be):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(ve,Be){Be&&null!=Be.button&&0!==Be.button||(this._stopInterval(),(0,Ht.H)(650,100).pipe((0,D.R)((0,gt.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Fn,distance:bi}=this._scrollHeader(ve);(0===bi||bi>=Fn)&&this._stopInterval()}))}_scrollTo(ve){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Be=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Be,ve)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Be,distance:this._scrollDistance}}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(wt.rL),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(_t.t4),t.Y36(t.QbO,8))},He.\u0275dir=t.lG2({type:He,inputs:{disablePagination:"disablePagination"}}),He})(),hi=(()=>{class He extends ho{constructor(ve,Be,Fn,bi,go,_o,fn){super(ve,Be,Fn,bi,go,_o,fn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ve){this._disableRipple=(0,Zt.Ig)(ve)}_itemSelected(ve){ve.preventDefault()}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(wt.rL),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(_t.t4),t.Y36(t.QbO,8))},He.\u0275dir=t.lG2({type:He,inputs:{disableRipple:"disableRipple"},features:[t.qOj]}),He})(),Vn=(()=>{class He extends hi{constructor(ve,Be,Fn,bi,go,_o,fn){super(ve,Be,Fn,bi,go,_o,fn)}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(wt.rL),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(_t.t4),t.Y36(t.QbO,8))},He.\u0275cmp=t.Xpm({type:He,selectors:[["mat-tab-header"]],contentQueries:function(ve,Be,Fn){if(1&ve&&t.Suo(Fn,Oe,4),2&ve){let bi;t.iGM(bi=t.CRH())&&(Be._items=bi)}},viewQuery:function(ve,Be){if(1&ve&&(t.Gf(bn,7),t.Gf(Ae,7),t.Gf(Ne,7),t.Gf(ze,7),t.Gf(Xe,5),t.Gf(ie,5)),2&ve){let Fn;t.iGM(Fn=t.CRH())&&(Be._inkBar=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabListContainer=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabList=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabListInner=Fn.first),t.iGM(Fn=t.CRH())&&(Be._nextPaginator=Fn.first),t.iGM(Fn=t.CRH())&&(Be._previousPaginator=Fn.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(ve,Be){2&ve&&t.ekj("mat-tab-header-pagination-controls-enabled",Be._showPaginationControls)("mat-tab-header-rtl","rtl"==Be._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.qOj],ngContentSelectors:qt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ve,Be){1&ve&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Be._handlePaginatorClick("before")})("mousedown",function(bi){return Be._handlePaginatorPress("before",bi)})("touchend",function(){return Be._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(bi){return Be._handleKeydown(bi)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Be._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(bi){return Be._handlePaginatorPress("after",bi)})("click",function(){return Be._handlePaginatorClick("after")})("touchend",function(){return Be._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&ve&&(t.ekj("mat-tab-header-pagination-disabled",Be._disableScrollBefore),t.Q6J("matRippleDisabled",Be._disableScrollBefore||Be.disableRipple)("disabled",Be._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Be._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Be._disableScrollAfter),t.Q6J("matRippleDisabled",Be._disableScrollAfter||Be.disableRipple)("disabled",Be._disableScrollAfter||null))},dependencies:[A.wG,p.wD,bn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),He})(),Gn=0;class je{}const gn=(0,A.pj)((0,A.Kr)(class{constructor(He){this._elementRef=He}}),"primary");let Ve=(()=>{class He extends gn{constructor(ve,Be,Fn,bi){super(ve),this._changeDetectorRef=Be,this._animationMode=bi,this._tabs=new t.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=W.w.EMPTY,this._tabLabelSubscription=W.w.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new t.vpe,this.focusChange=new t.vpe,this.animationDone=new t.vpe,this.selectedTabChange=new t.vpe(!0),this._groupId=Gn++,this.animationDuration=Fn&&Fn.animationDuration?Fn.animationDuration:"500ms",this.disablePagination=!(!Fn||null==Fn.disablePagination)&&Fn.disablePagination,this.dynamicHeight=!(!Fn||null==Fn.dynamicHeight)&&Fn.dynamicHeight,this.contentTabIndex=Fn?.contentTabIndex??null,this.preserveContent=!!Fn?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(ve){this._dynamicHeight=(0,Zt.Ig)(ve)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ve){this._indexToSelect=(0,Zt.su)(ve,null)}get animationDuration(){return this._animationDuration}set animationDuration(ve){this._animationDuration=/^\d+$/.test(ve+"")?ve+"ms":ve}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(ve){this._contentTabIndex=(0,Zt.su)(ve,null)}get disablePagination(){return this._disablePagination}set disablePagination(ve){this._disablePagination=(0,Zt.Ig)(ve)}get preserveContent(){return this._preserveContent}set preserveContent(ve){this._preserveContent=(0,Zt.Ig)(ve)}get backgroundColor(){return this._backgroundColor}set backgroundColor(ve){const Be=this._elementRef.nativeElement;Be.classList.remove(`mat-background-${this.backgroundColor}`),ve&&Be.classList.add(`mat-background-${ve}`),this._backgroundColor=ve}ngAfterContentChecked(){const ve=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=ve){const Be=null==this._selectedIndex;if(!Be){this.selectedTabChange.emit(this._createChangeEvent(ve));const Fn=this._tabBodyWrapper.nativeElement;Fn.style.minHeight=Fn.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Fn,bi)=>Fn.isActive=bi===ve),Be||(this.selectedIndexChange.emit(ve),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Be,Fn)=>{Be.position=Fn-ve,null!=this._selectedIndex&&0==Be.position&&!Be.origin&&(Be.origin=ve-this._selectedIndex)}),this._selectedIndex!==ve&&(this._selectedIndex=ve,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const ve=this._clampTabIndex(this._indexToSelect);if(ve===this._selectedIndex){const Be=this._tabs.toArray();let Fn;for(let bi=0;bi{Be[ve].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(ve))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,w.O)(this._allTabs)).subscribe(ve=>{this._tabs.reset(ve.filter(Be=>Be._closestTabGroup===this||!Be._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(ve){const Be=this._tabHeader;Be&&(Be.focusIndex=ve)}_focusChanged(ve){this._lastFocusedTabIndex=ve,this.focusChange.emit(this._createChangeEvent(ve))}_createChangeEvent(ve){const Be=new je;return Be.index=ve,this._tabs&&this._tabs.length&&(Be.tab=this._tabs.toArray()[ve]),Be}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,gt.T)(...this._tabs.map(ve=>ve._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(ve){return Math.min(this._tabs.length-1,Math.max(ve||0,0))}_getTabLabelId(ve){return`mat-tab-label-${this._groupId}-${ve}`}_getTabContentId(ve){return`mat-tab-content-${this._groupId}-${ve}`}_setTabBodyWrapperHeight(ve){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Be=this._tabBodyWrapper.nativeElement;Be.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Be.style.height=ve+"px")}_removeTabBodyWrapperHeight(){const ve=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=ve.clientHeight,ve.style.height="",this.animationDone.emit()}_handleClick(ve,Be,Fn){ve.disabled||(this.selectedIndex=Be.focusIndex=Fn)}_getTabIndex(ve,Be){return ve.disabled?null:Be===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(ve,Be){ve&&"mouse"!==ve&&"touch"!==ve&&(this._tabHeader.focusIndex=Be)}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ne,8),t.Y36(t.QbO,8))},He.\u0275dir=t.lG2({type:He,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[t.qOj]}),He})(),tn=(()=>{class He extends Ve{constructor(ve,Be,Fn,bi){super(ve,Be,Fn,bi)}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ne,8),t.Y36(t.QbO,8))},He.\u0275cmp=t.Xpm({type:He,selectors:[["mat-tab-group"]],contentQueries:function(ve,Be,Fn){if(1&ve&&t.Suo(Fn,xt,5),2&ve){let bi;t.iGM(bi=t.CRH())&&(Be._allTabs=bi)}},viewQuery:function(ve,Be){if(1&ve&&(t.Gf(Te,5),t.Gf(re,5)),2&ve){let Fn;t.iGM(Fn=t.CRH())&&(Be._tabBodyWrapper=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabHeader=Fn.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(ve,Be){2&ve&&t.ekj("mat-tab-group-dynamic-height",Be.dynamicHeight)("mat-tab-group-inverted-header","below"===Be.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[t._Bn([{provide:vt,useExisting:He}]),t.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(ve,Be){1&ve&&(t.TgZ(0,"mat-tab-header",0,1),t.NdJ("indexFocused",function(bi){return Be._focusChanged(bi)})("selectFocusedIndex",function(bi){return Be.selectedIndex=bi}),t.YNc(2,ce,5,15,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.YNc(5,Le,1,11,"mat-tab-body",5),t.qZA()),2&ve&&(t.Q6J("selectedIndex",Be.selectedIndex||0)("disableRipple",Be.disableRipple)("disablePagination",Be.disablePagination),t.xp6(2),t.Q6J("ngForOf",Be._tabs),t.xp6(1),t.ekj("_mat-animation-noopable","NoopAnimations"===Be._animationMode),t.xp6(2),t.Q6J("ngForOf",Be._tabs))},dependencies:[T.mk,T.sg,T.O5,v.Pl,A.wG,d.kH,Oe,Bt,Vn],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),He})(),an=0,pe=(()=>{class He extends ho{constructor(ve,Be,Fn,bi,go,_o,fn){super(ve,bi,go,Be,Fn,_o,fn),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(ve){const Be=this._elementRef.nativeElement.classList;Be.remove(`mat-background-${this.backgroundColor}`),ve&&Be.add(`mat-background-${ve}`),this._backgroundColor=ve}get disableRipple(){return this._disableRipple}set disableRipple(ve){this._disableRipple=(0,Zt.Ig)(ve)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,w.O)(null),(0,D.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const ve=this._items.toArray();for(let Be=0;Be{class He extends pe{constructor(ve,Be,Fn,bi,go,_o,fn){super(ve,Be,Fn,bi,go,_o,fn)}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(wt.rL),t.Y36(_t.t4),t.Y36(t.QbO,8))},He.\u0275cmp=t.Xpm({type:He,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(ve,Be,Fn){if(1&ve&&t.Suo(Fn,It,5),2&ve){let bi;t.iGM(bi=t.CRH())&&(Be._items=bi)}},viewQuery:function(ve,Be){if(1&ve&&(t.Gf(bn,7),t.Gf(Ae,7),t.Gf(Ne,7),t.Gf(ze,7),t.Gf(Xe,5),t.Gf(ie,5)),2&ve){let Fn;t.iGM(Fn=t.CRH())&&(Be._inkBar=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabListContainer=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabList=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabListInner=Fn.first),t.iGM(Fn=t.CRH())&&(Be._nextPaginator=Fn.first),t.iGM(Fn=t.CRH())&&(Be._previousPaginator=Fn.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(ve,Be){2&ve&&(t.uIk("role",Be._getRole()),t.ekj("mat-tab-header-pagination-controls-enabled",Be._showPaginationControls)("mat-tab-header-rtl","rtl"==Be._getLayoutDirection())("mat-primary","warn"!==Be.color&&"accent"!==Be.color)("mat-accent","accent"===Be.color)("mat-warn","warn"===Be.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[t.qOj],attrs:on,ngContentSelectors:qt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ve,Be){1&ve&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Be._handlePaginatorClick("before")})("mousedown",function(bi){return Be._handlePaginatorPress("before",bi)})("touchend",function(){return Be._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(bi){return Be._handleKeydown(bi)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Be._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(bi){return Be._handlePaginatorPress("after",bi)})("click",function(){return Be._handlePaginatorClick("after")})("touchend",function(){return Be._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&ve&&(t.ekj("mat-tab-header-pagination-disabled",Be._disableScrollBefore),t.Q6J("matRippleDisabled",Be._disableScrollBefore||Be.disableRipple)("disabled",Be._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Be._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Be._disableScrollAfter),t.Q6J("matRippleDisabled",Be._disableScrollAfter||Be.disableRipple)("disabled",Be._disableScrollAfter||null))},dependencies:[A.wG,p.wD,bn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2}),He})();const Et=(0,A.sb)((0,A.Kr)((0,A.Id)(class{})));let Mt=(()=>{class He extends Et{constructor(ve,Be,Fn,bi,go,_o){super(),this._tabNavBar=ve,this.elementRef=Be,this._focusMonitor=go,this._isActive=!1,this.id="mat-tab-link-"+an++,this.rippleConfig=Fn||{},this.tabIndex=parseInt(bi)||0,"NoopAnimations"===_o&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(ve){const Be=(0,Zt.Ig)(ve);Be!==this._isActive&&(this._isActive=Be,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(ve){this._tabNavBar.tabPanel&&ve.keyCode===Nt.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(pe),t.Y36(t.SBq),t.Y36(A.Y2,8),t.$8M("tabindex"),t.Y36(d.tE),t.Y36(t.QbO,8))},He.\u0275dir=t.lG2({type:He,inputs:{active:"active",id:"id"},features:[t.qOj]}),He})(),It=(()=>{class He extends Mt{constructor(ve,Be,Fn,bi,go,_o,fn,wn){super(ve,Be,go,_o,fn,wn),this._tabLinkRipple=new A.IR(this,Fn,Be,bi),this._tabLinkRipple.setupTriggerEvents(Be.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(We),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(_t.t4),t.Y36(A.Y2,8),t.$8M("tabindex"),t.Y36(d.tE),t.Y36(t.QbO,8))},He.\u0275dir=t.lG2({type:He,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(ve,Be){1&ve&&t.NdJ("focus",function(){return Be._handleFocus()})("keydown",function(bi){return Be._handleKeydown(bi)}),2&ve&&(t.uIk("aria-controls",Be._getAriaControls())("aria-current",Be._getAriaCurrent())("aria-disabled",Be.disabled)("aria-selected",Be._getAriaSelected())("id",Be.id)("tabIndex",Be._getTabIndex())("role",Be._getRole()),t.ekj("mat-tab-disabled",Be.disabled)("mat-tab-label-active",Be.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[t.qOj]}),He})(),en=(()=>{class He{}return He.\u0275fac=function(ve){return new(ve||He)},He.\u0275mod=t.oAB({type:He}),He.\u0275inj=t.cJS({imports:[T.ez,A.BQ,v.eL,A.si,p.Q8,d.rt,A.BQ]}),He})()},83683:(rt,it,b)=>{"use strict";b.d(it,{Ye:()=>k,g0:()=>P});var d=b(94650),p=b(3238),v=b(83353),T=b(36895);const t=["*",[["mat-toolbar-row"]]],A=["*","mat-toolbar-row"],x=(0,p.pj)(class{constructor(I){this._elementRef=I}});let w=(()=>{class I{}return I.\u0275fac=function(G){return new(G||I)},I.\u0275dir=d.lG2({type:I,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),I})(),k=(()=>{class I extends x{constructor(G,W,ot){super(G),this._platform=W,this._document=ot}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return I.\u0275fac=function(G){return new(G||I)(d.Y36(d.SBq),d.Y36(v.t4),d.Y36(T.K0))},I.\u0275cmp=d.Xpm({type:I,selectors:[["mat-toolbar"]],contentQueries:function(G,W,ot){if(1&G&&d.Suo(ot,w,5),2&G){let ct;d.iGM(ct=d.CRH())&&(W._toolbarRows=ct)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(G,W){2&G&&d.ekj("mat-toolbar-multiple-rows",W._toolbarRows.length>0)("mat-toolbar-single-row",0===W._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[d.qOj],ngContentSelectors:A,decls:2,vars:0,template:function(G,W){1&G&&(d.F$t(t),d.Hsn(0),d.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),I})(),P=(()=>{class I{}return I.\u0275fac=function(G){return new(G||I)},I.\u0275mod=d.oAB({type:I}),I.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),I})()},10266:(rt,it,b)=>{"use strict";b.d(it,{AV:()=>Ae,gM:()=>le});var d=b(98184),p=b(12687),v=b(36895),T=b(94650),t=b(3238),A=b(67376),x=b(40445),w=b(21281),k=b(29521),D=b(62289),P=b(83353),I=b(84080),z=b(8929),G=b(7625),W=b(72986);b(37340);const ct=["tooltip"],St="tooltip-panel",Ht=(0,P.i$)({passive:!0}),Zt=new T.OlP("mat-tooltip-scroll-strategy"),_t={provide:Zt,deps:[d.aV],useFactory:function wt(ze){return()=>ze.scrollStrategies.reposition({scrollThrottle:20})}},Nt=new T.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Qt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let qt=(()=>{class ze{constructor(ie,Te,re,ee,ue,Kt,ce,Le,on,hn,we,bn){this._overlay=ie,this._elementRef=Te,this._scrollDispatcher=re,this._viewContainerRef=ee,this._ngZone=ue,this._platform=Kt,this._ariaDescriber=ce,this._focusMonitor=Le,this._dir=hn,this._defaultOptions=we,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new z.xQ,this._scrollStrategy=on,this._document=bn,we&&(we.position&&(this.position=we.position),we.touchGestures&&(this.touchGestures=we.touchGestures)),hn.change.pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(ie){ie!==this._position&&(this._position=ie,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(ie){this._disabled=(0,w.Ig)(ie),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(ie){this._showDelay=(0,w.su)(ie)}get hideDelay(){return this._hideDelay}set hideDelay(ie){this._hideDelay=(0,w.su)(ie),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(ie){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=ie?String(ie).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(ie){this._tooltipClass=ie,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,G.R)(this._destroyed)).subscribe(ie=>{ie?"keyboard"===ie&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const ie=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Te,re])=>{ie.removeEventListener(Te,re,Ht)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(ie,this.message,"tooltip"),this._focusMonitor.stopMonitoring(ie)}show(ie=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Te=this._createOverlay();this._detach(),this._portal=this._portal||new I.C5(this._tooltipComponent,this._viewContainerRef);const re=this._tooltipInstance=Te.attach(this._portal).instance;re._triggerElement=this._elementRef.nativeElement,re._mouseLeaveHideDelay=this._hideDelay,re.afterHidden().pipe((0,G.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),re.show(ie)}hide(ie=this.hideDelay){const Te=this._tooltipInstance;Te&&(Te.isVisible()?Te.hide(ie):(Te._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const ie=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Te=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ie);return Te.positionChanges.pipe((0,G.R)(this._destroyed)).subscribe(re=>{this._updateCurrentPositionClass(re.connectionPair),this._tooltipInstance&&re.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Te,panelClass:`${this._cssClassPrefix}-${St}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,G.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,G.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,G.R)(this._destroyed)).subscribe(re=>{this._isTooltipVisible()&&re.keyCode===k.hY&&!(0,k.Vb)(re)&&(re.preventDefault(),re.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(ie){const Te=ie.getConfig().positionStrategy,re=this._getOrigin(),ee=this._getOverlayPosition();Te.withPositions([this._addOffset({...re.main,...ee.main}),this._addOffset({...re.fallback,...ee.fallback})])}_addOffset(ie){return ie}_getOrigin(){const ie=!this._dir||"ltr"==this._dir.value,Te=this.position;let re;"above"==Te||"below"==Te?re={originX:"center",originY:"above"==Te?"top":"bottom"}:"before"==Te||"left"==Te&&ie||"right"==Te&&!ie?re={originX:"start",originY:"center"}:("after"==Te||"right"==Te&&ie||"left"==Te&&!ie)&&(re={originX:"end",originY:"center"});const{x:ee,y:ue}=this._invertPosition(re.originX,re.originY);return{main:re,fallback:{originX:ee,originY:ue}}}_getOverlayPosition(){const ie=!this._dir||"ltr"==this._dir.value,Te=this.position;let re;"above"==Te?re={overlayX:"center",overlayY:"bottom"}:"below"==Te?re={overlayX:"center",overlayY:"top"}:"before"==Te||"left"==Te&&ie||"right"==Te&&!ie?re={overlayX:"end",overlayY:"center"}:("after"==Te||"right"==Te&&ie||"left"==Te&&!ie)&&(re={overlayX:"start",overlayY:"center"});const{x:ee,y:ue}=this._invertPosition(re.overlayX,re.overlayY);return{main:re,fallback:{overlayX:ee,overlayY:ue}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,W.q)(1),(0,G.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(ie){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=ie,this._tooltipInstance._markForCheck())}_invertPosition(ie,Te){return"above"===this.position||"below"===this.position?"top"===Te?Te="bottom":"bottom"===Te&&(Te="top"):"end"===ie?ie="start":"start"===ie&&(ie="end"),{x:ie,y:Te}}_updateCurrentPositionClass(ie){const{overlayY:Te,originX:re,originY:ee}=ie;let ue;if(ue="center"===Te?this._dir&&"rtl"===this._dir.value?"end"===re?"left":"right":"start"===re?"left":"right":"bottom"===Te&&"top"===ee?"above":"below",ue!==this._currentPosition){const Kt=this._overlayRef;if(Kt){const ce=`${this._cssClassPrefix}-${St}-`;Kt.removePanelClass(ce+this._currentPosition),Kt.addPanelClass(ce+ue)}this._currentPosition=ue}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const ie=[];if(this._platformSupportsMouseEvents())ie.push(["mouseleave",Te=>{const re=Te.relatedTarget;(!re||!this._overlayRef?.overlayElement.contains(re))&&this.hide()}],["wheel",Te=>this._wheelListener(Te)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Te=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};ie.push(["touchend",Te],["touchcancel",Te])}this._addListeners(ie),this._passiveListeners.push(...ie)}_addListeners(ie){ie.forEach(([Te,re])=>{this._elementRef.nativeElement.addEventListener(Te,re,Ht)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(ie){if(this._isTooltipVisible()){const Te=this._document.elementFromPoint(ie.clientX,ie.clientY),re=this._elementRef.nativeElement;Te!==re&&!re.contains(Te)&&this.hide()}}_disableNativeGesturesIfNecessary(){const ie=this.touchGestures;if("off"!==ie){const Te=this._elementRef.nativeElement,re=Te.style;("on"===ie||"INPUT"!==Te.nodeName&&"TEXTAREA"!==Te.nodeName)&&(re.userSelect=re.msUserSelect=re.webkitUserSelect=re.MozUserSelect="none"),("on"===ie||!Te.draggable)&&(re.webkitUserDrag="none"),re.touchAction="none",re.webkitTapHighlightColor="transparent"}}}return ze.\u0275fac=function(ie){T.$Z()},ze.\u0275dir=T.lG2({type:ze,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),ze})(),le=(()=>{class ze extends qt{constructor(ie,Te,re,ee,ue,Kt,ce,Le,on,hn,we,bn){super(ie,Te,re,ee,ue,Kt,ce,Le,on,hn,we,bn),this._tooltipComponent=Ce}}return ze.\u0275fac=function(ie){return new(ie||ze)(T.Y36(d.aV),T.Y36(T.SBq),T.Y36(A.mF),T.Y36(T.s_b),T.Y36(T.R0b),T.Y36(P.t4),T.Y36(p.$s),T.Y36(p.tE),T.Y36(Zt),T.Y36(x.Is,8),T.Y36(Nt,8),T.Y36(v.K0))},ze.\u0275dir=T.lG2({type:ze,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[T.qOj]}),ze})(),Wt=(()=>{class ze{constructor(ie,Te){this._changeDetectorRef=ie,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new z.xQ,this._animationsDisabled="NoopAnimations"===Te}show(ie){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},ie)}hide(ie){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},ie)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:ie}){(!ie||!this._triggerElement.contains(ie))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:ie}){(ie===this._showAnimation||ie===this._hideAnimation)&&this._finalizeAnimation(ie===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(ie){ie?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(ie){const Te=this._tooltip.nativeElement,re=this._showAnimation,ee=this._hideAnimation;if(Te.classList.remove(ie?ee:re),Te.classList.add(ie?re:ee),this._isVisible=ie,ie&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const ue=getComputedStyle(Te);("0s"===ue.getPropertyValue("animation-duration")||"none"===ue.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}ie&&this._onShow(),this._animationsDisabled&&(Te.classList.add("_mat-animation-noopable"),this._finalizeAnimation(ie))}}return ze.\u0275fac=function(ie){return new(ie||ze)(T.Y36(T.sBO),T.Y36(T.QbO,8))},ze.\u0275dir=T.lG2({type:ze}),ze})(),Ce=(()=>{class ze extends Wt{constructor(ie,Te,re){super(ie,re),this._breakpointObserver=Te,this._isHandset=this._breakpointObserver.observe(D.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return ze.\u0275fac=function(ie){return new(ie||ze)(T.Y36(T.sBO),T.Y36(D.Yg),T.Y36(T.QbO,8))},ze.\u0275cmp=T.Xpm({type:ze,selectors:[["mat-tooltip-component"]],viewQuery:function(ie,Te){if(1&ie&&T.Gf(ct,7),2&ie){let re;T.iGM(re=T.CRH())&&(Te._tooltip=re.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(ie,Te){1&ie&&T.NdJ("mouseleave",function(ee){return Te._handleMouseLeave(ee)}),2&ie&&T.Udp("zoom",Te.isVisible()?1:null)},features:[T.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(ie,Te){if(1&ie&&(T.TgZ(0,"div",0,1),T.NdJ("animationend",function(ee){return Te._handleAnimationEnd(ee)}),T.ALo(2,"async"),T._uU(3),T.qZA()),2&ie){let re;T.ekj("mat-tooltip-handset",null==(re=T.lcZ(2,4,Te._isHandset))?null:re.matches),T.Q6J("ngClass",Te.tooltipClass),T.xp6(3),T.Oqu(Te.message)}},dependencies:[v.mk,v.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),ze})(),Ae=(()=>{class ze{}return ze.\u0275fac=function(ie){return new(ie||ze)},ze.\u0275mod=T.oAB({type:ze}),ze.\u0275inj=T.cJS({providers:[_t],imports:[p.rt,v.ez,d.U8,t.BQ,t.BQ,A.ZD]}),ze})()},35423:(rt,it,b)=>{"use strict";b.d(it,{Ar:()=>W,GZ:()=>z,JZ:()=>St,WX:()=>Jt,ah:()=>G,dp:()=>Pt,eu:()=>ct,fQ:()=>I,gi:()=>ot,kc:()=>Ht,uo:()=>P});var d=b(57851),p=b(94650),v=b(3238),T=b(21281),t=b(95017),A=b(591),x=b(36787),w=b(72986),k=b(24850);const D=(0,v.sb)((0,v.Id)(d.Hs));let P=(()=>{class at extends D{constructor(wt,_t,Nt){super(wt,_t),this.tabIndex=Number(Nt)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return at.\u0275fac=function(wt){return new(wt||at)(p.Y36(p.SBq),p.Y36(d._0),p.$8M("tabindex"))},at.\u0275dir=p.lG2({type:at,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[p._Bn([{provide:d.Hs,useExisting:at}]),p.qOj]}),at})(),I=(()=>{class at extends d.rO{}return at.\u0275fac=function(){let Zt;return function(_t){return(Zt||(Zt=p.n5z(at)))(_t||at)}}(),at.\u0275dir=p.lG2({type:at,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[p._Bn([{provide:d.rO,useExisting:at}]),p.qOj]}),at})(),z=(()=>{class at extends d.Xx{constructor(wt,_t,Nt,Qt){super(wt,_t,Nt),this._disabled=!1,this.tabIndex=Number(Qt)||0}get disabled(){return this._disabled}set disabled(wt){this._disabled=(0,T.Ig)(wt)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(wt){this._tabIndex=wt??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return at.\u0275fac=function(wt){return new(wt||at)(p.Y36(p.SBq),p.Y36(d._0),p.Y36(p.ZZ4),p.$8M("tabindex"))},at.\u0275dir=p.lG2({type:at,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[p._Bn([{provide:d.Xx,useExisting:at},{provide:d.Hs,useExisting:at},{provide:d.HI,useExisting:at}]),p.qOj]}),at})(),G=(()=>{class at extends d.XJ{get level(){return this._level}set level(wt){this._setLevelInput(wt)}get indent(){return this._indent}set indent(wt){this._setIndentInput(wt)}}return at.\u0275fac=function(){let Zt;return function(_t){return(Zt||(Zt=p.n5z(at)))(_t||at)}}(),at.\u0275dir=p.lG2({type:at,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[p._Bn([{provide:d.XJ,useExisting:at}]),p.qOj]}),at})(),W=(()=>{class at{constructor(wt,_t){this.viewContainer=wt,this._node=_t}}return at.\u0275fac=function(wt){return new(wt||at)(p.Y36(p.s_b),p.Y36(d.HI,8))},at.\u0275dir=p.lG2({type:at,selectors:[["","matTreeNodeOutlet",""]],features:[p._Bn([{provide:d.cu,useExisting:at}])]}),at})(),ot=(()=>{class at extends d._0{}return at.\u0275fac=function(){let Zt;return function(_t){return(Zt||(Zt=p.n5z(at)))(_t||at)}}(),at.\u0275cmp=p.Xpm({type:at,selectors:[["mat-tree"]],viewQuery:function(wt,_t){if(1&wt&&p.Gf(W,7),2&wt){let Nt;p.iGM(Nt=p.CRH())&&(_t._nodeOutlet=Nt.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[p._Bn([{provide:d._0,useExisting:at}]),p.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(wt,_t){1&wt&&p.GkF(0,0)},dependencies:[W],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),at})(),ct=(()=>{class at extends d.Ud{}return at.\u0275fac=function(){let Zt;return function(_t){return(Zt||(Zt=p.n5z(at)))(_t||at)}}(),at.\u0275dir=p.lG2({type:at,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[p._Bn([{provide:d.Ud,useExisting:at}]),p.qOj]}),at})(),Pt=(()=>{class at{}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275mod=p.oAB({type:at}),at.\u0275inj=p.cJS({imports:[d.nZ,v.BQ,v.BQ]}),at})();class St{constructor(Zt,wt,_t,Nt){this.transformFunction=Zt,this.getLevel=wt,this.isExpandable=_t,this.getChildren=Nt}_flattenNode(Zt,wt,_t,Nt){const Qt=this.transformFunction(Zt,wt);if(_t.push(Qt),this.isExpandable(Qt)){const qt=this.getChildren(Zt);qt&&(Array.isArray(qt)?this._flattenChildren(qt,wt,_t,Nt):qt.pipe((0,w.q)(1)).subscribe(le=>{this._flattenChildren(le,wt,_t,Nt)}))}return _t}_flattenChildren(Zt,wt,_t,Nt){Zt.forEach((Qt,qt)=>{let le=Nt.slice();le.push(qt!=Zt.length-1),this._flattenNode(Qt,wt+1,_t,le)})}flattenNodes(Zt){let wt=[];return Zt.forEach(_t=>this._flattenNode(_t,0,wt,[])),wt}expandFlattenedNodes(Zt,wt){let _t=[],Nt=[];return Nt[0]=!0,Zt.forEach(Qt=>{let qt=!0;for(let le=0;le<=this.getLevel(Qt);le++)qt=qt&&Nt[le];qt&&_t.push(Qt),this.isExpandable(Qt)&&(Nt[this.getLevel(Qt)+1]=wt.isExpanded(Qt))}),_t}}class Ht extends t.o2{constructor(Zt,wt,_t){super(),this._treeControl=Zt,this._treeFlattener=wt,this._flattenedData=new A.X([]),this._expandedData=new A.X([]),this._data=new A.X([]),_t&&(this.data=_t)}get data(){return this._data.value}set data(Zt){this._data.next(Zt),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(Zt){return(0,x.T)(Zt.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,k.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class Jt extends t.o2{constructor(){super(...arguments),this._data=new A.X([])}get data(){return this._data.value}set data(Zt){this._data.next(Zt)}connect(Zt){return(0,x.T)(Zt.viewChange,this._data).pipe((0,k.U)(()=>this.data))}disconnect(){}}},11481:(rt,it,b)=>{"use strict";b.d(it,{Dx:()=>ne,H7:()=>Fn,b2:()=>xt,q6:()=>ri,se:()=>Wt});var d=b(36895),p=b(94650);class v extends d.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class T extends v{static makeCurrent(){(0,d.HT)(new T)}onAndCancel(wn,ln,ii){return wn.addEventListener(ln,ii,!1),()=>{wn.removeEventListener(ln,ii,!1)}}dispatchEvent(wn,ln){wn.dispatchEvent(ln)}remove(wn){wn.parentNode&&wn.parentNode.removeChild(wn)}createElement(wn,ln){return(ln=ln||this.getDefaultDocument()).createElement(wn)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(wn){return wn.nodeType===Node.ELEMENT_NODE}isShadowRoot(wn){return wn instanceof DocumentFragment}getGlobalEventTarget(wn,ln){return"window"===ln?window:"document"===ln?wn:"body"===ln?wn.body:null}getBaseHref(wn){const ln=function A(){return t=t||document.querySelector("base"),t?t.getAttribute("href"):null}();return null==ln?null:function w(fn){x=x||document.createElement("a"),x.setAttribute("href",fn);const wn=x.pathname;return"/"===wn.charAt(0)?wn:`/${wn}`}(ln)}resetBaseElement(){t=null}getUserAgent(){return window.navigator.userAgent}getCookie(wn){return(0,d.Mx)(document.cookie,wn)}}let x,t=null;const k=new p.OlP("TRANSITION_ID"),P=[{provide:p.ip1,useFactory:function D(fn,wn,ln){return()=>{ln.get(p.CZH).donePromise.then(()=>{const ii=(0,d.q)(),Zi=wn.querySelectorAll(`style[ng-transition="${fn}"]`);for(let vo=0;vo{class fn{build(){return new XMLHttpRequest}}return fn.\u0275fac=function(ln){return new(ln||fn)},fn.\u0275prov=p.Yz7({token:fn,factory:fn.\u0275fac}),fn})();const G=new p.OlP("EventManagerPlugins");let W=(()=>{class fn{constructor(ln,ii){this._zone=ii,this._eventNameToPlugin=new Map,ln.forEach(Zi=>Zi.manager=this),this._plugins=ln.slice().reverse()}addEventListener(ln,ii,Zi){return this._findPluginFor(ii).addEventListener(ln,ii,Zi)}addGlobalEventListener(ln,ii,Zi){return this._findPluginFor(ii).addGlobalEventListener(ln,ii,Zi)}getZone(){return this._zone}_findPluginFor(ln){const ii=this._eventNameToPlugin.get(ln);if(ii)return ii;const Zi=this._plugins;for(let vo=0;vo{class fn{constructor(){this._stylesSet=new Set}addStyles(ln){const ii=new Set;ln.forEach(Zi=>{this._stylesSet.has(Zi)||(this._stylesSet.add(Zi),ii.add(Zi))}),this.onStylesAdded(ii)}onStylesAdded(ln){}getAllStyles(){return Array.from(this._stylesSet)}}return fn.\u0275fac=function(ln){return new(ln||fn)},fn.\u0275prov=p.Yz7({token:fn,factory:fn.\u0275fac}),fn})(),gt=(()=>{class fn extends ct{constructor(ln){super(),this._doc=ln,this._hostNodes=new Map,this._hostNodes.set(ln.head,[])}_addStylesToHost(ln,ii,Zi){ln.forEach(vo=>{const No=this._doc.createElement("style");No.textContent=vo,Zi.push(ii.appendChild(No))})}addHost(ln){const ii=[];this._addStylesToHost(this._stylesSet,ln,ii),this._hostNodes.set(ln,ii)}removeHost(ln){const ii=this._hostNodes.get(ln);ii&&ii.forEach(Pt),this._hostNodes.delete(ln)}onStylesAdded(ln){this._hostNodes.forEach((ii,Zi)=>{this._addStylesToHost(ln,Zi,ii)})}ngOnDestroy(){this._hostNodes.forEach(ln=>ln.forEach(Pt))}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(d.K0))},fn.\u0275prov=p.Yz7({token:fn,factory:fn.\u0275fac}),fn})();function Pt(fn){(0,d.q)().remove(fn)}const St={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ht=/%COMP%/g;function Qt(fn,wn,ln){for(let ii=0;ii{if("__ngUnwrap__"===wn)return fn;!1===fn(wn)&&(wn.preventDefault(),wn.returnValue=!1)}}let Wt=(()=>{class fn{constructor(ln,ii,Zi){this.eventManager=ln,this.sharedStylesHost=ii,this.appId=Zi,this.rendererByCompId=new Map,this.defaultRenderer=new Ce(ln)}createRenderer(ln,ii){if(!ln||!ii)return this.defaultRenderer;switch(ii.encapsulation){case p.ifc.Emulated:{let Zi=this.rendererByCompId.get(ii.id);return Zi||(Zi=new Xe(this.eventManager,this.sharedStylesHost,ii,this.appId),this.rendererByCompId.set(ii.id,Zi)),Zi.applyToHost(ln),Zi}case 1:case p.ifc.ShadowDom:return new ie(this.eventManager,this.sharedStylesHost,ln,ii);default:if(!this.rendererByCompId.has(ii.id)){const Zi=Qt(ii.id,ii.styles,[]);this.sharedStylesHost.addStyles(Zi),this.rendererByCompId.set(ii.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(W),p.LFG(gt),p.LFG(p.AFp))},fn.\u0275prov=p.Yz7({token:fn,factory:fn.\u0275fac}),fn})();class Ce{constructor(wn){this.eventManager=wn,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(wn,ln){return ln?document.createElementNS(St[ln]||ln,wn):document.createElement(wn)}createComment(wn){return document.createComment(wn)}createText(wn){return document.createTextNode(wn)}appendChild(wn,ln){(ze(wn)?wn.content:wn).appendChild(ln)}insertBefore(wn,ln,ii){wn&&(ze(wn)?wn.content:wn).insertBefore(ln,ii)}removeChild(wn,ln){wn&&wn.removeChild(ln)}selectRootElement(wn,ln){let ii="string"==typeof wn?document.querySelector(wn):wn;if(!ii)throw new Error(`The selector "${wn}" did not match any elements`);return ln||(ii.textContent=""),ii}parentNode(wn){return wn.parentNode}nextSibling(wn){return wn.nextSibling}setAttribute(wn,ln,ii,Zi){if(Zi){ln=Zi+":"+ln;const vo=St[Zi];vo?wn.setAttributeNS(vo,ln,ii):wn.setAttribute(ln,ii)}else wn.setAttribute(ln,ii)}removeAttribute(wn,ln,ii){if(ii){const Zi=St[ii];Zi?wn.removeAttributeNS(Zi,ln):wn.removeAttribute(`${ii}:${ln}`)}else wn.removeAttribute(ln)}addClass(wn,ln){wn.classList.add(ln)}removeClass(wn,ln){wn.classList.remove(ln)}setStyle(wn,ln,ii,Zi){Zi&(p.JOm.DashCase|p.JOm.Important)?wn.style.setProperty(ln,ii,Zi&p.JOm.Important?"important":""):wn.style[ln]=ii}removeStyle(wn,ln,ii){ii&p.JOm.DashCase?wn.style.removeProperty(ln):wn.style[ln]=""}setProperty(wn,ln,ii){wn[ln]=ii}setValue(wn,ln){wn.nodeValue=ln}listen(wn,ln,ii){return"string"==typeof wn?this.eventManager.addGlobalEventListener(wn,ln,qt(ii)):this.eventManager.addEventListener(wn,ln,qt(ii))}}function ze(fn){return"TEMPLATE"===fn.tagName&&void 0!==fn.content}class Xe extends Ce{constructor(wn,ln,ii,Zi){super(wn),this.component=ii;const vo=Qt(Zi+"-"+ii.id,ii.styles,[]);ln.addStyles(vo),this.contentAttr=function _t(fn){return"_ngcontent-%COMP%".replace(Ht,fn)}(Zi+"-"+ii.id),this.hostAttr=function Nt(fn){return"_nghost-%COMP%".replace(Ht,fn)}(Zi+"-"+ii.id)}applyToHost(wn){super.setAttribute(wn,this.hostAttr,"")}createElement(wn,ln){const ii=super.createElement(wn,ln);return super.setAttribute(ii,this.contentAttr,""),ii}}class ie extends Ce{constructor(wn,ln,ii,Zi){super(wn),this.sharedStylesHost=ln,this.hostEl=ii,this.shadowRoot=ii.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const vo=Qt(Zi.id,Zi.styles,[]);for(let No=0;No{class fn extends ot{constructor(ln){super(ln)}supports(ln){return!0}addEventListener(ln,ii,Zi){return ln.addEventListener(ii,Zi,!1),()=>this.removeEventListener(ln,ii,Zi)}removeEventListener(ln,ii,Zi){return ln.removeEventListener(ii,Zi)}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(d.K0))},fn.\u0275prov=p.Yz7({token:fn,factory:fn.\u0275fac}),fn})();const re=["alt","control","meta","shift"],ee={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ue={alt:fn=>fn.altKey,control:fn=>fn.ctrlKey,meta:fn=>fn.metaKey,shift:fn=>fn.shiftKey};let Kt=(()=>{class fn extends ot{constructor(ln){super(ln)}supports(ln){return null!=fn.parseEventName(ln)}addEventListener(ln,ii,Zi){const vo=fn.parseEventName(ii),No=fn.eventCallback(vo.fullKey,Zi,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.q)().onAndCancel(ln,vo.domEventName,No))}static parseEventName(ln){const ii=ln.toLowerCase().split("."),Zi=ii.shift();if(0===ii.length||"keydown"!==Zi&&"keyup"!==Zi)return null;const vo=fn._normalizeKey(ii.pop());let No="",la=ii.indexOf("code");if(la>-1&&(ii.splice(la,1),No="code."),re.forEach(fr=>{const $e=ii.indexOf(fr);$e>-1&&(ii.splice($e,1),No+=fr+".")}),No+=vo,0!=ii.length||0===vo.length)return null;const Ea={};return Ea.domEventName=Zi,Ea.fullKey=No,Ea}static matchEventFullKeyCode(ln,ii){let Zi=ee[ln.key]||ln.key,vo="";return ii.indexOf("code.")>-1&&(Zi=ln.code,vo="code."),!(null==Zi||!Zi)&&(Zi=Zi.toLowerCase()," "===Zi?Zi="space":"."===Zi&&(Zi="dot"),re.forEach(No=>{No!==Zi&&(0,ue[No])(ln)&&(vo+=No+".")}),vo+=Zi,vo===ii)}static eventCallback(ln,ii,Zi){return vo=>{fn.matchEventFullKeyCode(vo,ln)&&Zi.runGuarded(()=>ii(vo))}}static _normalizeKey(ln){return"esc"===ln?"escape":ln}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(d.K0))},fn.\u0275prov=p.Yz7({token:fn,factory:fn.\u0275fac}),fn})();const ri=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:d.bD},{provide:p.g9A,useValue:function bn(){T.makeCurrent()},multi:!0},{provide:d.K0,useFactory:function dn(){return(0,p.RDi)(document),document},deps:[]}]),Ee=new p.OlP(""),Ft=[{provide:p.rWj,useClass:class I{addToWindow(wn){p.dqk.getAngularTestability=(ii,Zi=!0)=>{const vo=wn.findTestabilityInTree(ii,Zi);if(null==vo)throw new Error("Could not find testability for element.");return vo},p.dqk.getAllAngularTestabilities=()=>wn.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>wn.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(ii=>{const Zi=p.dqk.getAllAngularTestabilities();let vo=Zi.length,No=!1;const la=function(Ea){No=No||Ea,vo--,0==vo&&ii(No)};Zi.forEach(function(Ea){Ea.whenStable(la)})})}findTestabilityInTree(wn,ln,ii){return null==ln?null:wn.getTestability(ln)??(ii?(0,d.q)().isShadowRoot(ln)?this.findTestabilityInTree(wn,ln.host,!0):this.findTestabilityInTree(wn,ln.parentElement,!0):null)}},deps:[]},{provide:p.lri,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]}],vt=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function Ze(){return new p.qLn},deps:[]},{provide:G,useClass:Te,multi:!0,deps:[d.K0,p.R0b,p.Lbi]},{provide:G,useClass:Kt,multi:!0,deps:[d.K0]},{provide:Wt,useClass:Wt,deps:[W,gt,p.AFp]},{provide:p.FYo,useExisting:Wt},{provide:ct,useExisting:gt},{provide:gt,useClass:gt,deps:[d.K0]},{provide:W,useClass:W,deps:[G,p.R0b]},{provide:d.JF,useClass:z,deps:[]},[]];let xt=(()=>{class fn{constructor(ln){}static withServerTransition(ln){return{ngModule:fn,providers:[{provide:p.AFp,useValue:ln.appId},{provide:k,useExisting:p.AFp},P]}}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(Ee,12))},fn.\u0275mod=p.oAB({type:fn}),fn.\u0275inj=p.cJS({providers:[...vt,...Ft],imports:[d.ez,p.hGG]}),fn})(),ne=(()=>{class fn{constructor(ln){this._doc=ln}getTitle(){return this._doc.title}setTitle(ln){this._doc.title=ln||""}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(d.K0))},fn.\u0275prov=p.Yz7({token:fn,factory:function(ln){let ii=null;return ii=ln?new ln:function Bt(){return new ne((0,p.LFG)(d.K0))}(),ii},providedIn:"root"}),fn})();typeof window<"u"&&window;let Fn=(()=>{class fn{}return fn.\u0275fac=function(ln){return new(ln||fn)},fn.\u0275prov=p.Yz7({token:fn,factory:function(ln){let ii=null;return ii=ln?new(ln||fn):p.LFG(go),ii},providedIn:"root"}),fn})(),go=(()=>{class fn extends Fn{constructor(ln){super(),this._doc=ln}sanitize(ln,ii){if(null==ii)return null;switch(ln){case p.q3G.NONE:return ii;case p.q3G.HTML:return(0,p.qzn)(ii,"HTML")?(0,p.z3N)(ii):(0,p.EiD)(this._doc,String(ii)).toString();case p.q3G.STYLE:return(0,p.qzn)(ii,"Style")?(0,p.z3N)(ii):ii;case p.q3G.SCRIPT:if((0,p.qzn)(ii,"Script"))return(0,p.z3N)(ii);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(ii,"URL")?(0,p.z3N)(ii):(0,p.mCW)(String(ii));case p.q3G.RESOURCE_URL:if((0,p.qzn)(ii,"ResourceURL"))return(0,p.z3N)(ii);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ln} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ln){return(0,p.JVY)(ln)}bypassSecurityTrustStyle(ln){return(0,p.L6k)(ln)}bypassSecurityTrustScript(ln){return(0,p.eBb)(ln)}bypassSecurityTrustUrl(ln){return(0,p.LAX)(ln)}bypassSecurityTrustResourceUrl(ln){return(0,p.pB0)(ln)}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(d.K0))},fn.\u0275prov=p.Yz7({token:fn,factory:function(ln){let ii=null;return ii=ln?new ln:function bi(fn){return new go(fn.get(d.K0))}(p.LFG(p.zs3)),ii},providedIn:"root"}),fn})()},83689:(rt,it,b)=>{"use strict";b.d(it,{gz:()=>Js,m2:()=>Ir,wN:()=>xo,F0:()=>Cs,rH:()=>Ka,Od:()=>Tc,yS:()=>cu,Bz:()=>v_,lC:()=>pr});var d=b(94650),p=b(5254),v=b(21086),T=b(591),t=b(84450),A=b(23426),x=b(61221),w=b(88514),k=b(4843),D=b(61737),P=b(56498),I=b(68896),z=b(71762),G=b(8929),W=b(36895),ot=b(24850),ct=b(87545),gt=b(72986),Pt=b(1059),St=b(92198),Ht=b(61709),Jt=b(87224),at=b(21406),Zt=b(22868),wt=b(27221),_t=b(43489);function Nt(At,Ut){let pt=!1;return arguments.length>=2&&(pt=!0),function(se){return se.lift(new Qt(At,Ut,pt))}}class Qt{constructor(Ut,pt,Gt=!1){this.accumulator=Ut,this.seed=pt,this.hasSeed=Gt}call(Ut,pt){return pt.subscribe(new qt(Ut,this.accumulator,this.seed,this.hasSeed))}}class qt extends _t.L{constructor(Ut,pt,Gt,se){super(Ut),this.accumulator=pt,this._seed=Gt,this.hasSeed=se,this.index=0}get seed(){return this._seed}set seed(Ut){this.hasSeed=!0,this._seed=Ut}_next(Ut){if(this.hasSeed)return this._tryNext(Ut);this.seed=Ut,this.destination.next(Ut)}_tryNext(Ut){const pt=this.index++;let Gt;try{Gt=this.accumulator(this.seed,Ut,pt)}catch(se){this.destination.error(se)}this.seed=Gt,this.destination.next(Gt)}}var le=b(94231);function Wt(At){return function(pt){return 0===At?(0,I.c)():pt.lift(new Ce(At))}}class Ce{constructor(Ut){if(this.total=Ut,this.total<0)throw new le.W}call(Ut,pt){return pt.subscribe(new Ae(Ut,this.total))}}class Ae extends _t.L{constructor(Ut,pt){super(Ut),this.total=pt,this.ring=new Array,this.count=0}_next(Ut){const pt=this.ring,Gt=this.total,se=this.count++;pt.length0){const Gt=this.count>=this.total?this.total:this.count,se=this.ring;for(let Se=0;Se=2;return Gt=>Gt.pipe(At?(0,St.h)((se,Se)=>At(se,Se,Gt)):Xe.y,Wt(1),pt?(0,ze.d)(Ut):(0,Ne.T)(()=>new t.K))}var Te=b(44290),re=b(77604),ee=b(40537),ue=b(74327),Kt=b(89146),ce=b(11481);const Le="primary",on=Symbol("RouteTitle");class hn{constructor(Ut){this.params=Ut||{}}has(Ut){return Object.prototype.hasOwnProperty.call(this.params,Ut)}get(Ut){if(this.has(Ut)){const pt=this.params[Ut];return Array.isArray(pt)?pt[0]:pt}return null}getAll(Ut){if(this.has(Ut)){const pt=this.params[Ut];return Array.isArray(pt)?pt:[pt]}return[]}get keys(){return Object.keys(this.params)}}function we(At){return new hn(At)}function bn(At,Ut,pt){const Gt=pt.path.split("/");if(Gt.length>At.length||"full"===pt.pathMatch&&(Ut.hasChildren()||Gt.lengthGt[Se]===se)}return At===Ut}function ri(At){return Array.prototype.concat.apply([],At)}function Ee(At){return At.length>0?At[At.length-1]:null}function vt(At,Ut){for(const pt in At)At.hasOwnProperty(pt)&&Ut(At[pt],pt)}function xt(At){return(0,d.CqO)(At)?At:(0,d.QGY)(At)?(0,p.D)(Promise.resolve(At)):(0,v.of)(At)}const Ct={exact:function Oe(At,Ut,pt){if(!je(At.segments,Ut.segments)||!Si(At.segments,Ut.segments,pt)||At.numberOfChildren!==Ut.numberOfChildren)return!1;for(const Gt in Ut.children)if(!At.children[Gt]||!Oe(At.children[Gt],Ut.children[Gt],pt))return!1;return!0},subset:On},Bt={exact:function he(At,Ut){return dn(At,Ut)},subset:function yn(At,Ut){return Object.keys(Ut).length<=Object.keys(At).length&&Object.keys(Ut).every(pt=>kn(At[pt],Ut[pt]))},ignored:()=>!0};function ne(At,Ut,pt){return Ct[pt.paths](At.root,Ut.root,pt.matrixParams)&&Bt[pt.queryParams](At.queryParams,Ut.queryParams)&&!("exact"===pt.fragment&&At.fragment!==Ut.fragment)}function On(At,Ut,pt){return _i(At,Ut,Ut.segments,pt)}function _i(At,Ut,pt,Gt){if(At.segments.length>pt.length){const se=At.segments.slice(0,pt.length);return!(!je(se,pt)||Ut.hasChildren()||!Si(se,pt,Gt))}if(At.segments.length===pt.length){if(!je(At.segments,pt)||!Si(At.segments,pt,Gt))return!1;for(const se in Ut.children)if(!At.children[se]||!On(At.children[se],Ut.children[se],Gt))return!1;return!0}{const se=pt.slice(0,At.segments.length),Se=pt.slice(At.segments.length);return!!(je(At.segments,se)&&Si(At.segments,se,Gt)&&At.children[Le])&&_i(At.children[Le],Ut,Se,Gt)}}function Si(At,Ut,pt){return Ut.every((Gt,se)=>Bt[pt](At[se].parameters,Gt.parameters))}class ho{constructor(Ut,pt,Gt){this.root=Ut,this.queryParams=pt,this.fragment=Gt}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=we(this.queryParams)),this._queryParamMap}toString(){return an.serialize(this)}}class hi{constructor(Ut,pt){this.segments=Ut,this.children=pt,this.parent=null,vt(pt,(Gt,se)=>Gt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return pe(this)}}class Vn{constructor(Ut,pt){this.path=Ut,this.parameters=pt}get parameterMap(){return this._parameterMap||(this._parameterMap=we(this.parameters)),this._parameterMap}toString(){return Zn(this)}}function je(At,Ut){return At.length===Ut.length&&At.every((pt,Gt)=>pt.path===Ut[Gt].path)}let Ve=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275prov=d.Yz7({token:At,factory:function(){return new tn},providedIn:"root"}),At})();class tn{parse(Ut){const pt=new ln(Ut);return new ho(pt.parseRootSegment(),pt.parseQueryParams(),pt.parseFragment())}serialize(Ut){const pt=`/${We(Ut.root,!0)}`,Gt=function Be(At){const Ut=Object.keys(At).map(pt=>{const Gt=At[pt];return Array.isArray(Gt)?Gt.map(se=>`${Mt(pt)}=${Mt(se)}`).join("&"):`${Mt(pt)}=${Mt(Gt)}`}).filter(pt=>!!pt);return Ut.length?`?${Ut.join("&")}`:""}(Ut.queryParams);return`${pt}${Gt}${"string"==typeof Ut.fragment?`#${function It(At){return encodeURI(At)}(Ut.fragment)}`:""}`}}const an=new tn;function pe(At){return At.segments.map(Ut=>Zn(Ut)).join("/")}function We(At,Ut){if(!At.hasChildren())return pe(At);if(Ut){const pt=At.children[Le]?We(At.children[Le],!1):"",Gt=[];return vt(At.children,(se,Se)=>{Se!==Le&&Gt.push(`${Se}:${We(se,!1)}`)}),Gt.length>0?`${pt}(${Gt.join("//")})`:pt}{const pt=function gn(At,Ut){let pt=[];return vt(At.children,(Gt,se)=>{se===Le&&(pt=pt.concat(Ut(Gt,se)))}),vt(At.children,(Gt,se)=>{se!==Le&&(pt=pt.concat(Ut(Gt,se)))}),pt}(At,(Gt,se)=>se===Le?[We(At.children[Le],!1)]:[`${se}:${We(Gt,!1)}`]);return 1===Object.keys(At.children).length&&null!=At.children[Le]?`${pe(At)}/${pt[0]}`:`${pe(At)}/(${pt.join("//")})`}}function Et(At){return encodeURIComponent(At).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mt(At){return Et(At).replace(/%3B/gi,";")}function Me(At){return Et(At).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function en(At){return decodeURIComponent(At)}function He(At){return en(At.replace(/\+/g,"%20"))}function Zn(At){return`${Me(At.path)}${function ve(At){return Object.keys(At).map(Ut=>`;${Me(Ut)}=${Me(At[Ut])}`).join("")}(At.parameters)}`}const Fn=/^[^\/()?;=#]+/;function bi(At){const Ut=At.match(Fn);return Ut?Ut[0]:""}const go=/^[^=?&#]+/,fn=/^[^&#]+/;class ln{constructor(Ut){this.url=Ut,this.remaining=Ut}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new hi([],{}):new hi([],this.parseChildren())}parseQueryParams(){const Ut={};if(this.consumeOptional("?"))do{this.parseQueryParam(Ut)}while(this.consumeOptional("&"));return Ut}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Ut=[];for(this.peekStartsWith("(")||Ut.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Ut.push(this.parseSegment());let pt={};this.peekStartsWith("/(")&&(this.capture("/"),pt=this.parseParens(!0));let Gt={};return this.peekStartsWith("(")&&(Gt=this.parseParens(!1)),(Ut.length>0||Object.keys(pt).length>0)&&(Gt[Le]=new hi(Ut,pt)),Gt}parseSegment(){const Ut=bi(this.remaining);if(""===Ut&&this.peekStartsWith(";"))throw new d.vHH(4009,!1);return this.capture(Ut),new Vn(en(Ut),this.parseMatrixParams())}parseMatrixParams(){const Ut={};for(;this.consumeOptional(";");)this.parseParam(Ut);return Ut}parseParam(Ut){const pt=bi(this.remaining);if(!pt)return;this.capture(pt);let Gt="";if(this.consumeOptional("=")){const se=bi(this.remaining);se&&(Gt=se,this.capture(Gt))}Ut[en(pt)]=en(Gt)}parseQueryParam(Ut){const pt=function _o(At){const Ut=At.match(go);return Ut?Ut[0]:""}(this.remaining);if(!pt)return;this.capture(pt);let Gt="";if(this.consumeOptional("=")){const Dn=function wn(At){const Ut=At.match(fn);return Ut?Ut[0]:""}(this.remaining);Dn&&(Gt=Dn,this.capture(Gt))}const se=He(pt),Se=He(Gt);if(Ut.hasOwnProperty(se)){let Dn=Ut[se];Array.isArray(Dn)||(Dn=[Dn],Ut[se]=Dn),Dn.push(Se)}else Ut[se]=Se}parseParens(Ut){const pt={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Gt=bi(this.remaining),se=this.remaining[Gt.length];if("/"!==se&&")"!==se&&";"!==se)throw new d.vHH(4010,!1);let Se;Gt.indexOf(":")>-1?(Se=Gt.slice(0,Gt.indexOf(":")),this.capture(Se),this.capture(":")):Ut&&(Se=Le);const Dn=this.parseChildren();pt[Se]=1===Object.keys(Dn).length?Dn[Le]:new hi([],Dn),this.consumeOptional("//")}return pt}peekStartsWith(Ut){return this.remaining.startsWith(Ut)}consumeOptional(Ut){return!!this.peekStartsWith(Ut)&&(this.remaining=this.remaining.substring(Ut.length),!0)}capture(Ut){if(!this.consumeOptional(Ut))throw new d.vHH(4011,!1)}}function ii(At){return At.segments.length>0?new hi([],{[Le]:At}):At}function Zi(At){const Ut={};for(const Gt of Object.keys(At.children)){const Se=Zi(At.children[Gt]);(Se.segments.length>0||Se.hasChildren())&&(Ut[Gt]=Se)}return function vo(At){if(1===At.numberOfChildren&&At.children[Le]){const Ut=At.children[Le];return new hi(At.segments.concat(Ut.segments),Ut.children)}return At}(new hi(At.segments,Ut))}function No(At){return At instanceof ho}function Nn(At,Ut,pt,Gt,se){if(0===pt.length)return mn(Ut.root,Ut.root,Ut.root,Gt,se);const Se=function Q(At){if("string"==typeof At[0]&&1===At.length&&"/"===At[0])return new Vt(!0,0,At);let Ut=0,pt=!1;const Gt=At.reduce((se,Se,Dn)=>{if("object"==typeof Se&&null!=Se){if(Se.outlets){const qn={};return vt(Se.outlets,(Ii,Qi)=>{qn[Qi]="string"==typeof Ii?Ii.split("/"):Ii}),[...se,{outlets:qn}]}if(Se.segmentPath)return[...se,Se.segmentPath]}return"string"!=typeof Se?[...se,Se]:0===Dn?(Se.split("/").forEach((qn,Ii)=>{0==Ii&&"."===qn||(0==Ii&&""===qn?pt=!0:".."===qn?Ut++:""!=qn&&se.push(qn))}),se):[...se,Se]},[]);return new Vt(pt,Ut,Gt)}(pt);return Se.toRoot()?mn(Ut.root,Ut.root,new hi([],{}),Gt,se):function Dn(Ii){const Qi=function zn(At,Ut,pt,Gt){if(At.isAbsolute)return new zt(Ut.root,!0,0);if(-1===Gt)return new zt(pt,pt===Ut.root,0);return function Gi(At,Ut,pt){let Gt=At,se=Ut,Se=pt;for(;Se>se;){if(Se-=se,Gt=Gt.parent,!Gt)throw new d.vHH(4005,!1);se=Gt.segments.length}return new zt(Gt,!1,se-Se)}(pt,Gt+(Ye(At.commands[0])?0:1),At.numberOfDoubleDots)}(Se,Ut,At.snapshot?._urlSegment,Ii),Fa=Qi.processChildren?br(Qi.segmentGroup,Qi.index,Se.commands):gr(Qi.segmentGroup,Qi.index,Se.commands);return mn(Ut.root,Qi.segmentGroup,Fa,Gt,se)}(At.snapshot?._lastPathIndex)}function Ye(At){return"object"==typeof At&&null!=At&&!At.outlets&&!At.segmentPath}function Pe(At){return"object"==typeof At&&null!=At&&At.outlets}function mn(At,Ut,pt,Gt,se){let Dn,Se={};Gt&&vt(Gt,(Ii,Qi)=>{Se[Qi]=Array.isArray(Ii)?Ii.map(Fa=>`${Fa}`):`${Ii}`}),Dn=At===Ut?pt:nt(At,Ut,pt);const qn=ii(Zi(Dn));return new ho(qn,Se,se)}function nt(At,Ut,pt){const Gt={};return vt(At.children,(se,Se)=>{Gt[Se]=se===Ut?pt:nt(se,Ut,pt)}),new hi(At.segments,Gt)}class Vt{constructor(Ut,pt,Gt){if(this.isAbsolute=Ut,this.numberOfDoubleDots=pt,this.commands=Gt,Ut&&Gt.length>0&&Ye(Gt[0]))throw new d.vHH(4003,!1);const se=Gt.find(Pe);if(se&&se!==Ee(Gt))throw new d.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class zt{constructor(Ut,pt,Gt){this.segmentGroup=Ut,this.processChildren=pt,this.index=Gt}}function gr(At,Ut,pt){if(At||(At=new hi([],{})),0===At.segments.length&&At.hasChildren())return br(At,Ut,pt);const Gt=function cs(At,Ut,pt){let Gt=0,se=Ut;const Se={match:!1,pathIndex:0,commandIndex:0};for(;se=pt.length)return Se;const Dn=At.segments[se],qn=pt[Gt];if(Pe(qn))break;const Ii=`${qn}`,Qi=Gt0&&void 0===Ii)break;if(Ii&&Qi&&"object"==typeof Qi&&void 0===Qi.outlets){if(!dr(Ii,Qi,Dn))return Se;Gt+=2}else{if(!dr(Ii,{},Dn))return Se;Gt++}se++}return{match:!0,pathIndex:se,commandIndex:Gt}}(At,Ut,pt),se=pt.slice(Gt.commandIndex);if(Gt.match&&Gt.pathIndex{"string"==typeof Se&&(Se=[Se]),null!==Se&&(se[Dn]=gr(At.children[Dn],Ut,Se))}),vt(At.children,(Se,Dn)=>{void 0===Gt[Dn]&&(se[Dn]=Se)}),new hi(At.segments,se)}}function or(At,Ut,pt){const Gt=At.segments.slice(0,Ut);let se=0;for(;se{"string"==typeof pt&&(pt=[pt]),null!==pt&&(Ut[Gt]=or(new hi([],{}),0,pt))}),Ut}function bc(At){const Ut={};return vt(At,(pt,Gt)=>Ut[Gt]=`${pt}`),Ut}function dr(At,Ut,pt){return At==pt.path&&dn(Ut,pt.parameters)}class Yr{constructor(Ut,pt){this.id=Ut,this.url=pt}}class Gr extends Yr{constructor(Ut,pt,Gt="imperative",se=null){super(Ut,pt),this.type=0,this.navigationTrigger=Gt,this.restoredState=se}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ir extends Yr{constructor(Ut,pt,Gt){super(Ut,pt),this.urlAfterRedirects=Gt,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Pc extends Yr{constructor(Ut,pt,Gt,se){super(Ut,pt),this.reason=Gt,this.code=se,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class rl extends Yr{constructor(Ut,pt,Gt,se){super(Ut,pt),this.error=Gt,this.target=se,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Sc extends Yr{constructor(Ut,pt,Gt,se){super(Ut,pt),this.urlAfterRedirects=Gt,this.state=se,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fs extends Yr{constructor(Ut,pt,Gt,se){super(Ut,pt),this.urlAfterRedirects=Gt,this.state=se,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lc extends Yr{constructor(Ut,pt,Gt,se,Se){super(Ut,pt),this.urlAfterRedirects=Gt,this.state=se,this.shouldActivate=Se,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class xl extends Yr{constructor(Ut,pt,Gt,se){super(Ut,pt),this.urlAfterRedirects=Gt,this.state=se,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qr extends Yr{constructor(Ut,pt,Gt,se){super(Ut,pt),this.urlAfterRedirects=Gt,this.state=se,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ns{constructor(Ut){this.route=Ut,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class _1{constructor(Ut){this.route=Ut,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hr{constructor(Ut){this.snapshot=Ut,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iu{constructor(Ut){this.snapshot=Ut,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class f1{constructor(Ut){this.snapshot=Ut,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vc{constructor(Ut){this.snapshot=Ut,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cl{constructor(Ut,pt,Gt){this.routerEvent=Ut,this.position=pt,this.anchor=Gt,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Oc{constructor(Ut){this._root=Ut}get root(){return this._root.value}parent(Ut){const pt=this.pathFromRoot(Ut);return pt.length>1?pt[pt.length-2]:null}children(Ut){const pt=Vs(Ut,this._root);return pt?pt.children.map(Gt=>Gt.value):[]}firstChild(Ut){const pt=Vs(Ut,this._root);return pt&&pt.children.length>0?pt.children[0].value:null}siblings(Ut){const pt=Yc(Ut,this._root);return pt.length<2?[]:pt[pt.length-2].children.map(se=>se.value).filter(se=>se!==Ut)}pathFromRoot(Ut){return Yc(Ut,this._root).map(pt=>pt.value)}}function Vs(At,Ut){if(At===Ut.value)return Ut;for(const pt of Ut.children){const Gt=Vs(At,pt);if(Gt)return Gt}return null}function Yc(At,Ut){if(At===Ut.value)return[Ut];for(const pt of Ut.children){const Gt=Yc(At,pt);if(Gt.length)return Gt.unshift(Ut),Gt}return[]}class Vc{constructor(Ut,pt){this.value=Ut,this.children=pt}toString(){return`TreeNode(${this.value})`}}function js(At){const Ut={};return At&&At.children.forEach(pt=>Ut[pt.value.outlet]=pt),Ut}class yl extends Oc{constructor(Ut,pt){super(Ut),this.snapshot=pt,zl(this,Ut)}toString(){return this.snapshot.toString()}}function md(At,Ut){const pt=function Hl(At,Ut){const Dn=new jc([],{},{},"",{},Le,Ut,null,At.root,-1,{});return new ks("",new Vc(Dn,[]))}(At,Ut),Gt=new T.X([new Vn("",{})]),se=new T.X({}),Se=new T.X({}),Dn=new T.X({}),qn=new T.X(""),Ii=new Js(Gt,se,Dn,qn,Se,Le,Ut,pt.root);return Ii.snapshot=pt.root,new yl(new Vc(Ii,[]),pt)}class Js{constructor(Ut,pt,Gt,se,Se,Dn,qn,Ii){this.url=Ut,this.params=pt,this.queryParams=Gt,this.fragment=se,this.data=Se,this.outlet=Dn,this.component=qn,this.title=this.data?.pipe((0,ot.U)(Qi=>Qi[on]))??(0,v.of)(void 0),this._futureSnapshot=Ii}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ot.U)(Ut=>we(Ut)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ot.U)(Ut=>we(Ut)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Tl(At,Ut="emptyOnly"){const pt=At.pathFromRoot;let Gt=0;if("always"!==Ut)for(Gt=pt.length-1;Gt>=1;){const se=pt[Gt],Se=pt[Gt-1];if(se.routeConfig&&""===se.routeConfig.path)Gt--;else{if(Se.component)break;Gt--}}return function Gs(At){return At.reduce((Ut,pt)=>({params:{...Ut.params,...pt.params},data:{...Ut.data,...pt.data},resolve:{...pt.data,...Ut.resolve,...pt.routeConfig?.data,...pt._resolvedData}}),{params:{},data:{},resolve:{}})}(pt.slice(Gt))}class jc{constructor(Ut,pt,Gt,se,Se,Dn,qn,Ii,Qi,Fa,Ko,xr){this.url=Ut,this.params=pt,this.queryParams=Gt,this.fragment=se,this.data=Se,this.outlet=Dn,this.component=qn,this.title=this.data?.[on],this.routeConfig=Ii,this._urlSegment=Qi,this._lastPathIndex=Fa,this._correctedLastPathIndex=xr??Fa,this._resolve=Ko}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=we(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=we(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Gt=>Gt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ks extends Oc{constructor(Ut,pt){super(pt),this.url=Ut,zl(this,pt)}toString(){return ou(this._root)}}function zl(At,Ut){Ut.value._routerState=At,Ut.children.forEach(pt=>zl(At,pt))}function ou(At){const Ut=At.children.length>0?` { ${At.children.map(ou).join(", ")} } `:"";return`${At.value}${Ut}`}function Bl(At){if(At.snapshot){const Ut=At.snapshot,pt=At._futureSnapshot;At.snapshot=pt,dn(Ut.queryParams,pt.queryParams)||At.queryParams.next(pt.queryParams),Ut.fragment!==pt.fragment&&At.fragment.next(pt.fragment),dn(Ut.params,pt.params)||At.params.next(pt.params),function Ze(At,Ut){if(At.length!==Ut.length)return!1;for(let pt=0;ptdn(pt.parameters,Ut[Gt].parameters))}(At.url,Ut.url);return pt&&!(!At.parent!=!Ut.parent)&&(!At.parent||qo(At.parent,Ut.parent))}function cc(At,Ut,pt){if(pt&&At.shouldReuseRoute(Ut.value,pt.value.snapshot)){const Gt=pt.value;Gt._futureSnapshot=Ut.value;const se=function qu(At,Ut,pt){return Ut.children.map(Gt=>{for(const se of pt.children)if(At.shouldReuseRoute(Gt.value,se.value.snapshot))return cc(At,Gt,se);return cc(At,Gt)})}(At,Ut,pt);return new Vc(Gt,se)}{if(At.shouldAttach(Ut.value)){const Se=At.retrieve(Ut.value);if(null!==Se){const Dn=Se.route;return Dn.value._futureSnapshot=Ut.value,Dn.children=Ut.children.map(qn=>cc(At,qn)),Dn}}const Gt=function Yl(At){return new Js(new T.X(At.url),new T.X(At.params),new T.X(At.queryParams),new T.X(At.fragment),new T.X(At.data),At.outlet,At.component,At)}(Ut.value),se=Ut.children.map(Se=>cc(At,Se));return new Vc(Gt,se)}}const xc="ngNavigationCancelingError";function wl(At,Ut){const{redirectTo:pt,navigationBehaviorOptions:Gt}=No(Ut)?{redirectTo:Ut,navigationBehaviorOptions:void 0}:Ut,se=Ds(!1,0,Ut);return se.url=pt,se.navigationBehaviorOptions=Gt,se}function Ds(At,Ut,pt){const Gt=new Error("NavigationCancelingError: "+(At||""));return Gt[xc]=!0,Gt.cancellationCode=Ut,pt&&(Gt.url=pt),Gt}function Jc(At){return bu(At)&&No(At.url)}function bu(At){return At&&At[xc]}class Dr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Cc,this.attachRef=null}}let Cc=(()=>{class At{constructor(){this.contexts=new Map}onChildOutletCreated(pt,Gt){const se=this.getOrCreateContext(pt);se.outlet=Gt,this.contexts.set(pt,se)}onChildOutletDestroyed(pt){const Gt=this.getContext(pt);Gt&&(Gt.outlet=null,Gt.attachRef=null)}onOutletDeactivated(){const pt=this.contexts;return this.contexts=new Map,pt}onOutletReAttached(pt){this.contexts=pt}getOrCreateContext(pt){let Gt=this.getContext(pt);return Gt||(Gt=new Dr,this.contexts.set(pt,Gt)),Gt}getContext(pt){return this.contexts.get(pt)||null}}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275prov=d.Yz7({token:At,factory:At.\u0275fac,providedIn:"root"}),At})();const Wa=!1;let pr=(()=>{class At{constructor(pt,Gt,se,Se,Dn){this.parentContexts=pt,this.location=Gt,this.changeDetector=Se,this.environmentInjector=Dn,this.activated=null,this._activatedRoute=null,this.activateEvents=new d.vpe,this.deactivateEvents=new d.vpe,this.attachEvents=new d.vpe,this.detachEvents=new d.vpe,this.name=se||Le,pt.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const pt=this.parentContexts.getContext(this.name);pt&&pt.route&&(pt.attachRef?this.attach(pt.attachRef,pt.route):this.activateWith(pt.route,pt.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new d.vHH(4012,Wa);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new d.vHH(4012,Wa);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new d.vHH(4012,Wa);this.location.detach();const pt=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(pt.instance),pt}attach(pt,Gt){this.activated=pt,this._activatedRoute=Gt,this.location.insert(pt.hostView),this.attachEvents.emit(pt.instance)}deactivate(){if(this.activated){const pt=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(pt)}}activateWith(pt,Gt){if(this.isActivated)throw new d.vHH(4013,Wa);this._activatedRoute=pt;const se=this.location,Dn=pt._futureSnapshot.component,qn=this.parentContexts.getOrCreateContext(this.name).children,Ii=new Gc(pt,qn,se.injector);if(Gt&&function vs(At){return!!At.resolveComponentFactory}(Gt)){const Qi=Gt.resolveComponentFactory(Dn);this.activated=se.createComponent(Qi,se.length,Ii)}else this.activated=se.createComponent(Dn,{index:se.length,injector:Ii,environmentInjector:Gt??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return At.\u0275fac=function(pt){return new(pt||At)(d.Y36(Cc),d.Y36(d.s_b),d.$8M("name"),d.Y36(d.sBO),d.Y36(d.lqb))},At.\u0275dir=d.lG2({type:At,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),At})();class Gc{constructor(Ut,pt,Gt){this.route=Ut,this.childContexts=pt,this.parent=Gt}get(Ut,pt){return Ut===Js?this.route:Ut===Cc?this.childContexts:this.parent.get(Ut,pt)}}let Ac=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275cmp=d.Xpm({type:At,selectors:[["ng-component"]],standalone:!0,features:[d.jDz],decls:1,vars:0,template:function(pt,Gt){1&pt&&d._UZ(0,"router-outlet")},dependencies:[pr],encapsulation:2}),At})();function rr(At,Ut){return At.providers&&!At._injector&&(At._injector=(0,d.MMx)(At.providers,Ut,`Route: ${At.path}`)),At._injector??Ut}function Ws(At){const Ut=At.children&&At.children.map(Ws),pt=Ut?{...At,children:Ut}:{...At};return!pt.component&&!pt.loadComponent&&(Ut||pt.loadChildren)&&pt.outlet&&pt.outlet!==Le&&(pt.component=Ac),pt}function Fr(At){return At.outlet||Le}function aa(At,Ut){const pt=At.filter(Gt=>Fr(Gt)===Ut);return pt.push(...At.filter(Gt=>Fr(Gt)!==Ut)),pt}function uc(At){if(!At)return null;if(At.routeConfig?._injector)return At.routeConfig._injector;for(let Ut=At.parent;Ut;Ut=Ut.parent){const pt=Ut.routeConfig;if(pt?._loadedInjector)return pt._loadedInjector;if(pt?._injector)return pt._injector}return null}class Vr{constructor(Ut,pt,Gt,se){this.routeReuseStrategy=Ut,this.futureState=pt,this.currState=Gt,this.forwardEvent=se}activate(Ut){const pt=this.futureState._root,Gt=this.currState?this.currState._root:null;this.deactivateChildRoutes(pt,Gt,Ut),Bl(this.futureState.root),this.activateChildRoutes(pt,Gt,Ut)}deactivateChildRoutes(Ut,pt,Gt){const se=js(pt);Ut.children.forEach(Se=>{const Dn=Se.value.outlet;this.deactivateRoutes(Se,se[Dn],Gt),delete se[Dn]}),vt(se,(Se,Dn)=>{this.deactivateRouteAndItsChildren(Se,Gt)})}deactivateRoutes(Ut,pt,Gt){const se=Ut.value,Se=pt?pt.value:null;if(se===Se)if(se.component){const Dn=Gt.getContext(se.outlet);Dn&&this.deactivateChildRoutes(Ut,pt,Dn.children)}else this.deactivateChildRoutes(Ut,pt,Gt);else Se&&this.deactivateRouteAndItsChildren(pt,Gt)}deactivateRouteAndItsChildren(Ut,pt){Ut.value.component&&this.routeReuseStrategy.shouldDetach(Ut.value.snapshot)?this.detachAndStoreRouteSubtree(Ut,pt):this.deactivateRouteAndOutlet(Ut,pt)}detachAndStoreRouteSubtree(Ut,pt){const Gt=pt.getContext(Ut.value.outlet),se=Gt&&Ut.value.component?Gt.children:pt,Se=js(Ut);for(const Dn of Object.keys(Se))this.deactivateRouteAndItsChildren(Se[Dn],se);if(Gt&&Gt.outlet){const Dn=Gt.outlet.detach(),qn=Gt.children.onOutletDeactivated();this.routeReuseStrategy.store(Ut.value.snapshot,{componentRef:Dn,route:Ut,contexts:qn})}}deactivateRouteAndOutlet(Ut,pt){const Gt=pt.getContext(Ut.value.outlet),se=Gt&&Ut.value.component?Gt.children:pt,Se=js(Ut);for(const Dn of Object.keys(Se))this.deactivateRouteAndItsChildren(Se[Dn],se);Gt&&Gt.outlet&&(Gt.outlet.deactivate(),Gt.children.onOutletDeactivated(),Gt.attachRef=null,Gt.resolver=null,Gt.route=null)}activateChildRoutes(Ut,pt,Gt){const se=js(pt);Ut.children.forEach(Se=>{this.activateRoutes(Se,se[Se.value.outlet],Gt),this.forwardEvent(new vc(Se.value.snapshot))}),Ut.children.length&&this.forwardEvent(new iu(Ut.value.snapshot))}activateRoutes(Ut,pt,Gt){const se=Ut.value,Se=pt?pt.value:null;if(Bl(se),se===Se)if(se.component){const Dn=Gt.getOrCreateContext(se.outlet);this.activateChildRoutes(Ut,pt,Dn.children)}else this.activateChildRoutes(Ut,pt,Gt);else if(se.component){const Dn=Gt.getOrCreateContext(se.outlet);if(this.routeReuseStrategy.shouldAttach(se.snapshot)){const qn=this.routeReuseStrategy.retrieve(se.snapshot);this.routeReuseStrategy.store(se.snapshot,null),Dn.children.onOutletReAttached(qn.contexts),Dn.attachRef=qn.componentRef,Dn.route=qn.route.value,Dn.outlet&&Dn.outlet.attach(qn.componentRef,qn.route.value),Bl(qn.route.value),this.activateChildRoutes(Ut,null,Dn.children)}else{const qn=uc(se.snapshot),Ii=qn?.get(d._Vd)??null;Dn.attachRef=null,Dn.route=se,Dn.resolver=Ii,Dn.injector=qn,Dn.outlet&&Dn.outlet.activateWith(se,Dn.injector),this.activateChildRoutes(Ut,null,Dn.children)}}else this.activateChildRoutes(Ut,null,Gt)}}class Qc{constructor(Ut){this.path=Ut,this.route=this.path[this.path.length-1]}}class sl{constructor(Ut,pt){this.component=Ut,this.route=pt}}function yc(At,Ut,pt){const Gt=At._root;return Yi(Gt,Ut?Ut._root:null,pt,[Gt.value])}function vu(At,Ut){const pt=Symbol(),Gt=Ut.get(At,pt);return Gt===pt?"function"!=typeof At||(0,d.Z0I)(At)?Ut.get(At):At:Gt}function Yi(At,Ut,pt,Gt,se={canDeactivateChecks:[],canActivateChecks:[]}){const Se=js(Ut);return At.children.forEach(Dn=>{(function Da(At,Ut,pt,Gt,se={canDeactivateChecks:[],canActivateChecks:[]}){const Se=At.value,Dn=Ut?Ut.value:null,qn=pt?pt.getContext(At.value.outlet):null;if(Dn&&Se.routeConfig===Dn.routeConfig){const Ii=function xu(At,Ut,pt){if("function"==typeof pt)return pt(At,Ut);switch(pt){case"pathParamsChange":return!je(At.url,Ut.url);case"pathParamsOrQueryParamsChange":return!je(At.url,Ut.url)||!dn(At.queryParams,Ut.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qo(At,Ut)||!dn(At.queryParams,Ut.queryParams);default:return!qo(At,Ut)}}(Dn,Se,Se.routeConfig.runGuardsAndResolvers);Ii?se.canActivateChecks.push(new Qc(Gt)):(Se.data=Dn.data,Se._resolvedData=Dn._resolvedData),Yi(At,Ut,Se.component?qn?qn.children:null:pt,Gt,se),Ii&&qn&&qn.outlet&&qn.outlet.isActivated&&se.canDeactivateChecks.push(new sl(qn.outlet.component,Dn))}else Dn&&$s(Ut,qn,se),se.canActivateChecks.push(new Qc(Gt)),Yi(At,null,Se.component?qn?qn.children:null:pt,Gt,se)})(Dn,Se[Dn.value.outlet],pt,Gt.concat([Dn.value]),se),delete Se[Dn.value.outlet]}),vt(Se,(Dn,qn)=>$s(Dn,pt.getContext(qn),se)),se}function $s(At,Ut,pt){const Gt=js(At),se=At.value;vt(Gt,(Se,Dn)=>{$s(Se,se.component?Ut?Ut.children.getContext(Dn):null:Ut,pt)}),pt.canDeactivateChecks.push(new sl(se.component&&Ut&&Ut.outlet&&Ut.outlet.isActivated?Ut.outlet.component:null,se))}function Pr(At){return"function"==typeof At}function Ec(At){return At instanceof t.K||"EmptyError"===At?.name}const Nr=Symbol("INITIAL_VALUE");function qr(){return(0,ct.w)(At=>(0,A.aj)(At.map(Ut=>Ut.pipe((0,gt.q)(1),(0,Pt.O)(Nr)))).pipe((0,ot.U)(Ut=>{for(const pt of Ut)if(!0!==pt){if(pt===Nr)return Nr;if(!1===pt||pt instanceof ho)return pt}return!0}),(0,St.h)(Ut=>Ut!==Nr),(0,gt.q)(1)))}function cl(At){return(0,k.z)((0,Zt.b)(Ut=>{if(No(Ut))throw wl(0,Ut)}),(0,ot.U)(Ut=>!0===Ut))}const pp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ml(At,Ut,pt,Gt,se){const Se=ll(At,Ut,pt);return Se.matched?function Zl(At,Ut,pt,Gt){const se=Ut.canMatch;if(!se||0===se.length)return(0,v.of)(!0);const Se=se.map(Dn=>{const qn=vu(Dn,At);return xt(function jo(At){return At&&Pr(At.canMatch)}(qn)?qn.canMatch(Ut,pt):At.runInContext(()=>qn(Ut,pt)))});return(0,v.of)(Se).pipe(qr(),cl())}(Gt=rr(Ut,Gt),Ut,pt).pipe((0,ot.U)(Dn=>!0===Dn?Se:{...pp})):(0,v.of)(Se)}function ll(At,Ut,pt){if(""===Ut.path)return"full"===Ut.pathMatch&&(At.hasChildren()||pt.length>0)?{...pp}:{matched:!0,consumedSegments:[],remainingSegments:pt,parameters:{},positionalParamSegments:{}};const se=(Ut.matcher||bn)(pt,At,Ut);if(!se)return{...pp};const Se={};vt(se.posParams,(qn,Ii)=>{Se[Ii]=qn.path});const Dn=se.consumed.length>0?{...Se,...se.consumed[se.consumed.length-1].parameters}:Se;return{matched:!0,consumedSegments:se.consumed,remainingSegments:pt.slice(se.consumed.length),parameters:Dn,positionalParamSegments:se.posParams??{}}}function Bi(At,Ut,pt,Gt,se="corrected"){if(pt.length>0&&function Cu(At,Ut,pt){return pt.some(Gt=>ul(At,Ut,Gt)&&Fr(Gt)!==Le)}(At,pt,Gt)){const Dn=new hi(Ut,function su(At,Ut,pt,Gt){const se={};se[Le]=Gt,Gt._sourceSegment=At,Gt._segmentIndexShift=Ut.length;for(const Se of pt)if(""===Se.path&&Fr(Se)!==Le){const Dn=new hi([],{});Dn._sourceSegment=At,Dn._segmentIndexShift=Ut.length,se[Fr(Se)]=Dn}return se}(At,Ut,Gt,new hi(pt,At.children)));return Dn._sourceSegment=At,Dn._segmentIndexShift=Ut.length,{segmentGroup:Dn,slicedSegments:[]}}if(0===pt.length&&function wa(At,Ut,pt){return pt.some(Gt=>ul(At,Ut,Gt))}(At,pt,Gt)){const Dn=new hi(At.segments,function ft(At,Ut,pt,Gt,se,Se){const Dn={};for(const qn of Gt)if(ul(At,pt,qn)&&!se[Fr(qn)]){const Ii=new hi([],{});Ii._sourceSegment=At,Ii._segmentIndexShift="legacy"===Se?At.segments.length:Ut.length,Dn[Fr(qn)]=Ii}return{...se,...Dn}}(At,Ut,pt,Gt,At.children,se));return Dn._sourceSegment=At,Dn._segmentIndexShift=Ut.length,{segmentGroup:Dn,slicedSegments:pt}}const Se=new hi(At.segments,At.children);return Se._sourceSegment=At,Se._segmentIndexShift=Ut.length,{segmentGroup:Se,slicedSegments:pt}}function ul(At,Ut,pt){return(!(At.hasChildren()||Ut.length>0)||"full"!==pt.pathMatch)&&""===pt.path}function Ja(At,Ut,pt,Gt){return!!(Fr(At)===Gt||Gt!==Le&&ul(Ut,pt,At))&&("**"===At.path||ll(Ut,At,pt).matched)}function Rr(At,Ut,pt){return 0===Ut.length&&!At.children[pt]}const ws=!1;class Ra{constructor(Ut){this.segmentGroup=Ut||null}}class Ei{constructor(Ut){this.urlTree=Ut}}function _d(At){return(0,D._)(new Ra(At))}function g1(At){return(0,D._)(new Ei(At))}class Pi{constructor(Ut,pt,Gt,se,Se){this.injector=Ut,this.configLoader=pt,this.urlSerializer=Gt,this.urlTree=se,this.config=Se,this.allowRedirects=!0}apply(){const Ut=Bi(this.urlTree.root,[],[],this.config).segmentGroup,pt=new hi(Ut.segments,Ut.children);return this.expandSegmentGroup(this.injector,this.config,pt,Le).pipe((0,ot.U)(Se=>this.createUrlTree(Zi(Se),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,wt.K)(Se=>{if(Se instanceof Ei)return this.allowRedirects=!1,this.match(Se.urlTree);throw Se instanceof Ra?this.noMatchError(Se):Se}))}match(Ut){return this.expandSegmentGroup(this.injector,this.config,Ut.root,Le).pipe((0,ot.U)(se=>this.createUrlTree(Zi(se),Ut.queryParams,Ut.fragment))).pipe((0,wt.K)(se=>{throw se instanceof Ra?this.noMatchError(se):se}))}noMatchError(Ut){return new d.vHH(4002,ws)}createUrlTree(Ut,pt,Gt){const se=ii(Ut);return new ho(se,pt,Gt)}expandSegmentGroup(Ut,pt,Gt,se){return 0===Gt.segments.length&&Gt.hasChildren()?this.expandChildren(Ut,pt,Gt).pipe((0,ot.U)(Se=>new hi([],Se))):this.expandSegment(Ut,Gt,pt,Gt.segments,se,!0)}expandChildren(Ut,pt,Gt){const se=[];for(const Se of Object.keys(Gt.children))"primary"===Se?se.unshift(Se):se.push(Se);return(0,p.D)(se).pipe((0,at.b)(Se=>{const Dn=Gt.children[Se],qn=aa(pt,Se);return this.expandSegmentGroup(Ut,qn,Dn,Se).pipe((0,ot.U)(Ii=>({segment:Ii,outlet:Se})))}),Nt((Se,Dn)=>(Se[Dn.outlet]=Dn.segment,Se),{}),ie())}expandSegment(Ut,pt,Gt,se,Se,Dn){return(0,p.D)(Gt).pipe((0,at.b)(qn=>this.expandSegmentAgainstRoute(Ut,pt,Gt,qn,se,Se,Dn).pipe((0,wt.K)(Qi=>{if(Qi instanceof Ra)return(0,v.of)(null);throw Qi}))),(0,Jt.P)(qn=>!!qn),(0,wt.K)((qn,Ii)=>{if(Ec(qn))return Rr(pt,se,Se)?(0,v.of)(new hi([],{})):_d(pt);throw qn}))}expandSegmentAgainstRoute(Ut,pt,Gt,se,Se,Dn,qn){return Ja(se,pt,Se,Dn)?void 0===se.redirectTo?this.matchSegmentAgainstRoute(Ut,pt,se,Se,Dn):qn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Ut,pt,Gt,se,Se,Dn):_d(pt):_d(pt)}expandSegmentAgainstRouteUsingRedirect(Ut,pt,Gt,se,Se,Dn){return"**"===se.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Ut,Gt,se,Dn):this.expandRegularSegmentAgainstRouteUsingRedirect(Ut,pt,Gt,se,Se,Dn)}expandWildCardWithParamsAgainstRouteUsingRedirect(Ut,pt,Gt,se){const Se=this.applyRedirectCommands([],Gt.redirectTo,{});return Gt.redirectTo.startsWith("/")?g1(Se):this.lineralizeSegments(Gt,Se).pipe((0,Ht.zg)(Dn=>{const qn=new hi(Dn,{});return this.expandSegment(Ut,qn,pt,Dn,se,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Ut,pt,Gt,se,Se,Dn){const{matched:qn,consumedSegments:Ii,remainingSegments:Qi,positionalParamSegments:Fa}=ll(pt,se,Se);if(!qn)return _d(pt);const Ko=this.applyRedirectCommands(Ii,se.redirectTo,Fa);return se.redirectTo.startsWith("/")?g1(Ko):this.lineralizeSegments(se,Ko).pipe((0,Ht.zg)(xr=>this.expandSegment(Ut,pt,Gt,xr.concat(Qi),Dn,!1)))}matchSegmentAgainstRoute(Ut,pt,Gt,se,Se){return"**"===Gt.path?(Ut=rr(Gt,Ut),Gt.loadChildren?(Gt._loadedRoutes?(0,v.of)({routes:Gt._loadedRoutes,injector:Gt._loadedInjector}):this.configLoader.loadChildren(Ut,Gt)).pipe((0,ot.U)(qn=>(Gt._loadedRoutes=qn.routes,Gt._loadedInjector=qn.injector,new hi(se,{})))):(0,v.of)(new hi(se,{}))):Ml(pt,Gt,se,Ut).pipe((0,ct.w)(({matched:Dn,consumedSegments:qn,remainingSegments:Ii})=>Dn?this.getChildConfig(Ut=Gt._injector??Ut,Gt,se).pipe((0,Ht.zg)(Fa=>{const Ko=Fa.injector??Ut,xr=Fa.routes,{segmentGroup:zs,slicedSegments:Vu}=Bi(pt,qn,Ii,xr),va=new hi(zs.segments,zs.children);if(0===Vu.length&&va.hasChildren())return this.expandChildren(Ko,xr,va).pipe((0,ot.U)(Ci=>new hi(qn,Ci)));if(0===xr.length&&0===Vu.length)return(0,v.of)(new hi(qn,{}));const Dl=Fr(Gt)===Se;return this.expandSegment(Ko,va,xr,Vu,Dl?Le:Se,!0).pipe((0,ot.U)(Pn=>new hi(qn.concat(Pn.segments),Pn.children)))})):_d(pt)))}getChildConfig(Ut,pt,Gt){return pt.children?(0,v.of)({routes:pt.children,injector:Ut}):pt.loadChildren?void 0!==pt._loadedRoutes?(0,v.of)({routes:pt._loadedRoutes,injector:pt._loadedInjector}):function Ic(At,Ut,pt,Gt){const se=Ut.canLoad;if(void 0===se||0===se.length)return(0,v.of)(!0);const Se=se.map(Dn=>{const qn=vu(Dn,At);return xt(function ae(At){return At&&Pr(At.canLoad)}(qn)?qn.canLoad(Ut,pt):At.runInContext(()=>qn(Ut,pt)))});return(0,v.of)(Se).pipe(qr(),cl())}(Ut,pt,Gt).pipe((0,Ht.zg)(se=>se?this.configLoader.loadChildren(Ut,pt).pipe((0,Zt.b)(Se=>{pt._loadedRoutes=Se.routes,pt._loadedInjector=Se.injector})):function mi(At){return(0,D._)(Ds(ws,3))}())):(0,v.of)({routes:[],injector:Ut})}lineralizeSegments(Ut,pt){let Gt=[],se=pt.root;for(;;){if(Gt=Gt.concat(se.segments),0===se.numberOfChildren)return(0,v.of)(Gt);if(se.numberOfChildren>1||!se.children[Le])return(0,D._)(new d.vHH(4e3,ws));se=se.children[Le]}}applyRedirectCommands(Ut,pt,Gt){return this.applyRedirectCreateUrlTree(pt,this.urlSerializer.parse(pt),Ut,Gt)}applyRedirectCreateUrlTree(Ut,pt,Gt,se){const Se=this.createSegmentGroup(Ut,pt.root,Gt,se);return new ho(Se,this.createQueryParams(pt.queryParams,this.urlTree.queryParams),pt.fragment)}createQueryParams(Ut,pt){const Gt={};return vt(Ut,(se,Se)=>{if("string"==typeof se&&se.startsWith(":")){const qn=se.substring(1);Gt[Se]=pt[qn]}else Gt[Se]=se}),Gt}createSegmentGroup(Ut,pt,Gt,se){const Se=this.createSegments(Ut,pt.segments,Gt,se);let Dn={};return vt(pt.children,(qn,Ii)=>{Dn[Ii]=this.createSegmentGroup(Ut,qn,Gt,se)}),new hi(Se,Dn)}createSegments(Ut,pt,Gt,se){return pt.map(Se=>Se.path.startsWith(":")?this.findPosParam(Ut,Se,se):this.findOrReturn(Se,Gt))}findPosParam(Ut,pt,Gt){const se=Gt[pt.path.substring(1)];if(!se)throw new d.vHH(4001,ws);return se}findOrReturn(Ut,pt){let Gt=0;for(const se of pt){if(se.path===Ut.path)return pt.splice(Gt),se;Gt++}return Ut}}class nr{}class xe{constructor(Ut,pt,Gt,se,Se,Dn,qn,Ii){this.injector=Ut,this.rootComponentType=pt,this.config=Gt,this.urlTree=se,this.url=Se,this.paramsInheritanceStrategy=Dn,this.relativeLinkResolution=qn,this.urlSerializer=Ii}recognize(){const Ut=Bi(this.urlTree.root,[],[],this.config.filter(pt=>void 0===pt.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,Ut,Le).pipe((0,ot.U)(pt=>{if(null===pt)return null;const Gt=new jc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Le,this.rootComponentType,null,this.urlTree.root,-1,{}),se=new Vc(Gt,pt),Se=new ks(this.url,se);return this.inheritParamsAndData(Se._root),Se}))}inheritParamsAndData(Ut){const pt=Ut.value,Gt=Tl(pt,this.paramsInheritanceStrategy);pt.params=Object.freeze(Gt.params),pt.data=Object.freeze(Gt.data),Ut.children.forEach(se=>this.inheritParamsAndData(se))}processSegmentGroup(Ut,pt,Gt,se){return 0===Gt.segments.length&&Gt.hasChildren()?this.processChildren(Ut,pt,Gt):this.processSegment(Ut,pt,Gt,Gt.segments,se)}processChildren(Ut,pt,Gt){return(0,p.D)(Object.keys(Gt.children)).pipe((0,at.b)(se=>{const Se=Gt.children[se],Dn=aa(pt,se);return this.processSegmentGroup(Ut,Dn,Se,se)}),Nt((se,Se)=>se&&Se?(se.push(...Se),se):null),(0,Te.o)(se=>null!==se),(0,ze.d)(null),ie(),(0,ot.U)(se=>{if(null===se)return null;const Se=fd(se);return function Au(At){At.sort((Ut,pt)=>Ut.value.outlet===Le?-1:pt.value.outlet===Le?1:Ut.value.outlet.localeCompare(pt.value.outlet))}(Se),Se}))}processSegment(Ut,pt,Gt,se,Se){return(0,p.D)(pt).pipe((0,at.b)(Dn=>this.processSegmentAgainstRoute(Dn._injector??Ut,Dn,Gt,se,Se)),(0,Jt.P)(Dn=>!!Dn),(0,wt.K)(Dn=>{if(Ec(Dn))return Rr(Gt,se,Se)?(0,v.of)([]):(0,v.of)(null);throw Dn}))}processSegmentAgainstRoute(Ut,pt,Gt,se,Se){if(pt.redirectTo||!Ja(pt,Gt,se,Se))return(0,v.of)(null);let Dn;if("**"===pt.path){const qn=se.length>0?Ee(se).parameters:{},Ii=Lt(Gt)+se.length,Qi=new jc(se,qn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$t(pt),Fr(pt),pt.component??pt._loadedComponent??null,pt,zu(Gt),Ii,Ke(pt),Ii);Dn=(0,v.of)({snapshot:Qi,consumedSegments:[],remainingSegments:[]})}else Dn=Ml(Gt,pt,se,Ut).pipe((0,ot.U)(({matched:qn,consumedSegments:Ii,remainingSegments:Qi,parameters:Fa})=>{if(!qn)return null;const Ko=Lt(Gt)+Ii.length;return{snapshot:new jc(Ii,Fa,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$t(pt),Fr(pt),pt.component??pt._loadedComponent??null,pt,zu(Gt),Ko,Ke(pt),Ko),consumedSegments:Ii,remainingSegments:Qi}}));return Dn.pipe((0,ct.w)(qn=>{if(null===qn)return(0,v.of)(null);const{snapshot:Ii,consumedSegments:Qi,remainingSegments:Fa}=qn;Ut=pt._injector??Ut;const Ko=pt._loadedInjector??Ut,xr=function Ks(At){return At.children?At.children:At.loadChildren?At._loadedRoutes:[]}(pt),{segmentGroup:zs,slicedSegments:Vu}=Bi(Gt,Qi,Fa,xr.filter(Dl=>void 0===Dl.redirectTo),this.relativeLinkResolution);if(0===Vu.length&&zs.hasChildren())return this.processChildren(Ko,xr,zs).pipe((0,ot.U)(Dl=>null===Dl?null:[new Vc(Ii,Dl)]));if(0===xr.length&&0===Vu.length)return(0,v.of)([new Vc(Ii,[])]);const va=Fr(pt)===Se;return this.processSegment(Ko,xr,zs,Vu,va?Le:Se).pipe((0,ot.U)(Dl=>null===Dl?null:[new Vc(Ii,Dl)]))}))}}function Xi(At){const Ut=At.value.routeConfig;return Ut&&""===Ut.path&&void 0===Ut.redirectTo}function fd(At){const Ut=[],pt=new Set;for(const Gt of At){if(!Xi(Gt)){Ut.push(Gt);continue}const se=Ut.find(Se=>Gt.value.routeConfig===Se.value.routeConfig);void 0!==se?(se.children.push(...Gt.children),pt.add(se)):Ut.push(Gt)}for(const Gt of pt){const se=fd(Gt.children);Ut.push(new Vc(Gt.value,se))}return Ut.filter(Gt=>!pt.has(Gt))}function zu(At){let Ut=At;for(;Ut._sourceSegment;)Ut=Ut._sourceSegment;return Ut}function Lt(At){let Ut=At,pt=Ut._segmentIndexShift??0;for(;Ut._sourceSegment;)Ut=Ut._sourceSegment,pt+=Ut._segmentIndexShift??0;return pt-1}function $t(At){return At.data||{}}function Ke(At){return At.resolve||{}}function Wn(At){return"string"==typeof At.title||null===At.title}function $n(At){return(0,ct.w)(Ut=>{const pt=At(Ut);return pt?(0,p.D)(pt).pipe((0,ot.U)(()=>Ut)):(0,v.of)(Ut)})}let yi=(()=>{class At{buildTitle(pt){let Gt,se=pt.root;for(;void 0!==se;)Gt=this.getResolvedTitleForRoute(se)??Gt,se=se.children.find(Se=>Se.outlet===Le);return Gt}getResolvedTitleForRoute(pt){return pt.data[on]}}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275prov=d.Yz7({token:At,factory:function(){return(0,d.f3M)(Ti)},providedIn:"root"}),At})(),Ti=(()=>{class At extends yi{constructor(pt){super(),this.title=pt}updateTitle(pt){const Gt=this.buildTitle(pt);void 0!==Gt&&this.title.setTitle(Gt)}}return At.\u0275fac=function(pt){return new(pt||At)(d.LFG(ce.Dx))},At.\u0275prov=d.Yz7({token:At,factory:At.\u0275fac,providedIn:"root"}),At})();class xo{}class ga extends class yo{shouldDetach(Ut){return!1}store(Ut,pt){}shouldAttach(Ut){return!1}retrieve(Ut){return null}shouldReuseRoute(Ut,pt){return Ut.routeConfig===pt.routeConfig}}{}const fa=new d.OlP("",{providedIn:"root",factory:()=>({})}),Hs=new d.OlP("ROUTES");let es=(()=>{class At{constructor(pt,Gt){this.injector=pt,this.compiler=Gt,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(pt){if(this.componentLoaders.get(pt))return this.componentLoaders.get(pt);if(pt._loadedComponent)return(0,v.of)(pt._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(pt);const Gt=xt(pt.loadComponent()).pipe((0,Zt.b)(Se=>{this.onLoadEndListener&&this.onLoadEndListener(pt),pt._loadedComponent=Se}),(0,ee.x)(()=>{this.componentLoaders.delete(pt)})),se=new z.c(Gt,()=>new G.xQ).pipe((0,ue.x)());return this.componentLoaders.set(pt,se),se}loadChildren(pt,Gt){if(this.childrenLoaders.get(Gt))return this.childrenLoaders.get(Gt);if(Gt._loadedRoutes)return(0,v.of)({routes:Gt._loadedRoutes,injector:Gt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Gt);const Se=this.loadModuleFactoryOrRoutes(Gt.loadChildren).pipe((0,ot.U)(qn=>{this.onLoadEndListener&&this.onLoadEndListener(Gt);let Ii,Qi,Fa=!1;Array.isArray(qn)?Qi=qn:(Ii=qn.create(pt).injector,Qi=ri(Ii.get(Hs,[],d.XFs.Self|d.XFs.Optional)));return{routes:Qi.map(Ws),injector:Ii}}),(0,ee.x)(()=>{this.childrenLoaders.delete(Gt)})),Dn=new z.c(Se,()=>new G.xQ).pipe((0,ue.x)());return this.childrenLoaders.set(Gt,Dn),Dn}loadModuleFactoryOrRoutes(pt){return xt(pt()).pipe((0,Ht.zg)(Gt=>Gt instanceof d.YKP||Array.isArray(Gt)?(0,v.of)(Gt):(0,p.D)(this.compiler.compileModuleAsync(Gt))))}}return At.\u0275fac=function(pt){return new(pt||At)(d.LFG(d.zs3),d.LFG(d.Sil))},At.\u0275prov=d.Yz7({token:At,factory:At.\u0275fac,providedIn:"root"}),At})();class ns{}class us{shouldProcessUrl(Ut){return!0}extract(Ut){return Ut}merge(Ut,pt){return Ut}}function Xs(At){throw At}function Fc(At,Ut,pt){return Ut.parse("/")}const is={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Rd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function cr(){const At=(0,d.f3M)(Ve),Ut=(0,d.f3M)(Cc),pt=(0,d.f3M)(W.Ye),Gt=(0,d.f3M)(d.zs3),se=(0,d.f3M)(d.Sil),Se=(0,d.f3M)(Hs,{optional:!0})??[],Dn=(0,d.f3M)(fa,{optional:!0})??{},qn=(0,d.f3M)(Ti),Ii=(0,d.f3M)(yi,{optional:!0}),Qi=(0,d.f3M)(ns,{optional:!0}),Fa=(0,d.f3M)(xo,{optional:!0}),Ko=new Cs(null,At,Ut,pt,Gt,se,ri(Se));return Qi&&(Ko.urlHandlingStrategy=Qi),Fa&&(Ko.routeReuseStrategy=Fa),Ko.titleStrategy=Ii??qn,function sr(At,Ut){At.errorHandler&&(Ut.errorHandler=At.errorHandler),At.malformedUriErrorHandler&&(Ut.malformedUriErrorHandler=At.malformedUriErrorHandler),At.onSameUrlNavigation&&(Ut.onSameUrlNavigation=At.onSameUrlNavigation),At.paramsInheritanceStrategy&&(Ut.paramsInheritanceStrategy=At.paramsInheritanceStrategy),At.relativeLinkResolution&&(Ut.relativeLinkResolution=At.relativeLinkResolution),At.urlUpdateStrategy&&(Ut.urlUpdateStrategy=At.urlUpdateStrategy),At.canceledNavigationResolution&&(Ut.canceledNavigationResolution=At.canceledNavigationResolution)}(Dn,Ko),Ko}let Cs=(()=>{class At{constructor(pt,Gt,se,Se,Dn,qn,Ii){this.rootComponentType=pt,this.urlSerializer=Gt,this.rootContexts=se,this.location=Se,this.config=Ii,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new G.xQ,this.errorHandler=Xs,this.malformedUriErrorHandler=Fc,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,v.of)(void 0),this.urlHandlingStrategy=new us,this.routeReuseStrategy=new ga,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Dn.get(es),this.configLoader.onLoadEndListener=xr=>this.triggerEvent(new _1(xr)),this.configLoader.onLoadStartListener=xr=>this.triggerEvent(new Ns(xr)),this.ngModule=Dn.get(d.h0i),this.console=Dn.get(d.c2e);const Ko=Dn.get(d.R0b);this.isNgZoneEnabled=Ko instanceof d.R0b&&d.R0b.isInAngularZone(),this.resetConfig(Ii),this.currentUrlTree=function et(){return new ho(new hi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=md(this.currentUrlTree,this.rootComponentType),this.transitions=new T.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(pt){const Gt=this.events;return pt.pipe((0,St.h)(se=>0!==se.id),(0,ot.U)(se=>({...se,extractedUrl:this.urlHandlingStrategy.extract(se.rawUrl)})),(0,ct.w)(se=>{let Se=!1,Dn=!1;return(0,v.of)(se).pipe((0,Zt.b)(qn=>{this.currentNavigation={id:qn.id,initialUrl:qn.rawUrl,extractedUrl:qn.extractedUrl,trigger:qn.source,extras:qn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ct.w)(qn=>{const Ii=this.browserUrlTree.toString(),Qi=!this.navigated||qn.extractedUrl.toString()!==Ii||Ii!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Qi)&&this.urlHandlingStrategy.shouldProcessUrl(qn.rawUrl))return jp(qn.source)&&(this.browserUrlTree=qn.extractedUrl),(0,v.of)(qn).pipe((0,ct.w)(Ko=>{const xr=this.transitions.getValue();return Gt.next(new Gr(Ko.id,this.serializeUrl(Ko.extractedUrl),Ko.source,Ko.restoredState)),xr!==this.transitions.getValue()?I.E:Promise.resolve(Ko)}),function So(At,Ut,pt,Gt){return(0,ct.w)(se=>function Di(At,Ut,pt,Gt,se){return new Pi(At,Ut,pt,Gt,se).apply()}(At,Ut,pt,se.extractedUrl,Gt).pipe((0,ot.U)(Se=>({...se,urlAfterRedirects:Se}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Zt.b)(Ko=>{this.currentNavigation={...this.currentNavigation,finalUrl:Ko.urlAfterRedirects},se.urlAfterRedirects=Ko.urlAfterRedirects}),function In(At,Ut,pt,Gt,se,Se){return(0,Ht.zg)(Dn=>function Ge(At,Ut,pt,Gt,se,Se,Dn="emptyOnly",qn="legacy"){return new xe(At,Ut,pt,Gt,se,Dn,qn,Se).recognize().pipe((0,ct.w)(Ii=>null===Ii?function vn(At){return new P.y(Ut=>Ut.error(At))}(new nr):(0,v.of)(Ii)))}(At,Ut,pt,Dn.urlAfterRedirects,Gt.serialize(Dn.urlAfterRedirects),Gt,se,Se).pipe((0,ot.U)(qn=>({...Dn,targetSnapshot:qn}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Zt.b)(Ko=>{if(se.targetSnapshot=Ko.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!Ko.extras.skipLocationChange){const zs=this.urlHandlingStrategy.merge(Ko.urlAfterRedirects,Ko.rawUrl);this.setBrowserUrl(zs,Ko)}this.browserUrlTree=Ko.urlAfterRedirects}const xr=new Sc(Ko.id,this.serializeUrl(Ko.extractedUrl),this.serializeUrl(Ko.urlAfterRedirects),Ko.targetSnapshot);Gt.next(xr)}));if(Qi&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:xr,extractedUrl:zs,source:Vu,restoredState:va,extras:Dl}=qn,$o=new Gr(xr,this.serializeUrl(zs),Vu,va);Gt.next($o);const Pn=md(zs,this.rootComponentType).snapshot;return se={...qn,targetSnapshot:Pn,urlAfterRedirects:zs,extras:{...Dl,skipLocationChange:!1,replaceUrl:!1}},(0,v.of)(se)}return this.rawUrlTree=qn.rawUrl,qn.resolve(null),I.E}),(0,Zt.b)(qn=>{const Ii=new Fs(qn.id,this.serializeUrl(qn.extractedUrl),this.serializeUrl(qn.urlAfterRedirects),qn.targetSnapshot);this.triggerEvent(Ii)}),(0,ot.U)(qn=>se={...qn,guards:yc(qn.targetSnapshot,qn.currentSnapshot,this.rootContexts)}),function Ru(At,Ut){return(0,Ht.zg)(pt=>{const{targetSnapshot:Gt,currentSnapshot:se,guards:{canActivateChecks:Se,canDeactivateChecks:Dn}}=pt;return 0===Dn.length&&0===Se.length?(0,v.of)({...pt,guardsResult:!0}):function er(At,Ut,pt,Gt){return(0,p.D)(At).pipe((0,Ht.zg)(se=>function ru(At,Ut,pt,Gt,se){const Se=Ut&&Ut.routeConfig?Ut.routeConfig.canDeactivate:null;if(!Se||0===Se.length)return(0,v.of)(!0);const Dn=Se.map(qn=>{const Ii=uc(Ut)??se,Qi=vu(qn,Ii);return xt(function ki(At){return At&&Pr(At.canDeactivate)}(Qi)?Qi.canDeactivate(At,Ut,pt,Gt):Ii.runInContext(()=>Qi(At,Ut,pt,Gt))).pipe((0,Jt.P)())});return(0,v.of)(Dn).pipe(qr())}(se.component,se.route,pt,Ut,Gt)),(0,Jt.P)(se=>!0!==se,!0))}(Dn,Gt,se,At).pipe((0,Ht.zg)(qn=>qn&&function _e(At){return"boolean"==typeof At}(qn)?function Ul(At,Ut,pt,Gt){return(0,p.D)(Ut).pipe((0,at.b)(se=>(0,x.z)(function Hu(At,Ut){return null!==At&&Ut&&Ut(new hr(At)),(0,v.of)(!0)}(se.route.parent,Gt),function au(At,Ut){return null!==At&&Ut&&Ut(new f1(At)),(0,v.of)(!0)}(se.route,Gt),function h1(At,Ut,pt){const Gt=Ut[Ut.length-1],Se=Ut.slice(0,Ut.length-1).reverse().map(Dn=>function qd(At){const Ut=At.routeConfig?At.routeConfig.canActivateChild:null;return Ut&&0!==Ut.length?{node:At,guards:Ut}:null}(Dn)).filter(Dn=>null!==Dn).map(Dn=>(0,w.P)(()=>{const qn=Dn.guards.map(Ii=>{const Qi=uc(Dn.node)??pt,Fa=vu(Ii,Qi);return xt(function st(At){return At&&Pr(At.canActivateChild)}(Fa)?Fa.canActivateChild(Gt,At):Qi.runInContext(()=>Fa(Gt,At))).pipe((0,Jt.P)())});return(0,v.of)(qn).pipe(qr())}));return(0,v.of)(Se).pipe(qr())}(At,se.path,pt),function Vp(At,Ut,pt){const Gt=Ut.routeConfig?Ut.routeConfig.canActivate:null;if(!Gt||0===Gt.length)return(0,v.of)(!0);const se=Gt.map(Se=>(0,w.P)(()=>{const Dn=uc(Ut)??pt,qn=vu(Se,Dn);return xt(function Yt(At){return At&&Pr(At.canActivate)}(qn)?qn.canActivate(Ut,At):Dn.runInContext(()=>qn(Ut,At))).pipe((0,Jt.P)())}));return(0,v.of)(se).pipe(qr())}(At,se.route,pt))),(0,Jt.P)(se=>!0!==se,!0))}(Gt,Se,At,Ut):(0,v.of)(qn)),(0,ot.U)(qn=>({...pt,guardsResult:qn})))})}(this.ngModule.injector,qn=>this.triggerEvent(qn)),(0,Zt.b)(qn=>{if(se.guardsResult=qn.guardsResult,No(qn.guardsResult))throw wl(0,qn.guardsResult);const Ii=new Lc(qn.id,this.serializeUrl(qn.extractedUrl),this.serializeUrl(qn.urlAfterRedirects),qn.targetSnapshot,!!qn.guardsResult);this.triggerEvent(Ii)}),(0,St.h)(qn=>!!qn.guardsResult||(this.restoreHistory(qn),this.cancelNavigationTransition(qn,"",3),!1)),$n(qn=>{if(qn.guards.canActivateChecks.length)return(0,v.of)(qn).pipe((0,Zt.b)(Ii=>{const Qi=new xl(Ii.id,this.serializeUrl(Ii.extractedUrl),this.serializeUrl(Ii.urlAfterRedirects),Ii.targetSnapshot);this.triggerEvent(Qi)}),(0,ct.w)(Ii=>{let Qi=!1;return(0,v.of)(Ii).pipe(function Rt(At,Ut){return(0,Ht.zg)(pt=>{const{targetSnapshot:Gt,guards:{canActivateChecks:se}}=pt;if(!se.length)return(0,v.of)(pt);let Se=0;return(0,p.D)(se).pipe((0,at.b)(Dn=>function de(At,Ut,pt,Gt){const se=At.routeConfig,Se=At._resolve;return void 0!==se?.title&&!Wn(se)&&(Se[on]=se.title),function De(At,Ut,pt,Gt){const se=function nn(At){return[...Object.keys(At),...Object.getOwnPropertySymbols(At)]}(At);if(0===se.length)return(0,v.of)({});const Se={};return(0,p.D)(se).pipe((0,Ht.zg)(Dn=>function Cn(At,Ut,pt,Gt){const se=uc(Ut)??Gt,Se=vu(At,se);return xt(Se.resolve?Se.resolve(Ut,pt):se.runInContext(()=>Se(Ut,pt)))}(At[Dn],Ut,pt,Gt).pipe((0,Jt.P)(),(0,Zt.b)(qn=>{Se[Dn]=qn}))),Wt(1),(0,re.h)(Se),(0,wt.K)(Dn=>Ec(Dn)?I.E:(0,D._)(Dn)))}(Se,At,Ut,Gt).pipe((0,ot.U)(Dn=>(At._resolvedData=Dn,At.data=Tl(At,pt).resolve,se&&Wn(se)&&(At.data[on]=se.title),null)))}(Dn.route,Gt,At,Ut)),(0,Zt.b)(()=>Se++),Wt(1),(0,Ht.zg)(Dn=>Se===se.length?(0,v.of)(pt):I.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Zt.b)({next:()=>Qi=!0,complete:()=>{Qi||(this.restoreHistory(Ii),this.cancelNavigationTransition(Ii,"",2))}}))}),(0,Zt.b)(Ii=>{const Qi=new Qr(Ii.id,this.serializeUrl(Ii.extractedUrl),this.serializeUrl(Ii.urlAfterRedirects),Ii.targetSnapshot);this.triggerEvent(Qi)}))}),$n(qn=>{const Ii=Qi=>{const Fa=[];Qi.routeConfig?.loadComponent&&!Qi.routeConfig._loadedComponent&&Fa.push(this.configLoader.loadComponent(Qi.routeConfig).pipe((0,Zt.b)(Ko=>{Qi.component=Ko}),(0,ot.U)(()=>{})));for(const Ko of Qi.children)Fa.push(...Ii(Ko));return Fa};return(0,A.aj)(Ii(qn.targetSnapshot.root)).pipe((0,ze.d)(),(0,gt.q)(1))}),$n(()=>this.afterPreactivation()),(0,ot.U)(qn=>{const Ii=function ar(At,Ut,pt){const Gt=cc(At,Ut._root,pt?pt._root:void 0);return new yl(Gt,Ut)}(this.routeReuseStrategy,qn.targetSnapshot,qn.currentRouterState);return se={...qn,targetRouterState:Ii}}),(0,Zt.b)(qn=>{this.currentUrlTree=qn.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(qn.urlAfterRedirects,qn.rawUrl),this.routerState=qn.targetRouterState,"deferred"===this.urlUpdateStrategy&&(qn.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,qn),this.browserUrlTree=qn.urlAfterRedirects)}),((At,Ut,pt)=>(0,ot.U)(Gt=>(new Vr(Ut,Gt.targetRouterState,Gt.currentRouterState,pt).activate(At),Gt)))(this.rootContexts,this.routeReuseStrategy,qn=>this.triggerEvent(qn)),(0,Zt.b)({next(){Se=!0},complete(){Se=!0}}),(0,ee.x)(()=>{Se||Dn||this.cancelNavigationTransition(se,"",1),this.currentNavigation?.id===se.id&&(this.currentNavigation=null)}),(0,wt.K)(qn=>{if(Dn=!0,bu(qn)){Jc(qn)||(this.navigated=!0,this.restoreHistory(se,!0));const Ii=new Pc(se.id,this.serializeUrl(se.extractedUrl),qn.message,qn.cancellationCode);if(Gt.next(Ii),Jc(qn)){const Qi=this.urlHandlingStrategy.merge(qn.url,this.rawUrlTree),Fa={skipLocationChange:se.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jp(se.source)};this.scheduleNavigation(Qi,"imperative",null,Fa,{resolve:se.resolve,reject:se.reject,promise:se.promise})}else se.resolve(!1)}else{this.restoreHistory(se,!0);const Ii=new rl(se.id,this.serializeUrl(se.extractedUrl),qn,se.targetSnapshot??void 0);Gt.next(Ii);try{se.resolve(this.errorHandler(qn))}catch(Qi){se.reject(Qi)}}return I.E}))}))}resetRootComponentType(pt){this.rootComponentType=pt,this.routerState.root.component=this.rootComponentType}setTransition(pt){this.transitions.next({...this.transitions.value,...pt})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(pt=>{const Gt="popstate"===pt.type?"popstate":"hashchange";"popstate"===Gt&&setTimeout(()=>{const se={replaceUrl:!0},Se=pt.state?.navigationId?pt.state:null;if(Se){const qn={...Se};delete qn.navigationId,delete qn.\u0275routerPageId,0!==Object.keys(qn).length&&(se.state=qn)}const Dn=this.parseUrl(pt.url);this.scheduleNavigation(Dn,Gt,Se,se)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(pt){this.events.next(pt)}resetConfig(pt){this.config=pt.map(Ws),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(pt,Gt={}){const{relativeTo:se,queryParams:Se,fragment:Dn,queryParamsHandling:qn,preserveFragment:Ii}=Gt,Qi=se||this.routerState.root,Fa=Ii?this.currentUrlTree.fragment:Dn;let Ko=null;switch(qn){case"merge":Ko={...this.currentUrlTree.queryParams,...Se};break;case"preserve":Ko=this.currentUrlTree.queryParams;break;default:Ko=Se||null}return null!==Ko&&(Ko=this.removeEmptyProps(Ko)),Nn(Qi,this.currentUrlTree,pt,Ko,Fa??null)}navigateByUrl(pt,Gt={skipLocationChange:!1}){const se=No(pt)?pt:this.parseUrl(pt),Se=this.urlHandlingStrategy.merge(se,this.rawUrlTree);return this.scheduleNavigation(Se,"imperative",null,Gt)}navigate(pt,Gt={skipLocationChange:!1}){return function b_(At){for(let Ut=0;Ut{const Se=pt[se];return null!=Se&&(Gt[se]=Se),Gt},{})}processNavigations(){this.navigations.subscribe(pt=>{this.navigated=!0,this.lastSuccessfulId=pt.id,this.currentPageId=pt.targetPageId,this.events.next(new Ir(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),pt.resolve(!0)},pt=>{this.console.warn(`Unhandled Navigation Error: ${pt}`)})}scheduleNavigation(pt,Gt,se,Se,Dn){if(this.disposed)return Promise.resolve(!1);let qn,Ii,Qi;Dn?(qn=Dn.resolve,Ii=Dn.reject,Qi=Dn.promise):Qi=new Promise((xr,zs)=>{qn=xr,Ii=zs});const Fa=++this.navigationId;let Ko;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(se=this.location.getState()),Ko=se&&se.\u0275routerPageId?se.\u0275routerPageId:Se.replaceUrl||Se.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):Ko=0,this.setTransition({id:Fa,targetPageId:Ko,source:Gt,restoredState:se,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:pt,extras:Se,resolve:qn,reject:Ii,promise:Qi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Qi.catch(xr=>Promise.reject(xr))}setBrowserUrl(pt,Gt){const se=this.urlSerializer.serialize(pt),Se={...Gt.extras.state,...this.generateNgRouterState(Gt.id,Gt.targetPageId)};this.location.isCurrentPathEqualTo(se)||Gt.extras.replaceUrl?this.location.replaceState(se,"",Se):this.location.go(se,"",Se)}restoreHistory(pt,Gt=!1){if("computed"===this.canceledNavigationResolution){const se=this.currentPageId-pt.targetPageId;"popstate"!==pt.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===se?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===se&&(this.resetState(pt),this.browserUrlTree=pt.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(se)}else"replace"===this.canceledNavigationResolution&&(Gt&&this.resetState(pt),this.resetUrlToCurrentUrlTree())}resetState(pt){this.routerState=pt.currentRouterState,this.currentUrlTree=pt.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,pt.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(pt,Gt,se){const Se=new Pc(pt.id,this.serializeUrl(pt.extractedUrl),Gt,se);this.triggerEvent(Se),pt.resolve(!1)}generateNgRouterState(pt,Gt){return"computed"===this.canceledNavigationResolution?{navigationId:pt,\u0275routerPageId:Gt}:{navigationId:pt}}}return At.\u0275fac=function(pt){d.$Z()},At.\u0275prov=d.Yz7({token:At,factory:function(){return cr()},providedIn:"root"}),At})();function jp(At){return"imperative"!==At}let Ka=(()=>{class At{constructor(pt,Gt,se,Se,Dn){this.router=pt,this.route=Gt,this.tabIndexAttribute=se,this.renderer=Se,this.el=Dn,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new G.xQ,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(pt){this._preserveFragment=(0,d.D6c)(pt)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(pt){this._skipLocationChange=(0,d.D6c)(pt)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(pt){this._replaceUrl=(0,d.D6c)(pt)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(pt){if(null!=this.tabIndexAttribute)return;const Gt=this.renderer,se=this.el.nativeElement;null!==pt?Gt.setAttribute(se,"tabindex",pt):Gt.removeAttribute(se,"tabindex")}ngOnChanges(pt){this.onChanges.next(this)}set routerLink(pt){null!=pt?(this.commands=Array.isArray(pt)?pt:[pt],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return At.\u0275fac=function(pt){return new(pt||At)(d.Y36(Cs),d.Y36(Js),d.$8M("tabindex"),d.Y36(d.Qsj),d.Y36(d.SBq))},At.\u0275dir=d.lG2({type:At,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(pt,Gt){1&pt&&d.NdJ("click",function(){return Gt.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[d.TTD]}),At})(),cu=(()=>{class At{constructor(pt,Gt,se){this.router=pt,this.route=Gt,this.locationStrategy=se,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new G.xQ,this.subscription=pt.events.subscribe(Se=>{Se instanceof Ir&&this.updateTargetUrlAndHref()})}set preserveFragment(pt){this._preserveFragment=(0,d.D6c)(pt)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(pt){this._skipLocationChange=(0,d.D6c)(pt)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(pt){this._replaceUrl=(0,d.D6c)(pt)}get replaceUrl(){return this._replaceUrl}set routerLink(pt){this.commands=null!=pt?Array.isArray(pt)?pt:[pt]:null}ngOnChanges(pt){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(pt,Gt,se,Se,Dn){return!!(0!==pt||Gt||se||Se||Dn||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return At.\u0275fac=function(pt){return new(pt||At)(d.Y36(Cs),d.Y36(Js),d.Y36(W.S$))},At.\u0275dir=d.lG2({type:At,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(pt,Gt){1&pt&&d.NdJ("click",function(Se){return Gt.onClick(Se.button,Se.ctrlKey,Se.shiftKey,Se.altKey,Se.metaKey)}),2&pt&&d.uIk("target",Gt.target)("href",Gt.href,d.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[d.TTD]}),At})(),Tc=(()=>{class At{constructor(pt,Gt,se,Se,Dn,qn){this.router=pt,this.element=Gt,this.renderer=se,this.cdr=Se,this.link=Dn,this.linkWithHref=qn,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new d.vpe,this.routerEventsSubscription=pt.events.subscribe(Ii=>{Ii instanceof Ir&&this.update()})}ngAfterContentInit(){(0,v.of)(this.links.changes,this.linksWithHrefs.changes,(0,v.of)(null)).pipe((0,Kt.J)()).subscribe(pt=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const pt=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Gt=>!!Gt).map(Gt=>Gt.onChanges);this.linkInputChangesSubscription=(0,p.D)(pt).pipe((0,Kt.J)()).subscribe(Gt=>{this.isActive!==this.isLinkActive(this.router)(Gt)&&this.update()})}set routerLinkActive(pt){const Gt=Array.isArray(pt)?pt:pt.split(" ");this.classes=Gt.filter(se=>!!se)}ngOnChanges(pt){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const pt=this.hasActiveLinks();this.isActive!==pt&&(this.isActive=pt,this.cdr.markForCheck(),this.classes.forEach(Gt=>{pt?this.renderer.addClass(this.element.nativeElement,Gt):this.renderer.removeClass(this.element.nativeElement,Gt)}),pt&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(pt))})}isLinkActive(pt){const Gt=function tc(At){return!!At.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return se=>!!se.urlTree&&pt.isActive(se.urlTree,Gt)}hasActiveLinks(){const pt=this.isLinkActive(this.router);return this.link&&pt(this.link)||this.linkWithHref&&pt(this.linkWithHref)||this.links.some(pt)||this.linksWithHrefs.some(pt)}}return At.\u0275fac=function(pt){return new(pt||At)(d.Y36(Cs),d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(d.sBO),d.Y36(Ka,8),d.Y36(cu,8))},At.\u0275dir=d.lG2({type:At,selectors:[["","routerLinkActive",""]],contentQueries:function(pt,Gt,se){if(1&pt&&(d.Suo(se,Ka,5),d.Suo(se,cu,5)),2&pt){let Se;d.iGM(Se=d.CRH())&&(Gt.links=Se),d.iGM(Se=d.CRH())&&(Gt.linksWithHrefs=Se)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[d.TTD]}),At})();class yu{}let Hd=(()=>{class At{constructor(pt,Gt,se,Se,Dn){this.router=pt,this.injector=se,this.preloadingStrategy=Se,this.loader=Dn}setUpPreloading(){this.subscription=this.router.events.pipe((0,St.h)(pt=>pt instanceof Ir),(0,at.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(pt,Gt){const se=[];for(const Se of Gt){Se.providers&&!Se._injector&&(Se._injector=(0,d.MMx)(Se.providers,pt,`Route: ${Se.path}`));const Dn=Se._injector??pt,qn=Se._loadedInjector??Dn;Se.loadChildren&&!Se._loadedRoutes&&void 0===Se.canLoad||Se.loadComponent&&!Se._loadedComponent?se.push(this.preloadConfig(Dn,Se)):(Se.children||Se._loadedRoutes)&&se.push(this.processRoutes(qn,Se.children??Se._loadedRoutes))}return(0,p.D)(se).pipe((0,Kt.J)())}preloadConfig(pt,Gt){return this.preloadingStrategy.preload(Gt,()=>{let se;se=Gt.loadChildren&&void 0===Gt.canLoad?this.loader.loadChildren(pt,Gt):(0,v.of)(null);const Se=se.pipe((0,Ht.zg)(Dn=>null===Dn?(0,v.of)(void 0):(Gt._loadedRoutes=Dn.routes,Gt._loadedInjector=Dn.injector,this.processRoutes(Dn.injector??pt,Dn.routes))));if(Gt.loadComponent&&!Gt._loadedComponent){const Dn=this.loader.loadComponent(Gt);return(0,p.D)([Se,Dn]).pipe((0,Kt.J)())}return Se})}}return At.\u0275fac=function(pt){return new(pt||At)(d.LFG(Cs),d.LFG(d.Sil),d.LFG(d.lqb),d.LFG(yu),d.LFG(es))},At.\u0275prov=d.Yz7({token:At,factory:At.\u0275fac,providedIn:"root"}),At})();const Jl=new d.OlP("");let Bu=(()=>{class At{constructor(pt,Gt,se={}){this.router=pt,this.viewportScroller=Gt,this.options=se,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},se.scrollPositionRestoration=se.scrollPositionRestoration||"disabled",se.anchorScrolling=se.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(pt=>{pt instanceof Gr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=pt.navigationTrigger,this.restoredId=pt.restoredState?pt.restoredState.navigationId:0):pt instanceof Ir&&(this.lastId=pt.id,this.scheduleScrollEvent(pt,this.router.parseUrl(pt.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(pt=>{pt instanceof Cl&&(pt.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(pt.position):pt.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(pt.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(pt,Gt){this.router.triggerEvent(new Cl(pt,"popstate"===this.lastSource?this.store[this.restoredId]:null,Gt))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return At.\u0275fac=function(pt){d.$Z()},At.\u0275prov=d.Yz7({token:At,factory:At.\u0275fac}),At})();function as(At,Ut){return{\u0275kind:At,\u0275providers:Ut}}function $c(At){return[{provide:Hs,multi:!0,useValue:At}]}function wr(){const At=(0,d.f3M)(d.zs3);return Ut=>{const pt=At.get(d.z2F);if(Ut!==pt.components[0])return;const Gt=At.get(Cs),se=At.get(un);1===At.get(hd)&&Gt.initialNavigation(),At.get(E1,null,d.XFs.Optional)?.setUpPreloading(),At.get(Jl,null,d.XFs.Optional)?.init(),Gt.resetRootComponentType(pt.componentTypes[0]),se.closed||(se.next(),se.unsubscribe())}}const un=new d.OlP("",{factory:()=>new G.xQ}),hd=new d.OlP("",{providedIn:"root",factory:()=>1});const E1=new d.OlP("");function Fo(At){return as(0,[{provide:E1,useExisting:Hd},{provide:yu,useExisting:At}])}const Ur=new d.OlP("ROUTER_FORROOT_GUARD"),Yu=[W.Ye,{provide:Ve,useClass:tn},{provide:Cs,useFactory:cr},Cc,{provide:Js,useFactory:function os(At){return At.routerState.root},deps:[Cs]},es];function To(){return new d.PXZ("Router",Cs)}let v_=(()=>{class At{constructor(pt){}static forRoot(pt,Gt){return{ngModule:At,providers:[Yu,[],$c(pt),{provide:Ur,useFactory:x_,deps:[[Cs,new d.FiY,new d.tp0]]},{provide:fa,useValue:Gt||{}},Gt?.useHash?{provide:W.S$,useClass:W.Do}:{provide:W.S$,useClass:W.b0},{provide:Jl,useFactory:()=>{const At=(0,d.f3M)(Cs),Ut=(0,d.f3M)(W.EM),pt=(0,d.f3M)(fa);return pt.scrollOffset&&Ut.setOffset(pt.scrollOffset),new Bu(At,Ut,pt)}},Gt?.preloadingStrategy?Fo(Gt.preloadingStrategy).\u0275providers:[],{provide:d.PXZ,multi:!0,useFactory:To},Gt?.initialNavigation?mp(Gt):[],[{provide:zd,useFactory:wr},{provide:d.tb,multi:!0,useExisting:zd}]]}}static forChild(pt){return{ngModule:At,providers:[$c(pt)]}}}return At.\u0275fac=function(pt){return new(pt||At)(d.LFG(Ur,8))},At.\u0275mod=d.oAB({type:At}),At.\u0275inj=d.cJS({imports:[Ac]}),At})();function x_(At){return"guarded"}function mp(At){return["disabled"===At.initialNavigation?as(3,[{provide:d.ip1,multi:!0,useFactory:()=>{const Ut=(0,d.f3M)(Cs);return()=>{Ut.setUpLocationChangeListener()}}},{provide:hd,useValue:2}]).\u0275providers:[],"enabledBlocking"===At.initialNavigation?as(2,[{provide:hd,useValue:0},{provide:d.ip1,multi:!0,deps:[d.zs3],useFactory:Ut=>{const pt=Ut.get(W.V_,Promise.resolve());let Gt=!1;return()=>pt.then(()=>new Promise(Se=>{const Dn=Ut.get(Cs),qn=Ut.get(un);(function se(Se){Ut.get(Cs).events.pipe((0,St.h)(qn=>qn instanceof Ir||qn instanceof Pc||qn instanceof rl),(0,ot.U)(qn=>qn instanceof Ir||qn instanceof Pc&&(0===qn.code||1===qn.code)&&null),(0,St.h)(qn=>null!==qn),(0,gt.q)(1)).subscribe(()=>{Se()})})(()=>{Se(!0),Gt=!0}),Dn.afterPreactivation=()=>(Se(!0),Gt||qn.closed?(0,v.of)(void 0):qn),Dn.initialNavigation()}))}}]).\u0275providers:[]]}const zd=new d.OlP("")},92216:(rt,it,b)=>{"use strict";b.d(it,{BN:()=>Xr,by:()=>Ks,uH:()=>In});var d=b(94650);function p(Rt,de){var De=Object.keys(Rt);if(Object.getOwnPropertySymbols){var nn=Object.getOwnPropertySymbols(Rt);de&&(nn=nn.filter(function(Cn){return Object.getOwnPropertyDescriptor(Rt,Cn).enumerable})),De.push.apply(De,nn)}return De}function v(Rt){for(var de=1;deRt.length)&&(de=Rt.length);for(var De=0,nn=new Array(de);De0;)de+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return de}function Be(Rt){for(var de=[],De=(Rt||[]).length>>>0;De--;)de[De]=Rt[De];return de}function Fn(Rt){return Rt.classList?Be(Rt.classList):(Rt.getAttribute("class")||"").split(" ").filter(function(de){return de})}function bi(Rt){return"".concat(Rt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function _o(Rt){return Object.keys(Rt||{}).reduce(function(de,De){return de+"".concat(De,": ").concat(Rt[De].trim(),";")},"")}function fn(Rt){return Rt.size!==en.size||Rt.x!==en.x||Rt.y!==en.y||Rt.rotate!==en.rotate||Rt.flipX||Rt.flipY}function Zi(){var de=on,De=Et.cssPrefix,nn=Et.replacementClass,Cn=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==De||nn!==de){var Wn=new RegExp("\\.".concat("fa","\\-"),"g"),$n=new RegExp("\\--".concat("fa","\\-"),"g"),yi=new RegExp("\\.".concat(de),"g");Cn=Cn.replace(Wn,".".concat(De,"-")).replace($n,"--".concat(De,"-")).replace(yi,".".concat(nn))}return Cn}var vo=!1;function No(){Et.autoAddCss&&!vo&&(function He(Rt){if(Rt&&ze){var de=Wt.createElement("style");de.setAttribute("type","text/css"),de.innerHTML=Rt;for(var De=Wt.head.childNodes,nn=null,Cn=De.length-1;Cn>-1;Cn--){var Wn=De[Cn],$n=(Wn.tagName||"").toUpperCase();["STYLE","LINK"].indexOf($n)>-1&&(nn=Wn)}Wt.head.insertBefore(de,nn)}}(Zi()),vo=!0)}var la={mixout:function(){return{dom:{css:Zi,insertCss:No}}},hooks:function(){return{beforeDOMElementCreation:function(){No()},beforeI2svg:function(){No()}}}},Ea=le||{};Ea[Kt]||(Ea[Kt]={}),Ea[Kt].styles||(Ea[Kt].styles={}),Ea[Kt].hooks||(Ea[Kt].hooks={}),Ea[Kt].shims||(Ea[Kt].shims=[]);var fr=Ea[Kt],$e=[],Ye=!1;function Pe(Rt){!ze||(Ye?setTimeout(Rt,0):$e.push(Rt))}function mn(Rt){var de=Rt.tag,De=Rt.attributes,nn=void 0===De?{}:De,Cn=Rt.children,Wn=void 0===Cn?[]:Cn;return"string"==typeof Rt?bi(Rt):"<".concat(de," ").concat(function go(Rt){return Object.keys(Rt||{}).reduce(function(de,De){return de+"".concat(De,'="').concat(bi(Rt[De]),'" ')},"").trim()}(nn),">").concat(Wn.map(mn).join(""),"")}function nt(Rt,de,De){if(Rt&&Rt[de]&&Rt[de][De])return{prefix:de,iconName:De,icon:Rt[de][De]}}ze&&((Ye=(Wt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Wt.readyState))||Wt.addEventListener("DOMContentLoaded",function Rt(){Wt.removeEventListener("DOMContentLoaded",Rt),Ye=1,$e.map(function(de){return de()})}));var Q=function(de,De,nn,Cn){var Ti,bo,xo,Wn=Object.keys(de),$n=Wn.length,yi=void 0!==Cn?function(de,De){return function(nn,Cn,Wn,$n){return de.call(De,nn,Cn,Wn,$n)}}(De,Cn):De;for(void 0===nn?(Ti=1,xo=de[Wn[0]]):(Ti=0,xo=nn);Ti<$n;Ti++)xo=yi(xo,de[bo=Wn[Ti]],bo,de);return xo};function Je(Rt){var de=function zt(Rt){for(var de=[],De=0,nn=Rt.length;De=55296&&Cn<=56319&&De2&&void 0!==arguments[2]?arguments[2]:{},nn=De.skipHooks,Cn=void 0!==nn&&nn,Wn=Gi(de);"function"!=typeof fr.hooks.addPack||Cn?fr.styles[Rt]=v(v({},fr.styles[Rt]||{}),Wn):fr.hooks.addPack(Rt,Gi(de)),"fas"===Rt&&Co("fa",de)}var br,cs,or,Er=fr.styles,bc=fr.shims,dr=(k(br={},vt,Object.values(ne[vt])),k(br,xt,Object.values(ne[xt])),br),Yr=null,Gr={},Ir={},Pc={},rl={},Sc={},Fs=(k(cs={},vt,Object.keys(Ct[vt])),k(cs,xt,Object.keys(Ct[xt])),cs);function xl(Rt,de){var De=de.split("-"),nn=De[0],Cn=De.slice(1).join("-");return nn!==Rt||""===Cn||function Lc(Rt){return~je.indexOf(Rt)}(Cn)?null:Cn}var Qr=function(){var de=function(Wn){return Q(Er,function($n,yi,Ti){return $n[Ti]=Q(yi,Wn,{}),$n},{})};Gr=de(function(Cn,Wn,$n){return Wn[3]&&(Cn[Wn[3]]=$n),Wn[2]&&Wn[2].filter(function(Ti){return"number"==typeof Ti}).forEach(function(Ti){Cn[Ti.toString(16)]=$n}),Cn}),Ir=de(function(Cn,Wn,$n){return Cn[$n]=$n,Wn[2]&&Wn[2].filter(function(Ti){return"string"==typeof Ti}).forEach(function(Ti){Cn[Ti]=$n}),Cn}),Sc=de(function(Cn,Wn,$n){var yi=Wn[2];return Cn[$n]=$n,yi.forEach(function(Ti){Cn[Ti]=$n}),Cn});var De="far"in Er||Et.autoFetchSvg,nn=Q(bc,function(Cn,Wn){var $n=Wn[0],yi=Wn[1],Ti=Wn[2];return"far"===yi&&!De&&(yi="fas"),"string"==typeof $n&&(Cn.names[$n]={prefix:yi,iconName:Ti}),"number"==typeof $n&&(Cn.unicodes[$n.toString(16)]={prefix:yi,iconName:Ti}),Cn},{names:{},unicodes:{}});Pc=nn.names,rl=nn.unicodes,Yr=Al(Et.styleDefault,{family:Et.familyDefault})};function Ns(Rt,de){return(Gr[Rt]||{})[de]}function hr(Rt,de){return(Sc[Rt]||{})[de]}function iu(Rt){return Pc[Rt]||{prefix:null,iconName:null}}function vc(){return Yr}function Al(Rt){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},De=de.family,nn=void 0===De?vt:De,Cn=Ct[nn][Rt],Wn=Bt[nn][Rt]||Bt[nn][Cn],$n=Rt in fr.styles?Rt:null;return Wn||$n||null}(function It(Rt){Mt.push(Rt)})(function(Rt){Yr=Al(Rt.styleDefault,{family:Et.familyDefault})}),Qr();var Oc=(k(or={},vt,Object.keys(ne[vt])),k(or,xt,Object.keys(ne[xt])),or);function Vs(Rt){var de,De=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nn=De.skipLookups,Cn=void 0!==nn&&nn,Wn=(k(de={},vt,"".concat(Et.cssPrefix,"-").concat(vt)),k(de,xt,"".concat(Et.cssPrefix,"-").concat(xt)),de),$n=null,yi=vt;(Rt.includes(Wn[vt])||Rt.some(function(bo){return Oc[vt].includes(bo)}))&&(yi=vt),(Rt.includes(Wn[xt])||Rt.some(function(bo){return Oc[xt].includes(bo)}))&&(yi=xt);var Ti=Rt.reduce(function(bo,xo){var yo=xl(Et.cssPrefix,xo);if(Er[xo]?(xo=dr[yi].includes(xo)?he[yi][xo]:xo,$n=xo,bo.prefix=xo):Fs[yi].indexOf(xo)>-1?($n=xo,bo.prefix=Al(xo,{family:yi})):yo?bo.iconName=yo:xo!==Et.replacementClass&&xo!==Wn[vt]&&xo!==Wn[xt]&&bo.rest.push(xo),!Cn&&bo.prefix&&bo.iconName){var ga="fa"===$n?iu(bo.iconName):{},ra=hr(bo.prefix,bo.iconName);ga.prefix&&($n=null),bo.iconName=ga.iconName||ra||bo.iconName,bo.prefix=ga.prefix||bo.prefix,"far"===bo.prefix&&!Er.far&&Er.fas&&!Et.autoFetchSvg&&(bo.prefix="fas")}return bo},{prefix:null,iconName:null,rest:[]});return(Rt.includes("fa-brands")||Rt.includes("fab"))&&(Ti.prefix="fab"),(Rt.includes("fa-duotone")||Rt.includes("fad"))&&(Ti.prefix="fad"),!Ti.prefix&&yi===xt&&(Er.fass||Et.autoFetchSvg)&&(Ti.prefix="fass",Ti.iconName=hr(Ti.prefix,Ti.iconName)||Ti.iconName),("fa"===Ti.prefix||"fa"===$n)&&(Ti.prefix=vc()||"fas"),Ti}var Yc=function(){function Rt(){(function A(Rt,de){if(!(Rt instanceof de))throw new TypeError("Cannot call a class as a function")})(this,Rt),this.definitions={}}return function w(Rt,de,De){de&&x(Rt.prototype,de),De&&x(Rt,De),Object.defineProperty(Rt,"prototype",{writable:!1})}(Rt,[{key:"add",value:function(){for(var De=this,nn=arguments.length,Cn=new Array(nn),Wn=0;Wn0&&xo.forEach(function(yo){"string"==typeof yo&&(De[yi][yo]=bo)}),De[yi][Ti]=bo}),De}}]),Rt}(),Vc=[],js={},yl={},md=Object.keys(yl);function Js(Rt,de){for(var De=arguments.length,nn=new Array(De>2?De-2:0),Cn=2;Cn1?de-1:0),nn=1;nn0&&void 0!==arguments[0]?arguments[0]:{};return ze?(Tl("beforeI2svg",de),Gs("pseudoElements2svg",de),Gs("i2svg",de)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},De=de.autoReplaceSvgRoot;!1===Et.autoReplaceSvg&&(Et.autoReplaceSvg=!0),Et.observeMutations=!0,Pe(function(){ar({autoReplaceSvgRoot:De}),Tl("watch",de)})}},qo={noAuto:function(){Et.autoReplaceSvg=!1,Et.observeMutations=!1,Tl("noAuto")},config:Et,dom:ou,parse:{icon:function(de){if(null===de)return null;if("object"===T(de)&&de.prefix&&de.iconName)return{prefix:de.prefix,iconName:hr(de.prefix,de.iconName)||de.iconName};if(Array.isArray(de)&&2===de.length){var De=0===de[1].indexOf("fa-")?de[1].slice(3):de[1],nn=Al(de[0]);return{prefix:nn,iconName:hr(nn,De)||De}}if("string"==typeof de&&(de.indexOf("".concat(Et.cssPrefix,"-"))>-1||de.match(Oe))){var Cn=Vs(de.split(" "),{skipLookups:!0});return{prefix:Cn.prefix||vc(),iconName:hr(Cn.prefix,Cn.iconName)||Cn.iconName}}if("string"==typeof de){var Wn=vc();return{prefix:Wn,iconName:hr(Wn,de)||de}}}},library:ks,findIconDefinition:jc,toHtml:mn},ar=function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},De=de.autoReplaceSvgRoot,nn=void 0===De?Wt:De;(Object.keys(fr.styles).length>0||Et.autoFetchSvg)&&ze&&Et.autoReplaceSvg&&qo.dom.i2svg({node:nn})};function cc(Rt,de){return Object.defineProperty(Rt,"abstract",{get:de}),Object.defineProperty(Rt,"html",{get:function(){return Rt.abstract.map(function(nn){return mn(nn)})}}),Object.defineProperty(Rt,"node",{get:function(){if(ze){var nn=Wt.createElement("div");return nn.innerHTML=Rt.html,nn.children}}}),Rt}function xc(Rt){var de=Rt.icons,De=de.main,nn=de.mask,Cn=Rt.prefix,Wn=Rt.iconName,$n=Rt.transform,yi=Rt.symbol,Ti=Rt.title,bo=Rt.maskId,xo=Rt.titleId,yo=Rt.extra,ga=Rt.watchable,ra=void 0!==ga&&ga,fa=nn.found?nn:De,ts=fa.width,Hs=fa.height,es="fak"===Cn,ns=[Et.replacementClass,Wn?"".concat(Et.cssPrefix,"-").concat(Wn):""].filter(function(sr){return-1===yo.classes.indexOf(sr)}).filter(function(sr){return""!==sr||!!sr}).concat(yo.classes).join(" "),us={children:[],attributes:v(v({},yo.attributes),{},{"data-prefix":Cn,"data-icon":Wn,class:ns,role:yo.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(ts," ").concat(Hs)})},Hr=es&&!~yo.classes.indexOf("fa-fw")?{width:"".concat(ts/Hs*16*.0625,"em")}:{};ra&&(us.attributes[hn]=""),Ti&&(us.children.push({tag:"title",attributes:{id:us.attributes["aria-labelledby"]||"title-".concat(xo||ve())},children:[Ti]}),delete us.attributes.title);var Xs=v(v({},us),{},{prefix:Cn,iconName:Wn,main:De,mask:nn,maskId:bo,transform:$n,symbol:yi,styles:v(v({},Hr),yo.styles)}),Fc=nn.found&&De.found?Gs("generateAbstractMask",Xs)||{children:[],attributes:{}}:Gs("generateAbstractIcon",Xs)||{children:[],attributes:{}},Rd=Fc.attributes;return Xs.children=Fc.children,Xs.attributes=Rd,yi?function Yl(Rt){var De=Rt.iconName,nn=Rt.children,Cn=Rt.attributes,Wn=Rt.symbol,$n=!0===Wn?"".concat(Rt.prefix,"-").concat(Et.cssPrefix,"-").concat(De):Wn;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:v(v({},Cn),{},{id:$n}),children:nn}]}]}(Xs):function qu(Rt){var de=Rt.children,De=Rt.main,nn=Rt.mask,Cn=Rt.attributes,Wn=Rt.styles,$n=Rt.transform;if(fn($n)&&De.found&&!nn.found){var bo={x:De.width/De.height/2,y:.5};Cn.style=_o(v(v({},Wn),{},{"transform-origin":"".concat(bo.x+$n.x/16,"em ").concat(bo.y+$n.y/16,"em")}))}return[{tag:"svg",attributes:Cn,children:de}]}(Xs)}function wl(Rt){var de=Rt.content,De=Rt.width,nn=Rt.height,Cn=Rt.transform,Wn=Rt.title,$n=Rt.extra,yi=Rt.watchable,Ti=void 0!==yi&&yi,bo=v(v(v({},$n.attributes),Wn?{title:Wn}:{}),{},{class:$n.classes.join(" ")});Ti&&(bo[hn]="");var xo=v({},$n.styles);fn(Cn)&&(xo.transform=function ln(Rt){var de=Rt.transform,De=Rt.width,Cn=Rt.height,Wn=void 0===Cn?16:Cn,$n=Rt.startCentered,yi=void 0!==$n&&$n,Ti="";return Ti+=yi&&Xe?"translate(".concat(de.x/16-(void 0===De?16:De)/2,"em, ").concat(de.y/16-Wn/2,"em) "):yi?"translate(calc(-50% + ".concat(de.x/16,"em), calc(-50% + ").concat(de.y/16,"em)) "):"translate(".concat(de.x/16,"em, ").concat(de.y/16,"em) "),(Ti+="scale(".concat(de.size/16*(de.flipX?-1:1),", ").concat(de.size/16*(de.flipY?-1:1),") "))+"rotate(".concat(de.rotate,"deg) ")}({transform:Cn,startCentered:!0,width:De,height:nn}),xo["-webkit-transform"]=xo.transform);var yo=_o(xo);yo.length>0&&(bo.style=yo);var ga=[];return ga.push({tag:"span",attributes:bo,children:[de]}),Wn&&ga.push({tag:"span",attributes:{class:"sr-only"},children:[Wn]}),ga}function Ds(Rt){var de=Rt.content,De=Rt.title,nn=Rt.extra,Cn=v(v(v({},nn.attributes),De?{title:De}:{}),{},{class:nn.classes.join(" ")}),Wn=_o(nn.styles);Wn.length>0&&(Cn.style=Wn);var $n=[];return $n.push({tag:"span",attributes:Cn,children:[de]}),De&&$n.push({tag:"span",attributes:{class:"sr-only"},children:[De]}),$n}var Jc=fr.styles;function bu(Rt){var de=Rt[0],De=Rt[1],Wn=I(Rt.slice(4),1)[0];return{found:!0,width:de,height:De,icon:Array.isArray(Wn)?{tag:"g",attributes:{class:"".concat(Et.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(Et.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:Wn[0]}},{tag:"path",attributes:{class:"".concat(Et.cssPrefix,"-").concat("primary"),fill:"currentColor",d:Wn[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Wn}}}}var Dr={found:!1,width:512,height:512};function Wa(Rt,de){var De=de;return"fa"===de&&null!==Et.styleDefault&&(de=vc()),new Promise(function(nn,Cn){if(Gs("missingIconAbstract"),"fa"===De){var $n=iu(Rt)||{};Rt=$n.iconName||Rt,de=$n.prefix||de}if(Rt&&de&&Jc[de]&&Jc[de][Rt])return nn(bu(Jc[de][Rt]));(function Cc(Rt,de){!Ft&&!Et.showMissingIcons&&Rt&&console.error('Icon with name "'.concat(Rt,'" and prefix "').concat(de,'" is missing.'))})(Rt,de),nn(v(v({},Dr),{},{icon:Et.showMissingIcons&&Rt&&Gs("missingIconAbstract")||{}}))})}var pr=function(){},Gc=Et.measurePerformance&&Ae&&Ae.mark&&Ae.measure?Ae:{mark:pr,measure:pr},vs='FA "6.2.1"',Vl_begin=function(de){return Gc.mark("".concat(vs," ").concat(de," begins")),function(){return function(de){Gc.mark("".concat(vs," ").concat(de," ends")),Gc.measure("".concat(vs," ").concat(de),"".concat(vs," ").concat(de," begins"),"".concat(vs," ").concat(de," ends"))}(de)}},Ps=function(){};function qs(Rt){return"string"==typeof(Rt.getAttribute?Rt.getAttribute(hn):null)}function Qs(Rt){return Wt.createElementNS("http://www.w3.org/2000/svg",Rt)}function lc(Rt){return Wt.createElement(Rt)}function Ws(Rt){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},De=de.ceFn,nn=void 0===De?"svg"===Rt.tag?Qs:lc:De;if("string"==typeof Rt)return Wt.createTextNode(Rt);var Cn=nn(Rt.tag);Object.keys(Rt.attributes||[]).forEach(function($n){Cn.setAttribute($n,Rt.attributes[$n])});var Wn=Rt.children||[];return Wn.forEach(function($n){Cn.appendChild(Ws($n,{ceFn:nn}))}),Cn}var aa={replace:function(de){var De=de[0];if(De.parentNode)if(de[1].forEach(function(Cn){De.parentNode.insertBefore(Ws(Cn),De)}),null===De.getAttribute(hn)&&Et.keepOriginalSource){var nn=Wt.createComment(function Fr(Rt){var de=" ".concat(Rt.outerHTML," ");return"".concat(de,"Font Awesome fontawesome.com ")}(De));De.parentNode.replaceChild(nn,De)}else De.remove()},nest:function(de){var De=de[0],nn=de[1];if(~Fn(De).indexOf(Et.replacementClass))return aa.replace(de);var Cn=new RegExp("".concat(Et.cssPrefix,"-.*"));if(delete nn[0].attributes.id,nn[0].attributes.class){var Wn=nn[0].attributes.class.split(" ").reduce(function(yi,Ti){return Ti===Et.replacementClass||Ti.match(Cn)?yi.toSvg.push(Ti):yi.toNode.push(Ti),yi},{toNode:[],toSvg:[]});nn[0].attributes.class=Wn.toSvg.join(" "),0===Wn.toNode.length?De.removeAttribute("class"):De.setAttribute("class",Wn.toNode.join(" "))}var $n=nn.map(function(yi){return mn(yi)}).join("\n");De.setAttribute(hn,""),De.innerHTML=$n}};function uc(Rt){Rt()}function vr(Rt,de){var De="function"==typeof de?de:Ps;if(0===Rt.length)De();else{var nn=uc;"async"===Et.mutateApproach&&(nn=le.requestAnimationFrame||uc),nn(function(){var Cn=function Rs(){return!0===Et.autoReplaceSvg?aa.replace:aa[Et.autoReplaceSvg]||aa.replace}(),Wn=Vl_begin("mutate");Rt.map(Cn),Wn(),De()})}}var Vr=!1;function Qc(){Vr=!0}function sl(){Vr=!1}var yc=null;function qd(Rt){if(Ce&&Et.observeMutations){var de=Rt.treeCallback,De=void 0===de?Ps:de,nn=Rt.nodeCallback,Cn=void 0===nn?Ps:nn,Wn=Rt.pseudoElementsCallback,$n=void 0===Wn?Ps:Wn,yi=Rt.observeMutationsRoot,Ti=void 0===yi?Wt:yi;yc=new Ce(function(bo){if(!Vr){var xo=vc();Be(bo).forEach(function(yo){if("childList"===yo.type&&yo.addedNodes.length>0&&!qs(yo.addedNodes[0])&&(Et.searchPseudoElements&&$n(yo.target),De(yo.target)),"attributes"===yo.type&&yo.target.parentNode&&Et.searchPseudoElements&&$n(yo.target.parentNode),"attributes"===yo.type&&qs(yo.target)&&~hi.indexOf(yo.attributeName))if("class"===yo.attributeName&&function xs(Rt){var de=Rt.getAttribute?Rt.getAttribute(Ze):null,De=Rt.getAttribute?Rt.getAttribute(dn):null;return de&&De}(yo.target)){var ga=Vs(Fn(yo.target)),fa=ga.iconName;yo.target.setAttribute(Ze,ga.prefix||xo),fa&&yo.target.setAttribute(dn,fa)}else(function ls(Rt){return Rt&&Rt.classList&&Rt.classList.contains&&Rt.classList.contains(Et.replacementClass)})(yo.target)&&Cn(yo.target)})}}),ze&&yc.observe(Ti,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Yi(Rt){var de=Rt.getAttribute("style"),De=[];return de&&(De=de.split(";").reduce(function(nn,Cn){var Wn=Cn.split(":"),$n=Wn[0],yi=Wn.slice(1);return $n&&yi.length>0&&(nn[$n]=yi.join(":").trim()),nn},{})),De}function Da(Rt){var de=Rt.getAttribute("data-prefix"),De=Rt.getAttribute("data-icon"),nn=void 0!==Rt.innerText?Rt.innerText.trim():"",Cn=Vs(Fn(Rt));return Cn.prefix||(Cn.prefix=vc()),de&&De&&(Cn.prefix=de,Cn.iconName=De),Cn.iconName&&Cn.prefix||(Cn.prefix&&nn.length>0&&(Cn.iconName=function _1(Rt,de){return(Ir[Rt]||{})[de]}(Cn.prefix,Rt.innerText)||Ns(Cn.prefix,Je(Rt.innerText))),!Cn.iconName&&Et.autoFetchSvg&&Rt.firstChild&&Rt.firstChild.nodeType===Node.TEXT_NODE&&(Cn.iconName=Rt.firstChild.data)),Cn}function xu(Rt){var de=Be(Rt.attributes).reduce(function(Cn,Wn){return"class"!==Cn.name&&"style"!==Cn.name&&(Cn[Wn.name]=Wn.value),Cn},{}),De=Rt.getAttribute("title"),nn=Rt.getAttribute("data-fa-title-id");return Et.autoA11y&&(De?de["aria-labelledby"]="".concat(Et.replacementClass,"-title-").concat(nn||ve()):(de["aria-hidden"]="true",de.focusable="false")),de}function Pr(Rt){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},De=Da(Rt),nn=De.iconName,Cn=De.prefix,Wn=De.rest,$n=xu(Rt),yi=Js("parseNodeAttributes",{},Rt),Ti=de.styleParser?Yi(Rt):[];return v({iconName:nn,title:Rt.getAttribute("title"),titleId:Rt.getAttribute("data-fa-title-id"),prefix:Cn,transform:en,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Wn,styles:Ti,attributes:$n}},yi)}var _e=fr.styles;function ae(Rt){var de="nest"===Et.autoReplaceSvg?Pr(Rt,{styleParser:!1}):Pr(Rt);return~de.extra.classes.indexOf(yn)?Gs("generateLayersText",Rt,de):Gs("generateSvgReplacementMutation",Rt,de)}var Yt=new Set;function st(Rt){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!ze)return Promise.resolve();var De=Wt.documentElement.classList,nn=function(yo){return De.add("".concat(kn,"-").concat(yo))},Cn=function(yo){return De.remove("".concat(kn,"-").concat(yo))},Wn=Et.autoFetchSvg?Yt:tt.map(function(xo){return"fa-".concat(xo)}).concat(Object.keys(_e));Wn.includes("fa")||Wn.push("fa");var $n=[".".concat(yn,":not([").concat(hn,"])")].concat(Wn.map(function(xo){return".".concat(xo,":not([").concat(hn,"])")})).join(", ");if(0===$n.length)return Promise.resolve();var yi=[];try{yi=Be(Rt.querySelectorAll($n))}catch{}if(!(yi.length>0))return Promise.resolve();nn("pending"),Cn("complete");var Ti=Vl_begin("onTree"),bo=yi.reduce(function(xo,yo){try{var ga=ae(yo);ga&&xo.push(ga)}catch(ra){Ft||"MissingIcon"===ra.name&&console.error(ra)}return xo},[]);return new Promise(function(xo,yo){Promise.all(bo).then(function(ga){vr(ga,function(){nn("active"),nn("complete"),Cn("pending"),"function"==typeof de&&de(),Ti(),xo()})}).catch(function(ga){Ti(),yo(ga)})})}function ki(Rt){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ae(Rt).then(function(De){De&&vr([De],de)})}tt.map(function(Rt){Yt.add("fa-".concat(Rt))}),Object.keys(Ct[vt]).map(Yt.add.bind(Yt)),Object.keys(Ct[xt]).map(Yt.add.bind(Yt)),Yt=z(Yt);var Sa=function(de){var De=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nn=De.transform,Cn=void 0===nn?en:nn,Wn=De.symbol,$n=void 0!==Wn&&Wn,yi=De.mask,Ti=void 0===yi?null:yi,bo=De.maskId,xo=void 0===bo?null:bo,yo=De.title,ga=void 0===yo?null:yo,ra=De.titleId,fa=void 0===ra?null:ra,ts=De.classes,Hs=void 0===ts?[]:ts,es=De.attributes,ns=void 0===es?{}:es,us=De.styles,Hr=void 0===us?{}:us;if(de){var Xs=de.prefix,Fc=de.iconName,is=de.icon;return cc(v({type:"icon"},de),function(){return Tl("beforeDOMElementCreation",{iconDefinition:de,params:De}),Et.autoA11y&&(ga?ns["aria-labelledby"]="".concat(Et.replacementClass,"-title-").concat(fa||ve()):(ns["aria-hidden"]="true",ns.focusable="false")),xc({icons:{main:bu(is),mask:Ti?bu(Ti.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Xs,iconName:Fc,transform:v(v({},en),Cn),symbol:$n,title:ga,maskId:xo,titleId:fa,extra:{attributes:ns,styles:Hr,classes:Hs}})})}},Wc={mixout:function(){return{icon:(Rt=Sa,function(de){var De=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nn=(de||{}).icon?de:jc(de||{}),Cn=De.mask;return Cn&&(Cn=(Cn||{}).icon?Cn:jc(Cn||{})),Rt(nn,v(v({},De),{},{mask:Cn}))})};var Rt},hooks:function(){return{mutationObserverCallbacks:function(De){return De.treeCallback=st,De.nodeCallback=ki,De}}},provides:function(de){de.i2svg=function(De){var nn=De.node,Wn=De.callback;return st(void 0===nn?Wt:nn,void 0===Wn?function(){}:Wn)},de.generateSvgReplacementMutation=function(De,nn){var Cn=nn.iconName,Wn=nn.title,$n=nn.titleId,yi=nn.prefix,Ti=nn.transform,bo=nn.symbol,xo=nn.mask,yo=nn.maskId,ga=nn.extra;return new Promise(function(ra,fa){Promise.all([Wa(Cn,yi),xo.iconName?Wa(xo.iconName,xo.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(ts){var Hs=I(ts,2);ra([De,xc({icons:{main:Hs[0],mask:Hs[1]},prefix:yi,iconName:Cn,transform:Ti,symbol:bo,maskId:yo,title:Wn,titleId:$n,extra:ga,watchable:!0})])}).catch(fa)})},de.generateAbstractIcon=function(De){var bo,nn=De.children,Cn=De.attributes,Wn=De.main,$n=De.transform,Ti=_o(De.styles);return Ti.length>0&&(Cn.style=Ti),fn($n)&&(bo=Gs("generateAbstractTransformGrouping",{main:Wn,transform:$n,containerWidth:Wn.width,iconWidth:Wn.width})),nn.push(bo||Wn.icon),{children:nn,attributes:Cn}}}},Ec={mixout:function(){return{layer:function(De){var nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Cn=nn.classes,Wn=void 0===Cn?[]:Cn;return cc({type:"layer"},function(){Tl("beforeDOMElementCreation",{assembler:De,params:nn});var $n=[];return De(function(yi){Array.isArray(yi)?yi.map(function(Ti){$n=$n.concat(Ti.abstract)}):$n=$n.concat(yi.abstract)}),[{tag:"span",attributes:{class:["".concat(Et.cssPrefix,"-layers")].concat(z(Wn)).join(" ")},children:$n}]})}}}},Nr={mixout:function(){return{counter:function(De){var nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Cn=nn.title,Wn=void 0===Cn?null:Cn,$n=nn.classes,yi=void 0===$n?[]:$n,Ti=nn.attributes,bo=void 0===Ti?{}:Ti,xo=nn.styles,yo=void 0===xo?{}:xo;return cc({type:"counter",content:De},function(){return Tl("beforeDOMElementCreation",{content:De,params:nn}),Ds({content:De.toString(),title:Wn,extra:{attributes:bo,styles:yo,classes:["".concat(Et.cssPrefix,"-layers-counter")].concat(z(yi))}})})}}}},qr={mixout:function(){return{text:function(De){var nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Cn=nn.transform,Wn=void 0===Cn?en:Cn,$n=nn.title,yi=void 0===$n?null:$n,Ti=nn.classes,bo=void 0===Ti?[]:Ti,xo=nn.attributes,yo=void 0===xo?{}:xo,ga=nn.styles,ra=void 0===ga?{}:ga;return cc({type:"text",content:De},function(){return Tl("beforeDOMElementCreation",{content:De,params:nn}),wl({content:De,transform:v(v({},en),Wn),title:yi,extra:{attributes:yo,styles:ra,classes:["".concat(Et.cssPrefix,"-layers-text")].concat(z(bo))}})})}}},provides:function(de){de.generateLayersText=function(De,nn){var Cn=nn.title,Wn=nn.transform,$n=nn.extra,yi=null,Ti=null;if(Xe){var bo=parseInt(getComputedStyle(De).fontSize,10),xo=De.getBoundingClientRect();yi=xo.width/bo,Ti=xo.height/bo}return Et.autoA11y&&!Cn&&($n.attributes["aria-hidden"]="true"),Promise.resolve([De,wl({content:De.innerHTML,width:yi,height:Ti,transform:Wn,title:Cn,extra:$n,watchable:!0})])}}},Ru=new RegExp('"',"ug"),er=[1105920,1112319];function au(Rt,de){var De="".concat("data-fa-pseudo-element-pending").concat(de.replace(":","-"));return new Promise(function(nn,Cn){if(null!==Rt.getAttribute(De))return nn();var $n=Be(Rt.children).filter(function(is){return is.getAttribute(we)===de})[0],yi=le.getComputedStyle(Rt,de),Ti=yi.getPropertyValue("font-family").match(On),bo=yi.getPropertyValue("font-weight"),xo=yi.getPropertyValue("content");if($n&&!Ti)return Rt.removeChild($n),nn();if(Ti&&"none"!==xo&&""!==xo){var yo=yi.getPropertyValue("content"),ga=~["Sharp"].indexOf(Ti[2])?xt:vt,ra=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(Ti[2])?Bt[ga][Ti[2].toLowerCase()]:_i[ga][bo],fa=function Ul(Rt){var de=Rt.replace(Ru,""),De=function zn(Rt,de){var Cn,De=Rt.length,nn=Rt.charCodeAt(de);return nn>=55296&&nn<=56319&&De>de+1&&(Cn=Rt.charCodeAt(de+1))>=56320&&Cn<=57343?1024*(nn-55296)+Cn-56320+65536:nn}(de,0),nn=De>=er[0]&&De<=er[1],Cn=2===de.length&&de[0]===de[1];return{value:Je(Cn?de[0]:de),isSecondary:nn||Cn}}(yo),ts=fa.value,Hs=fa.isSecondary,es=Ti[0].startsWith("FontAwesome"),ns=Ns(ra,ts),us=ns;if(es){var Hr=function f1(Rt){var de=rl[Rt],De=Ns("fas",Rt);return de||(De?{prefix:"fas",iconName:De}:null)||{prefix:null,iconName:null}}(ts);Hr.iconName&&Hr.prefix&&(ns=Hr.iconName,ra=Hr.prefix)}if(!ns||Hs||$n&&$n.getAttribute(Ze)===ra&&$n.getAttribute(dn)===us)nn();else{Rt.setAttribute(De,us),$n&&Rt.removeChild($n);var Xs=function $s(){return{iconName:null,title:null,titleId:null,prefix:null,transform:en,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Fc=Xs.extra;Fc.attributes[we]=de,Wa(ns,ra).then(function(is){var Rd=xc(v(v({},Xs),{},{icons:{main:is,mask:{prefix:null,iconName:null,rest:[]}},prefix:ra,iconName:us,extra:Fc,watchable:!0})),sr=Wt.createElement("svg");"::before"===de?Rt.insertBefore(sr,Rt.firstChild):Rt.appendChild(sr),sr.outerHTML=Rd.map(function(cr){return mn(cr)}).join("\n"),Rt.removeAttribute(De),nn()}).catch(Cn)}}else nn()})}function Hu(Rt){return Promise.all([au(Rt,"::before"),au(Rt,"::after")])}function Vp(Rt){return!(Rt.parentNode===document.head||~Ee.indexOf(Rt.tagName.toUpperCase())||Rt.getAttribute(we)||Rt.parentNode&&"svg"===Rt.parentNode.tagName)}function h1(Rt){if(ze)return new Promise(function(de,De){var nn=Be(Rt.querySelectorAll("*")).filter(Vp).map(Hu),Cn=Vl_begin("searchPseudoElements");Qc(),Promise.all(nn).then(function(){Cn(),sl(),de()}).catch(function(){Cn(),sl(),De()})})}var Ic=!1,Zl=function(de){return de.toLowerCase().split(" ").reduce(function(nn,Cn){var Wn=Cn.toLowerCase().split("-"),$n=Wn[0],yi=Wn.slice(1).join("-");if($n&&"h"===yi)return nn.flipX=!0,nn;if($n&&"v"===yi)return nn.flipY=!0,nn;if(yi=parseFloat(yi),isNaN(yi))return nn;switch($n){case"grow":nn.size=nn.size+yi;break;case"shrink":nn.size=nn.size-yi;break;case"left":nn.x=nn.x-yi;break;case"right":nn.x=nn.x+yi;break;case"up":nn.y=nn.y-yi;break;case"down":nn.y=nn.y+yi;break;case"rotate":nn.rotate=nn.rotate+yi}return nn},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Ml={x:0,y:0,width:"100%",height:"100%"};function ll(Rt){var de=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Rt.attributes&&(Rt.attributes.fill||de)&&(Rt.attributes.fill="black"),Rt}!function Hl(Rt,de){var De=de.mixoutsTo;Vc=Rt,js={},Object.keys(yl).forEach(function(nn){-1===md.indexOf(nn)&&delete yl[nn]}),Vc.forEach(function(nn){var Cn=nn.mixout?nn.mixout():{};if(Object.keys(Cn).forEach(function($n){"function"==typeof Cn[$n]&&(De[$n]=Cn[$n]),"object"===T(Cn[$n])&&Object.keys(Cn[$n]).forEach(function(yi){De[$n]||(De[$n]={}),De[$n][yi]=Cn[$n][yi]})}),nn.hooks){var Wn=nn.hooks();Object.keys(Wn).forEach(function($n){js[$n]||(js[$n]=[]),js[$n].push(Wn[$n])})}nn.provides&&nn.provides(yl)})}([la,Wc,Ec,Nr,qr,{hooks:function(){return{mutationObserverCallbacks:function(De){return De.pseudoElementsCallback=h1,De}}},provides:function(de){de.pseudoElements2svg=function(De){var nn=De.node;Et.searchPseudoElements&&h1(void 0===nn?Wt:nn)}}},{mixout:function(){return{dom:{unwatch:function(){Qc(),Ic=!0}}}},hooks:function(){return{bootstrap:function(){qd(Js("mutationObserverCallbacks",{}))},noAuto:function(){!function vu(){!yc||yc.disconnect()}()},watch:function(De){var nn=De.observeMutationsRoot;Ic?sl():qd(Js("mutationObserverCallbacks",{observeMutationsRoot:nn}))}}}},{mixout:function(){return{parse:{transform:function(De){return Zl(De)}}}},hooks:function(){return{parseNodeAttributes:function(De,nn){var Cn=nn.getAttribute("data-fa-transform");return Cn&&(De.transform=Zl(Cn)),De}}},provides:function(de){de.generateAbstractTransformGrouping=function(De){var nn=De.main,Cn=De.transform,$n=De.iconWidth,yi={transform:"translate(".concat(De.containerWidth/2," 256)")},Ti="translate(".concat(32*Cn.x,", ").concat(32*Cn.y,") "),bo="scale(".concat(Cn.size/16*(Cn.flipX?-1:1),", ").concat(Cn.size/16*(Cn.flipY?-1:1),") "),xo="rotate(".concat(Cn.rotate," 0 0)"),ra={outer:yi,inner:{transform:"".concat(Ti," ").concat(bo," ").concat(xo)},path:{transform:"translate(".concat($n/2*-1," -256)")}};return{tag:"g",attributes:v({},ra.outer),children:[{tag:"g",attributes:v({},ra.inner),children:[{tag:nn.icon.tag,children:nn.icon.children,attributes:v(v({},nn.icon.attributes),ra.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(De,nn){var Cn=nn.getAttribute("data-fa-mask"),Wn=Cn?Vs(Cn.split(" ").map(function($n){return $n.trim()})):{prefix:null,iconName:null,rest:[]};return Wn.prefix||(Wn.prefix=vc()),De.mask=Wn,De.maskId=nn.getAttribute("data-fa-mask-id"),De}}},provides:function(de){de.generateAbstractMask=function(De){var Rt,nn=De.children,Cn=De.attributes,Wn=De.main,$n=De.mask,yi=De.maskId,xo=Wn.icon,ga=$n.icon,ra=function wn(Rt){var de=Rt.transform,nn=Rt.iconWidth,Cn={transform:"translate(".concat(Rt.containerWidth/2," 256)")},Wn="translate(".concat(32*de.x,", ").concat(32*de.y,") "),$n="scale(".concat(de.size/16*(de.flipX?-1:1),", ").concat(de.size/16*(de.flipY?-1:1),") "),yi="rotate(".concat(de.rotate," 0 0)");return{outer:Cn,inner:{transform:"".concat(Wn," ").concat($n," ").concat(yi)},path:{transform:"translate(".concat(nn/2*-1," -256)")}}}({transform:De.transform,containerWidth:$n.width,iconWidth:Wn.width}),fa={tag:"rect",attributes:v(v({},Ml),{},{fill:"white"})},ts=xo.children?{children:xo.children.map(ll)}:{},Hs={tag:"g",attributes:v({},ra.inner),children:[ll(v({tag:xo.tag,attributes:v(v({},xo.attributes),ra.path)},ts))]},es={tag:"g",attributes:v({},ra.outer),children:[Hs]},ns="mask-".concat(yi||ve()),us="clip-".concat(yi||ve()),Hr={tag:"mask",attributes:v(v({},Ml),{},{id:ns,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[fa,es]},Xs={tag:"defs",children:[{tag:"clipPath",attributes:{id:us},children:(Rt=ga,"g"===Rt.tag?Rt.children:[Rt])},Hr]};return nn.push(Xs,{tag:"rect",attributes:v({fill:"currentColor","clip-path":"url(#".concat(us,")"),mask:"url(#".concat(ns,")")},Ml)}),{children:nn,attributes:Cn}}}},{provides:function(de){var De=!1;le.matchMedia&&(De=le.matchMedia("(prefers-reduced-motion: reduce)").matches),de.missingIconAbstract=function(){var nn=[],Cn={fill:"currentColor"},Wn={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};nn.push({tag:"path",attributes:v(v({},Cn),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var $n=v(v({},Wn),{},{attributeName:"opacity"}),yi={tag:"circle",attributes:v(v({},Cn),{},{cx:"256",cy:"364",r:"28"}),children:[]};return De||yi.children.push({tag:"animate",attributes:v(v({},Wn),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:v(v({},$n),{},{values:"1;0;1;1;0;1;"})}),nn.push(yi),nn.push({tag:"path",attributes:v(v({},Cn),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:De?[]:[{tag:"animate",attributes:v(v({},$n),{},{values:"1;0;0;0;0;1;"})}]}),De||nn.push({tag:"path",attributes:v(v({},Cn),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:v(v({},$n),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:nn}}}},{hooks:function(){return{parseNodeAttributes:function(De,nn){var Cn=nn.getAttribute("data-fa-symbol");return De.symbol=null!==Cn&&(""===Cn||Cn),De}}}}],{mixoutsTo:qo});var Ra=qo.parse,g1=qo.icon,Pi=b(11481);const So=["*"],vn=Rt=>{const de={"fa-spin":Rt.spin,"fa-pulse":Rt.pulse,"fa-fw":Rt.fixedWidth,"fa-border":Rt.border,"fa-inverse":Rt.inverse,"fa-layers-counter":Rt.counter,"fa-flip-horizontal":"horizontal"===Rt.flip||"both"===Rt.flip,"fa-flip-vertical":"vertical"===Rt.flip||"both"===Rt.flip,[`fa-${Rt.size}`]:null!==Rt.size,[`fa-rotate-${Rt.rotate}`]:null!==Rt.rotate,[`fa-pull-${Rt.pull}`]:null!==Rt.pull,[`fa-stack-${Rt.stackItemSize}`]:null!=Rt.stackItemSize};return Object.keys(de).map(De=>de[De]?De:null).filter(De=>De)};let Au=(()=>{class Rt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return Rt.\u0275fac=function(De){return new(De||Rt)},Rt.\u0275prov=d.Yz7({token:Rt,factory:Rt.\u0275fac,providedIn:"root"}),Rt})(),Ks=(()=>{class Rt{constructor(){this.definitions={}}addIcons(...De){for(const nn of De){nn.prefix in this.definitions||(this.definitions[nn.prefix]={}),this.definitions[nn.prefix][nn.iconName]=nn;for(const Cn of nn.icon[2])"string"==typeof Cn&&(this.definitions[nn.prefix][Cn]=nn)}}addIconPacks(...De){for(const nn of De){const Cn=Object.keys(nn).map(Wn=>nn[Wn]);this.addIcons(...Cn)}}getIconDefinition(De,nn){return De in this.definitions&&nn in this.definitions[De]?this.definitions[De][nn]:null}}return Rt.\u0275fac=function(De){return new(De||Rt)},Rt.\u0275prov=d.Yz7({token:Rt,factory:Rt.\u0275fac,providedIn:"root"}),Rt})(),Xi=(()=>{class Rt{constructor(){this.stackItemSize="1x"}ngOnChanges(De){if("size"in De)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return Rt.\u0275fac=function(De){return new(De||Rt)},Rt.\u0275dir=d.lG2({type:Rt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[d.TTD]}),Rt})(),fd=(()=>{class Rt{constructor(De,nn){this.renderer=De,this.elementRef=nn}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(De){"size"in De&&(null!=De.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${De.size.currentValue}`),null!=De.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${De.size.previousValue}`))}}return Rt.\u0275fac=function(De){return new(De||Rt)(d.Y36(d.Qsj),d.Y36(d.SBq))},Rt.\u0275cmp=d.Xpm({type:Rt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[d.TTD],ngContentSelectors:So,decls:1,vars:0,template:function(De,nn){1&De&&(d.F$t(),d.Hsn(0))},encapsulation:2}),Rt})(),Xr=(()=>{class Rt{constructor(De,nn,Cn,Wn,$n){this.sanitizer=De,this.config=nn,this.iconLibrary=Cn,this.stackItem=Wn,this.classes=[],null!=$n&&null==Wn&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(De){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let nn=null;if(nn=this.icon??this.config.fallbackIcon,De){const Cn=this.findIconDefinition(nn);if(null!=Cn){const Wn=this.buildParams();this.renderIcon(Cn,Wn)}}}render(){this.ngOnChanges({})}findIconDefinition(De){const nn=((Rt,de)=>(Rt=>void 0!==Rt.prefix&&void 0!==Rt.iconName)(Rt)?Rt:Array.isArray(Rt)&&2===Rt.length?{prefix:Rt[0],iconName:Rt[1]}:"string"==typeof Rt?{prefix:de,iconName:Rt}:void 0)(De,this.config.defaultPrefix);return"icon"in nn?nn:this.iconLibrary.getIconDefinition(nn.prefix,nn.iconName)??((Rt=>{throw new Error(`Could not find icon with iconName=${Rt.iconName} and prefix=${Rt.prefix} in the icon library.`)})(nn),null)}buildParams(){const De={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},nn="string"==typeof this.transform?Ra.transform(this.transform):this.transform;return{title:this.title,transform:nn,classes:[...vn(De),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(De,nn){const Cn=g1(De,nn);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(Cn.html.join("\n"))}}return Rt.\u0275fac=function(De){return new(De||Rt)(d.Y36(Pi.H7),d.Y36(Au),d.Y36(Ks),d.Y36(Xi,8),d.Y36(fd,8))},Rt.\u0275cmp=d.Xpm({type:Rt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(De,nn){2&De&&(d.Ikx("innerHTML",nn.renderedIconHTML,d.oJD),d.uIk("title",nn.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[d.TTD],decls:0,vars:0,template:function(De,nn){},encapsulation:2}),Rt})(),In=(()=>{class Rt{}return Rt.\u0275fac=function(De){return new(De||Rt)},Rt.\u0275mod=d.oAB({type:Rt}),Rt.\u0275inj=d.cJS({}),Rt})()},33231:(rt,it,b)=>{"use strict";b.d(it,{Co:()=>bn,nu:()=>hn});var d=b(29521),p=b(94650),v=b(24006),T=b(3238),t=b(59549),A=b(84385),x=b(591),w=b(21086),k=b(23426),D=b(8929),P=b(87545),I=b(24850),z=b(1059),G=b(18583),W=b(7625),ot=b(72986),ct=b(92198),gt=b(22868),Pt=b(67376),St=b(56709),Ht=b(51572),Jt=b(4859),at=b(97392),Zt=b(36895),wt=b(10266);const _t=["searchSelectInput"],Nt=["innerSelectSearch"];function Qt(Ze,dn){if(1&Ze){const kn=p.EpF();p.TgZ(0,"mat-checkbox",9),p.NdJ("change",function(Ee){p.CHM(kn);const Ft=p.oxw();return p.KtG(Ft._emitSelectAllBooleanToParent(Ee.checked))}),p.qZA()}if(2&Ze){const kn=p.oxw();p.Q6J("color",null==kn.matFormField?null:kn.matFormField.color)("checked",kn.toggleAllCheckboxChecked)("indeterminate",kn.toggleAllCheckboxIndeterminate)("matTooltip",kn.toggleAllCheckboxTooltipMessage)("matTooltipPosition",kn.toggleAllCheckboxTooltipPosition)}}function qt(Ze,dn){1&Ze&&p._UZ(0,"mat-spinner",10)}function le(Ze,dn){1&Ze&&p.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Wt(Ze,dn){if(1&Ze&&(p.TgZ(0,"mat-icon",14),p._uU(1),p.qZA()),2&Ze){const kn=p.oxw(2);p.Q6J("svgIcon",kn.closeSvgIcon),p.xp6(1),p.hij(" ",kn.closeSvgIcon?null:kn.closeIcon," ")}}function Ce(Ze,dn){if(1&Ze){const kn=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){p.CHM(kn);const Ee=p.oxw();return p.KtG(Ee._reset(!0))}),p.YNc(1,le,1,0,"ng-content",12),p.YNc(2,Wt,2,2,"ng-template",null,13,p.W1O),p.qZA()}if(2&Ze){const kn=p.MAs(3),ri=p.oxw();p.xp6(1),p.Q6J("ngIf",ri.clearIcon)("ngIfElse",kn)}}function Ae(Ze,dn){1&Ze&&p.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function Ne(Ze,dn){if(1&Ze&&p._uU(0),2&Ze){const kn=p.oxw(2);p.Oqu(kn.noEntriesFoundLabel)}}function ze(Ze,dn){if(1&Ze&&(p.TgZ(0,"div",15),p.YNc(1,Ae,1,0,"ng-content",12),p.YNc(2,Ne,1,1,"ng-template",null,16,p.W1O),p.qZA()),2&Ze){const kn=p.MAs(3),ri=p.oxw();p.xp6(1),p.Q6J("ngIf",ri.noEntriesFound)("ngIfElse",kn)}}const Xe=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],ie=function(Ze,dn){return{"mat-select-search-inner-multiple":Ze,"mat-select-search-inner-toggle-all":dn}},Te=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let re=(()=>{class Ze{}return Ze.\u0275fac=function(kn){return new(kn||Ze)},Ze.\u0275dir=p.lG2({type:Ze,selectors:[["","ngxMatSelectSearchClear",""]]}),Ze})();const ee=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],ue=new p.OlP("mat-selectsearch-default-options");let Le=(()=>{class Ze{}return Ze.\u0275fac=function(kn){return new(kn||Ze)},Ze.\u0275dir=p.lG2({type:Ze,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),Ze})(),hn=(()=>{class Ze{constructor(kn,ri,Ee,Ft=null,vt=null,xt){this.matSelect=kn,this.changeDetectorRef=ri,this._viewportRuler=Ee,this.matOption=Ft,this.matFormField=vt,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new p.vpe,this.onTouched=tt=>{},this._options$=new x.X(null),this.optionsList$=this._options$.pipe((0,P.w)(tt=>tt?tt.changes.pipe((0,I.U)(et=>et.toArray()),(0,z.O)(tt.toArray())):(0,w.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,I.U)(tt=>tt?tt.length:0)),this._formControl=new v.NI(""),this._showNoEntriesFound$=(0,k.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,I.U)(([tt,et])=>this.noEntriesFoundLabel&&tt&&et===this.getOptionsLengthOffset())),this._onDestroy=new D.xQ,this.applyDefaultOptions(xt)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(kn){this._options$.next(kn)}get _options(){return this._options$.getValue()}applyDefaultOptions(kn){if(kn)for(const ri of ee)kn.hasOwnProperty(ri)&&(this[ri]=kn[ri])}ngOnInit(){const kn="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(kn):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,kn]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[kn]=!0):this.matSelect.panelClass=kn,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,G.g)(1),(0,W.R)(this._onDestroy)).subscribe(ri=>{ri?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,ot.q)(1)).pipe((0,W.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,W.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let ri=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,W.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const Ee=this._options.toArray(),Ft=Ee[this.getOptionsLengthOffset()],vt=this.matSelect._keyManager;vt&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(ri,Ft)||!vt.activeItem||!Ee.find(tt=>this.matSelect.compareWith(tt,vt.activeItem)))&&vt.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),ri=Ft})})}),this._showNoEntriesFound$.pipe((0,W.R)(this._onDestroy)).subscribe(ri=>{this.matOption&&(ri?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,W.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,W.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(kn){this.toggleAll.emit(kn)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(kn){(kn.key&&1===kn.key.length||kn.keyCode>=d.A&&kn.keyCode<=d.Z||kn.keyCode>=d.xE&&kn.keyCode<=d.aO||kn.keyCode===d.L_||this.preventHomeEndKeyPropagation&&(kn.keyCode===d.Sd||kn.keyCode===d.uR))&&kn.stopPropagation(),this.matSelect.multiple&&kn.key&&kn.keyCode===d.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&kn.keyCode===d.hY&&this.value&&(this._reset(!0),kn.stopPropagation())}_handleKeyup(kn){if(kn.keyCode===d.LH||kn.keyCode===d.JH){const ri=this.matSelect._getAriaActiveDescendant(),Ee=this._options.toArray().findIndex(Ft=>Ft.id===ri);-1!==Ee&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[Ee]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",ri))}}writeValue(kn){this._lastExternalInputValue=kn,this._formControl.setValue(kn),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(kn){this._formControl.valueChanges.pipe((0,ct.h)(ri=>ri!==this._lastExternalInputValue),(0,gt.b)(()=>this._lastExternalInputValue=void 0),(0,W.R)(this._onDestroy)).subscribe(kn)}registerOnTouched(kn){this.onTouched=kn}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const kn=this.matSelect.panel.nativeElement,ri=kn.scrollTop;this.searchSelectInput.nativeElement.focus(),kn.scrollTop=ri}_reset(kn){this._formControl.setValue(""),kn&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,W.R)(this._onDestroy)).subscribe(kn=>{let ri=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!kn||!Array.isArray(kn))&&(kn=[]);const Ee=this.matSelect.options.map(Ft=>Ft.value);this.previousSelectedValues.forEach(Ft=>{!kn.some(vt=>this.matSelect.compareWith(vt,Ft))&&!Ee.some(vt=>this.matSelect.compareWith(vt,Ft))&&(kn.push(Ft),ri=!0)})}this.previousSelectedValues=kn,ri&&this.matSelect._onChange(kn)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const kn=this.getMatOptionHeight(),ri=this.matSelect._keyManager.activeItemIndex||0,Ee=(0,T.CB)(ri,this.matSelect.options,this.matSelect.optionGroups),Ft=(this.matOption?-1:0)+Ee+ri,vt=this.matSelect.panel.nativeElement.scrollTop,xt=this.innerSelectSearch.nativeElement.offsetHeight,tt=Math.floor((256-xt)/kn),et=Math.round((vt+xt)/kn)-1;et>=Ft?this.matSelect.panel.nativeElement.scrollTop=Ft*kn:et+tt<=Ft&&(this.matSelect.panel.nativeElement.scrollTop=(Ft+1)*kn-(256-xt))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let ri,kn=this.innerSelectSearch.nativeElement;for(;kn=kn.parentElement;)if(kn.classList.contains("mat-select-panel")){ri=kn;break}ri&&(this.innerSelectSearch.nativeElement.style.width=ri.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return Ze.\u0275fac=function(kn){return new(kn||Ze)(p.Y36(A.gD),p.Y36(p.sBO),p.Y36(Pt.rL),p.Y36(T.ey,8),p.Y36(t.KE,8),p.Y36(ue,8))},Ze.\u0275cmp=p.Xpm({type:Ze,selectors:[["ngx-mat-select-search"]],contentQueries:function(kn,ri,Ee){if(1&kn&&(p.Suo(Ee,re,5),p.Suo(Ee,Le,5)),2&kn){let Ft;p.iGM(Ft=p.CRH())&&(ri.clearIcon=Ft.first),p.iGM(Ft=p.CRH())&&(ri.noEntriesFound=Ft.first)}},viewQuery:function(kn,ri){if(1&kn&&(p.Gf(_t,7,p.SBq),p.Gf(Nt,7,p.SBq)),2&kn){let Ee;p.iGM(Ee=p.CRH())&&(ri.searchSelectInput=Ee.first),p.iGM(Ee=p.CRH())&&(ri.innerSelectSearch=Ee.first)}},hostVars:2,hostBindings:function(kn,ri){2&kn&&p.ekj("mat-select-search-inside-mat-option",ri.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[p._Bn([{provide:v.JU,useExisting:(0,p.Gpc)(()=>Ze),multi:!0}])],ngContentSelectors:Te,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(kn,ri){1&kn&&(p.F$t(Xe),p._UZ(0,"input",0),p.TgZ(1,"div",1,2),p.YNc(3,Qt,1,5,"mat-checkbox",3),p.TgZ(4,"input",4,5),p.NdJ("keydown",function(Ft){return ri._handleKeydown(Ft)})("keyup",function(Ft){return ri._handleKeyup(Ft)})("blur",function(){return ri.onBlur()}),p.qZA(),p.YNc(6,qt,1,0,"mat-spinner",6),p.YNc(7,Ce,4,2,"button",7),p.Hsn(8),p.qZA(),p.YNc(9,ze,4,2,"div",8),p.ALo(10,"async")),2&kn&&(p.xp6(1),p.Q6J("ngClass",p.WLB(11,ie,ri.matSelect.multiple,ri._isToggleAllCheckboxVisible())),p.xp6(2),p.Q6J("ngIf",ri._isToggleAllCheckboxVisible()),p.xp6(1),p.Q6J("type",ri.type)("formControl",ri._formControl)("placeholder",ri.placeholderLabel),p.uIk("aria-label",ri.ariaLabel),p.xp6(2),p.Q6J("ngIf",ri.searching),p.xp6(1),p.Q6J("ngIf",!ri.hideClearSearchButton&&ri.value&&!ri.searching),p.xp6(2),p.Q6J("ngIf",p.lcZ(10,9,ri._showNoEntriesFound$)))},dependencies:[St.oG,Ht.Ou,Jt.lW,at.Hw,Zt.mk,Zt.O5,wt.gM,v.Fj,v.JJ,v.oH,Zt.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),Ze})(),bn=(()=>{class Ze{}return Ze.\u0275fac=function(kn){return new(kn||Ze)},Ze.\u0275mod=p.oAB({type:Ze}),Ze.\u0275inj=p.cJS({imports:[[Zt.ez,v.UX,Jt.ot,St.p9,at.Ps,Ht.Cq,wt.AV]]}),Ze})()},15861:(rt,it,b)=>{"use strict";function d(v,T,t,A,x,w,k){try{var D=v[w](k),P=D.value}catch(I){return void t(I)}D.done?T(P):Promise.resolve(P).then(A,x)}function p(v){return function(){var T=this,t=arguments;return new Promise(function(A,x){var w=v.apply(T,t);function k(P){d(w,A,x,k,D,"next",P)}function D(P){d(w,A,x,k,D,"throw",P)}k(void 0)})}}b.d(it,{Z:()=>p})}},rt=>{rt(rt.s=19202)}]); \ No newline at end of file +(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["main"],{96170:(rt,it,b)=>{rt=b.nmd(rt),function(d){const p=d.en=d.en||{};p.dictionary=Object.assign(p.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Accept","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot access default workspace.":"Cannot access default workspace.","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Drag to move":"Drag to move","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height",HEX:"HEX","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent",Insert:"Insert","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Inset:"Inset",Italic:"Italic","Justify cell text":"Justify cell text","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","List properties":"List properties","Lower-latin":"Lower-latin","Lower\u2013roman":"Lower\u2013roman","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Rich Text Editor":"Rich Text Editor",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough",Style:"Style",Subscript:"Subscript",Superscript:"Superscript","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower\u2013latin list style":"Toggle the lower\u2013latin list style","Toggle the lower\u2013roman list style":"Toggle the lower\u2013roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper\u2013latin list style":"Toggle the upper\u2013latin list style","Toggle the upper\u2013roman list style":"Toggle the upper\u2013roman list style",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload in progress":"Upload in progress","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Vertical text alignment toolbar":"Vertical text alignment toolbar",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),self,rt.exports=(()=>(()=>{var d={4959:(t,A,x)=>{const w=x(1103),k={};for(const P of Object.keys(w))k[w[P]]=P;const D={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=D;for(const P of Object.keys(D)){if(!("channels"in D[P]))throw new Error("missing channels property: "+P);if(!("labels"in D[P]))throw new Error("missing channel labels property: "+P);if(D[P].labels.length!==D[P].channels)throw new Error("channel and label counts mismatch: "+P);const{channels:I,labels:z}=D[P];delete D[P].channels,delete D[P].labels,Object.defineProperty(D[P],"channels",{value:I}),Object.defineProperty(D[P],"labels",{value:z})}D.rgb.hsl=function(P){const I=P[0]/255,z=P[1]/255,G=P[2]/255,W=Math.min(I,z,G),ot=Math.max(I,z,G),ct=ot-W;let gt,Pt;ot===W?gt=0:I===ot?gt=(z-G)/ct:z===ot?gt=2+(G-I)/ct:G===ot&&(gt=4+(I-z)/ct),gt=Math.min(60*gt,360),gt<0&&(gt+=360);const St=(W+ot)/2;return Pt=ot===W?0:St<=.5?ct/(ot+W):ct/(2-ot-W),[gt,100*Pt,100*St]},D.rgb.hsv=function(P){let I,z,G,W,ot;const ct=P[0]/255,gt=P[1]/255,Pt=P[2]/255,St=Math.max(ct,gt,Pt),Ht=St-Math.min(ct,gt,Pt),Jt=function(at){return(St-at)/6/Ht+.5};return 0===Ht?(W=0,ot=0):(ot=Ht/St,I=Jt(ct),z=Jt(gt),G=Jt(Pt),ct===St?W=G-z:gt===St?W=.3333333333333333+I-G:Pt===St&&(W=.6666666666666666+z-I),W<0?W+=1:W>1&&(W-=1)),[360*W,100*ot,100*St]},D.rgb.hwb=function(P){const I=P[0],z=P[1];let G=P[2];const W=D.rgb.hsl(P)[0],ot=1/255*Math.min(I,Math.min(z,G));return G=1-.00392156862745098*Math.max(I,Math.max(z,G)),[W,100*ot,100*G]},D.rgb.cmyk=function(P){const I=P[0]/255,z=P[1]/255,G=P[2]/255,W=Math.min(1-I,1-z,1-G);return[100*((1-I-W)/(1-W)||0),100*((1-z-W)/(1-W)||0),100*((1-G-W)/(1-W)||0),100*W]},D.rgb.keyword=function(P){const I=k[P];if(I)return I;let z,G=1/0;for(const ct of Object.keys(w)){const Pt=((W=P)[0]-(ot=w[ct])[0])**2+(W[1]-ot[1])**2+(W[2]-ot[2])**2;Pt.04045?((I+.055)/1.055)**2.4:I/12.92,z=z>.04045?((z+.055)/1.055)**2.4:z/12.92,G=G>.04045?((G+.055)/1.055)**2.4:G/12.92,[100*(.4124*I+.3576*z+.1805*G),100*(.2126*I+.7152*z+.0722*G),100*(.0193*I+.1192*z+.9505*G)]},D.rgb.lab=function(P){const I=D.rgb.xyz(P);let z=I[0],G=I[1],W=I[2];return z/=95.047,G/=100,W/=108.883,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862,G=G>.008856?G**.3333333333333333:7.787*G+.13793103448275862,W=W>.008856?W**.3333333333333333:7.787*W+.13793103448275862,[116*G-16,500*(z-G),200*(G-W)]},D.hsl.rgb=function(P){const I=P[0]/360,z=P[1]/100,G=P[2]/100;let W,ot,ct;if(0===z)return ct=255*G,[ct,ct,ct];W=G<.5?G*(1+z):G+z-G*z;const gt=2*G-W,Pt=[0,0,0];for(let St=0;St<3;St++)ot=I+.3333333333333333*-(St-1),ot<0&&ot++,ot>1&&ot--,ct=6*ot<1?gt+6*(W-gt)*ot:2*ot<1?W:3*ot<2?gt+(W-gt)*(.6666666666666666-ot)*6:gt,Pt[St]=255*ct;return Pt},D.hsl.hsv=function(P){const I=P[0];let z=P[1]/100,G=P[2]/100,W=z;const ot=Math.max(G,.01);return G*=2,z*=G<=1?G:2-G,W*=ot<=1?ot:2-ot,[I,100*(0===G?2*W/(ot+W):2*z/(G+z)),(G+z)/2*100]},D.hsv.rgb=function(P){const I=P[0]/60,z=P[1]/100;let G=P[2]/100;const W=Math.floor(I)%6,ot=I-Math.floor(I),ct=255*G*(1-z),gt=255*G*(1-z*ot),Pt=255*G*(1-z*(1-ot));switch(G*=255,W){case 0:return[G,Pt,ct];case 1:return[gt,G,ct];case 2:return[ct,G,Pt];case 3:return[ct,gt,G];case 4:return[Pt,ct,G];case 5:return[G,ct,gt]}},D.hsv.hsl=function(P){const I=P[0],z=P[1]/100,G=P[2]/100,W=Math.max(G,.01);let ot,ct;ct=(2-z)*G;const gt=(2-z)*W;return ot=z*W,ot/=gt<=1?gt:2-gt,ot=ot||0,ct/=2,[I,100*ot,100*ct]},D.hwb.rgb=function(P){const I=P[0]/360;let z=P[1]/100,G=P[2]/100;const W=z+G;let ot;W>1&&(z/=W,G/=W);const ct=Math.floor(6*I),gt=1-G;ot=6*I-ct,0!=(1&ct)&&(ot=1-ot);const Pt=z+ot*(gt-z);let St,Ht,Jt;switch(ct){default:case 6:case 0:St=gt,Ht=Pt,Jt=z;break;case 1:St=Pt,Ht=gt,Jt=z;break;case 2:St=z,Ht=gt,Jt=Pt;break;case 3:St=z,Ht=Pt,Jt=gt;break;case 4:St=Pt,Ht=z,Jt=gt;break;case 5:St=gt,Ht=z,Jt=Pt}return[255*St,255*Ht,255*Jt]},D.cmyk.rgb=function(P){const z=P[1]/100,G=P[2]/100,W=P[3]/100;return[255*(1-Math.min(1,P[0]/100*(1-W)+W)),255*(1-Math.min(1,z*(1-W)+W)),255*(1-Math.min(1,G*(1-W)+W))]},D.xyz.rgb=function(P){const I=P[0]/100,z=P[1]/100,G=P[2]/100;let W,ot,ct;return W=3.2406*I+-1.5372*z+-.4986*G,ot=-.9689*I+1.8758*z+.0415*G,ct=.0557*I+-.204*z+1.057*G,W=W>.0031308?1.055*W**.4166666666666667-.055:12.92*W,ot=ot>.0031308?1.055*ot**.4166666666666667-.055:12.92*ot,ct=ct>.0031308?1.055*ct**.4166666666666667-.055:12.92*ct,W=Math.min(Math.max(0,W),1),ot=Math.min(Math.max(0,ot),1),ct=Math.min(Math.max(0,ct),1),[255*W,255*ot,255*ct]},D.xyz.lab=function(P){let I=P[0],z=P[1],G=P[2];return I/=95.047,z/=100,G/=108.883,I=I>.008856?I**.3333333333333333:7.787*I+.13793103448275862,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862,G=G>.008856?G**.3333333333333333:7.787*G+.13793103448275862,[116*z-16,500*(I-z),200*(z-G)]},D.lab.xyz=function(P){let I,z,G;z=(P[0]+16)/116,I=P[1]/500+z,G=z-P[2]/200;const W=z**3,ot=I**3,ct=G**3;return z=W>.008856?W:(z-.13793103448275862)/7.787,I=ot>.008856?ot:(I-.13793103448275862)/7.787,G=ct>.008856?ct:(G-.13793103448275862)/7.787,I*=95.047,z*=100,G*=108.883,[I,z,G]},D.lab.lch=function(P){const I=P[0],z=P[1],G=P[2];let W;return W=360*Math.atan2(G,z)/2/Math.PI,W<0&&(W+=360),[I,Math.sqrt(z*z+G*G),W]},D.lch.lab=function(P){const z=P[1],G=P[2]/360*2*Math.PI;return[P[0],z*Math.cos(G),z*Math.sin(G)]},D.rgb.ansi16=function(P,I=null){const[z,G,W]=P;let ot=null===I?D.rgb.hsv(P)[2]:I;if(ot=Math.round(ot/50),0===ot)return 30;let ct=30+(Math.round(W/255)<<2|Math.round(G/255)<<1|Math.round(z/255));return 2===ot&&(ct+=60),ct},D.hsv.ansi16=function(P){return D.rgb.ansi16(D.hsv.rgb(P),P[2])},D.rgb.ansi256=function(P){const I=P[0],z=P[1],G=P[2];return I===z&&z===G?I<8?16:I>248?231:Math.round((I-8)/247*24)+232:16+36*Math.round(I/255*5)+6*Math.round(z/255*5)+Math.round(G/255*5)},D.ansi16.rgb=function(P){let I=P%10;if(0===I||7===I)return P>50&&(I+=3.5),I=I/10.5*255,[I,I,I];const z=.5*(1+~~(P>50));return[(1&I)*z*255,(I>>1&1)*z*255,(I>>2&1)*z*255]},D.ansi256.rgb=function(P){if(P>=232){const z=10*(P-232)+8;return[z,z,z]}let I;return P-=16,[Math.floor(P/36)/5*255,Math.floor((I=P%36)/6)/5*255,I%6/5*255]},D.rgb.hex=function(P){const I=(((255&Math.round(P[0]))<<16)+((255&Math.round(P[1]))<<8)+(255&Math.round(P[2]))).toString(16).toUpperCase();return"000000".substring(I.length)+I},D.hex.rgb=function(P){const I=P.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!I)return[0,0,0];let z=I[0];3===I[0].length&&(z=z.split("").map(W=>W+W).join(""));const G=parseInt(z,16);return[G>>16&255,G>>8&255,255&G]},D.rgb.hcg=function(P){const I=P[0]/255,z=P[1]/255,G=P[2]/255,W=Math.max(Math.max(I,z),G),ot=Math.min(Math.min(I,z),G),ct=W-ot;let gt,Pt;return gt=ct<1?ot/(1-ct):0,Pt=ct<=0?0:W===I?(z-G)/ct%6:W===z?2+(G-I)/ct:4+(I-z)/ct,Pt/=6,Pt%=1,[360*Pt,100*ct,100*gt]},D.hsl.hcg=function(P){const I=P[1]/100,z=P[2]/100,G=z<.5?2*I*z:2*I*(1-z);let W=0;return G<1&&(W=(z-.5*G)/(1-G)),[P[0],100*G,100*W]},D.hsv.hcg=function(P){const z=P[2]/100,G=P[1]/100*z;let W=0;return G<1&&(W=(z-G)/(1-G)),[P[0],100*G,100*W]},D.hcg.rgb=function(P){const z=P[1]/100,G=P[2]/100;if(0===z)return[255*G,255*G,255*G];const W=[0,0,0],ot=P[0]/360%1*6,ct=ot%1,gt=1-ct;let Pt=0;switch(Math.floor(ot)){case 0:W[0]=1,W[1]=ct,W[2]=0;break;case 1:W[0]=gt,W[1]=1,W[2]=0;break;case 2:W[0]=0,W[1]=1,W[2]=ct;break;case 3:W[0]=0,W[1]=gt,W[2]=1;break;case 4:W[0]=ct,W[1]=0,W[2]=1;break;default:W[0]=1,W[1]=0,W[2]=gt}return Pt=(1-z)*G,[255*(z*W[0]+Pt),255*(z*W[1]+Pt),255*(z*W[2]+Pt)]},D.hcg.hsv=function(P){const I=P[1]/100,z=I+P[2]/100*(1-I);let G=0;return z>0&&(G=I/z),[P[0],100*G,100*z]},D.hcg.hsl=function(P){const I=P[1]/100,z=P[2]/100*(1-I)+.5*I;let G=0;return z>0&&z<.5?G=I/(2*z):z>=.5&&z<1&&(G=I/(2*(1-z))),[P[0],100*G,100*z]},D.hcg.hwb=function(P){const I=P[1]/100,z=I+P[2]/100*(1-I);return[P[0],100*(z-I),100*(1-z)]},D.hwb.hcg=function(P){const z=1-P[2]/100,G=z-P[1]/100;let W=0;return G<1&&(W=(z-G)/(1-G)),[P[0],100*G,100*W]},D.apple.rgb=function(P){return[P[0]/65535*255,P[1]/65535*255,P[2]/65535*255]},D.rgb.apple=function(P){return[P[0]/255*65535,P[1]/255*65535,P[2]/255*65535]},D.gray.rgb=function(P){return[P[0]/100*255,P[0]/100*255,P[0]/100*255]},D.gray.hsl=function(P){return[0,0,P[0]]},D.gray.hsv=D.gray.hsl,D.gray.hwb=function(P){return[0,100,P[0]]},D.gray.cmyk=function(P){return[0,0,0,P[0]]},D.gray.lab=function(P){return[P[0],0,0]},D.gray.hex=function(P){const I=255&Math.round(P[0]/100*255),z=((I<<16)+(I<<8)+I).toString(16).toUpperCase();return"000000".substring(z.length)+z},D.rgb.gray=function(P){return[(P[0]+P[1]+P[2])/3/255*100]}},841:(t,A,x)=>{const w=x(4959),k=x(9325),D={};Object.keys(w).forEach(P=>{D[P]={},Object.defineProperty(D[P],"channels",{value:w[P].channels}),Object.defineProperty(D[P],"labels",{value:w[P].labels});const I=k(P);Object.keys(I).forEach(z=>{const G=I[z];D[P][z]=function(W){const ot=function(...ct){const gt=ct[0];if(null==gt)return gt;gt.length>1&&(ct=gt);const Pt=W(ct);if("object"==typeof Pt)for(let St=Pt.length,Ht=0;Ht1&&(ct=gt),W(ct))};return"conversion"in W&&(ot.conversion=W.conversion),ot}(G)})}),t.exports=D},9325:(t,A,x)=>{const w=x(4959);function D(I,z){return function(G){return z(I(G))}}function P(I,z){const G=[z[I].parent,I];let W=w[z[I].parent][I],ot=z[I].parent;for(;z[ot].parent;)G.unshift(z[ot].parent),W=D(w[z[ot].parent][ot],W),ot=z[ot].parent;return W.conversion=G,W}t.exports=function(I){const z=function k(I){const z=function(){const W={},ot=Object.keys(w);for(let ct=ot.length,gt=0;gt{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8603:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n"],sourceRoot:""}]);const I=P},3062:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const I=P},903:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\tposition: absolute;\n\tpointer-events: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"@ckeditor/ckeditor5-ui/theme/mixins/_dir.css\";\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\theight: 0;\n\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\tbackground: var(--ck-clipboard-drop-target-color);\n\tmargin-top: -1px;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder-style: solid;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tleft: -1px;\n\n\t\t\tborder-width: calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);\n\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tright: -1px;\n\n\t\t\tborder-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;\n\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},3143:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the , etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},4717:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);const I=P},9315:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const I=P},8733:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const I=P},3508:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%;\n\n\t\t\t/* Keep proportions of the block image if the height is set and the image is wider than the editor width.\n\t\t\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t\t\theight: auto;\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the
in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of
.\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\t\t}\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image-inline {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected inline image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\n\t\t\t/*\n\t\t\t * Make sure the native browser selection style is not displayed.\n\t\t\t * Inline image widgets have their own styles for the selected state and\n\t\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t\t */\n\t\t\t& ::selection {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.\n\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t& .image-inline img {\n\t\theight: auto;\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},2640:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const I=P},3535:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-image-insert__panel{padding:var(--ck-spacing-large)}.ck.ck-image-insert__ck-finder-button{border:1px solid #ccc;border-radius:var(--ck-border-radius);display:block;margin:var(--ck-spacing-standard) auto;width:100%}.ck.ck-splitbutton>.ck-file-dialog-button.ck-button{border:none;margin:0;padding:0}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css"],names:[],mappings:"AAKA,2BACC,+BACD,CAEA,sCAIC,qBAAiC,CACjC,qCAAsC,CAJtC,aAAc,CAEd,sCAAuC,CADvC,UAID,CAGA,oDAGC,WAAY,CADZ,QAAS,CADT,SAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert__panel {\n\tpadding: var(--ck-spacing-large);\n}\n\n.ck.ck-image-insert__ck-finder-button {\n\tdisplay: block;\n\twidth: 100%;\n\tmargin: var(--ck-spacing-standard) auto;\n\tborder: 1px solid hsl(0, 0%, 80%);\n\tborder-radius: var(--ck-border-radius);\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/7986 */\n.ck.ck-splitbutton > .ck-file-dialog-button.ck-button {\n\tpadding: 0;\n\tmargin: 0;\n\tborder: none;\n}\n"],sourceRoot:""}]);const I=P},1568:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-image-insert-form:focus{outline:none}.ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-insert-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsertformrowview.css"],names:[],mappings:"AAMC,+BAEC,YACD,CAGD,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAmBD,CAhBC,iCACC,WACD,CAEA,kDACC,qCAUD,CARC,sIAEC,sBACD,CAEA,+EACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-form {\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n}\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-image-insert-form__action-row {\n\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},6270:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Preserve aspect ratio of the resized image after introducing image height attribute. */\n.ck-content img.image_resized {\n\theight: auto;\n}\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `
` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `
` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `
` element uses `display:block`, so `
` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/* The resized inline image nested in the table should respect its parent size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline.image_resized img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]);const I=P},5083:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},4036:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const I=P},3773:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const I=P},3689:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);const I=P},1905:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},9773:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const I=P},2347:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},7754:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},111:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkimage.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\n\t--ck-link-image-indicator-icon-size: 20;\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tcontent: "";\n\n\t\t\t/*\n\t\t\t * Smaller images should have the icon closer to the border.\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\n\t\t\t */\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\n\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n\t\t\tbackground-size: 14px;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tborder-radius: 100%;\n\n\t\t\t/*\n\t\t\t* Use CSS math to simulate container queries.\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t\t\t*/\n\t\t\toverflow: hidden;\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const I=P},4721:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:0 var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/collapsible.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,wDAAyD,CAFzD,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,yDACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n\t& > .ck.ck-button {\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\t\tborder-radius: 0;\n\t\tcolor: inherit;\n\n\t\t&:focus {\n\t\t\tbackground: transparent;\n\t\t}\n\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t& > .ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\twidth: var(--ck-collapsible-arrow-size);\n\t\t}\n\t}\n\n\t& > .ck-collapsible__children {\n\t\tpadding: 0 var(--ck-spacing-large) var(--ck-spacing-large);\n\t}\n\n\t&.ck-collapsible_collapsed {\n\t\t& > .ck.ck-button .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},5730:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-editor__editable .ck-list-bogus-paragraph {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);const I=P},4564:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content ol {\n\tlist-style-type: decimal;\n\n\t& ol {\n\t\tlist-style-type: lower-latin;\n\n\t\t& ol {\n\t\t\tlist-style-type: lower-roman;\n\n\t\t\t& ol {\n\t\t\t\tlist-style-type: upper-latin;\n\n\t\t\t\t& ol {\n\t\t\t\t\tlist-style-type: upper-roman;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-content ul {\n\tlist-style-type: disc;\n\n\t& ul {\n\t\tlist-style-type: circle;\n\n\t\t& ul {\n\t\t\tlist-style-type: square;\n\n\t\t\t& ul {\n\t\t\t\tlist-style-type: square;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},6082:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-properties {\n\t/* When there are no list styles and there is no collapsible. */\n\t&.ck-list-properties_without-styles {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * {\n\t\t\tmin-width: 14em;\n\n\t\t\t& + * {\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * When the numbered list property fields (start at, reversed) should be displayed,\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\n\t */\n\t&.ck-list-properties_with-numbered-properties {\n\t\t& > .ck-list-styles-list {\n\t\t\tgrid-template-columns: repeat( 4, auto );\n\t\t}\n\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\n\t\t& > .ck-collapsible {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t& > .ck-collapsible__children {\n\t\t\t\t& > * {\n\t\t\t\t\twidth: 100%;\n\n\t\t\t\t\t& + * {\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\n\t\tmin-width: auto;\n\t\twidth: 100%;\n\t}\n\n\t& .ck.ck-numbered-list-properties__reversed-order {\n\t\tbackground: transparent;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n\t\t&:active, &:hover {\n\t\t\tbox-shadow: none;\n\t\t\tborder-color: transparent;\n\t\t\tbackground: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},2417:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/liststyles.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n\tgrid-template-columns: repeat( 3, auto );\n\trow-gap: var(--ck-spacing-medium);\n\tcolumn-gap: var(--ck-spacing-medium);\n\tpadding: var(--ck-spacing-large);\n\n\t& .ck-button {\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\n\t\twidth: var(--ck-list-style-button-size);\n\t\theight: var(--ck-list-style-button-size);\n\t\tpadding: 0;\n\n\t\t/*\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\n\t\t * gaps in the grid.\n\t\t */\n\t\tmargin: 0;\n\n\t\t/*\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\n\t\t * (which becomes blurry as it scales down).\n\t\t */\n\t\tbox-sizing: content-box;\n\n\t\t& .ck-icon {\n\t\t\twidth: var(--ck-list-style-button-size);\n\t\t\theight: var(--ck-list-style-button-size);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},1199:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CAwEA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAlFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAiFC,CAFA,wDAhEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAgEA,CA5DD,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FApHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAmHA,CAFA,wGAlGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAkGD,CA9FA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-todo-list-checkmark-size: 16px;\n}\n\n@define-mixin todo-list-checkbox {\n\t-webkit-appearance: none;\n\tdisplay: inline-block;\n\tposition: relative;\n\twidth: var(--ck-todo-list-checkmark-size);\n\theight: var(--ck-todo-list-checkmark-size);\n\tvertical-align: middle;\n\n\t/* Needed on iOS */\n\tborder: 0;\n\n\t/* LTR styles */\n\tleft: -25px;\n\tmargin-right: -15px;\n\tright: 0;\n\tmargin-left: 0;\n\n\t/* RTL styles */\n\t@nest [dir=rtl]& {\n\t\tleft: 0;\n\t\tmargin-right: 0;\n\t\tright: -25px;\n\t\tmargin-left: -15px;\n\t}\n\n\t&::before {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: border-box;\n\t\tcontent: '';\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder: 1px solid hsl(0, 0%, 20%);\n\t\tborder-radius: 2px;\n\t\ttransition: 250ms ease-in-out box-shadow;\n\t}\n\n\t&::after {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: content-box;\n\t\tpointer-events: none;\n\t\tcontent: '';\n\n\t\t/* Calculate tick position, size and border-width proportional to the checkmark size. */\n\t\tleft: calc( var(--ck-todo-list-checkmark-size) / 3 );\n\t\ttop: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\twidth: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\theight: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\n\t\tborder-style: solid;\n\t\tborder-color: transparent;\n\t\tborder-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\n\t\ttransform: rotate(45deg);\n\t}\n\n\t&[checked] {\n\t\t&::before {\n\t\t\tbackground: hsl(126, 64%, 41%);\n\t\t\tborder-color: hsl(126, 64%, 41%);\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: hsl(0, 0%, 100%);\n\t\t}\n\t}\n}\n\n/*\n * To-do list content styles.\n */\n.ck-content .todo-list {\n\tlist-style: none;\n\n\t& li {\n\t\tposition: relative;\n\t\tmargin-bottom: 5px;\n\n\t\t& .todo-list {\n\t\t\tmargin-top: 5px;\n\t\t}\n\t}\n\n\t& .todo-list__label {\n\t\t& > input {\n\t\t\t@mixin todo-list-checkbox;\n\t\t}\n\n\t\t& .todo-list__label__description {\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&.todo-list__label_without-description input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n/*\n * To-do list editing view styles.\n */\n.ck-editor__editable.ck-content .todo-list .todo-list__label {\n\t/*\n\t * To-do list should be interactive only during the editing\n\t * (https://github.com/ckeditor/ckeditor5/issues/2090).\n\t */\n\t& > input,\n\t& > span[contenteditable=false] > input {\n\t\tcursor: pointer;\n\n\t\t&:hover::before {\n\t\t\tbox-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\n\t\t}\n\t}\n\n\t/*\n\t * Document Lists - editing view has an additional span around checkbox.\n\t */\n\t& > span[contenteditable=false] > input {\n\t\t@mixin todo-list-checkbox;\n\t}\n\n\t&.todo-list__label_without-description {\n\t\t& input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},4652:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const I=P},7442:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read\u2013only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},9292:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7368:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.ck.ck-input-color {\n\t& > .ck.ck-input-text {\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* Make sure the focused input is always on top of the dropdown button so its\n\t\t outline and border are never cropped (also when the input is read-only). */\n\t\t&:focus {\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t& > .ck.ck-dropdown {\n\t\t& > .ck.ck-button.ck-input-color__button {\n\t\t\tpadding: 0;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-left: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-right: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.ck-disabled {\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t& > .ck.ck-input-color__button__preview {\n\t\t\t\t@mixin ck-rounded-corners;\n\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\n\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\t\ttop: -30%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\theight: 150%;\n\t\t\t\t\twidth: 8%;\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\n\t\t\t\t\tborder-radius: 2px;\n\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\ttransform-origin: 50%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__remove-color {\n\t\twidth: 100%;\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-input-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t}\n\n\t\t& .ck.ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},4070:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\n\tpadding: 0 0 var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t& .ck.ck-input-text {\n\t\tmin-width: 100%;\n\t\twidth: 0;\n\t}\n\n\t& .ck.ck-dropdown {\n\t\tmin-width: 100%;\n\n\t\t& .ck-dropdown__button {\n\t\t\t&:not(:focus) {\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},9247:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-form__row {\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\t& + * {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-label {\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},1613:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const I=P},6306:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent
. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const I=P},2128:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-selector-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: break-word;\n\ttext-align: center;\n\tcolor: var(--ck-color-selector-caption-text);\n\tbackground-color: var(--ck-color-selector-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n\t&.table__caption_highlighted {\n\t\tanimation: ck-table-caption-highlight .6s ease-out;\n\t}\n\n\t&.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the table caption placeholder doesn't overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n@keyframes ck-table-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-selector-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-selector-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const I=P},5087:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecellproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__padding-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\t\t\twidth: 25%;\n\t\t}\n\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},4101:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);\n\t--ck-table-column-resizer-width: 7px;\n\n\t/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\n\t The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\n\t--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table table {\n\toverflow: hidden;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n\tposition: relative;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer {\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tright: var(--ck-table-column-resizer-position-offset);\n\twidth: var(--ck-table-column-resizer-width);\n\tcursor: col-resize;\n\tuser-select: none;\n\tz-index: var(--ck-z-default);\n}\n\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,\n all resizers must be hidden while the table is dragged. */\n.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer:hover,\n.ck.ck-editor__editable .table .ck-table-column-resizer__active {\n\tbackground-color: var(--ck-color-selector-column-resizer-hover);\n\topacity: 0.25;\n\t/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,\n\t it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as\n\t it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally\n\t unrealistic height for a single table. */\n\ttop: -999999px;\n\tbottom: -999999px;\n}\n\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\n\tleft: var(--ck-table-column-resizer-position-offset);\n\tright: unset;\n}\n"],sourceRoot:""}]);const I=P},3881:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-selector-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},6237:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-table-properties-error-arrow-size: 6px;\n\t--ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__border-style,\n\t\t\t& .ck-table-form__border-width {\n\t\t\t\twidth: 80px;\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80px;\n\t\t\t}\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tpadding: 0;\n\n\t\t\t& .ck-table-form__dimensions-row__width,\n\t\t\t& .ck-table-form__dimensions-row__height {\n\t\t\t\tmargin: 0\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\talign-self: flex-end;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\theight: var(--ck-ui-component-min-height);\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t@mixin ck-rounded-corners;\n\n\t\t\tbackground: var(--ck-color-base-error);\n\t\t\tcolor: var(--ck-color-base-background);\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\ttext-align: center;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\n\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\t\t}\n\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n\t0% {\n\t\topacity: 0;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7341:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\t\t& .ck-toolbar__items > * {\n\t\t\t\t\twidth: 40px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},6945:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},8157:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-modal)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-autocomplete {\n\tposition: relative;\n\n\t& > .ck-search__results {\n\t\tposition: absolute;\n\t\tz-index: var(--ck-z-modal);\n\n\t\t&.ck-search__results_n {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck.ck-autocomplete {\n\t& > .ck-search__results {\n\t\t@mixin ck-rounded-corners;\n\t\t@mixin ck-drop-shadow;\n\n\t\tmax-height: 200px;\n\t\toverflow-y: auto;\n\t\tbackground: var(--ck-color-base-background);\n\t\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\t\tmin-width: auto;\n\n\t\t&.ck-search__results_n {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-bottom: -1px;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-top-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-top: -1px;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},4906:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAOA,6BAMC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBAAkB,CCFlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDkBD,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEjBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const I=P},5332:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating\u2013point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const I=P},6781:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,+DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-selector__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);const I=P},3398:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.color-picker-hex-input {\n\twidth: max-content;\n\n\t& .ck.ck-input {\n\t\tmin-width: unset;\n\t}\n}\n\n.ck.ck-color-picker__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\tmargin: var(--ck-spacing-large) 0 0;\n\twidth: unset;\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: unset;\n\t}\n\n\t& .ck.ck-input-text {\n\t\twidth: unset;\n\t}\n\n\t& .ck-color-picker__hash-view {\n\t\tpadding-top: var(--ck-spacing-tiny);\n\t\tpadding-right: var(--ck-spacing-medium);\n\t}\n}\n"],sourceRoot:""}]);const I=P},4157:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tjustify-content: flex-start;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\tjustify-content: space-around;\n\n\t\t\t& .ck-button-save,\n\t\t\t& .ck-button-cancel {\n\t\t\t\tflex: 1\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck.ck-icon {\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& label.ck.ck-color-grid__label {\n\t\t\tfont-weight: unset;\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-picker {\n\t\t\tpadding: 8px;\n\n\t\t\t& .hex-color-picker {\n\t\t\t\theight: 100px;\n\t\t\t\tmin-width: 180px;\n\n\t\t\t\t&::part(saturation) {\n\t\t\t\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\t\t\t\t}\n\n\t\t\t\t&::part(hue) {\n\t\t\t\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\t\t\t}\n\n\t\t\t\t&::part(saturation-pointer),\n\t\t\t\t&::part(hue-pointer) {\n\t\t\t\t\twidth: 15px;\n\t\t\t\t\theight: 15px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tpadding: 0 8px 8px;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},5485:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},3949:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7686:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7339:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const I=P},9688:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-panel-background);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-panel-background);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},8847:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header .ck-icon{margin-right:var(--ck-spacing-medium)}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BASD,CAPC,6BACC,qCACD,CAEA,8CACC,WACD,CCbD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAQD,CAHC,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\n\t& .ck-icon {\n\t\tmargin-right: var(--ck-spacing-medium);\n\t}\n\n\t& h2.ck-form__header__label {\n\t\tflex-grow: 1;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);const I=P},8960:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-highlighted-text mark {\n\tbackground: var(--ck-color-highlight-background);\n\tvertical-align: initial;\n\tfont-weight: inherit;\n\tline-height: inherit;\n\tfont-size: inherit;\n}\n"],sourceRoot:""}]);const I=P},6574:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},4879:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},3662:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const I=P},2577:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD8GD,CAzGA,2FCDE,qCD0GF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAiBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAP9C,mBAAoB,CAYpB,sBAAuB,CARvB,6DAA+D,CAH/D,oBAAqB,CAgBrB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,oUAGE,+HAYF,CAfA,oUAOE,wIAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\t\t\ttransform-origin: 0 0;\n\n\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},1046:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium);:not(.ck-hidden)~&{border-top:1px solid var(--ck-color-base-border)}}.ck-list .ck-list__group>span{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium)}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAIC,eAAgB,CAHhB,gBAAiB,CAQjB,iIAEiE,CARjE,eAAgB,CADhB,UAwCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAAqC,CAGrC,mBACC,gDACD,CAOD,CALC,8BACC,cAAe,CACf,eAAiB,CACjB,gCACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-list .ck-list__group {\n\tpadding-top: var(--ck-spacing-medium);\n\n\t/* The group should have a border when it\'s not the first item. */\n\t*:not(.ck-hidden) ~ & {\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& > span {\n\t\tfont-size: 11px;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium);\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},8793:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},4650:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7676:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},5868:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},6764:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},6770:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/search/search.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\n\t\t& .ck-search__reset {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\t& > .ck-search__info {\n\t\t\t& > span:first-child {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t/* Hide the filtered view when nothing was found */\n\t\t\t&:not(.ck-hidden) ~ * {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));\n}\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& .ck-input {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t&.ck-search__query_with-icon {\n\t\t\t--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\t\topacity: .5;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-search__query_with-reset {\n\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t&.ck-labeled-field-view_empty {\n\t\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t& .ck-search__reset {\n\t\t\t\tmin-width: auto;\n\t\t\t\tmin-height: auto;\n\n\t\t\t\tbackground: none;\n\t\t\t\topacity: .5;\n\t\t\t\tpadding: 0;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t&:hover {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\tmin-width: 100%;\n\n\t\t& > .ck-search__info {\n\t\t\twidth: 100%;\n\t\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\n\t\t\t& * {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\n\t\t\t& > span:first-child {\n\t\t\t\tfont-weight: bold;\n\t\t\t}\n\n\t\t\t& > span:last-child {\n\t\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const I=P},498:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:rotate 1.5s linear infinite}.ck.ck-spinner,.ck.ck-spinner-container{height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent}@keyframes rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,qCACD,CAEA,wCAJC,qCAAsC,CADtC,oCAWD,CANA,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCACD,CAEA,kBACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\tdisplay: block;\n\tposition: relative;\n}\n\n.ck.ck-spinner {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 0;\n\tright: 0;\n\tmargin: 0 auto;\n\ttransform: translateY(-50%);\n\tz-index: 1;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tanimation: 1.5s infinite rotate linear;\n}\n\n.ck.ck-spinner {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tborder-radius: 50%;\n\tborder: 2px solid var(--ck-color-text);\n\tborder-top-color: transparent;\n}\n\n@keyframes rotate {\n\tto {\n\t\ttransform: rotate(360deg)\n\t}\n}\n\n"],sourceRoot:""}]);const I=P},8182:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/*\n * This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.\n * This bug is especially visible when rows=1.\n */\n.ck-textarea {\n\toverflow-x: hidden\n}\n"],sourceRoot:""}]);const I=P},9695:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const I=P},5542:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},3332:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDRnC,mBAAoB,CAEpB,qCACD,CCOC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CACrB,wCAAyC,CAFzC,wBAGD,CApBD,gCAuBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-tooltip-text-padding: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t&.ck-tooltip_multi-line .ck-tooltip__text {\n\t\twhite-space: break-spaces;\n\t\tdisplay: inline-block;\n\t\tpadding: var(--ck-tooltip-text-padding) 0;\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const I=P},4793:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_reset.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-ui/theme/globals/_poweredby.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAwD,CCvGxD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJuGD,CIjGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-powered-by-line-height: 10px;\n\t--ck-powered-by-padding-vertical: 2px;\n\t--ck-powered-by-padding-horizontal: 4px;\n\t--ck-powered-by-text-color: hsl(0, 0%, 31%);\n\t--ck-powered-by-border-radius: var(--ck-border-radius);\n\t--ck-powered-by-background: hsl(0, 0%, 100%);\n\t--ck-powered-by-border-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-balloon-panel.ck-powered-by-balloon {\n\t--ck-border-radius: var(--ck-powered-by-border-radius);\n\n\tbox-shadow: none;\n\tbackground: var(--ck-powered-by-background);\n\tmin-height: unset;\n\tz-index: calc( var(--ck-z-modal) - 1 );\n\n\t& .ck.ck-powered-by {\n\t\tline-height: var(--ck-powered-by-line-height);\n\n\t\t& a {\n\t\t\tcursor: pointer;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\topacity: .66;\n\t\t\tfilter: grayscale(80%);\n\t\t\tline-height: var(--ck-powered-by-line-height);\n\t\t\tpadding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);\n\t\t}\n\n\t\t& .ck-powered-by__label {\n\t\t\tfont-size: 7.5px;\n\t\t\tletter-spacing: -.2px;\n\t\t\tpadding-left: 2px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-weight: bold;\n\t\t\tmargin-right: 4px;\n\t\t\tcursor: pointer;\n\t\t\tline-height: normal;\n\t\t\tcolor: var(--ck-powered-by-text-color);\n\n\t\t}\n\n\t\t& .ck-icon {\n\t\t\tdisplay: block;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&:hover {\n\t\t\t& a {\n\t\t\t\tfilter: grayscale(0%);\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[class*="position_inside"] {\n\t\tborder-color: transparent;\n\t}\n\n\t&[class*="position_border"] {\n\t\tborder: var(--ck-focus-ring);\n\t\tborder-color: var(--ck-powered-by-border-color);\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const I=P},3488:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},8506:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const I=P},4921:(t,A,x)=>{"use strict";x.d(A,{Z:()=>I});var w=x(1799),k=x.n(w),D=x(2609),P=x.n(D)()(k());P.push([t.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const I=P},2609:t=>{"use strict";t.exports=function(A){var x=[];return x.toString=function(){return this.map(function(w){var k=A(w);return w[2]?"@media ".concat(w[2]," {").concat(k,"}"):k}).join("")},x.i=function(w,k,D){"string"==typeof w&&(w=[[null,w,""]]);var P={};if(D)for(var I=0;I{"use strict";function x(w,k){(null==k||k>w.length)&&(k=w.length);for(var D=0,P=new Array(k);D{"use strict";var w,Jt,D=(Jt={},function(at){if(void 0===Jt[at]){var Zt=document.querySelector(at);if(window.HTMLIFrameElement&&Zt instanceof window.HTMLIFrameElement)try{Zt=Zt.contentDocument.head}catch{Zt=null}Jt[at]=Zt}return Jt[at]}),P=[];function I(Jt){for(var at=-1,Zt=0;Zt{var A=t&&t.__esModule?()=>t.default:()=>t;return v.d(A,{a:A}),A},v.d=(t,A)=>{for(var x in A)v.o(A,x)&&!v.o(t,x)&&Object.defineProperty(t,x,{enumerable:!0,get:A[x]})},v.o=(t,A)=>Object.prototype.hasOwnProperty.call(t,A),v.nc=void 0;var T={};return(()=>{"use strict";function t({emitter:m,activator:r,callback:c,contextElements:u}){m.listenTo(document,"mousedown",(_,C)=>{if(!r())return;const M="function"==typeof C.composedPath?C.composedPath():[],E="function"==typeof u?u():u;for(const N of E)if(N.contains(C.target)||M.includes(N))return;c()})}function A(m){return class extends m{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...r){super(...r),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function x({view:m}){m.listenTo(m.element,"submit",(r,c)=>{c.preventDefault(),m.fire("submit")},{useCapture:!0})}v.d(T,{default:()=>_7});const w=function(){try{return navigator.userAgent.toLowerCase()}catch{return""}}(),D_isMac=P(w),D_isGecko=(w.indexOf("windows"),!!w.match(/gecko\/\d+/)),D_isSafari=(m=w).indexOf(" applewebkit/")>-1&&-1===m.indexOf("chrome"),D_isiOS=function(m){return!!m.match(/iphone|ipad/i)||P(m)&&navigator.maxTouchPoints>0}(w),D_isAndroid=function(m){return m.indexOf("android")>-1}(w),D_isBlink=function(m){return m.indexOf("chrome/")>-1&&m.indexOf("edge/")<0}(w);var m;function P(m){return m.indexOf("macintosh")>-1}function I(m,r,c,u){c=c||function(N,j){return N===j};const _=Array.isArray(m)?m:Array.prototype.slice.call(m),C=Array.isArray(r)?r:Array.prototype.slice.call(r),M=function(N,j,K){const dt=z(N,j,K);if(-1===dt)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const Ue=z(G(N,dt),G(j,dt),K);return{firstIndex:dt,lastIndexOld:N.length-Ue,lastIndexNew:j.length-Ue}}(_,C,c);return u?function(N,j){const{firstIndex:K,lastIndexOld:dt,lastIndexNew:Dt}=N;if(-1===K)return Array(j).fill("equal");let me=[];return K>0&&(me=me.concat(Array(K).fill("equal"))),Dt-K>0&&(me=me.concat(Array(Dt-K).fill("insert"))),dt-K>0&&(me=me.concat(Array(dt-K).fill("delete"))),Dt0&&K.push({index:dt,type:"insert",values:N.slice(dt,me)}),Dt-dt>0&&K.push({index:dt+(me-dt),type:"delete",howMany:Dt-dt}),K}(C,M)}function z(m,r,c){for(let u=0;u200||_>200||u+_>300)return W.fastDiff(m,r,c,!0);let C,M;if(_Ln?-1:1;K[qe+pi]&&(K[qe]=K[qe+pi].slice(0)),K[qe]||(K[qe]=[]),K[qe].push(pn>Ln?C:M);let Ri=Math.max(pn,Ln),Go=Ri-qe;for(;Goj;me--)dt[me]=Dt(me);dt[j]=Dt(j),Ue++}while(dt[j]!==N);return K[j].slice(1)}!function(){let m=!1;try{m=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}}(),W.fastDiff=I;class ct{constructor(r,c){this.source=r,this.name=c,this.path=[],this.stop=function m(){m.called=!0},this.off=function m(){m.called=!0}}}const gt=new Array(256).fill("").map((m,r)=>("0"+r.toString(16)).slice(-2));function Pt(){const m=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,c=4294967296*Math.random()>>>0,u=4294967296*Math.random()>>>0;return"e"+gt[m>>0&255]+gt[m>>8&255]+gt[m>>16&255]+gt[m>>24&255]+gt[r>>0&255]+gt[r>>8&255]+gt[r>>16&255]+gt[r>>24&255]+gt[c>>0&255]+gt[c>>8&255]+gt[c>>16&255]+gt[c>>24&255]+gt[u>>0&255]+gt[u>>8&255]+gt[u>>16&255]+gt[u>>24&255]}const St={get(m="normal"){return"number"!=typeof m?this[m]||this.normal:m},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function Ht(m,r){const c=St.get(r.priority);for(let u=0;u{if("object"==typeof dt&&null!==dt){if(M.has(dt))return`[object ${dt.constructor.name}]`;M.add(dt)}return dt})}`:"")+_t(_)}(r,u)),this.name="CKEditorError",this.context=c,this.data=u}is(r){return"CKEditorError"===r}static rethrowUnexpectedError(r,c){if(r.is&&r.is("CKEditorError"))throw r;const u=new at(r.message,c);throw u.stack=r.stack,u}}function Zt(m,r){console.warn(...Nt(m,r))}function wt(m,r){console.error(...Nt(m,r))}function _t(m){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${m}`}function Nt(m,r){const c=_t(m);return r?[m,r,c]:[m,c]}const qt=new Date(2023,9,4);if(globalThis.CKEDITOR_VERSION)throw new at("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION="40.0.0";const le=Symbol("listeningTo"),Wt=Symbol("emitterId"),Ce=Symbol("delegations"),Ae=Ne(Object);function Ne(m){return m?class extends m{on(r,c,u){this.listenTo(this,r,c,u)}once(r,c,u){let _=!1;this.listenTo(this,r,(C,...M)=>{_||(_=!0,C.off(),c.call(this,C,...M))},u)}off(r,c){this.stopListening(this,r,c)}listenTo(r,c,u,_={}){let C,M;this[le]||(this[le]={});const E=this[le];Xe(r)||ze(r);const N=Xe(r);var K,dt,Dt,me;(C=E[N])||(C=E[N]={emitter:r,callbacks:{}}),(M=C.callbacks[c])||(M=C.callbacks[c]=[]),M.push(u),dt=c,Dt=u,me=_,(K=r)._addEventListener?K._addEventListener(dt,Dt,me):this._addEventListener.call(K,dt,Dt,me)}stopListening(r,c,u){const _=this[le];let C=r&&Xe(r);const M=_&&C?_[C]:void 0,E=M&&c?M.callbacks[c]:void 0;if(!(!_||r&&!M||c&&!E))if(u)ue(this,r,c,u),-1!==E.indexOf(u)&&(1===E.length?delete M.callbacks[c]:ue(this,r,c,u));else if(E){for(;u=E.pop();)ue(this,r,c,u);delete M.callbacks[c]}else if(M){for(c in M.callbacks)this.stopListening(r,c);delete _[C]}else{for(C in _)this.stopListening(_[C].emitter);delete this[le]}}fire(r,...c){try{const u=r instanceof ct?r:new ct(this,r),_=u.name;let C=re(this,_);if(u.path.push(this),C){const E=[u,...c];C=Array.from(C);for(let N=0;N{this[Ce]||(this[Ce]=new Map),r.forEach(_=>{const C=this[Ce].get(_);C?C.set(c,u):this[Ce].set(_,new Map([[c,u]]))})}}}stopDelegating(r,c){if(this[Ce])if(r)if(c){const u=this[Ce].get(r);u&&u.delete(c)}else this[Ce].delete(r);else this[Ce].clear()}_addEventListener(r,c,u){!function(M,E){const N=ie(M);if(N[E])return;let j=E,K=null;const dt=[];for(;""!==j&&!N[j];)N[j]={callbacks:[],childEvents:[]},dt.push(N[j]),K&&N[j].childEvents.push(K),K=j,j=j.substr(0,j.lastIndexOf(":"));if(""!==j){for(const Dt of dt)Dt.callbacks=N[j].callbacks.slice();N[j].childEvents.push(K)}}(this,r);const _=Te(this,r),C={callback:c,priority:St.get(u.priority)};for(const M of _)Ht(M,C)}_removeEventListener(r,c){const u=Te(this,r);for(const _ of u)for(let C=0;C<_.length;C++)_[C].callback==c&&(_.splice(C,1),C--)}}:Ae}function ze(m,r){m[Wt]||(m[Wt]=r||Pt())}function Xe(m){return m[Wt]}function ie(m){return m._events||Object.defineProperty(m,"_events",{value:{}}),m._events}function Te(m,r){const c=ie(m)[r];if(!c)return[];let u=[c.callbacks];for(let _=0;_-1?re(m,r.substr(0,r.lastIndexOf(":"))):null}function ee(m,r,c){for(let[u,_]of m){_?"function"==typeof _&&(_=_(r.name)):_=r.name;const C=new ct(r.source,_);C.path=[...r.path],u.fire(C,...c)}}function ue(m,r,c,u){r._removeEventListener?r._removeEventListener(c,u):m._removeEventListener.call(r,c,u)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{Ne[m]=Ae.prototype[m]});const Kt=function(m){var r=typeof m;return null!=m&&("object"==r||"function"==r)},ce=Symbol("observableProperties"),Le=Symbol("boundObservables"),on=Symbol("boundProperties"),hn=Symbol("decoratedMethods"),we=Symbol("decoratedOriginal"),bn=Ze(Ne());function Ze(m){return m?class extends m{set(r,c){if(Kt(r))return void Object.keys(r).forEach(_=>{this.set(_,r[_])},this);dn(this);const u=this[ce];if(r in this&&!u.has(r))throw new at("observable-set-cannot-override",this);Object.defineProperty(this,r,{enumerable:!0,configurable:!0,get:()=>u.get(r),set(_){const C=u.get(r);let M=this.fire(`set:${r}`,r,_,C);void 0===M&&(M=_),C===M&&u.has(r)||(u.set(r,M),this.fire(`change:${r}`,r,M,C))}}),this[r]=c}bind(...r){if(!r.length||!Ee(r))throw new at("observable-bind-wrong-properties",this);if(new Set(r).size!==r.length)throw new at("observable-bind-duplicate-properties",this);dn(this);const c=this[on];r.forEach(_=>{if(c.has(_))throw new at("observable-bind-rebind",this)});const u=new Map;return r.forEach(_=>{const C={property:_,to:[]};c.set(_,C),u.set(_,C)}),{to:kn,toMany:ri,_observable:this,_bindProperties:r,_to:[],_bindings:u}}unbind(...r){if(!this[ce])return;const c=this[on],u=this[Le];if(r.length){if(!Ee(r))throw new at("observable-unbind-wrong-properties",this);r.forEach(_=>{const C=c.get(_);C&&(C.to.forEach(([M,E])=>{const N=u.get(M),j=N[E];j.delete(C),j.size||delete N[E],Object.keys(N).length||(u.delete(M),this.stopListening(M,"change"))}),c.delete(_))})}else u.forEach((_,C)=>{this.stopListening(C,"change")}),u.clear(),c.clear()}decorate(r){dn(this);const c=this[r];if(!c)throw new at("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:r});this.on(r,(u,_)=>{u.return=c.apply(this,_)}),this[r]=function(...u){return this.fire(r,u)},this[r][we]=c,this[hn]||(this[hn]=[]),this[hn].push(r)}stopListening(r,c,u){if(!r&&this[hn]){for(const _ of this[hn])this[_]=this[_][we];delete this[hn]}super.stopListening(r,c,u)}}:bn}function dn(m){m[ce]||(Object.defineProperty(m,ce,{value:new Map}),Object.defineProperty(m,Le,{value:new Map}),Object.defineProperty(m,on,{value:new Map}))}function kn(...m){const r=function(...C){if(!C.length)throw new at("observable-bind-to-parse-error",null);const M={to:[]};let E;return"function"==typeof C[C.length-1]&&(M.callback=C.pop()),C.forEach(N=>{if("string"==typeof N)E.properties.push(N);else{if("object"!=typeof N)throw new at("observable-bind-to-parse-error",null);E={observable:N,properties:[]},M.to.push(E)}}),M}(...m),c=Array.from(this._bindings.keys()),u=c.length;if(!r.callback&&r.to.length>1)throw new at("observable-bind-to-no-callback",this);if(u>1&&r.callback)throw new at("observable-bind-to-extra-callback",this);var _;r.to.forEach(C=>{if(C.properties.length&&C.properties.length!==u)throw new at("observable-bind-to-properties-length",this);C.properties.length||(C.properties=this._bindProperties)}),this._to=r.to,r.callback&&(this._bindings.get(c[0]).callback=r.callback),_=this._observable,this._to.forEach(C=>{const M=_[Le];let E;M.get(C.observable)||_.listenTo(C.observable,"change",(N,j)=>{E=M.get(C.observable)[j],E&&E.forEach(K=>{Ft(_,K.property)})})}),function(C){let M;C._bindings.forEach((E,N)=>{C._to.forEach(j=>{M=j.properties[E.callback?0:C._bindProperties.indexOf(N)],E.to.push([j.observable,M]),function(K,dt,Dt,me){const Ue=K[Le],qe=Ue.get(Dt),pn=qe||{};pn[me]||(pn[me]=new Set),pn[me].add(dt),qe||Ue.set(Dt,pn)}(C._observable,E,j.observable,M)})})}(this),this._bindProperties.forEach(C=>{Ft(this._observable,C)})}function ri(m,r,c){if(this._bindings.size>1)throw new at("observable-bind-to-many-not-one-binding",this);this.to(...function(u,_){const C=u.map(M=>[M,_]);return Array.prototype.concat.apply([],C)}(m,r),c)}function Ee(m){return m.every(r=>"string"==typeof r)}function Ft(m,r){const c=m[on].get(r);let u;c.callback?u=c.callback.apply(m,c.to.map(_=>_[0][_[1]])):(u=c.to[0],u=u[0][u[1]]),Object.prototype.hasOwnProperty.call(m,r)?m[r]=u:m.set(r,u)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{Ze[m]=bn.prototype[m]});class vt{constructor(){this._replacedElements=[]}replace(r,c){this._replacedElements.push({element:r,newElement:c}),r.style.display="none",c&&r.parentNode.insertBefore(c,r.nextSibling)}restore(){this._replacedElements.forEach(({element:r,newElement:c})=>{r.style.display="",c&&c.remove()}),this._replacedElements=[]}}function xt(m){let r=0;for(const c of m)r++;return r}function tt(m,r){const c=Math.min(m.length,r.length);for(let u=0;u-1},fn.prototype.set=function(m,r){var c=this.__data__,u=ve(c,m);return u<0?(++this.size,c.push([m,r])):c[u][1]=r,this};const wn=fn,No=function(m){if(!Kt(m))return!1;var r=Gn(m);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},la=ne["__core-js_shared__"];var Ea=function(){var m=/[^.]+$/.exec(la&&la.keys&&la.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),$e=Function.prototype.toString;const Nn=function(m){if(null!=m){try{return $e.call(m)}catch{}try{return m+""}catch{}}return""};var Ye=/^\[object .+?Constructor\]$/,Q=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const zn=function(m,r){var c=function(m,r){return m?.[r]}(m,r);return function(m){return!(!Kt(m)||function(m){return!!Ea&&Ea in m}(m))&&(No(m)?Q:Ye).test(Nn(m))}(c)?c:void 0},Gi=zn(ne,"Map"),Co=zn(Object,"create");var cs=Object.prototype.hasOwnProperty,Er=Object.prototype.hasOwnProperty;function Yr(m){var r=-1,c=null==m?0:m.length;for(this.clear();++r-1&&m%1==0&&m-1&&m%1==0&&m<=9007199254740991};var qo={};qo["[object Float32Array]"]=qo["[object Float64Array]"]=qo["[object Int8Array]"]=qo["[object Int16Array]"]=qo["[object Int32Array]"]=qo["[object Uint8Array]"]=qo["[object Uint8ClampedArray]"]=qo["[object Uint16Array]"]=qo["[object Uint32Array]"]=!0,qo["[object Arguments]"]=qo["[object Array]"]=qo["[object ArrayBuffer]"]=qo["[object Boolean]"]=qo["[object DataView]"]=qo["[object Date]"]=qo["[object Error]"]=qo["[object Function]"]=qo["[object Map]"]=qo["[object Number]"]=qo["[object Object]"]=qo["[object RegExp]"]=qo["[object Set]"]=qo["[object String]"]=qo["[object WeakMap]"]=!1;const cc=function(m){return function(r){return m(r)}};var qu=it&&!it.nodeType&&it,Yl=qu&&rt&&!rt.nodeType&&rt,xc=Yl&&Yl.exports===qu&&Ct.process;const wl=function(){try{return Yl&&Yl.require&&Yl.require("util").types||xc&&xc.binding&&xc.binding("util")}catch{}}();var Ds=wl&&wl.isTypedArray;const Jc=Ds?cc(Ds):function(m){return gn(m)&&Bl(m.length)&&!!qo[Gn(m)]};var bu=Object.prototype.hasOwnProperty;const Dr=function(m,r){var c=je(m),u=!c&&Hl(m),_=!c&&!u&&ks(m),C=!c&&!u&&!_&&Jc(m),M=c||u||_||C,E=M?function(m,r){for(var c=-1,u=Array(m);++c{this._setToTarget(r,_,c[_],u)})}}function vn(m){return So(m,Ge)}function Ge(m){return ua(m)?m:void 0}function xe(m){if(m){if(m.defaultView)return m instanceof m.defaultView.Document;if(m.ownerDocument&&m.ownerDocument.defaultView)return m instanceof m.ownerDocument.defaultView.Node}return!1}function Au(m){const r=Object.prototype.toString.apply(m);return"[object Window]"==r||"[object global]"==r}const Ks=Xi(Ne());function Xi(m){return m?class extends m{listenTo(r,c,u,_={}){if(xe(r)||Au(r)){const C={capture:!!_.useCapture,passive:!!_.usePassive},M=this._getProxyEmitter(r,C)||new fd(r,C);this.listenTo(M,c,u,_)}else super.listenTo(r,c,u,_)}stopListening(r,c,u){if(xe(r)||Au(r)){const _=this._getAllProxyEmitters(r);for(const C of _)this.stopListening(C,c,u)}else super.stopListening(r,c,u)}_getProxyEmitter(r,c){return function(u,_){const C=u[le];return C&&C[_]?C[_].emitter:null}(this,Xr(r,c))}_getAllProxyEmitters(r){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(c=>this._getProxyEmitter(r,c)).filter(c=>!!c)}}:Ks}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{Xi[m]=Ks.prototype[m]});class fd extends(Ne()){constructor(r,c){super(),ze(this,Xr(r,c)),this._domNode=r,this._options=c}attach(r){if(this._domListeners&&this._domListeners[r])return;const c=this._createDomListener(r);this._domNode.addEventListener(r,c,this._options),this._domListeners||(this._domListeners={}),this._domListeners[r]=c}detach(r){let c;!this._domListeners[r]||(c=this._events[r])&&c.callbacks.length||this._domListeners[r].removeListener()}_addEventListener(r,c,u){this.attach(r),Ne().prototype._addEventListener.call(this,r,c,u)}_removeEventListener(r,c){Ne().prototype._removeEventListener.call(this,r,c),this.detach(r)}_createDomListener(r){const c=u=>{this.fire(r,u)};return c.removeListener=()=>{this._domNode.removeEventListener(r,c,this._options),delete this._domListeners[r]},c}}function Xr(m,r){let c=(u=m)["data-ck-expando"]||(u["data-ck-expando"]=Pt());var u;for(const u of Object.keys(r).sort())r[u]&&(c+="-"+u);return c}let zu;try{zu={window,document}}catch{zu={window:{},document:{}}}const Lt=zu;function fe(m){return"[object Text]"==Object.prototype.toString.call(m)}function $t(m){return"[object Range]"==Object.prototype.toString.apply(m)}function Ke(m){const r=m.ownerDocument.defaultView.getComputedStyle(m);return{top:parseInt(r.borderTopWidth,10),right:parseInt(r.borderRightWidth,10),bottom:parseInt(r.borderBottomWidth,10),left:parseInt(r.borderLeftWidth,10)}}function In(m){return m&&m.parentNode?m.offsetParent===Lt.document.body?null:m.offsetParent:null}const Rt=["top","right","bottom","left","width","height"];class de{constructor(r){const c=$t(r);if(Object.defineProperty(this,"_source",{value:r._source||r,writable:!0,enumerable:!1}),Cn(r)||c)if(c){const u=de.getDomRangeRects(r);De(this,de.getBoundingRect(u))}else De(this,r.getBoundingClientRect());else if(Au(r)){const{innerWidth:u,innerHeight:_}=r;De(this,{top:0,right:u,bottom:_,left:0,width:u,height:_})}else De(this,r)}clone(){return new de(this)}moveTo(r,c){return this.top=c,this.right=r+this.width,this.bottom=c+this.height,this.left=r,this}moveBy(r,c){return this.top+=c,this.right+=r,this.left+=r,this.bottom+=c,this}getIntersection(r){const c={top:Math.max(this.top,r.top),right:Math.min(this.right,r.right),bottom:Math.min(this.bottom,r.bottom),left:Math.max(this.left,r.left),width:0,height:0};if(c.width=c.right-c.left,c.height=c.bottom-c.top,c.width<0||c.height<0)return null;{const u=new de(c);return u._source=this._source,u}}getIntersectionArea(r){const c=this.getIntersection(r);return c?c.getArea():0}getArea(){return this.width*this.height}getVisible(){const r=this._source;let c=this.clone();if(nn(r))return c;let u,_=r,C=r.parentNode||r.commonAncestorContainer;for(;C&&!nn(C);){const E="visible"===((M=C)instanceof HTMLElement?M.ownerDocument.defaultView.getComputedStyle(M).overflow:"visible");_ instanceof HTMLElement&&"absolute"===Wn(_)&&(u=_);const N=Wn(C);if(E||u&&("relative"===N&&E||"relative"!==N)){_=C,C=C.parentNode;continue}const j=new de(C),K=c.getIntersection(j);if(!K)return null;K.getArea(){for(const r of m){const c=$n._getElementCallbacks(r.target);if(c)for(const u of c)u(r)}})}};let yi=$n;function bo(m){return r=>r+m}function xo(m){let r=0;for(;m.previousSibling;)m=m.previousSibling,r++;return r}function yo(m,r,c){m.insertBefore(c,m.childNodes[r]||null)}function ga(m){return m&&m.nodeType===Node.COMMENT_NODE}function ra(m){return!!(m&&m.getClientRects&&m.getClientRects().length)}yi._observerInstance=null,yi._elementCallbacks=null;var fa=Math.pow;function ts({element:m,target:r,positions:c,limiter:u,fitInViewport:_,viewportOffsetConfig:C}){No(r)&&(r=r()),No(u)&&(u=u());const M=In(m),E=function(Dt){Dt=Object.assign({top:0,bottom:0,left:0,right:0},Dt);const me=new de(Lt.window);return me.top+=Dt.top,me.height-=Dt.top,me.bottom-=Dt.bottom,me.height-=Dt.bottom,me}(C),N=new de(m),j=Hs(r,E);let K;if(!j||!E.getIntersection(j))return null;const dt={targetRect:j,elementRect:N,positionedElementAncestor:M,viewportRect:E};if(u||_){if(u){const Dt=Hs(u,E);Dt&&(dt.limiterRect=Dt)}K=function(Dt,me){const{elementRect:Ue}=me,qe=Ue.getArea(),pn=Dt.map(Ri=>new es(Ri,me)).filter(Ri=>!!Ri.name);let Ln=0,pi=null;for(const Ri of pn){const{limiterIntersectionArea:Go,viewportIntersectionArea:ka}=Ri;if(Go===qe)return Ri;const Ts=fa(ka,2)+fa(Go,2);Ts>Ln&&(Ln=Ts,pi=Ri)}return pi}(c,dt)}else K=new es(c[0],dt);return K}function Hs(m,r){const c=new de(m).getVisible();return c?c.getIntersection(r):null}class es{constructor(r,c){const u=r(c.targetRect,c.elementRect,c.viewportRect,c.limiterRect);if(!u)return;const{left:_,top:C,name:M,config:E}=u;this.name=M,this.config=E,this._positioningFunctionCoordinates={left:_,top:C},this._options=c}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const r=this._options.limiterRect;return r?r.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=this._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function ns(m){const r=m.parentNode;r&&r.removeChild(m)}function us({window:m,rect:r,alignToTop:c,forceScroll:u,viewportOffset:_}){const C=r.clone().moveBy(0,_.bottom),M=r.clone().moveBy(0,-_.top),E=new de(m).excludeScrollbarsAndBorders(),N=c&&u,j=[M,C].every(Ue=>E.contains(Ue));let{scrollX:K,scrollY:dt}=m;const Dt=K,me=dt;N?dt-=E.top-r.top+_.top:j||(Fc(M,E)?dt-=E.top-r.top+_.top:Xs(C,E)&&(dt+=c?r.top-E.top-_.top:r.bottom-E.bottom+_.bottom)),j||(is(r,E)?K-=E.left-r.left+_.left:Rd(r,E)&&(K+=r.right-E.right+_.right)),K==Dt&&dt===me||m.scrollTo(K,dt)}function Hr({parent:m,getRect:r,alignToTop:c,forceScroll:u,ancestorOffset:_=0,limiterElement:C}){const M=sr(m),E=c&&u;let N,j,K;const dt=C||M.document.body;for(;m!=dt;)j=r(),N=new de(m).excludeScrollbarsAndBorders(),K=N.contains(j),E?m.scrollTop-=N.top-j.top+_:K||(Fc(j,N)?m.scrollTop-=N.top-j.top+_:Xs(j,N)&&(m.scrollTop+=c?j.top-N.top-_:j.bottom-N.bottom+_)),K||(is(j,N)?m.scrollLeft-=N.left-j.left+_:Rd(j,N)&&(m.scrollLeft+=j.right-N.right+_)),m=m.parentNode}function Xs(m,r){return m.bottom>r.bottom}function Fc(m,r){return m.topr.right}function sr(m){return $t(m)?m.startContainer.ownerDocument.defaultView:m.ownerDocument.defaultView}function cr(m){if($t(m)){let r=m.commonAncestorContainer;return fe(r)&&(r=r.parentNode),r}return m.parentNode}function Cs(m,r){const c=sr(m),u=new de(m);if(c===r)return u;{let _=c;for(;_!=r;){const M=new de(_.frameElement).excludeScrollbarsAndBorders();u.moveBy(M.left,M.top),_=_.parent}}return u}const b_={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21e7"},jp={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Ka=function(){const m={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let r=65;r<=90;r++)m[String.fromCharCode(r).toLowerCase()]=r;for(let r=48;r<=57;r++)m[r-48]=r;for(let r=112;r<=123;r++)m["f"+(r-111)]=r;for(const r of"`-=[];',./\\")m[r]=r.charCodeAt(0);return m}(),cu=Object.fromEntries(Object.entries(Ka).map(([m,r])=>[r,m.charAt(0).toUpperCase()+m.slice(1)]));function Tc(m){let r;if("string"==typeof m){if(r=Ka[m.toLowerCase()],!r)throw new at("keyboard-unknown-key",null,{key:m})}else r=m.keyCode+(m.altKey?Ka.alt:0)+(m.ctrlKey?Ka.ctrl:0)+(m.shiftKey?Ka.shift:0)+(m.metaKey?Ka.cmd:0);return r}function tc(m){return"string"==typeof m&&(m=m.split("+").map(c=>c.trim())),m.map(r=>"string"==typeof r?function(c){if(c.endsWith("!"))return Tc(c.slice(0,-1));const u=Tc(c);return(D_isMac||D_isiOS)&&u==Ka.ctrl?Ka.cmd:u}(r):r).reduce((r,c)=>c+r,0)}function yu(m){let r=tc(m);return Object.entries(D_isMac||D_isiOS?b_:jp).reduce((c,[u,_])=>(0!=(r&Ka[u])&&(r&=~Ka[u],c+=_),c),"")+(r?cu[r]:"")}function b1(m,r){const c="ltr"===r;switch(m){case Ka.arrowleft:return c?"left":"right";case Ka.arrowright:return c?"right":"left";case Ka.arrowup:return"up";case Ka.arrowdown:return"down"}}function Ss(m){return Array.isArray(m)?m:[m]}Lt.window.CKEDITOR_TRANSLATIONS||(Lt.window.CKEDITOR_TRANSLATIONS={});const Jl=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function Bu(m){return Jl.includes(m)?"rtl":"ltr"}class Tu{constructor({uiLanguage:r="en",contentLanguage:c}={}){this.uiLanguage=r,this.contentLanguage=c||this.uiLanguage,this.uiLanguageDirection=Bu(this.uiLanguage),this.contentLanguageDirection=Bu(this.contentLanguage),this.t=(u,_)=>this._t(u,_)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(r,c=[]){return c=Ss(c),"string"==typeof r&&(r={string:r}),_=function Hd(m,r,c=1){if("number"!=typeof c)throw new at("translation-service-quantity-not-a-number",null,{quantity:c});const u=Object.keys(Lt.window.CKEDITOR_TRANSLATIONS).length;1===u&&(m=Object.keys(Lt.window.CKEDITOR_TRANSLATIONS)[0]);const _=r.id||r.string;if(0===u||(!Lt.window.CKEDITOR_TRANSLATIONS[N=m]||!Lt.window.CKEDITOR_TRANSLATIONS[N].dictionary[_]))return 1!==c?r.plural:r.string;var N;const M=Lt.window.CKEDITOR_TRANSLATIONS[m].getPluralForm||(N=>1===N?0:1),E=Lt.window.CKEDITOR_TRANSLATIONS[m].dictionary[_];return"string"==typeof E?E:E[Number(M(c))]}(this.uiLanguage,r,r.plural?c[0]:1),C=c,_.replace(/%(\d+)/g,(M,E)=>Ethis._items.length||c<0)throw new at("collection-add-item-invalid-index",this);let u=0;for(const _ of r){const C=this._getItemIdBeforeAdding(_),M=c+u;this._items.splice(M,0,_),this._itemMap.set(C,_),this.fire("add",_,M),u++}return this.fire("change",{added:r,removed:[],index:c}),this}get(r){let c;if("string"==typeof r)c=this._itemMap.get(r);else{if("number"!=typeof r)throw new at("collection-get-invalid-arg",this);c=this._items[r]}return c||null}has(r){if("string"==typeof r)return this._itemMap.has(r);{const c=r[this._idProperty];return c&&this._itemMap.has(c)}}getIndex(r){let c;return c="string"==typeof r?this._itemMap.get(r):r,c?this._items.indexOf(c):-1}remove(r){const[c,u]=this._remove(r);return this.fire("change",{added:[],removed:[c],index:u}),c}map(r,c){return this._items.map(r,c)}find(r,c){return this._items.find(r,c)}filter(r,c){return this._items.filter(r,c)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const r=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:r,index:0})}bindTo(r){if(this._bindToCollection)throw new at("collection-bind-to-rebind",this);return this._bindToCollection=r,{as:c=>{this._setUpBindToBinding(u=>new c(u))},using:c=>{this._setUpBindToBinding("function"==typeof c?c:u=>u[c])}}}_setUpBindToBinding(r){const c=this._bindToCollection,u=(_,C,M)=>{const E=c._bindToCollection==this,N=c._bindToInternalToExternalMap.get(C);if(E&&N)this._bindToExternalToInternalMap.set(C,N),this._bindToInternalToExternalMap.set(N,C);else{const j=r(C);if(!j)return void this._skippedIndexesFromExternal.push(M);let K=M;for(const dt of this._skippedIndexesFromExternal)M>dt&&K--;for(const dt of c._skippedIndexesFromExternal)K>=dt&&K++;this._bindToExternalToInternalMap.set(C,j),this._bindToInternalToExternalMap.set(j,C),this.add(j,K);for(let dt=0;dt{const E=this._bindToExternalToInternalMap.get(C);E&&this.remove(E),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((N,j)=>(Mj&&N.push(j),N),[])})}_getItemIdBeforeAdding(r){const c=this._idProperty;let u;if(c in r){if(u=r[c],"string"!=typeof u)throw new at("collection-add-invalid-id",this);if(this.get(u))throw new at("collection-add-item-already-exists",this)}else r[c]=u=Pt();return u}_remove(r){let c,u,_,C=!1;const M=this._idProperty;if("string"==typeof r?(u=r,_=this._itemMap.get(u),C=!_,_&&(c=this._items.indexOf(_))):"number"==typeof r?(c=r,_=this._items[c],C=!_,_&&(u=_[M])):(_=r,u=_[M],c=this._items.indexOf(_),C=-1==c||!this._itemMap.get(u)),C)throw new at("collection-remove-404",this);this._items.splice(c,1),this._itemMap.delete(u);const E=this._bindToInternalToExternalMap.get(_);return this._bindToInternalToExternalMap.delete(_),this._bindToExternalToInternalMap.delete(E),this.fire("remove",_,c),[_,c]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function os(m){const r=m.next();return r.done?null:r.value}class as extends(Xi(Ze())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(r){if(this._elements.has(r))throw new at("focustracker-add-element-already-exist",this);this.listenTo(r,"focus",()=>this._focus(r),{useCapture:!0}),this.listenTo(r,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(r)}remove(r){r===this.focusedElement&&this._blur(),this._elements.has(r)&&(this.stopListening(r),this._elements.delete(r))}destroy(){this.stopListening()}_focus(r){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=r,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class $c{constructor(){this._listener=new(Xi())}listenTo(r){this._listener.listenTo(r,"keydown",(c,u)=>{this._listener.fire("_keydown:"+Tc(u),u)})}set(r,c,u={}){const _=tc(r);this._listener.listenTo(this._listener,"_keydown:"+_,(M,E)=>{c(E,()=>{E.preventDefault(),E.stopPropagation(),M.stop()}),M.return=!0},{priority:u.priority})}press(r){return!!this._listener.fire("_keydown:"+Tc(r),r)}stopListening(r){this._listener.stopListening(r)}destroy(){this.stopListening()}}function Kc(m){return et(m)?new Map(m):function(r){const c=new Map;for(const u in r)c.set(u,r[u]);return c}(m)}function wr(m,r){let c;function u(..._){u.cancel(),c=setTimeout(()=>m(..._),r)}return u.cancel=()=>{clearTimeout(c)},u}function un(m,r){return!!(c=m.charAt(r-1))&&1==c.length&&/[\ud800-\udbff]/.test(c)&&!!(u=m.charAt(r))&&1==u.length&&/[\udc00-\udfff]/.test(u);var u,c}function hd(m,r){return!!(c=m.charAt(r))&&1==c.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(c);var c}const v1=function(){const m=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],r=new RegExp("\\p{Regional_Indicator}{2}","u").source,c="(?:"+m.map(u=>u.source).join("|")+")";return new RegExp(`${r}|${c}(?:\u200d${c})*`,"ug")}();function kl(m,r){const c=String(m).matchAll(v1);return Array.from(c).some(u=>u.index{this._renderViewIntoCollectionParent(u,_)}),this.on("remove",(c,u)=>{u.element&&this._parentElement&&u.element.remove()}),this._parentElement=null}destroy(){this.map(r=>r.destroy())}setParent(r){this._parentElement=r;for(const c of this)this._renderViewIntoCollectionParent(c)}delegate(...r){if(!r.length||!r.every(c=>"string"==typeof c))throw new at("ui-viewcollection-delegate-wrong-events",this);return{to:c=>{for(const u of this)for(const _ of r)u.delegate(_).to(c);this.on("add",(u,_)=>{for(const C of r)_.delegate(C).to(c)}),this.on("remove",(u,_)=>{for(const C of r)_.stopDelegating(C,c)})}}}_renderViewIntoCollectionParent(r,c){r.isRendered||r.render(),r.element&&this._parentElement&&this._parentElement.insertBefore(r.element,this._parentElement.children[c])}remove(r){return super.remove(r)}}var E1=v(6062),Fo=v.n(E1),gd=v(4793);Fo()(gd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class oa extends(Xi(Ze())){constructor(r){super(),this.element=null,this.isRendered=!1,this.locale=r,this.t=r&&r.t,this._viewCollections=new ec,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(c,u)=>{u.locale=r,u.t=r&&r.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Ur.bind(this,this)}createCollection(r){const c=new Ia(r);return this._viewCollections.add(c),c}registerChild(r){et(r)||(r=[r]);for(const c of r)this._unboundChildren.add(c)}deregisterChild(r){et(r)||(r=[r]);for(const c of r)this._unboundChildren.remove(c)}setTemplate(r){this.template=new Ur(r)}extendTemplate(r){Ur.extend(this.template,r)}render(){if(this.isRendered)throw new at("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(r=>r.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}class Ur extends(Ne()){constructor(r){super(),Object.assign(this,La(zd(r))),this._isRendered=!1,this._revertData=null}render(){const r=this._renderNode({intoFragment:!0});return this._isRendered=!0,r}apply(r){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:r,intoFragment:!1,isApplying:!0,revertData:this._revertData}),r}revert(r){if(!this._revertData)throw new at("ui-template-revert-not-applied",[this,r]);this._revertTemplateFromNode(r,this._revertData)}*getViews(){yield*function*r(c){if(c.children)for(const u of c.children)se(u)?yield u:Se(u)&&(yield*r(u))}(this)}static bind(r,c){return{to:(u,_)=>new To({eventNameOrFunction:u,attribute:u,observable:r,emitter:c,callback:_}),if:(u,_,C)=>new v_({observable:r,emitter:c,attribute:u,valueIfTrue:_,callback:C})}}static extend(r,c){if(r._isRendered)throw new at("template-extend-render",[this,r]);pt(r,La(zd(c)))}_renderNode(r){let c;if(c=r.node?this.tag&&this.text:this.tag?this.text:!this.text,c)throw new at("ui-template-wrong-syntax",this);return this.text?this._renderText(r):this._renderElement(r)}_renderElement(r){let c=r.node;return c||(c=r.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(r),this._renderElementChildren(r),this._setUpListeners(r),c}_renderText(r){let c=r.node;return c?r.revertData.text=c.textContent:c=r.node=document.createTextNode(""),Y(this.text)?this._bindToObservable({schema:this.text,updater:bd(c),data:r}):c.textContent=this.text.join(""),c}_renderAttributes(r){if(!this.attributes)return;const c=r.node,u=r.revertData;for(const _ in this.attributes){const C=c.getAttribute(_),M=this.attributes[_];u&&(u.attributes[_]=C);const E=qn(M)?M[0].ns:null;if(Y(M)){const N=qn(M)?M[0].value:M;u&&Ii(_)&&N.unshift(C),this._bindToObservable({schema:N,updater:x_(c,_,E),data:r})}else if("style"==_&&"string"!=typeof M[0])this._renderStyleAttribute(M[0],r);else{u&&C&&Ii(_)&&M.unshift(C);const N=M.map(j=>j&&j.value||j).reduce((j,K)=>j.concat(K),[]).reduce(At,"");Gt(N)||c.setAttributeNS(E,_,N)}}}_renderStyleAttribute(r,c){const u=c.node;for(const _ in r){const C=r[_];Y(C)?this._bindToObservable({schema:[C],updater:mp(u,_),data:c}):u.style[_]=C}}_renderElementChildren(r){const c=r.node,u=r.intoFragment?document.createDocumentFragment():c,_=r.isApplying;let C=0;for(const M of this.children)if(Dn(M)){if(!_){M.setParent(c);for(const E of M)u.appendChild(E.element)}}else if(se(M))_||(M.isRendered||M.render(),u.appendChild(M.element));else if(xe(M))u.appendChild(M);else if(_){const E={children:[],bindings:[],attributes:{}};r.revertData.children.push(E),M._renderNode({intoFragment:!1,node:u.childNodes[C++],isApplying:!0,revertData:E})}else u.appendChild(M.render());r.intoFragment&&c.appendChild(u)}_setUpListeners(r){if(this.eventListeners)for(const c in this.eventListeners){const u=this.eventListeners[c].map(_=>{const[C,M]=c.split("@");return _.activateDomEventListener(C,M,r)});r.revertData&&r.revertData.bindings.push(u)}}_bindToObservable({schema:r,updater:c,data:u}){const _=u.revertData;Jo(r,c,u);const C=r.filter(M=>!Gt(M)).filter(M=>M.observable).map(M=>M.activateAttributeListener(r,c,u));_&&_.bindings.push(C)}_revertTemplateFromNode(r,c){for(const _ of c.bindings)for(const C of _)C();if(c.text)return void(r.textContent=c.text);const u=r;for(const _ in c.attributes){const C=c.attributes[_];null===C?u.removeAttribute(_):u.setAttribute(_,C)}for(let _=0;_Jo(r,c,u);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,_),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,_)}}}class To extends Yu{constructor(r){super(r),this.eventNameOrFunction=r.eventNameOrFunction}activateDomEventListener(r,c,u){const _=(C,M)=>{c&&!M.target.matches(c)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(M):this.observable.fire(this.eventNameOrFunction,M))};return this.emitter.listenTo(u.node,r,_),()=>{this.emitter.stopListening(u.node,r,_)}}}class v_ extends Yu{constructor(r){super(r),this.valueIfTrue=r.valueIfTrue}getValue(r){return!Gt(super.getValue(r))&&(this.valueIfTrue||!0)}}function Y(m){return!!m&&(m.value&&(m=m.value),Array.isArray(m)?m.some(Y):m instanceof Yu)}function Jo(m,r,{node:c}){const u=(M=c,m.map(E=>E instanceof Yu?E.getValue(M):E));var M;let _;_=1==m.length&&m[0]instanceof v_?u[0]:u.reduce(At,""),Gt(_)?r.remove():r.set(_)}function bd(m){return{set(r){m.textContent=r},remove(){m.textContent=""}}}function x_(m,r,c){return{set(u){m.setAttributeNS(c,r,u)},remove(){m.removeAttributeNS(c,r)}}}function mp(m,r){return{set(c){m.style[r]=c},remove(){m.style[r]=null}}}function zd(m){return So(m,r=>{if(r&&(r instanceof Yu||Se(r)||se(r)||Dn(r)))return r})}function La(m){if("string"==typeof m?m={text:[m]}:m.text&&((r=m).text=Ss(r.text)),m.on&&(m.eventListeners=function(r){for(const c in r)Jp(r,c);return r}(m.on),delete m.on),!m.text){m.attributes&&function(c){for(const u in c)c[u].value&&(c[u].value=Ss(c[u].value)),Jp(c,u)}(m.attributes);const r=[];if(m.children)if(Dn(m.children))r.push(m.children);else for(const c of m.children)Se(c)||se(c)||xe(c)?r.push(c):r.push(new Ur(c));m.children=r}var r;return m}function Jp(m,r){m[r]=Ss(m[r])}function At(m,r){return Gt(r)?m:Gt(m)?r:`${m} ${r}`}function Ut(m,r){for(const c in r)m[c]?m[c].push(...r[c]):m[c]=r[c]}function pt(m,r){if(r.attributes&&(m.attributes||(m.attributes={}),Ut(m.attributes,r.attributes)),r.eventListeners&&(m.eventListeners||(m.eventListeners={}),Ut(m.eventListeners,r.eventListeners)),r.text&&m.text.push(...r.text),r.children&&r.children.length){if(m.children.length!=r.children.length)throw new at("ui-template-extend-children-mismatch",m);let c=0;for(const u of r.children)pt(m.children[c++],u)}}function Gt(m){return!m&&0!==m}function se(m){return m instanceof oa}function Se(m){return m instanceof Ur}function Dn(m){return m instanceof Ia}function qn(m){return Kt(m[0])&&m[0].ns}function Ii(m){return"class"==m||"style"==m}class Qi extends Ia{constructor(r,c=[]){super(c),this.locale=r}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new Ur({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let r=document.querySelector(".ck-body-wrapper");r||(r=tn(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(r)),r.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const r=document.querySelector(".ck-body-wrapper");r&&0==r.childElementCount&&r.remove()}}var Fa=v(6574);Fo()(Fa.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const xr=class extends oa{constructor(){super();const m=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.set("isVisible",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon",m.if("isVisible","ck-hidden",r=>!r),"ck-reset_all-excluded",m.if("isColorInherited","ck-icon_inherit-color")],viewBox:m.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const m=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),r=m.getAttribute("viewBox");r&&(this.viewBox=r);for(const{name:c,value:u}of Array.from(m.attributes))xr.presentationalAttributeNames.includes(c)&&this.element.setAttribute(c,u);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;m.childNodes.length>0;)this.element.appendChild(m.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(m=>{m.style.fill=this.fillColor})}};let zs=xr;zs.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];class Vu extends oa{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const r=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:r.to("style"),id:r.to("id")},children:[{text:r.to("text")}]})}}var va=v(4906);Fo()(va.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class $o extends oa{constructor(r,c=new Vu){super(r),this._focusDelayed=null;const u=this.bindTemplate,_=Pt();this.set("ariaChecked",void 0),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${_}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(c),this.iconView=new zs,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const C={tag:"button",attributes:{class:["ck","ck-button",u.to("class"),u.if("isEnabled","ck-disabled",M=>!M),u.if("isVisible","ck-hidden",M=>!M),u.to("isOn",M=>M?"ck-on":"ck-off"),u.if("withText","ck-button_with-text"),u.if("withKeystroke","ck-button_with-keystroke")],role:u.to("role"),type:u.to("type",M=>M||"button"),tabindex:u.to("tabindex"),"aria-label":u.to("ariaLabel"),"aria-labelledby":u.to("ariaLabelledBy"),"aria-disabled":u.if("isEnabled",!0,M=>!M),"aria-checked":u.to("isOn"),"aria-pressed":u.to("isOn",M=>!!this.isToggleable&&String(!!M)),"data-cke-tooltip-text":u.to("_tooltipString"),"data-cke-tooltip-position":u.to("tooltipPosition")},children:this.children,on:{click:u.to(M=>{this.isEnabled?this.fire("execute"):M.preventDefault()})}};D_isSafari&&(this._focusDelayed||(this._focusDelayed=wr(()=>this.focus(),0)),C.on.mousedown=u.to(()=>{this._focusDelayed()}),C.on.mouseup=u.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(C)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(r){return r.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),r}_createKeystrokeView(){const r=new oa;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",c=>yu(c))}]}),r}_getTooltipString(r,c,u){return r?"string"==typeof r?r:(u&&(u=yu(u)),r instanceof Function?r(c,u):`${c}${u?` (${u})`:""}`):""}}var Pn=v(5332);Fo()(Pn.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class As extends $o{constructor(r){super(r),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const r=new oa;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),r}}var ha=v(6781);Fo()(ha.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),v(1103),v(841);var vd=v(3662);Fo()(vd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class wu extends oa{constructor(r){super(r),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${Pt()}`;const c=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:c.to("for")},children:[{text:c.to("text")}]})}}var wc=v(2577);Fo()(wc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Sr extends oa{constructor(r,c){super(r);const u=`ck-labeled-field-view-${Pt()}`,_=`ck-labeled-field-view-status-${Pt()}`;this.fieldView=c(this,u,_),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(u),this.statusView=this._createStatusView(_),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(M,E)=>M||E);const C=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",C.to("class"),C.if("isEnabled","ck-disabled",M=>!M),C.if("isEmpty","ck-labeled-field-view_empty"),C.if("isFocused","ck-labeled-field-view_focused"),C.if("placeholder","ck-labeled-field-view_placeholder"),C.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(r){const c=new wu(this.locale);return c.for=r,c.bind("text").to(this,"label"),c}_createStatusView(r){const c=new oa(this.locale),u=this.bindTemplate;return c.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",u.if("errorText","ck-labeled-field-view__status_error"),u.if("_statusText","ck-hidden",_=>!_)],id:r,role:u.if("errorText","alert")},children:[{text:u.to("_statusText")}]}),c}focus(r){this.fieldView.focus(r)}}class A_ extends oa{constructor(r){super(r),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new as,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const c=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",c.if("isFocused","ck-input_focused"),c.if("isEmpty","ck-input-text_empty"),c.if("hasError","ck-error")],id:c.to("id"),placeholder:c.to("placeholder"),readonly:c.to("isReadOnly"),"aria-invalid":c.if("hasError",!0),"aria-describedby":c.to("ariaDescribedById")},on:{input:c.to((...u)=>{this.fire("input",...u),this._updateIsEmpty()}),change:c.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(r,c,u)=>{this._setDomElementValue(u),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(r){this.element.value=r||0===r?r:""}}var _p=v(4879);Fo()(_p.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Gp extends A_{constructor(r){super(r),this.set("inputMode","text"),this.extendTemplate({attributes:{inputmode:this.bindTemplate.to("inputMode")}})}}class xg extends Gp{constructor(r){super(r),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var I1=v(8182);Fo()(I1.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class y_ extends oa{constructor(r){super(r);const c=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",c.to("position",u=>`ck-dropdown__panel_${u}`),c.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:c.to(u=>{"input"!==u.target.tagName.toLocaleLowerCase()&&u.preventDefault()})}})}focus(){if(this.children.length){const r=this.children.first;"function"==typeof r.focus?r.focus():Zt("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const r=this.children.last;"function"==typeof r.focusLast?r.focusLast():r.focus()}}}var nc=v(5485);Fo()(nc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const F1=class extends oa{constructor(m,r,c){super(m);const u=this.bindTemplate;this.buttonView=r,this.panelView=c,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.keystrokes=new $c,this.focusTracker=new as,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",u.to("class"),u.if("isEnabled","ck-disabled",_=>!_)],id:u.to("id"),"aria-describedby":u.to("ariaDescribedById")},children:[r,c]}),r.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":u.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(r,c,u)=>{if(u)if("auto"===this.panelPosition){const _=F1._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=_?_.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition}),this.keystrokes.listenTo(this.element);const m=(r,c)=>{this.isOpen&&(this.isOpen=!1,c())};this.keystrokes.set("arrowdown",(r,c)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,c())}),this.keystrokes.set("arrowright",(r,c)=>{this.isOpen&&c()}),this.keystrokes.set("arrowleft",m),this.keystrokes.set("esc",m)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:m,north:r,southEast:c,southWest:u,northEast:_,northWest:C,southMiddleEast:M,southMiddleWest:E,northMiddleEast:N,northMiddleWest:j}=F1.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[c,u,M,E,m,_,C,N,j,r]:[u,c,E,M,m,C,_,j,N,r]}};let Uu=F1;Uu.defaultPanelPositions={south:(m,r)=>({top:m.bottom,left:m.left-(r.width-m.width)/2,name:"s"}),southEast:m=>({top:m.bottom,left:m.left,name:"se"}),southWest:(m,r)=>({top:m.bottom,left:m.left-r.width+m.width,name:"sw"}),southMiddleEast:(m,r)=>({top:m.bottom,left:m.left-(r.width-m.width)/4,name:"sme"}),southMiddleWest:(m,r)=>({top:m.bottom,left:m.left-3*(r.width-m.width)/4,name:"smw"}),north:(m,r)=>({top:m.top-r.height,left:m.left-(r.width-m.width)/2,name:"n"}),northEast:(m,r)=>({top:m.top-r.height,left:m.left,name:"ne"}),northWest:(m,r)=>({top:m.top-r.height,left:m.left-r.width+m.width,name:"nw"}),northMiddleEast:(m,r)=>({top:m.top-r.height,left:m.left-(r.width-m.width)/4,name:"nme"}),northMiddleWest:(m,r)=>({top:m.top-r.height,left:m.left-3*(r.width-m.width)/4,name:"nmw"})},Uu._getOptimalPosition=ts;const xd='';class x1 extends $o{constructor(r){super(r),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",c=>String(c))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const r=new zs;return r.content=xd,r.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),r}}class dl extends(Ne()){constructor(r){if(super(),this.focusables=r.focusables,this.focusTracker=r.focusTracker,this.keystrokeHandler=r.keystrokeHandler,this.actions=r.actions,r.actions&&r.keystrokeHandler)for(const c in r.actions){let u=r.actions[c];"string"==typeof u&&(u=[u]);for(const _ of u)r.keystrokeHandler.set(_,(C,M)=>{this[c](),M()})}this.on("forwardCycle",()=>this.focusFirst(),{priority:"low"}),this.on("backwardCycle",()=>this.focusLast(),{priority:"low"})}get first(){return this.focusables.find(Im)||null}get last(){return this.focusables.filter(Im).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let r=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((c,u)=>{const _=c.element===this.focusTracker.focusedElement;return _&&(r=u),_}),r)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const r=this.next;r&&this.focusables.getIndex(r)===this.current||(r===this.first?this.fire("forwardCycle"):this._focus(r,1))}focusPrevious(){const r=this.previous;r&&this.focusables.getIndex(r)===this.current||(r===this.last?this.fire("backwardCycle"):this._focus(r,-1))}_focus(r,c){r&&r.focus(c)}_getFocusableItem(r){const c=this.current,u=this.focusables.length;if(!u)return null;if(null===c)return this[1===r?"first":"last"];let _=(c+u+r)%u;do{const C=this.focusables.get(_);if(Im(C))return C;_=(_+u+r)%u}while(_!==c);return null}}function Im(m){return!(!("focus"in m)||!ra(m.element))}class pl extends oa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class M2 extends oa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function fp(m){return Array.isArray(m)?{items:m,removeItems:[]}:m?Object.assign({items:[],removeItems:[]},m):{items:[],removeItems:[]}}class lo extends(Ze()){constructor(r){super(),this._disableStack=new Set,this.editor=r,this.set("isEnabled",!0)}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",hp,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",hp),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function hp(m){m.return=!1,m.stop()}class Ua extends(Ze()){constructor(r){super(),this.editor=r,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.listenTo(r,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",c=>{if(!this.affectsData)return;const u=r.model.document.selection,_="$graveyard"!=u.getFirstPosition().root.rootName&&r.model.canEditAt(u);(r.isReadOnly||this._isEnabledBasedOnSelection&&!_)&&(c.return=!1,c.stop())},{priority:"highest"}),this.on("execute",c=>{this.isEnabled||c.stop()},{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(r){this._affectsData=r}refresh(){this.isEnabled=!0}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",N1,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",N1),this.refresh())}execute(...r){}destroy(){this.stopListening()}}function N1(m){m.return=!1,m.stop()}class Qp extends Ua{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...r){const c=this._getFirstEnabledCommand();return!!c&&c.execute(r)}registerChildCommand(r,c={}){Ht(this._childCommandsDefinitions,{command:r,priority:c.priority||"normal"}),r.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const r=this._childCommandsDefinitions.find(({command:c})=>c.isEnabled);return r&&r.command}}class If extends(Ne()){constructor(r,c=[],u=[]){super(),this._plugins=new Map,this._context=r,this._availablePlugins=new Map;for(const _ of c)_.pluginName&&this._availablePlugins.set(_.pluginName,_);this._contextPlugins=new Map;for(const[_,C]of u)this._contextPlugins.set(_,C),this._contextPlugins.set(C,_),_.pluginName&&this._availablePlugins.set(_.pluginName,_)}*[Symbol.iterator](){for(const r of this._plugins)"function"==typeof r[0]&&(yield r)}get(r){const c=this._plugins.get(r);if(!c){let u=r;throw"function"==typeof r&&(u=r.pluginName||r.name),new at("plugincollection-plugin-not-loaded",this._context,{plugin:u})}return c}has(r){return this._plugins.has(r)}init(r,c=[],u=[]){const _=this,C=this._context;(function Ue(qe,pn=new Set){qe.forEach(Ln=>{N(Ln)&&(pn.has(Ln)||(pn.add(Ln),Ln.pluginName&&!_._availablePlugins.has(Ln.pluginName)&&_._availablePlugins.set(Ln.pluginName,Ln),Ln.requires&&Ue(Ln.requires,pn)))})})(r),Dt(r);const M=[...function Ue(qe,pn=new Set){return qe.map(Ln=>N(Ln)?Ln:_._availablePlugins.get(Ln)).reduce((Ln,pi)=>pn.has(pi)?Ln:(pn.add(pi),pi.requires&&(Dt(pi.requires,pi),Ue(pi.requires,pn).forEach(Ri=>Ln.add(Ri))),Ln.add(pi)),new Set)}(r.filter(Ue=>!K(Ue,c)))];!function(Ue,qe){for(const pn of qe){if("function"!=typeof pn)throw new at("plugincollection-replace-plugin-invalid-type",null,{pluginItem:pn});const Ln=pn.pluginName;if(!Ln)throw new at("plugincollection-replace-plugin-missing-name",null,{pluginItem:pn});if(pn.requires&&pn.requires.length)throw new at("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:Ln});const pi=_._availablePlugins.get(Ln);if(!pi)throw new at("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:Ln});const Ri=Ue.indexOf(pi);if(-1===Ri){if(_._contextPlugins.has(pi))return;throw new at("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:Ln})}if(pi.requires&&pi.requires.length)throw new at("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:Ln});Ue.splice(Ri,1,pn),_._availablePlugins.set(Ln,pn)}}(M,u);const E=M.map(Ue=>{let qe=_._contextPlugins.get(Ue);return qe=qe||new Ue(C),_._add(Ue,qe),qe});return me(E,"init").then(()=>me(E,"afterInit")).then(()=>E);function N(Ue){return"function"==typeof Ue}function j(Ue){return N(Ue)&&!!Ue.isContextPlugin}function K(Ue,qe){return qe.some(pn=>pn===Ue||dt(Ue)===pn||dt(pn)===Ue)}function dt(Ue){return N(Ue)?Ue.pluginName||Ue.name:Ue}function Dt(Ue,qe=null){Ue.map(pn=>N(pn)?pn:_._availablePlugins.get(pn)||pn).forEach(pn=>{(function(Ln,pi){if(!N(Ln))throw pi?new at("plugincollection-soft-required",C,{missingPlugin:Ln,requiredBy:dt(pi)}):new at("plugincollection-plugin-not-found",C,{plugin:Ln})})(pn,qe),function(Ln,pi){if(j(pi)&&!j(Ln))throw new at("plugincollection-context-required",C,{plugin:dt(Ln),requiredBy:dt(pi)})}(pn,qe),function(Ln,pi){if(pi&&K(Ln,c))throw new at("plugincollection-required",C,{plugin:dt(Ln),requiredBy:dt(pi)})}(pn,qe)})}function me(Ue,qe){return Ue.reduce((pn,Ln)=>Ln[qe]?_._contextPlugins.has(Ln)?pn:pn.then(Ln[qe].bind(Ln)):pn,Promise.resolve())}}destroy(){const r=[];for(const[,c]of this)"function"!=typeof c.destroy||this._contextPlugins.has(c)||r.push(c.destroy());return Promise.all(r)}_add(r,c){this._plugins.set(r,c);const u=r.pluginName;if(u){if(this._plugins.has(u))throw new at("plugincollection-plugin-name-conflict",null,{pluginName:u,plugin1:this._plugins.get(u).constructor,plugin2:r});this._plugins.set(u,c)}}}class k2{constructor(r){this._contextOwner=null,this.config=new nr(r,this.constructor.defaultConfig);const c=this.constructor.builtinPlugins;this.config.define("plugins",c),this.plugins=new If(this,c);const u=this.config.get("language")||{};this.locale=new Tu({uiLanguage:"string"==typeof u?u:u.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new ec}initPlugins(){const r=this.config.get("plugins")||[],c=this.config.get("substitutePlugins")||[];for(const u of r.concat(c)){if("function"!=typeof u)throw new at("context-initplugins-constructor-only",null,{Plugin:u});if(!0!==u.isContextPlugin)throw new at("context-initplugins-invalid-plugin",null,{Plugin:u})}return this.plugins.init(r,[],c)}destroy(){return Promise.all(Array.from(this.editors,r=>r.destroy())).then(()=>this.plugins.destroy())}_addEditor(r,c){if(this._contextOwner)throw new at("context-addeditor-private-context");this.editors.add(r),c&&(this._contextOwner=r)}_removeEditor(r){return this.editors.has(r)&&this.editors.remove(r),this._contextOwner===r?this.destroy():Promise.resolve()}_getEditorConfig(){const r={};for(const c of this.config.names())["plugins","removePlugins","extraPlugins"].includes(c)||(r[c]=this.config.get(c));return r}static create(r){return new Promise(c=>{const u=new this(r);c(u.initPlugins().then(()=>u))})}}class w_ extends(Ze()){constructor(r){super(),this.context=r}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class Wp extends $c{constructor(r){super(),this.editor=r}set(r,c,u={}){if("string"==typeof c){const _=c;c=(C,M)=>{this.editor.execute(_),M()}}super.set(r,c,u)}}var gp=v(4717);Fo()(gp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Z=new WeakMap;let Tt=!1;function B({view:m,element:r,text:c,isDirectHost:u=!0,keepOnFocus:_=!1}){const C=m.document;function M(E){Z.get(C).set(r,{text:E,isDirectHost:u,keepOnFocus:_,hostElement:u?r:null}),m.change(N=>te(C,N))}Z.has(C)||(Z.set(C,new Map),C.registerPostFixer(E=>te(C,E)),C.on("change:isComposing",()=>{m.change(E=>te(C,E))},{priority:"high"})),r.is("editableElement")&&r.on("change:placeholder",(E,N,j)=>{M(j)}),r.placeholder?M(r.placeholder):c&&M(c),c&&(Tt||Zt("enableplaceholder-deprecated-text-option"),Tt=!0)}function te(m,r){const c=Z.get(m),u=[];let _=!1;for(const[C,M]of c)M.isDirectHost&&(u.push(C),be(r,C,M)&&(_=!0));for(const[C,M]of c){if(M.isDirectHost)continue;const E=rn(C);E&&(u.includes(E)||(M.hostElement=E,be(r,C,M)&&(_=!0)))}return _}function be(m,r,c){const{text:u,isDirectHost:_,hostElement:C}=c;let M=!1;return C.getAttribute("data-placeholder")!==u&&(m.setAttribute("data-placeholder",u,C),M=!0),(_||1==r.childCount)&&function(E,N){if(!E.isAttached()||Array.from(E.getChildren()).some(dt=>!dt.is("uiElement")))return!1;const j=E.document,K=j.selection.anchor;return!(j.isComposing&&K&&K.parent===E||!N&&j.isFocused&&(!K||K.parent===E))}(C,c.keepOnFocus)?(E=m,!(N=C).hasClass("ck-placeholder")&&(E.addClass("ck-placeholder",N),!0)&&(M=!0)):function ht(m,r){return!!r.hasClass("ck-placeholder")&&(m.removeClass("ck-placeholder",r),!0)}(m,C)&&(M=!0),M;var E,N}function rn(m){if(m.childCount){const r=m.getChild(0);if(r.is("element")&&!r.is("uiElement")&&!r.is("attributeElement"))return r}return null}class oi{is(){throw new Error("is() method is abstract")}}const Mi=function(m){return Pi(m,4)};class Ro extends(Ne(oi)){constructor(r){super(),this.document=r,this.parent=null}get index(){let r;if(!this.parent)return null;if(-1==(r=this.parent.getChildIndex(this)))throw new at("view-node-not-found-in-parent",this);return r}get nextSibling(){const r=this.index;return null!==r&&this.parent.getChild(r+1)||null}get previousSibling(){const r=this.index;return null!==r&&this.parent.getChild(r-1)||null}get root(){let r=this;for(;r.parent;)r=r.parent;return r}isAttached(){return this.root.is("rootElement")}getPath(){const r=[];let c=this;for(;c.parent;)r.unshift(c.index),c=c.parent;return r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}getCommonAncestor(r,c={}){const u=this.getAncestors(c),_=r.getAncestors(c);let C=0;for(;u[C]==_[C]&&u[C];)C++;return 0===C?null:u[C-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=tt(c,u);switch(_){case"prefix":return!0;case"extension":return!1;default:return c[_]r.data.length)throw new at("view-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.data.length)throw new at("view-textproxy-wrong-length",this);this.data=r.data.substring(c,c+u),this.offsetInText=c}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(r={}){const c=[];let u=r.includeSelf?this.textNode:this.parent;for(;null!==u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}}Ha.prototype.is=function(m){return"$textProxy"===m||"view:$textProxy"===m||"textProxy"===m||"view:textProxy"===m};class ds{constructor(...r){this._patterns=[],this.add(...r)}add(...r){for(let c of r)("string"==typeof c||c instanceof RegExp)&&(c={name:c}),this._patterns.push(c)}match(...r){for(const c of r)for(const u of this._patterns){const _=Yd(c,u);if(_)return{element:c,pattern:u,match:_}}return null}matchAll(...r){const c=[];for(const u of r)for(const _ of this._patterns){const C=Yd(u,_);C&&c.push({element:u,pattern:_,match:C})}return c.length>0?c:null}getElementName(){if(1!==this._patterns.length)return null;const r=this._patterns[0],c=r.name;return"function"==typeof r||!c||c instanceof RegExp?null:c}}function Yd(m,r){if("function"==typeof r)return r(m);const c={};return r.name&&(c.name=(_=m.name,(u=r.name)instanceof RegExp?!!_.match(u):u===_),!c.name)||r.attributes&&(c.attributes=function(u,_){const C=new Set(_.getAttributeKeys());return en(u)?(void 0!==u.style&&Zt("matcher-pattern-deprecated-attributes-style-key",u),void 0!==u.class&&Zt("matcher-pattern-deprecated-attributes-class-key",u)):(C.delete("style"),C.delete("class")),Vd(u,C,M=>_.getAttribute(M))}(r.attributes,m),!c.attributes)||r.classes&&(c.classes=function(u,_){return Vd(u,_.getClassNames(),()=>{})}(r.classes,m),!c.classes)||r.styles&&(c.styles=function(u,_){return Vd(u,_.getStyleNames(!0),C=>_.getStyle(C))}(r.styles,m),!c.styles)?null:c;var u,_}function Vd(m,r,c){const u=(M=m,Array.isArray(M)?M.map(E=>en(E)?(void 0!==E.key&&void 0!==E.value||Zt("matcher-pattern-missing-key-or-value",E),[E.key,E.value]):[E,!0]):en(M)?Object.entries(M):[[M,!0]]),_=Array.from(r),C=[];var M;if(u.forEach(([M,E])=>{_.forEach(N=>{var j,K;K=N,(!0===(j=M)||j===K||j instanceof RegExp&&K.match(j))&&function(j,K,dt){if(!0===j)return!0;const Dt=dt(K);return j===Dt||j instanceof RegExp&&!!String(Dt).match(j)}(E,N,c)&&C.push(N)})}),u.length&&!(C.length_?0:_+r),(c=c>_?_:c)<0&&(c+=_),_=r>c?0:c-r>>>0,r>>>=0;for(var C=Array(_);++u<_;)C[u]=m[u+r];return C},q1=function(m,r,c){var u=null==m?void 0:ml(m,r);return void 0===u?c:u},S2=function(m,r,c){(void 0!==c&&!Zn(m[r],c)||void 0===c&&!(r in m))&&Cl(m,r,c)},M_=function(m,r){if(("constructor"!==r||"function"!=typeof m[r])&&"__proto__"!=r)return m[r]},Mg=function m(r,c,u,_,C){r!==c&&function(r,c,u){for(var _=-1,C=Object(r),M=u(r),E=M.length;E--;){var N=M[++_];if(!1===c(C[N],N,C))break}}(c,function(M,E){if(C||(C=new iu),Kt(M))!function(m,r,c,u,_,C,M){var E=M_(m,c),N=M_(r,c),j=M.get(N);if(j)S2(m,c,j);else{var K=C?C(E,N,c+"",m,r,M):void 0,dt=void 0===K;if(dt){var Dt=je(N),me=!Dt&&ks(N),Ue=!Dt&&!me&&Jc(N);K=N,Dt||me||Ue?je(E)?K=E:function(m){return gn(m)&&Ac(m)}(E)?K=uc(E):me?(dt=!1,K=aa(N,!0)):Ue?(dt=!1,K=ft(N,!0)):K=[]:en(N)||Hl(N)?(K=E,Hl(E)?K=function(m){return Vs(m,ls(m))}(E):Kt(E)&&!No(E)||(K=ul(N))):dt=!1}dt&&(M.set(N,K),_(K,N,u,C,M),M.delete(N)),S2(m,c,K)}}(r,c,E,u,m,_,C);else{var N=_?_(M_(r,E),M,E+"",r,c,C):void 0;void 0===N&&(N=M),S2(r,E,N)}},ls)},ku=function(m){return m},I3=function(m,r,c){switch(c.length){case 0:return m.call(r);case 1:return m.call(r,c[0]);case 2:return m.call(r,c[0],c[1]);case 3:return m.call(r,c[0],c[1],c[2])}return m.apply(r,c)};var vp=Math.max;const qf=function(m){return function(){return m}},kg=vc?function(m,r){return vc(m,"toString",{configurable:!0,enumerable:!1,value:qf(r),writable:!0})}:ku;var Dg=Date.now;const k_=function(m){var r=0,c=0;return function(){var u=Dg(),_=16-(u-c);if(c=u,_>0){if(++r>=800)return arguments[0]}else r=0;return m.apply(void 0,arguments)}}(kg),Rf=function(m){return function(m,r){return k_(function(m,r,c){return r=vp(void 0===r?m.length-1:r,0),function(){for(var u=arguments,_=-1,C=vp(u.length-r,0),M=Array(C);++_1?c[_-1]:void 0,M=_>2?c[2]:void 0;for(C=m.length>3&&"function"==typeof C?(_--,C):void 0,M&&function(m,r,c){if(!Kt(c))return!1;var u=typeof r;return!!("number"==u?Ac(c)&&ou(r,c.length):"string"==u&&r in c)&&Zn(c[r],m)}(c[0],c[1],M)&&(C=_<3?void 0:C,_=1),r=Object(r);++u<_;){var E=c[u];E&&m(r,E,u,C)}return r})},O2=Rf(function(m,r,c){Mg(m,r,c)});class Du{constructor(r){this._styles={},this._styleProcessor=r}get isEmpty(){const r=Object.entries(this._styles);return!Array.from(r).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(r){this.clear();const c=Array.from(function(u){let _=null,C=0,M=0,E=null;const N=new Map;if(""===u)return N;";"!=u.charAt(u.length-1)&&(u+=";");for(let j=0;ju===r);return Array.isArray(c)}set(r,c){if(Kt(r))for(const[u,_]of Object.entries(r))this._styleProcessor.toNormalizedForm(u,_,this._styles);else this._styleProcessor.toNormalizedForm(r,c,this._styles)}remove(r){const c=Hf(r);(function(m,r){null==m||function(m,r){null==(m=function(m,r){return r.length<2?m:ml(m,P2(r,0,-1))}(m,r=Zu(r,m)))||delete m[U_(function(m){var r=null==m?0:m.length;return r?m[r-1]:void 0}(r))]}(m,r)})(this._styles,c),delete this._styles[r],this._cleanEmptyObjectsOnPath(c)}getNormalized(r){return this._styleProcessor.getNormalized(r,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(r=>r.join(":")).sort().join(";")+";"}getAsString(r){if(this.isEmpty)return;if(this._styles[r]&&!Kt(this._styles[r]))return this._styles[r];const c=this._styleProcessor.getReducedForm(r,this._styles).find(([u])=>u===r);return Array.isArray(c)?c[1]:void 0}getStyleNames(r=!1){return this.isEmpty?[]:r?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([c])=>c)}clear(){this._styles={}}_getStylesEntries(){const r=[],c=Object.keys(this._styles);for(const u of c)r.push(...this._styleProcessor.getReducedForm(u,this._styles));return r}_cleanEmptyObjectsOnPath(r){const c=r.split(".");if(!(c.length>1))return;const u=c.splice(0,c.length-1).join("."),_=q1(this._styles,u);!_||!Array.from(Object.keys(_)).length&&this.remove(u)}}class Og{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(r,c,u){if(Kt(c))D_(u,Hf(r),c);else if(this._normalizers.has(r)){const _=this._normalizers.get(r),{path:C,value:M}=_(c);D_(u,C,M)}else D_(u,r,c)}getNormalized(r,c){if(!r)return O2({},c);if(void 0!==c[r])return c[r];if(this._extractors.has(r)){const u=this._extractors.get(r);if("string"==typeof u)return q1(c,u);const _=u(r,c);if(_)return _}return q1(c,Hf(r))}getReducedForm(r,c){const u=this.getNormalized(r,c);return void 0===u?[]:this._reducers.has(r)?this._reducers.get(r)(u):[[r,u]]}getStyleNames(r){const c=Array.from(this._consumables.keys()).filter(_=>{const C=this.getNormalized(_,r);return C&&"object"==typeof C?Object.keys(C).length:C}),u=new Set([...c,...Object.keys(r)]);return Array.from(u.values())}getRelatedStyles(r){return this._consumables.get(r)||[]}setNormalizer(r,c){this._normalizers.set(r,c)}setExtractor(r,c){this._extractors.set(r,c)}setReducer(r,c){this._reducers.set(r,c)}setStyleRelation(r,c){this._mapStyleNames(r,c);for(const u of c)this._mapStyleNames(u,[r])}_mapStyleNames(r,c){this._consumables.has(r)||this._consumables.set(r,[]),this._consumables.get(r).push(...c)}}function Hf(m){return m.replace("-",".")}function D_(m,r,c){let u=c;Kt(c)&&(u=O2({},q1(m,r),c)),function(m,r,c){null==m||function(m,r,c,u){if(!Kt(m))return m;for(var _=-1,C=(r=Zu(r,m)).length,M=C-1,E=m;null!=E&&++_0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(r){if("class"==r)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==r){const c=this._styles.toString();return""==c?void 0:c}return this._attrs.get(r)}hasAttribute(r){return"class"==r?this._classes.size>0:"style"==r?!this._styles.isEmpty:this._attrs.has(r)}isSimilar(r){if(!(r instanceof Xc))return!1;if(this===r)return!0;if(this.name!=r.name||this._attrs.size!==r._attrs.size||this._classes.size!==r._classes.size||this._styles.size!==r._styles.size)return!1;for(const[c,u]of this._attrs)if(!r._attrs.has(c)||r._attrs.get(c)!==u)return!1;for(const c of this._classes)if(!r._classes.has(c))return!1;for(const c of this._styles.getStyleNames())if(!r._styles.has(c)||r._styles.getAsString(c)!==this._styles.getAsString(c))return!1;return!0}hasClass(...r){for(const c of r)if(!this._classes.has(c))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(r){return this._styles.getAsString(r)}getNormalizedStyle(r){return this._styles.getNormalized(r)}getStyleNames(r){return this._styles.getStyleNames(r)}hasStyle(...r){for(const c of r)if(!this._styles.has(c))return!1;return!0}findAncestor(...r){const c=new ds(...r);let u=this.parent;for(;u&&!u.is("documentFragment");){if(c.match(u))return u;u=u.parent}return null}getCustomProperty(r){return this._customProperties.get(r)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const r=Array.from(this._classes).sort().join(","),c=this._styles.toString(),u=Array.from(this._attrs).map(_=>`${_[0]}="${_[1]}"`).sort().join(" ");return this.name+(""==r?"":` class="${r}"`)+(c?` style="${c}"`:"")+(""==u?"":` ${u}`)}shouldRenderUnsafeAttribute(r){return this._unsafeAttributesToRender.includes(r)}_clone(r=!1){const c=[];if(r)for(const _ of this.getChildren())c.push(_._clone(r));const u=new this.constructor(this.document,this.name,this._attrs,c);return u._classes=new Set(this._classes),u._styles.set(this._styles.getNormalized()),u._customProperties=new Map(this._customProperties),u.getFillerOffset=this.getFillerOffset,u._unsafeAttributesToRender=this._unsafeAttributesToRender,u}_appendChild(r){return this._insertChild(this.childCount,r)}_insertChild(r,c){this._fireChange("children",this);let u=0;const _=(C=this.document,"string"==typeof(M=c)?[new Eo(C,M)]:(et(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(C,E):E instanceof Ha?new Eo(C,E.data):E)));var C,M;for(const C of _)null!==C.parent&&C._remove(),C.parent=this,C.document=this.document,this._children.splice(r,0,C),r++,u++;return u}_removeChildren(r,c=1){this._fireChange("children",this);for(let u=r;u0&&(this._classes.clear(),!0):"style"==r?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(r)}_addClass(r){this._fireChange("attributes",this);for(const c of Ss(r))this._classes.add(c)}_removeClass(r){this._fireChange("attributes",this);for(const c of Ss(r))this._classes.delete(c)}_setStyle(r,c){this._fireChange("attributes",this),"string"!=typeof r?this._styles.set(r):this._styles.set(r,c)}_removeStyle(r){this._fireChange("attributes",this);for(const c of Ss(r))this._styles.remove(c)}_setCustomProperty(r,c){this._customProperties.set(r,c)}_removeCustomProperty(r){return this._customProperties.delete(r)}}function zf(m,r){const c=r.split(/\s+/);m.clear(),c.forEach(u=>m.add(u))}Xc.prototype.is=function(m,r){return r?r===this.name&&("element"===m||"view:element"===m):"element"===m||"view:element"===m||"node"===m||"view:node"===m};class xp extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=Bf}}function Bf(){const m=[...this.getChildren()],r=m[this.childCount-1];if(r&&r.is("element","br"))return this.childCount;for(const c of m)if(!c.is("uiElement"))return null;return this.childCount}xp.prototype.is=function(m,r){return r?r===this.name&&("containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class Fm extends(Ze(xp)){constructor(r,c,u,_){super(r,c,u,_),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(r),this.bind("isFocused").to(r,"isFocused",C=>C&&r.selection.editableElement==this),this.listenTo(r.selection,"change",()=>{this.isFocused=r.isFocused&&r.selection.editableElement==this})}destroy(){this.stopListening()}}Fm.prototype.is=function(m,r){return r?r===this.name&&("editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};const Nm=Symbol("rootName");class qm extends Fm{constructor(r,c){super(r,c),this.rootName="main"}get rootName(){return this.getCustomProperty(Nm)}set rootName(r){this._setCustomProperty(Nm,r)}set _name(r){this.name=r}}qm.prototype.is=function(m,r){return r?r===this.name&&("rootElement"===m||"view:rootElement"===m||"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"rootElement"===m||"view:rootElement"===m||"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class Kp{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new at("view-tree-walker-no-start-position",null);if(r.direction&&"forward"!=r.direction&&"backward"!=r.direction)throw new at("view-tree-walker-unknown-direction",r.startPosition,{direction:r.direction});this.boundaries=r.boundaries||null,this._position=Uo._createAt(r.startPosition?r.startPosition:r.boundaries["backward"==r.direction?"end":"start"]),this.direction=r.direction||"forward",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(r){let c,u;do{u=this.position,c=this.next()}while(!c.done&&r(c.value));c.done||(this._position=u)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let r=this.position.clone();const c=this.position,u=r.parent;if(null===u.parent&&r.offset===u.childCount)return{done:!0,value:void 0};if(u===this._boundaryEndParent&&r.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let _;if(u instanceof Eo){if(r.isAtEnd)return this._position=Uo._createAfter(u),this._next();_=u.data[r.offset]}else _=u.getChild(r.offset);if(_ instanceof Xc){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(r))return{done:!0,value:void 0};r.offset++}else r=new Uo(_,0);return this._position=r,this._formatReturnValue("elementStart",_,c,r,1)}if(_ instanceof Eo){if(this.singleCharacters)return r=new Uo(_,0),this._position=r,this._next();let C,M=_.data.length;return _==this._boundaryEndParent?(M=this.boundaries.end.offset,C=new Ha(_,0,M),r=Uo._createAfter(C)):(C=new Ha(_,0,_.data.length),r.offset++),this._position=r,this._formatReturnValue("text",C,c,r,M)}if("string"==typeof _){let C;C=this.singleCharacters?1:(u===this._boundaryEndParent?this.boundaries.end.offset:u.data.length)-r.offset;const M=new Ha(u,r.offset,C);return r.offset+=C,this._position=r,this._formatReturnValue("text",M,c,r,C)}return r=Uo._createAfter(u),this._position=r,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",u,c,r)}_previous(){let r=this.position.clone();const c=this.position,u=r.parent;if(null===u.parent&&0===r.offset)return{done:!0,value:void 0};if(u==this._boundaryStartParent&&r.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let _;if(u instanceof Eo){if(r.isAtStart)return this._position=Uo._createBefore(u),this._previous();_=u.data[r.offset-1]}else _=u.getChild(r.offset-1);if(_ instanceof Xc)return this.shallow?(r.offset--,this._position=r,this._formatReturnValue("elementStart",_,c,r,1)):(r=new Uo(_,_.childCount),this._position=r,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",_,c,r));if(_ instanceof Eo){if(this.singleCharacters)return r=new Uo(_,_.data.length),this._position=r,this._previous();let C,M=_.data.length;if(_==this._boundaryStartParent){const E=this.boundaries.start.offset;C=new Ha(_,E,_.data.length-E),M=C.data.length,r=Uo._createBefore(C)}else C=new Ha(_,0,_.data.length),r.offset--;return this._position=r,this._formatReturnValue("text",C,c,r,M)}if("string"==typeof _){let C;C=this.singleCharacters?1:r.offset-(u===this._boundaryStartParent?this.boundaries.start.offset:0),r.offset-=C;const M=new Ha(u,r.offset,C);return this._position=r,this._formatReturnValue("text",M,c,r,C)}return r=Uo._createBefore(u),this._position=r,this._formatReturnValue("elementStart",u,c,r,1)}_formatReturnValue(r,c,u,_,C){return c instanceof Ha&&(c.offsetInText+c.data.length==c.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?u=Uo._createAfter(c.textNode):(_=Uo._createAfter(c.textNode),this._position=_)),0===c.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?u=Uo._createBefore(c.textNode):(_=Uo._createBefore(c.textNode),this._position=_))),{done:!1,value:{type:r,item:c,previousPosition:u,nextPosition:_,length:C}}}}class Uo extends oi{constructor(r,c){super(),this.parent=r,this.offset=c}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const r=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===r}get root(){return this.parent.root}get editableElement(){let r=this.parent;for(;!(r instanceof Fm);){if(!r.parent)return null;r=r.parent}return r}getShiftedBy(r){const c=Uo._createAt(this),u=c.offset+r;return c.offset=u<0?0:u,c}getLastMatchingPosition(r,c={}){c.startPosition=this;const u=new Kp(c);return u.skip(r),u.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(r){const c=this.getAncestors(),u=r.getAncestors();let _=0;for(;c[_]==u[_]&&c[_];)_++;return 0===_?null:c[_-1]}isEqual(r){return this.parent==r.parent&&this.offset==r.offset}isBefore(r){return"before"==this.compareWith(r)}isAfter(r){return"after"==this.compareWith(r)}compareWith(r){if(this.root!==r.root)return"different";if(this.isEqual(r))return"same";const c=this.parent.is("node")?this.parent.getPath():[],u=r.parent.is("node")?r.parent.getPath():[];c.push(this.offset),u.push(r.offset);const _=tt(c,u);switch(_){case"prefix":return"before";case"extension":return"after";default:return c[_]0?new this(u,_):new this(_,u)}static _createIn(r){return this._createFromParentsAndOffsets(r,0,r,r.childCount)}static _createOn(r){const c=r.is("$textProxy")?r.offsetSize:1;return this._createFromPositionAndShift(Uo._createBefore(r),c)}}function Us(m){return!(!m.item.is("attributeElement")&&!m.item.is("uiElement"))}Za.prototype.is=function(m){return"range"===m||"view:range"===m};class ju extends(Ne(oi)){constructor(...r){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",r.length&&this.setTo(...r)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.end:r.start).clone()}get focus(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.start:r.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const r of this._ranges)yield r.clone()}getFirstRange(){let r=null;for(const c of this._ranges)r&&!c.start.isBefore(r.start)||(r=c);return r?r.clone():null}getLastRange(){let r=null;for(const c of this._ranges)r&&!c.end.isAfter(r.end)||(r=c);return r?r.clone():null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}isEqual(r){if(this.isFake!=r.isFake||this.isFake&&this.fakeSelectionLabel!=r.fakeSelectionLabel||this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const c of this._ranges){let u=!1;for(const _ of r._ranges)if(c.isEqual(_)){u=!0;break}if(!u)return!1}return!0}isSimilar(r){if(this.isBackward!=r.isBackward)return!1;const c=xt(this.getRanges());if(c!=xt(r.getRanges()))return!1;if(0==c)return!0;for(let u of this.getRanges()){u=u.getTrimmed();let _=!1;for(let C of r.getRanges())if(C=C.getTrimmed(),u.start.isEqual(C.start)&&u.end.isEqual(C.end)){_=!0;break}if(!_)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...r){let[c,u,_]=r;if("object"==typeof u&&(_=u,u=void 0),null===c)this._setRanges([]),this._setFakeOptions(_);else if(c instanceof ju||c instanceof P_)this._setRanges(c.getRanges(),c.isBackward),this._setFakeOptions({fake:c.isFake,label:c.fakeSelectionLabel});else if(c instanceof Za)this._setRanges([c],_&&_.backward),this._setFakeOptions(_);else if(c instanceof Uo)this._setRanges([new Za(c)]),this._setFakeOptions(_);else if(c instanceof Ro){const C=!!_&&!!_.backward;let M;if(void 0===u)throw new at("view-selection-setto-required-second-parameter",this);M="in"==u?Za._createIn(c):"on"==u?Za._createOn(c):new Za(Uo._createAt(c,u)),this._setRanges([M],C),this._setFakeOptions(_)}else{if(!et(c))throw new at("view-selection-setto-not-selectable",this);this._setRanges(c,_&&_.backward),this._setFakeOptions(_)}this.fire("change")}setFocus(r,c){if(null===this.anchor)throw new at("view-selection-setfocus-no-ranges",this);const u=Uo._createAt(r,c);if("same"==u.compareWith(this.focus))return;const _=this.anchor;this._ranges.pop(),"before"==u.compareWith(_)?this._addRange(new Za(u,_),!0):this._addRange(new Za(_,u)),this.fire("change")}_setRanges(r,c=!1){r=Array.from(r),this._ranges=[];for(const u of r)this._addRange(u);this._lastRangeBackward=!!c}_setFakeOptions(r={}){this._isFake=!!r.fake,this._fakeSelectionLabel=r.fake&&r.label||""}_addRange(r,c=!1){if(!(r instanceof Za))throw new at("view-selection-add-range-not-range",this);this._pushRange(r),this._lastRangeBackward=!!c}_pushRange(r){for(const c of this._ranges)if(r.isIntersecting(c))throw new at("view-selection-range-intersects",this,{addedRange:r,intersectingRange:c});this._ranges.push(new Za(r.start,r.end))}}ju.prototype.is=function(m){return"selection"===m||"view:selection"===m};class P_ extends(Ne(oi)){constructor(...r){super(),this._selection=new ju,this._selection.delegate("change").to(this),r.length&&this._selection.setTo(...r)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(r){return this._selection.isEqual(r)}isSimilar(r){return this._selection.isSimilar(r)}_setTo(...r){this._selection.setTo(...r)}_setFocus(r,c){this._selection.setFocus(r,c)}}P_.prototype.is=function(m){return"selection"===m||"documentSelection"==m||"view:selection"==m||"view:documentSelection"==m};class Cp extends ct{constructor(r,c,u){super(r,c),this.startRange=u,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const Rm=Symbol("bubbling contexts");function Ad(m){return class extends m{fire(r,...c){try{const u=r instanceof ct?r:new ct(this,r),_=Yf(this);if(!_.size)return;if(ps(u,"capturing",this),oe(_,"$capture",u,...c))return u.return;const C=u.startRange||this.selection.getFirstRange(),M=C?C.getContainedElement():null,E=!!M&&Boolean(Eg(_,M));let N=M||function(j){if(!j)return null;const K=j.start.parent,dt=j.end.parent,Dt=K.getPath(),me=dt.getPath();return Dt.length>me.length?K:dt}(C);if(ps(u,"atTarget",N),!E){if(oe(_,"$text",u,...c))return u.return;ps(u,"bubbling",N)}for(;N;){if(N.is("rootElement")){if(oe(_,"$root",u,...c))return u.return}else if(N.is("element")&&oe(_,N.name,u,...c))return u.return;if(oe(_,N,u,...c))return u.return;N=N.parent,ps(u,"bubbling",N)}return ps(u,"bubbling",this),oe(_,"$document",u,...c),u.return}catch(u){at.rethrowUnexpectedError(u,this)}}_addEventListener(r,c,u){const _=Ss(u.context||"$document"),C=Yf(this);for(const M of _){let E=C.get(M);E||(E=new(Ne()),C.set(M,E)),this.listenTo(E,r,c,u)}}_removeEventListener(r,c){const u=Yf(this);for(const _ of u.values())this.stopListening(_,r,c)}}}{const m=Ad(Object);["fire","_addEventListener","_removeEventListener"].forEach(r=>{Ad[r]=m.prototype[r]})}function ps(m,r,c){m instanceof Cp&&(m._eventPhase=r,m._currentTarget=c)}function oe(m,r,c,...u){const _="string"==typeof r?m.get(r):Eg(m,r);return!!_&&(_.fire(c,...u),c.stop.called)}function Eg(m,r){for(const[c,u]of m)if("function"==typeof c&&c(r))return u;return null}function Yf(m){return m[Rm]||(m[Rm]=new Map),m[Rm]}class Xp extends(Ad(Ze())){constructor(r){super(),this._postFixers=new Set,this.selection=new P_,this.roots=new ec({idProperty:"rootName"}),this.stylesProcessor=r,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(r="main"){return this.roots.get(r)}registerPostFixer(r){this._postFixers.add(r)}destroy(){this.roots.map(r=>r.destroy()),this.stopListening()}_callPostFixers(r){let c=!1;do{for(const u of this._postFixers)if(c=u(r),c)break}while(c)}}class tm extends Xc{constructor(r,c,u,_){super(r,c,u,_),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=A1}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new at("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(r){return null!==this.id||null!==r.id?this.id===r.id:super.isSimilar(r)&&this.priority==r.priority}_clone(r=!1){const c=super._clone(r);return c._priority=this._priority,c._id=this._id,c}}function A1(){if(E2(this))return null;let m=this.parent;for(;m&&m.is("attributeElement");){if(E2(m)>1)return null;m=m.parent}return!m||E2(m)>1?null:this.childCount}function E2(m){return Array.from(m.getChildren()).filter(r=>!r.is("uiElement")).length}tm.DEFAULT_PRIORITY=10,tm.prototype.is=function(m,r){return r?r===this.name&&("attributeElement"===m||"view:attributeElement"===m||"element"===m||"view:element"===m):"attributeElement"===m||"view:attributeElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class I2 extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=Ig}_insertChild(r,c){if(c&&(c instanceof Ro||Array.from(c).length>0))throw new at("view-emptyelement-cannot-add",[this,c]);return 0}}function Ig(){return null}I2.prototype.is=function(m,r){return r?r===this.name&&("emptyElement"===m||"view:emptyElement"===m||"element"===m||"view:element"===m):"emptyElement"===m||"view:emptyElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class S_ extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=jr}_insertChild(r,c){if(c&&(c instanceof Ro||Array.from(c).length>0))throw new at("view-uielement-cannot-add",[this,c]);return 0}render(r,c){return this.toDomElement(r)}toDomElement(r){const c=r.createElement(this.name);for(const u of this.getAttributeKeys())c.setAttribute(u,this.getAttribute(u));return c}}function jr(){return null}S_.prototype.is=function(m,r){return r?r===this.name&&("uiElement"===m||"view:uiElement"===m||"element"===m||"view:element"===m):"uiElement"===m||"view:uiElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class yd extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=L_}_insertChild(r,c){if(c&&(c instanceof Ro||Array.from(c).length>0))throw new at("view-rawelement-cannot-add",[this,c]);return 0}render(r,c){}}function L_(){return null}yd.prototype.is=function(m,r){return r?r===this.name&&("rawElement"===m||"view:rawElement"===m||"element"===m||"view:element"===m):"rawElement"===m||"view:rawElement"===m||m===this.name||m==="view:"+this.name||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class Td extends(Ne(oi)){constructor(r,c){super(),this._children=[],this._customProperties=new Map,this.document=r,c&&this._insertChild(0,c)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}get name(){}getCustomProperty(r){return this._customProperties.get(r)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(r){return this._insertChild(this.childCount,r)}getChild(r){return this._children[r]}getChildIndex(r){return this._children.indexOf(r)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(r,c){this._fireChange("children",this);let u=0;const _=(C=this.document,"string"==typeof(M=c)?[new Eo(C,M)]:(et(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(C,E):E instanceof Ha?new Eo(C,E.data):E)));var C,M;for(const C of _)null!==C.parent&&C._remove(),C.parent=this,this._children.splice(r,0,C),r++,u++;return u}_removeChildren(r,c=1){this._fireChange("children",this);for(let u=r;u{const N=M[M.length-1],j=!E.is("uiElement");return N&&N.breakAttributes==j?N.nodes.push(E):M.push({breakAttributes:j,nodes:[E]}),M},[]);let _=null,C=r;for(const{nodes:M,breakAttributes:E}of u){const N=this._insertNodes(C,M,E);_||(_=N.start),C=N.end}return _?new Za(_,C):new Za(r)}remove(r){const c=r instanceof Za?r:Za._createOn(r);if(Ap(c,this.document),c.isCollapsed)return new Td(this.document);const{start:u,end:_}=this._breakAttributesRange(c,!0),E=u.parent._removeChildren(u.offset,_.offset-u.offset);for(const j of E)this._removeFromClonedElementsGroup(j);const N=this.mergeAttributes(u);return c.start=N,c.end=N.clone(),new Td(this.document,E)}clear(r,c){Ap(r,this.document);const u=r.getWalker({direction:"backward",ignoreElementEnd:!0});for(const _ of u){const C=_.item;let M;if(C.is("element")&&c.isSimilar(C))M=Za._createOn(C);else if(!_.nextPosition.isAfter(r.start)&&C.is("$textProxy")){const E=C.getAncestors().find(N=>N.is("element")&&c.isSimilar(N));E&&(M=Za._createIn(E))}M&&(M.end.isAfter(r.end)&&(M.end=r.end),M.start.isBefore(r.start)&&(M.start=r.start),this.remove(M))}}move(r,c){let u;if(c.isAfter(r.end)){const _=(c=this._breakAttributes(c,!0)).parent,C=_.childCount;r=this._breakAttributesRange(r,!0),u=this.remove(r),c.offset+=_.childCount-C}else u=this.remove(r);return this.insert(c,u)}wrap(r,c){if(!(c instanceof tm))throw new at("view-writer-wrap-invalid-attribute",this.document);if(Ap(r,this.document),r.isCollapsed){let _=r.start;_.parent.is("element")&&!Array.from(_.parent.getChildren()).some(M=>!M.is("uiElement"))&&(_=_.getLastMatchingPosition(M=>M.item.is("uiElement"))),_=this._wrapPosition(_,c);const C=this.document.selection;return C.isCollapsed&&C.getFirstPosition().isEqual(r.start)&&this.setSelection(_),new Za(_)}return this._wrapRange(r,c)}unwrap(r,c){if(!(c instanceof tm))throw new at("view-writer-unwrap-invalid-attribute",this.document);if(Ap(r,this.document),r.isCollapsed)return r;const{start:u,end:_}=this._breakAttributesRange(r,!0),M=this._unwrapChildren(u.parent,u.offset,_.offset,c),E=this.mergeAttributes(M.start);E.isEqual(M.start)||M.end.offset--;const N=this.mergeAttributes(M.end);return new Za(E,N)}rename(r,c){const u=new xp(this.document,r,c.getAttributes());return this.insert(Uo._createAfter(c),u),this.move(Za._createIn(c),Uo._createAt(u,0)),this.remove(Za._createOn(c)),u}clearClonedElementsGroup(r){this._cloneGroups.delete(r)}createPositionAt(r,c){return Uo._createAt(r,c)}createPositionAfter(r){return Uo._createAfter(r)}createPositionBefore(r){return Uo._createBefore(r)}createRange(r,c){return new Za(r,c)}createRangeOn(r){return Za._createOn(r)}createRangeIn(r){return Za._createIn(r)}createSelection(...r){return new ju(...r)}createSlot(r="children"){if(!this._slotFactory)throw new at("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,r)}_registerSlotFactory(r){this._slotFactory=r}_clearSlotFactory(){this._slotFactory=null}_insertNodes(r,c,u){let _,C;if(_=u?ms(r):r.parent.is("$text")?r.parent.parent:r.parent,!_)throw new at("view-writer-invalid-position-container",this.document);C=u?this._breakAttributes(r,!0):r.parent.is("$text")?Zc(r):r;const M=_._insertChild(C.offset,c);for(const K of c)this._addToClonedElementsGroup(K);const E=C.getShiftedBy(M),N=this.mergeAttributes(C);N.isEqual(C)||E.offset--;const j=this.mergeAttributes(E);return new Za(N,j)}_wrapChildren(r,c,u,_){let C=c;const M=[];for(;C!1,r.parent._insertChild(r.offset,u);const _=new Za(r,r.getShiftedBy(1));this.wrap(_,c);const C=new Uo(u.parent,u.index);u._remove();const M=C.nodeBefore,E=C.nodeAfter;return M instanceof Eo&&E instanceof Eo?Cr(M,E):Xo(C)}_wrapAttributeElement(r,c){if(!dc(r,c)||r.name!==c.name||r.priority!==c.priority)return!1;for(const u of r.getAttributeKeys())if("class"!==u&&"style"!==u&&c.hasAttribute(u)&&c.getAttribute(u)!==r.getAttribute(u))return!1;for(const u of r.getStyleNames())if(c.hasStyle(u)&&c.getStyle(u)!==r.getStyle(u))return!1;for(const u of r.getAttributeKeys())"class"!==u&&"style"!==u&&(c.hasAttribute(u)||this.setAttribute(u,r.getAttribute(u),c));for(const u of r.getStyleNames())c.hasStyle(u)||this.setStyle(u,r.getStyle(u),c);for(const u of r.getClassNames())c.hasClass(u)||this.addClass(u,c);return!0}_unwrapAttributeElement(r,c){if(!dc(r,c)||r.name!==c.name||r.priority!==c.priority)return!1;for(const u of r.getAttributeKeys())if("class"!==u&&"style"!==u&&(!c.hasAttribute(u)||c.getAttribute(u)!==r.getAttribute(u)))return!1;if(!c.hasClass(...r.getClassNames()))return!1;for(const u of r.getStyleNames())if(!c.hasStyle(u)||c.getStyle(u)!==r.getStyle(u))return!1;for(const u of r.getAttributeKeys())"class"!==u&&"style"!==u&&this.removeAttribute(u,c);return this.removeClass(Array.from(r.getClassNames()),c),this.removeStyle(Array.from(r.getStyleNames()),c),!0}_breakAttributesRange(r,c=!1){const u=r.start,_=r.end;if(Ap(r,this.document),r.isCollapsed){const N=this._breakAttributes(r.start,c);return new Za(N,N)}const C=this._breakAttributes(_,c),M=C.parent.childCount,E=this._breakAttributes(u,c);return C.offset+=C.parent.childCount-M,new Za(E,C)}_breakAttributes(r,c=!1){const u=r.offset,_=r.parent;if(r.parent.is("emptyElement"))throw new at("view-writer-cannot-break-empty-element",this.document);if(r.parent.is("uiElement"))throw new at("view-writer-cannot-break-ui-element",this.document);if(r.parent.is("rawElement"))throw new at("view-writer-cannot-break-raw-element",this.document);if(!c&&_.is("$text")&&jd(_.parent)||jd(_))return r.clone();if(_.is("$text"))return this._breakAttributes(Zc(r),c);if(u==_.childCount){const C=new Uo(_.parent,_.index+1);return this._breakAttributes(C,c)}if(0===u){const C=new Uo(_.parent,_.index);return this._breakAttributes(C,c)}{const C=_.index+1,M=_._clone();_.parent._insertChild(C,M),this._addToClonedElementsGroup(M);const N=_._removeChildren(u,_.childCount-u);M._appendChild(N);const j=new Uo(_.parent,C);return this._breakAttributes(j,c)}}_addToClonedElementsGroup(r){if(!r.root.is("rootElement"))return;if(r.is("element"))for(const _ of r.getChildren())this._addToClonedElementsGroup(_);const c=r.id;if(!c)return;let u=this._cloneGroups.get(c);u||(u=new Set,this._cloneGroups.set(c,u)),u.add(r),r._clonesGroup=u}_removeFromClonedElementsGroup(r){if(r.is("element"))for(const _ of r.getChildren())this._removeFromClonedElementsGroup(_);const c=r.id;if(!c)return;const u=this._cloneGroups.get(c);u&&u.delete(r)}}function ms(m){let r=m.parent;for(;!jd(r);){if(!r)return;r=r.parent}return r}function Bs(m,r){return m.priorityr.priority)&&m.getIdentity()c instanceof u))throw new at("view-writer-insert-invalid-node-type",r);c.is("$text")||tl(c.getChildren(),r)}}function jd(m){return m&&(m.is("containerElement")||m.is("documentFragment"))}function Ap(m,r){const c=ms(m.start),u=ms(m.end);if(!c||!u||c!==u)throw new at("view-writer-invalid-range-container",r)}function dc(m,r){return null===m.id&&null===r.id}const R1=m=>m.createTextNode("\xa0"),Fg=m=>{const r=m.createElement("span");return r.dataset.ckeFiller="true",r.innerText="\xa0",r},O_=m=>{const r=m.createElement("br");return r.dataset.ckeFiller="true",r},H1="\u2060".repeat(7);function Pu(m){return"string"==typeof m?m.substr(0,7)===H1:fe(m)&&m.data.substr(0,7)===H1}function zm(m){return 7==m.data.length&&Pu(m)}function F2(m){const r="string"==typeof m?m:m.data;return Pu(m)?r.slice(7):r}function Pl(m,r){if(r.keyCode==Ka.arrowleft){const c=r.domTarget.ownerDocument.defaultView.getSelection();if(1==c.rangeCount&&c.getRangeAt(0).collapsed){const u=c.getRangeAt(0).startContainer,_=c.getRangeAt(0).startOffset;Pu(u)&&_<=7&&c.collapse(u,0)}}}var Gl=v(9315);Fo()(Gl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class q2 extends(Ze()){constructor(r,c){super(),this.domDocuments=new Set,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this._inlineFiller=null,this._fakeSelectionContainer=null,this.domConverter=r,this.selection=c,this.set("isFocused",!1),this.set("isSelecting",!1),D_isBlink&&!D_isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()})}markToSync(r,c){if("text"===r)this.domConverter.mapViewToDom(c.parent)&&this.markedTexts.add(c);else{if(!this.domConverter.mapViewToDom(c))return;if("attributes"===r)this.markedAttributes.add(c);else{if("children"!==r)throw new at("view-renderer-unknown-type",this);this.markedChildren.add(c)}}}render(){if(this.isComposing&&!D_isAndroid)return;let r=null;const c=!(D_isBlink&&!D_isAndroid&&this.isSelecting);for(const u of this.markedChildren)this._updateChildrenMappings(u);c?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?r=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(r=this.selection.getFirstPosition(),this.markedChildren.add(r.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(r=this.domConverter.domPositionToView(this._inlineFiller),r&&r.parent.is("$text")&&(r=Uo._createBefore(r.parent)));for(const u of this.markedAttributes)this._updateAttrs(u);for(const u of this.markedChildren)this._updateChildren(u,{inlineFillerPosition:r});for(const u of this.markedTexts)!this.markedChildren.has(u.parent)&&this.domConverter.mapViewToDom(u.parent)&&this._updateText(u,{inlineFillerPosition:r});if(c)if(r){const u=this.domConverter.viewPositionToDom(r),_=u.parent.ownerDocument;this._inlineFiller=Pu(u.parent)?u.parent:Gu(_,u.parent,u.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const u=Array.from(c.childNodes),_=Array.from(this.domConverter.viewChildrenToDom(r,{withChildren:!1})),C=this._diffNodeLists(u,_),M=this._findUpdateActions(C,u,_,F3);if(-1!==M.indexOf("update")){const E={equal:0,insert:0,delete:0};for(const N of M)if("update"===N){const j=E.equal+E.insert,K=E.equal+E.delete,dt=r.getChild(j);!dt||dt.is("uiElement")||dt.is("rawElement")||this._updateElementMappings(dt,u[K]),ns(_[j]),E.equal++}else E[N]++}}_updateElementMappings(r,c){this.domConverter.unbindDomElement(c),this.domConverter.bindElements(c,r),this.markedChildren.add(r),this.markedAttributes.add(r)}_getInlineFillerPosition(){const r=this.selection.getFirstPosition();return r.parent.is("$text")?Uo._createBefore(r.parent):r}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),c=this.domConverter.viewPositionToDom(r);return!!(c&&fe(c.parent)&&Pu(c.parent))}_removeInlineFiller(){const r=this._inlineFiller;if(!Pu(r))throw new at("view-renderer-filler-was-lost",this);zm(r)?r.remove():r.data=r.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),c=r.parent,u=r.offset;if(!this.domConverter.mapViewToDom(c.root)||!c.is("element")||!function(M){if("false"==M.getAttribute("contenteditable"))return!1;const E=M.findAncestor(N=>N.hasAttribute("contenteditable"));return!E||"true"==E.getAttribute("contenteditable")}(c)||u===c.getFillerOffset())return!1;const _=r.nodeBefore,C=r.nodeAfter;return!(_ instanceof Eo||C instanceof Eo||D_isAndroid&&(_||C))}_updateText(r,c){const u=this.domConverter.findCorrespondingDomText(r);let _=this.domConverter.viewToDom(r).data;const C=c.inlineFillerPosition;C&&C.parent==r.parent&&C.offset==r.index&&(_=H1+_),yp(u,_)}_updateAttrs(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const u=Array.from(c.attributes).map(C=>C.name),_=r.getAttributeKeys();for(const C of _)this.domConverter.setDomElementAttribute(c,C,r.getAttribute(C),r);for(const C of u)r.hasAttribute(C)||this.domConverter.removeDomElementAttribute(c,C)}_updateChildren(r,c){const u=this.domConverter.mapViewToDom(r);if(!u)return;if(D_isAndroid){let dt=null;for(const Dt of Array.from(u.childNodes)){if(dt&&fe(dt)&&fe(Dt)){u.normalize();break}dt=Dt}}const _=c.inlineFillerPosition,C=u.childNodes,M=Array.from(this.domConverter.viewChildrenToDom(r,{bind:!0}));_&&_.parent===r&&Gu(u.ownerDocument,M,_.offset);const E=this._diffNodeLists(C,M),N=this._findUpdateActions(E,C,M,E_);let j=0;const K=new Set;for(const dt of N)"delete"===dt?(K.add(C[j]),ns(C[j])):"equal"!==dt&&"update"!==dt||j++;j=0;for(const dt of N)"insert"===dt?(yo(u,j,M[j]),j++):"update"===dt?(yp(C[j],M[j].data),j++):"equal"===dt&&(this._markDescendantTextToSync(this.domConverter.domToView(M[j])),j++);for(const dt of K)dt.parentNode||this.domConverter.unbindDomElement(dt)}_diffNodeLists(r,c){return W(r=function(u,_){const C=Array.from(u);return 0==C.length||!_||C[C.length-1]==_&&C.pop(),C}(r,this._fakeSelectionContainer),c,I_.bind(null,this.domConverter))}_findUpdateActions(r,c,u,_){if(-1===r.indexOf("insert")||-1===r.indexOf("delete"))return r;let C=[],M=[],E=[];const N={equal:0,insert:0,delete:0};for(const j of r)"insert"===j?E.push(u[N.equal+N.insert]):"delete"===j?M.push(c[N.equal+N.delete]):(C=C.concat(W(M,E,_).map(K=>"equal"===K?"update":K)),C.push("equal"),M=[],E=[]),N[j]++;return C.concat(W(M,E,_).map(j=>"equal"===j?"update":j))}_markDescendantTextToSync(r){if(r)if(r.is("$text"))this.markedTexts.add(r);else if(r.is("element"))for(const c of r.getChildren())this._markDescendantTextToSync(c)}_updateSelection(){if(D_isBlink&&!D_isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const r=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&r&&(this.selection.isFake?this._updateFakeSelection(r):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(r)):this.isComposing&&D_isAndroid||this._updateDomSelection(r))}_updateFakeSelection(r){const c=r.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(M){const E=M.createElement("div");return E.className="ck-fake-selection-container",Object.assign(E.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),E.textContent="\xa0",E}(c));const u=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(u,this.selection),!this._fakeSelectionNeedsUpdate(r))return;u.parentElement&&u.parentElement==r||r.appendChild(u),u.textContent=this.selection.fakeSelectionLabel||"\xa0";const _=c.getSelection(),C=c.createRange();_.removeAllRanges(),C.selectNodeContents(u),_.addRange(C)}_updateDomSelection(r){const c=r.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(c))return;const u=this.domConverter.viewPositionToDom(this.selection.anchor),_=this.domConverter.viewPositionToDom(this.selection.focus);c.setBaseAndExtent(u.parent,u.offset,_.parent,_.offset),D_isGecko&&function(C,M){const E=C.parent;if(E.nodeType!=Node.ELEMENT_NODE||C.offset!=E.childNodes.length-1)return;const N=E.childNodes[C.offset];N&&"BR"==N.tagName&&M.addRange(M.getRangeAt(0))}(_,c)}_domSelectionNeedsUpdate(r){if(!this.domConverter.isDomSelectionCorrect(r))return!0;const c=r&&this.domConverter.domSelectionToView(r);return!(c&&this.selection.isEqual(c)||!this.selection.isCollapsed&&this.selection.isSimilar(c))}_fakeSelectionNeedsUpdate(r){const c=this._fakeSelectionContainer,u=r.ownerDocument.getSelection();return!c||c.parentElement!==r||u.anchorNode!==c&&!c.contains(u.anchorNode)||c.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const r of this.domDocuments){const c=r.getSelection();if(c.rangeCount){const u=r.activeElement,_=this.domConverter.mapDomToView(u);u&&_&&c.removeAllRanges()}}}_removeFakeSelection(){const r=this._fakeSelectionContainer;r&&r.remove()}_updateFocus(){if(this.isFocused){const r=this.selection.editableElement;r&&this.domConverter.focus(r)}}}function Gu(m,r,c){const u=r instanceof Array?r:r.childNodes,_=u[c];if(fe(_))return _.data=H1+_.data,_;{const C=m.createTextNode(H1);return Array.isArray(r)?u.splice(c,0,C):yo(r,c,C),C}}function F3(m,r){return xe(m)&&xe(r)&&!fe(m)&&!fe(r)&&!ga(m)&&!ga(r)&&m.tagName.toLowerCase()===r.tagName.toLowerCase()}function E_(m,r){return xe(m)&&xe(r)&&fe(m)&&fe(r)}function I_(m,r,c){return r===c||(fe(r)&&fe(c)?r.data===c.data:!(!m.isBlockFiller(r)||!m.isBlockFiller(c)))}function yp(m,r){const c=m.data;if(c==r)return;const u=I(c,r);for(const _ of u)"insert"===_.type?m.insertData(_.index,_.values.join("")):m.deleteData(_.index,_.howMany)}const N3=O_(Lt.document),y1=R1(Lt.document),Jd=Fg(Lt.document),F_="data-ck-unsafe-attribute-",Vf="data-ck-unsafe-element";class N_{constructor(r,{blockFillerMode:c,renderingMode:u="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new ds,this._inlineObjectElementMatcher=new ds,this.document=r,this.renderingMode=u,this.blockFillerMode=c||("editing"===u?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?Lt.document:Lt.document.implementation.createHTMLDocument("")}bindFakeSelection(r,c){this._fakeSelectionMapping.set(r,new ju(c))}fakeSelectionToView(r){return this._fakeSelectionMapping.get(r)}bindElements(r,c){this._domToViewMapping.set(r,c),this._viewToDomMapping.set(c,r)}unbindDomElement(r){const c=this._domToViewMapping.get(r);if(c){this._domToViewMapping.delete(r),this._viewToDomMapping.delete(c);for(const u of Array.from(r.children))this.unbindDomElement(u)}}bindDocumentFragments(r,c){this._domToViewMapping.set(r,c),this._viewToDomMapping.set(c,r)}shouldRenderAttribute(r,c,u){return"data"===this.renderingMode||!(r=r.toLowerCase()).startsWith("on")&&("srcdoc"!==r||!c.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===u&&("src"===r||"srcset"===r)||"source"===u&&"srcset"===r||!c.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(r,c){if("data"===this.renderingMode)return void(r.innerHTML=c);const u=(new DOMParser).parseFromString(c,"text/html"),_=u.createDocumentFragment(),C=u.body.childNodes;for(;C.length>0;)_.appendChild(C[0]);const M=u.createTreeWalker(_,NodeFilter.SHOW_ELEMENT),E=[];let N;for(;N=M.nextNode();)E.push(N);for(const j of E){for(const dt of j.getAttributeNames())this.setDomElementAttribute(j,dt,j.getAttribute(dt));const K=j.tagName.toLowerCase();this._shouldRenameElement(K)&&(Tp(K),j.replaceWith(this._createReplacementDomElement(K,j)))}for(;r.firstChild;)r.firstChild.remove();r.append(_)}viewToDom(r,c={}){if(r.is("$text")){const u=this._processDataFromViewText(r);return this._domDocument.createTextNode(u)}{if(this.mapViewToDom(r))return this.mapViewToDom(r);let u;if(r.is("documentFragment"))u=this._domDocument.createDocumentFragment(),c.bind&&this.bindDocumentFragments(u,r);else{if(r.is("uiElement"))return u="$comment"===r.name?this._domDocument.createComment(r.getCustomProperty("$rawContent")):r.render(this._domDocument,this),c.bind&&this.bindElements(u,r),u;this._shouldRenameElement(r.name)?(Tp(r.name),u=this._createReplacementDomElement(r.name)):u=r.hasAttribute("xmlns")?this._domDocument.createElementNS(r.getAttribute("xmlns"),r.name):this._domDocument.createElement(r.name),r.is("rawElement")&&r.render(u,this),c.bind&&this.bindElements(u,r);for(const _ of r.getAttributeKeys())this.setDomElementAttribute(u,_,r.getAttribute(_),r)}if(!1!==c.withChildren)for(const _ of this.viewChildrenToDom(r,c))u.appendChild(_);return u}}setDomElementAttribute(r,c,u,_){const C=this.shouldRenderAttribute(c,u,r.tagName.toLowerCase())||_&&_.shouldRenderUnsafeAttribute(c);C||Zt("domconverter-unsafe-attribute-detected",{domElement:r,key:c,value:u}),function(M){try{Lt.document.createAttribute(M)}catch{return!1}return!0}(c)?(r.hasAttribute(c)&&!C?r.removeAttribute(c):r.hasAttribute(F_+c)&&C&&r.removeAttribute(F_+c),r.setAttribute(C?c:F_+c,u)):Zt("domconverter-invalid-attribute-detected",{domElement:r,key:c,value:u})}removeDomElementAttribute(r,c){c!=Vf&&(r.removeAttribute(c),r.removeAttribute(F_+c))}*viewChildrenToDom(r,c={}){const u=r.getFillerOffset&&r.getFillerOffset();let _=0;for(const C of r.getChildren()){u===_&&(yield this._getBlockFiller());const M=C.is("element")&&!!C.getCustomProperty("dataPipeline:transparentRendering")&&!os(C.getAttributes());M&&"data"==this.renderingMode?yield*this.viewChildrenToDom(C,c):(M&&Zt("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:C}),yield this.viewToDom(C,c)),_++}u===_&&(yield this._getBlockFiller())}viewRangeToDom(r){const c=this.viewPositionToDom(r.start),u=this.viewPositionToDom(r.end),_=this._domDocument.createRange();return _.setStart(c.parent,c.offset),_.setEnd(u.parent,u.offset),_}viewPositionToDom(r){const c=r.parent;if(c.is("$text")){const u=this.findCorrespondingDomText(c);if(!u)return null;let _=r.offset;return Pu(u)&&(_+=7),{parent:u,offset:_}}{let u,_,C;if(0===r.offset){if(u=this.mapViewToDom(c),!u)return null;C=u.childNodes[0]}else{const M=r.nodeBefore;if(_=M.is("$text")?this.findCorrespondingDomText(M):this.mapViewToDom(M),!_)return null;u=_.parentNode,C=_.nextSibling}return fe(C)&&Pu(C)?{parent:C,offset:7}:{parent:u,offset:_?xo(_)+1:0}}}domToView(r,c={}){const u=[],_=this._domToView(r,c,u),C=_.next().value;return C?(_.next(),this._processDomInlineNodes(null,u,c),C.is("$text")&&0==C.data.length?null:C):null}*domChildrenToView(r,c={},u=[]){for(let _=0;_{const{scrollLeft:E,scrollTop:N}=M;C.push([E,N])}),c.focus(),q3(c,M=>{const[E,N]=C.shift();M.scrollLeft=E,M.scrollTop=N}),Lt.window.scrollTo(u,_)}}_clearDomSelection(){const r=this.mapViewToDom(this.document.selection.editableElement);if(!r)return;const c=r.ownerDocument.defaultView.getSelection(),u=this.domSelectionToView(c);u&&u.rangeCount>0&&c.removeAllRanges()}isElement(r){return r&&r.nodeType==Node.ELEMENT_NODE}isDocumentFragment(r){return r&&r.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(r){return"br"==this.blockFillerMode?r.isEqualNode(N3):!("BR"!==r.tagName||!z1(r,this.blockElements)||1!==r.parentNode.childNodes.length)||r.isEqualNode(Jd)||(u=this.blockElements,(c=r).isEqualNode(y1)&&z1(c,u)&&1===c.parentNode.childNodes.length);var c,u}isDomSelectionBackward(r){if(r.isCollapsed)return!1;const c=this._domDocument.createRange();try{c.setStart(r.anchorNode,r.anchorOffset),c.setEnd(r.focusNode,r.focusOffset)}catch{return!1}const u=c.collapsed;return c.detach(),u}getHostViewElement(r){const c=function(u){const _=[];let C=u;for(;C&&C.nodeType!=Node.DOCUMENT_NODE;)_.unshift(C),C=C.parentNode;return _}(r);for(c.pop();c.length;){const u=c.pop(),_=this._domToViewMapping.get(u);if(_&&(_.is("uiElement")||_.is("rawElement")))return _}return null}isDomSelectionCorrect(r){return this._isDomSelectionPositionCorrect(r.anchorNode,r.anchorOffset)&&this._isDomSelectionPositionCorrect(r.focusNode,r.focusOffset)}registerRawContentMatcher(r){this._rawContentElementMatcher.add(r)}registerInlineObjectMatcher(r){this._inlineObjectElementMatcher.add(r)}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return R1(this._domDocument);case"markedNbsp":return Fg(this._domDocument);case"br":return O_(this._domDocument)}}_isDomSelectionPositionCorrect(r,c){if(fe(r)&&Pu(r)&&c<7||this.isElement(r)&&Pu(r.childNodes[c]))return!1;const u=this.mapDomToView(r);return!u||!u.is("uiElement")&&!u.is("rawElement")}*_domToView(r,c,u){if(this.isBlockFiller(r))return null;const _=this.getHostViewElement(r);if(_)return _;if(ga(r)&&c.skipComments)return null;if(fe(r)){if(zm(r))return null;{const C=r.data;if(""===C)return null;const M=new Eo(this.document,C);return u.push(M),M}}{let C=this.mapDomToView(r);if(C)return this._isInlineObjectElement(C)&&u.push(C),C;if(this.isDocumentFragment(r))C=new Td(this.document),c.bind&&this.bindDocumentFragments(r,C);else{C=this._createViewElement(r,c),c.bind&&this.bindElements(r,C);const E=r.attributes;if(E)for(let N=E.length,j=0;j0?c[C-1]:null,K=C+1this.preElements.includes(u.name)))return c;if(" "==c.charAt(0)){const u=this._getTouchingInlineViewNode(r,!1);!(u&&u.is("$textProxy")&&this._nodeEndsWithSpace(u))&&u||(c="\xa0"+c.substr(1))}if(" "==c.charAt(c.length-1)){const u=this._getTouchingInlineViewNode(r,!0),_=u&&u.is("$textProxy")&&" "==u.data.charAt(0);" "!=c.charAt(c.length-2)&&u&&!_||(c=c.substr(0,c.length-1)+"\xa0")}return c.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(r){if(r.getAncestors().some(u=>this.preElements.includes(u.name)))return!1;const c=this._processDataFromViewText(r);return" "==c.charAt(c.length-1)}_getTouchingInlineViewNode(r,c){const u=new Kp({startPosition:c?Uo._createAfter(r):Uo._createBefore(r),direction:c?"forward":"backward"});for(const _ of u){if(_.item.is("element","br"))return null;if(this._isInlineObjectElement(_.item))return _.item;if(_.item.is("containerElement"))return null;if(_.item.is("$textProxy"))return _.item}return null}_isBlockDomElement(r){return this.isElement(r)&&this.blockElements.includes(r.tagName.toLowerCase())}_isBlockViewElement(r){return r.is("element")&&this.blockElements.includes(r.name)}_isInlineObjectElement(r){return!!r.is("element")&&("br"==r.name||this.inlineObjectElements.includes(r.name)||!!this._inlineObjectElementMatcher.match(r))}_createViewElement(r,c){if(ga(r))return new S_(this.document,"$comment");const u=c.keepOriginalCase?r.tagName:r.tagName.toLowerCase();return new Xc(this.document,u)}_isViewElementWithRawContent(r,c){return!1!==c.withChildren&&r.is("element")&&!!this._rawContentElementMatcher.match(r)}_shouldRenameElement(r){const c=r.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(c)}_createReplacementDomElement(r,c){const u=this._domDocument.createElement("span");if(u.setAttribute(Vf,r),c){for(;c.firstChild;)u.appendChild(c.firstChild);for(const _ of c.getAttributeNames())u.setAttribute(_,c.getAttribute(_))}return u}}function jf(m,r){return m.getAncestors().some(c=>c.is("element")&&r.includes(c.name))}function q3(m,r){let c=m;for(;c;)r(c),c=c.parentElement}function z1(m,r){const c=m.parentNode;return!!c&&!!c.tagName&&r.includes(c.tagName.toLowerCase())}function Tp(m){"script"===m&&Zt("domconverter-unsafe-script-element-detected"),"style"===m&&Zt("domconverter-unsafe-style-element-detected")}class Qu extends(Xi()){constructor(r){super(),this._isEnabled=!1,this.view=r,this.document=r.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(r){return r&&3===r.nodeType&&(r=r.parentNode),!(!r||1!==r.nodeType)&&r.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const R2=Rf(function(m,r){Vs(r,ls(r),m)});class pc{constructor(r,c,u){this.view=r,this.document=r.document,this.domEvent=c,this.domTarget=c.target,R2(this,u)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class Wu extends Qu{constructor(){super(...arguments),this.useCapture=!1}observe(r){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(c=>{this.listenTo(r,c,(u,_)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(_.target)&&this.onDomEvent(_)},{useCapture:this.useCapture})})}stopObserving(r){this.stopListening(r)}fire(r,c,u){this.isEnabled&&this.document.fire(r,new pc(this.view,c,u))}}class T1 extends Wu{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(r){this.fire(r.type,r,{keyCode:r.keyCode,altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey,get keystroke(){return Tc(this)}})}}const wd=function(){return ne.Date.now()};var uu=/\s/,nm=/^\s+/;var R3=/^[-+]0x[0-9a-f]+$/i,H6=/^0b[01]+$/i,Cv=/^0o[0-7]+$/i,Jf=parseInt;const Lu=function(m){if("number"==typeof m)return m;if(Kn(m))return NaN;if(Kt(m)){var r="function"==typeof m.valueOf?m.valueOf():m;m=Kt(r)?r+"":r}if("string"!=typeof m)return 0===m?m:+m;m=function(m){return m&&m.slice(0,function(m){for(var r=m.length;r--&&uu.test(m.charAt(r)););return r}(m)+1).replace(nm,"")}(m);var c=H6.test(m);return c||Cv.test(m)?Jf(m.slice(2),c?2:8):R3.test(m)?NaN:+m};var H3=Math.max,z6=Math.min;const R_=function(m,r,c){var u,_,C,M,E,N,j=0,K=!1,dt=!1,Dt=!0;if("function"!=typeof m)throw new TypeError("Expected a function");function me(pi){var Ri=u,Go=_;return u=_=void 0,j=pi,M=m.apply(Go,Ri)}function Ue(pi){var Ri=pi-N;return void 0===N||Ri>=r||Ri<0||dt&&pi-j>=C}function qe(){var Ri,Go,pi=wd();if(Ue(pi))return pn(pi);E=setTimeout(qe,(Go=r-((Ri=pi)-N),dt?z6(Go,C-(Ri-j)):Go))}function pn(pi){return E=void 0,Dt&&u?me(pi):(u=_=void 0,M)}function Ln(){var Go,pi=wd(),Ri=Ue(pi);if(u=arguments,_=this,N=pi,Ri){if(void 0===E)return j=Go=N,E=setTimeout(qe,r),K?me(Go):M;if(dt)return clearTimeout(E),E=setTimeout(qe,r),me(N)}return void 0===E&&(E=setTimeout(qe,r)),M}return r=Lu(r)||0,Kt(c)&&(K=!!c.leading,C=(dt="maxWait"in c)?H3(Lu(c.maxWait)||0,r):C,Dt="trailing"in c?!!c.trailing:Dt),Ln.cancel=function(){void 0!==E&&clearTimeout(E),j=0,u=N=_=E=void 0},Ln.flush=function(){return void 0===E?M:pn(wd())},Ln};class B6 extends Qu{constructor(r){super(r),this._fireSelectionChangeDoneDebounced=R_(c=>{this.document.fire("selectionChangeDone",c)},200)}observe(){const r=this.document;r.on("arrowKey",(c,u)=>{r.selection.isFake&&this.isEnabled&&u.preventDefault()},{context:"$capture"}),r.on("arrowKey",(c,u)=>{r.selection.isFake&&this.isEnabled&&this._handleSelectionMove(u.keyCode)},{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(r){const c=this.document.selection,u=new ju(c.getRanges(),{backward:c.isBackward,fake:!1});r!=Ka.arrowleft&&r!=Ka.arrowup||u.setTo(u.getFirstPosition()),r!=Ka.arrowright&&r!=Ka.arrowdown||u.setTo(u.getLastPosition());const _={oldSelection:c,newSelection:u,domSelection:null};this.document.fire("selectionChange",_),this._fireSelectionChangeDoneDebounced(_)}}function wp(m){var r=-1,c=null==m?0:m.length;for(this.__data__=new Ns;++rE))return!1;var j=C.get(m),K=C.get(r);if(j&&K)return j==r&&K==m;var dt=-1,Dt=!0,me=2&c?new qg:void 0;for(C.set(m,r),C.set(r,m);++dt{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),r.change(()=>{})},50)}),c.on("blur",(u,_)=>{const C=c.selection.editableElement;null!==C&&C!==_.target||(c.isFocused=!1,this._isFocusChanging=!1,r.change(()=>{}))})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(r){this.fire(r.type,r)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class w1 extends Qu{constructor(r){super(r),this.mutationObserver=r.getObserver(ia),this.focusObserver=r.getObserver(z_),this.selection=this.document.selection,this.domConverter=r.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=R_(c=>{this.document.fire("selectionChangeDone",c)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=R_(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(r){const c=r.ownerDocument,u=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,c),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(r,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(r,"keydown",u,{priority:"highest",useCapture:!0}),this.listenTo(r,"keyup",u,{priority:"highest",useCapture:!0}),this._documents.has(c)||(this.listenTo(c,"mouseup",u,{priority:"highest",useCapture:!0}),this.listenTo(c,"selectionchange",(_,C)=>{this.document.isComposing&&!D_isAndroid||(this._handleSelectionChange(C,c),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(c))}stopObserving(r){this.stopListening(r)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(r,c){if(!this.isEnabled)return;const u=c.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(u.anchorNode))return;this.mutationObserver.flush();const _=this.domConverter.domSelectionToView(u);if(0!=_.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(_)||!this.domConverter.isDomSelectionCorrect(u))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(_))this.view.forceRender();else{const C={oldSelection:this.selection,newSelection:_,domSelection:u};this.document.fire("selectionChange",C),this._fireSelectionChangeDoneDebounced(C)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Up extends Wu{constructor(r){super(r),this.domEventType=["compositionstart","compositionupdate","compositionend"];const c=this.document;c.on("compositionstart",()=>{c.isComposing=!0},{priority:"low"}),c.on("compositionend",()=>{c.isComposing=!1},{priority:"low"})}onDomEvent(r){this.fire(r.type,r,{data:r.data})}}class mc{constructor(r,c={}){this._files=c.cacheFiles?Yg(r):null,this._native=r}get files(){return this._files||(this._files=Yg(this._native)),this._files}get types(){return this._native.types}getData(r){return this._native.getData(r)}setData(r,c){this._native.setData(r,c)}set effectAllowed(r){this._native.effectAllowed=r}get effectAllowed(){return this._native.effectAllowed}set dropEffect(r){this._native.dropEffect=r}get dropEffect(){return this._native.dropEffect}setDragImage(r,c,u){this._native.setDragImage(r,c,u)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function Yg(m){const r=Array.from(m.files||[]),c=Array.from(m.items||[]);return r.length?r:c.filter(u=>"file"===u.kind).map(u=>u.getAsFile())}class Vg extends Wu{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(r){const c=r.getTargetRanges(),u=this.view,_=u.document;let C=null,M=null,E=[];if(r.dataTransfer&&(C=new mc(r.dataTransfer)),null!==r.data?M=r.data:C&&(M=C.getData("text/plain")),_.selection.isFake)E=Array.from(_.selection.getRanges());else if(c.length)E=c.map(N=>{const j=u.domConverter.domPositionToView(N.startContainer,N.startOffset),K=u.domConverter.domPositionToView(N.endContainer,N.endOffset);return j?u.createRange(j,K):K?u.createRange(K):void 0}).filter(N=>!!N);else if(D_isAndroid){const N=r.target.ownerDocument.defaultView.getSelection();E=Array.from(u.domConverter.domSelectionToView(N).getRanges())}if(D_isAndroid&&"insertCompositionText"==r.inputType&&M&&M.endsWith("\n"))this.fire(r.type,r,{inputType:"insertParagraph",targetRanges:[u.createRange(E[0].end)]});else if("insertText"==r.inputType&&M&&M.includes("\n")){const N=M.split(/\n{1,2}/g);let j=E;for(let K=0;K{if(this.isEnabled&&((_=u.keyCode)==Ka.arrowright||_==Ka.arrowleft||_==Ka.arrowup||_==Ka.arrowdown)){const C=new Cp(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(C,u),C.stop.called&&c.stop()}var _})}observe(){}stopObserving(){}}class Wf extends Qu{constructor(r){super(r);const c=this.document;c.on("keydown",(u,_)=>{if(!this.isEnabled||_.keyCode!=Ka.tab||_.ctrlKey)return;const C=new Cp(c,"tab",c.selection.getFirstRange());c.fire(C,_),C.stop.called&&u.stop()})}observe(){}stopObserving(){}}const U1=function(m){return Pi(m,5)};class jg extends(Ze()){constructor(r){super(),this.domRoots=new Map,this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this.document=new Xp(r),this.domConverter=new N_(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new q2(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new Hm(this.document),this.addObserver(ia),this.addObserver(z_),this.addObserver(w1),this.addObserver(T1),this.addObserver(B6),this.addObserver(Up),this.addObserver(yv),this.addObserver(Vg),this.addObserver(Wf),this.document.on("arrowKey",Pl,{priority:"low"}),function Uc(m){m.document.on("arrowKey",(r,c)=>function(u,_,C){if(_.keyCode==Ka.arrowright){const M=_.domTarget.ownerDocument.defaultView.getSelection(),E=1==M.rangeCount&&M.getRangeAt(0).collapsed;if(E||_.shiftKey){const K=C.domPositionToView(M.focusNode,M.focusOffset);if(null===K)return;let dt=!1;const Dt=K.getLastMatchingPosition(me=>(me.item.is("uiElement")&&(dt=!0),!(!me.item.is("uiElement")&&!me.item.is("attributeElement"))));if(dt){const me=C.viewPositionToDom(Dt);E?M.collapse(me.parent,me.offset):M.extend(me.parent,me.offset)}}}}(0,c,m.domConverter),{priority:"low"})}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0}),D_isiOS&&this.listenTo(this.document,"blur",(c,u)=>{this.domConverter.mapDomToView(u.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})}attachDomRoot(r,c="main"){const u=this.document.getRoot(c);u._name=r.tagName.toLowerCase();const _={};for(const{name:M,value:E}of Array.from(r.attributes))_[M]=E,"class"===M?this._writer.addClass(E.split(" "),u):this._writer.setAttribute(M,E,u);this._initialDomRootAttributes.set(r,_);const C=()=>{this._writer.setAttribute("contenteditable",(!u.isReadOnly).toString(),u),u.isReadOnly?this._writer.addClass("ck-read-only",u):this._writer.removeClass("ck-read-only",u)};C(),this.domRoots.set(c,r),this.domConverter.bindElements(r,u),this._renderer.markToSync("children",u),this._renderer.markToSync("attributes",u),this._renderer.domDocuments.add(r.ownerDocument),u.on("change:children",(M,E)=>this._renderer.markToSync("children",E)),u.on("change:attributes",(M,E)=>this._renderer.markToSync("attributes",E)),u.on("change:text",(M,E)=>this._renderer.markToSync("text",E)),u.on("change:isReadOnly",()=>this.change(C)),u.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const M of this._observers.values())M.observe(r,c)}detachDomRoot(r){const c=this.domRoots.get(r);Array.from(c.attributes).forEach(({name:_})=>c.removeAttribute(_));const u=this._initialDomRootAttributes.get(c);for(const _ in u)c.setAttribute(_,u[_]);this.domRoots.delete(r),this.domConverter.unbindDomElement(c);for(const _ of this._observers.values())_.stopObserving(c)}getDomRoot(r="main"){return this.domRoots.get(r)}addObserver(r){let c=this._observers.get(r);if(c)return c;c=new r(this),this._observers.set(r,c);for(const[u,_]of this.domRoots)c.observe(_,u);return c.enable(),c}getObserver(r){return this._observers.get(r)}disableObservers(){for(const r of this._observers.values())r.disable()}enableObservers(){for(const r of this._observers.values())r.enable()}scrollToTheSelection({alignToTop:r,forceScroll:c,viewportOffset:u=20,ancestorOffset:_=20}={}){const C=this.document.selection.getFirstRange();if(!C)return;const M=U1({alignToTop:r,forceScroll:c,viewportOffset:u,ancestorOffset:_});"number"==typeof u&&(u={top:u,bottom:u,left:u,right:u});const E={target:this.domConverter.viewRangeToDom(C),viewportOffset:u,ancestorOffset:_,alignToTop:r,forceScroll:c};this.fire("scrollToTheSelection",E,M),function({target:N,viewportOffset:j=0,ancestorOffset:K=0,alignToTop:dt,forceScroll:Dt}){const me=sr(N);let Ue=me,qe=null;for(j="number"==typeof(pn=j)?{top:pn,bottom:pn,left:pn,right:pn}:pn;Ue;){let pn;pn=cr(Ue==me?N:qe),Hr({parent:pn,getRect:()=>Cs(N,Ue),alignToTop:dt,ancestorOffset:K,forceScroll:Dt});const Ln=Cs(N,Ue);if(us({window:Ue,rect:Ln,viewportOffset:j,alignToTop:dt,forceScroll:Dt}),Ue.parent!=Ue){if(qe=Ue.frameElement,Ue=Ue.parent,!qe)return}else Ue=null}var pn}(E)}focus(){if(!this.document.isFocused){const r=this.document.selection.editableElement;r&&(this.domConverter.focus(r),this.forceRender())}}change(r){if(this.isRenderingInProgress||this._postFixersInProgress)throw new at("cannot-change-view-tree",this);try{if(this._ongoingChange)return r(this._writer);this._ongoingChange=!0;const c=r(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),c}catch(c){at.rethrowUnexpectedError(c,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(z_).flush(),this.change(()=>{})}destroy(){for(const r of this._observers.values())r.destroy();this.document.destroy(),this.stopListening()}createPositionAt(r,c){return Uo._createAt(r,c)}createPositionAfter(r){return Uo._createAfter(r)}createPositionBefore(r){return Uo._createBefore(r)}createRange(r,c){return new Za(r,c)}createRangeOn(r){return Za._createOn(r)}createRangeIn(r){return Za._createIn(r)}createSelection(...r){return new ju(...r)}_disableRendering(r){this._renderingDisabled=r,0==r&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Zp{is(){throw new Error("is() method is abstract")}}class oc extends Zp{constructor(r){super(),this.parent=null,this._attrs=Kc(r)}get document(){return null}get index(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildIndex(this)))throw new at("model-node-not-found-in-parent",this);return r}get startOffset(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildStartOffset(this)))throw new at("model-node-not-found-in-parent",this);return r}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const r=this.index;return null!==r&&this.parent.getChild(r+1)||null}get previousSibling(){const r=this.index;return null!==r&&this.parent.getChild(r-1)||null}get root(){let r=this;for(;r.parent;)r=r.parent;return r}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const r=[];let c=this;for(;c.parent;)r.unshift(c.startOffset),c=c.parent;return r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}getCommonAncestor(r,c={}){const u=this.getAncestors(c),_=r.getAncestors(c);let C=0;for(;u[C]==_[C]&&u[C];)C++;return 0===C?null:u[C-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=tt(c,u);switch(_){case"prefix":return!0;case"extension":return!1;default:return c[_](c[u[0]]=u[1],c),{})),r}_clone(r){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(r,c){this._attrs.set(r,c)}_setAttributesTo(r){this._attrs=Kc(r)}_removeAttribute(r){return this._attrs.delete(r)}_clearAttributes(){this._attrs.clear()}}oc.prototype.is=function(m){return"node"===m||"model:node"===m};class am{constructor(r){this._nodes=[],r&&this._insertNodes(0,r)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((r,c)=>r+c.offsetSize,0)}getNode(r){return this._nodes[r]||null}getNodeIndex(r){const c=this._nodes.indexOf(r);return-1==c?null:c}getNodeStartOffset(r){const c=this.getNodeIndex(r);return null===c?null:this._nodes.slice(0,c).reduce((u,_)=>u+_.offsetSize,0)}indexToOffset(r){if(r==this._nodes.length)return this.maxOffset;const c=this._nodes[r];if(!c)throw new at("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(c)}offsetToIndex(r){let c=0;for(const u of this._nodes){if(r>=c&&r1e4)return u.slice(0,C).concat(_).concat(u.slice(C+0,u.length));{const E=Array.from(u);return E.splice(C,0,..._),E}}(this._nodes,Array.from(c),r)}_removeNodes(r,c=1){return this._nodes.splice(r,c)}toJSON(){return this._nodes.map(r=>r.toJSON())}}class rs extends oc{constructor(r,c){super(c),this._data=r||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const r=super.toJSON();return r.data=this.data,r}_clone(){return new rs(this.data,this.getAttributes())}static fromJSON(r){return new rs(r.data,r.attributes)}}rs.prototype.is=function(m){return"$text"===m||"model:$text"===m||"text"===m||"model:text"===m||"node"===m||"model:node"===m};class Ku extends Zp{constructor(r,c,u){if(super(),this.textNode=r,c<0||c>r.offsetSize)throw new at("model-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.offsetSize)throw new at("model-textproxy-wrong-length",this);this.data=r.data.substring(c,c+u),this.offsetInText=c}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const r=this.textNode.getPath();return r.length>0&&(r[r.length-1]+=this.offsetInText),r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}hasAttribute(r){return this.textNode.hasAttribute(r)}getAttribute(r){return this.textNode.getAttribute(r)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}Ku.prototype.is=function(m){return"$textProxy"===m||"model:$textProxy"===m||"textProxy"===m||"model:textProxy"===m};class Jr extends oc{constructor(r,c,u){super(c),this._children=new am,this.name=r,u&&this._insertChild(0,u)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}offsetToIndex(r){return this._children.offsetToIndex(r)}getNodeByPath(r){let c=this;for(const u of r)c=c.getChild(c.offsetToIndex(u));return c}findAncestor(r,c={}){let u=c.includeSelf?this:this.parent;for(;u;){if(u.name===r)return u;u=u.parent}return null}toJSON(){const r=super.toJSON();if(r.name=this.name,this._children.length>0){r.children=[];for(const c of this._children)r.children.push(c.toJSON())}return r}_clone(r=!1){const c=r?Array.from(this._children).map(u=>u._clone(!0)):void 0;return new Jr(this.name,this.getAttributes(),c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const u="string"==typeof(_=c)?[new rs(_)]:(et(_)||(_=[_]),Array.from(_).map(C=>"string"==typeof C?new rs(C):C instanceof Ku?new rs(C.data,C.getAttributes()):C));var _;for(const _ of u)null!==_.parent&&_._remove(),_.parent=this;this._children._insertNodes(r,u)}_removeChildren(r,c=1){const u=this._children._removeNodes(r,c);for(const _ of u)_.parent=null;return u}static fromJSON(r){let c;if(r.children){c=[];for(const u of r.children)c.push(u.name?Jr.fromJSON(u):rs.fromJSON(u))}return new Jr(r.name,r.attributes,c)}}Jr.prototype.is=function(m,r){return r?r===this.name&&("element"===m||"model:element"===m):"element"===m||"model:element"===m||"node"===m||"model:node"===m};class Gd{constructor(r){if(!r||!r.boundaries&&!r.startPosition)throw new at("model-tree-walker-no-start-position",null);const c=r.direction||"forward";if("forward"!=c&&"backward"!=c)throw new at("model-tree-walker-unknown-direction",r,{direction:c});this.direction=c,this.boundaries=r.boundaries||null,this._position=r.startPosition?r.startPosition.clone():to._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(r){let c,u,_,C;do{_=this.position,C=this._visitedParent,({done:c,value:u}=this.next())}while(!c&&r(u));c||(this._position=_,this._visitedParent=C)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const r=this.position,c=this.position.clone(),u=this._visitedParent;if(null===u.parent&&c.offset===u.maxOffset)return{done:!0,value:void 0};if(u===this._boundaryEndParent&&c.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const _=Y1(c,u),C=_||Ym(c,u,_);if(C instanceof Jr){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(c))return{done:!0,value:void 0};c.offset++}else c.path.push(0),this._visitedParent=C;return this._position=c,B1("elementStart",C,r,c,1)}if(C instanceof rs){let M;if(this.singleCharacters)M=1;else{let j=C.endOffset;this._boundaryEndParent==u&&this.boundaries.end.offsetK&&(K=this.boundaries.start.offset),E=c.offset-K}const j=new Ku(M,c.offset-M.startOffset-E,E);return c.offset-=E,this._position=c,B1("text",j,r,c,E)}return c.path.pop(),this._position=c,this._visitedParent=u.parent,B1("elementStart",u,r,c,1)}}function B1(m,r,c,u,_){return{done:!1,value:{type:m,item:r,previousPosition:c,nextPosition:u,length:_}}}class to extends Zp{constructor(r,c,u="toNone"){if(super(),!r.is("element")&&!r.is("documentFragment"))throw new at("model-position-root-invalid",r);if(!(c instanceof Array)||0===c.length)throw new at("model-position-path-incorrect-format",r,{path:c});r.is("rootElement")?c=c.slice():(c=[...r.getPath(),...c],r=r.root),this.root=r,this.path=c,this.stickiness=u}get offset(){return this.path[this.path.length-1]}set offset(r){this.path[this.path.length-1]=r}get parent(){let r=this.root;for(let c=0;c1)return!1;if(1===_)return rm(r,this,u);if(-1===_)return rm(this,r,u)}return this.path.length===r.path.length||Vm(this.path.length>r.path.length?this.path:r.path,c)}hasSameParentAs(r){return this.root===r.root&&"same"==tt(this.getParentPath(),r.getParentPath())}getTransformedByOperation(r){let c;switch(r.type){case"insert":c=this._getTransformedByInsertOperation(r);break;case"move":case"remove":case"reinsert":c=this._getTransformedByMoveOperation(r);break;case"split":c=this._getTransformedBySplitOperation(r);break;case"merge":c=this._getTransformedByMergeOperation(r);break;default:c=to._createAt(this)}return c}_getTransformedByInsertOperation(r){return this._getTransformedByInsertion(r.position,r.howMany)}_getTransformedByMoveOperation(r){return this._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}_getTransformedBySplitOperation(r){const c=r.movedRange;return c.containsPosition(this)||c.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(r.splitPosition,r.moveTargetPosition):r.graveyardPosition?this._getTransformedByMove(r.graveyardPosition,r.insertionPosition,1):this._getTransformedByInsertion(r.insertionPosition,1)}_getTransformedByMergeOperation(r){const c=r.movedRange;let u;return c.containsPosition(this)||c.start.isEqual(this)?(u=this._getCombined(r.sourcePosition,r.targetPosition),r.sourcePosition.isBefore(r.targetPosition)&&(u=u._getTransformedByDeletion(r.deletionPosition,1))):u=this.isEqual(r.deletionPosition)?to._createAt(r.deletionPosition):this._getTransformedByMove(r.deletionPosition,r.graveyardPosition,1),u}_getTransformedByDeletion(r,c){const u=to._createAt(this);if(this.root!=r.root)return u;if("same"==tt(r.getParentPath(),this.getParentPath())){if(r.offsetthis.offset)return null;u.offset-=c}}else if("prefix"==tt(r.getParentPath(),this.getParentPath())){const _=r.path.length-1;if(r.offset<=this.path[_]){if(r.offset+c>this.path[_])return null;u.path[_]-=c}}return u}_getTransformedByInsertion(r,c){const u=to._createAt(this);if(this.root!=r.root)return u;if("same"==tt(r.getParentPath(),this.getParentPath()))(r.offset=_;){if(u.path[M]+E!==C.maxOffset)return!1;E=1,M--,C=C.parent}return!0}(m,c+1)}function Vm(m,r){for(;rc+1;){const C=_.maxOffset-u.offset;0!==C&&r.push(new Li(u,u.getShiftedBy(C))),u.path=u.path.slice(0,-1),u.offset++,_=_.parent}for(;u.path.length<=this.end.path.length;){const C=this.end.path[u.path.length-1],M=C-u.offset;0!==M&&r.push(new Li(u,u.getShiftedBy(M))),u.offset=C,u.path.push(0)}return r}getWalker(r={}){return r.boundaries=this,new Gd(r)}*getItems(r={}){r.boundaries=this,r.ignoreElementEnd=!0;const c=new Gd(r);for(const u of c)yield u.item}*getPositions(r={}){r.boundaries=this;const c=new Gd(r);yield c.position;for(const u of c)yield u.nextPosition}getTransformedByOperation(r){switch(r.type){case"insert":return this._getTransformedByInsertOperation(r);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(r);case"split":return[this._getTransformedBySplitOperation(r)];case"merge":return[this._getTransformedByMergeOperation(r)]}return[new Li(this.start,this.end)]}getTransformedByOperations(r){const c=[new Li(this.start,this.end)];for(const u of r)for(let _=0;_0?new this(u,_):new this(_,u)}static _createIn(r){return new this(to._createAt(r,0),to._createAt(r,r.maxOffset))}static _createOn(r){return this._createFromPositionAndShift(to._createBefore(r),r.offsetSize)}static _createFromRanges(r){if(0===r.length)throw new at("range-create-from-ranges-empty-array",null);if(1==r.length)return r[0].clone();const c=r[0];r.sort((C,M)=>C.start.isAfter(M.start)?1:-1);const u=r.indexOf(c),_=new this(c.start,c.end);if(u>0)for(let C=u-1;r[C].end.isEqual(_.start);C++)_.start=to._createAt(r[C].start);for(let C=u+1;C{if(c.viewPosition)return;const u=this._modelToViewMapping.get(c.modelPosition.parent);if(!u)throw new at("mapping-model-position-view-parent-not-found",this,{modelPosition:c.modelPosition});c.viewPosition=this.findPositionIn(u,c.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(r,c)=>{if(c.modelPosition)return;const u=this.findMappedViewAncestor(c.viewPosition),_=this._viewToModelMapping.get(u),C=this._toModelOffset(c.viewPosition.parent,c.viewPosition.offset,u);c.modelPosition=to._createAt(_,C)},{priority:"low"})}bindElements(r,c){this._modelToViewMapping.set(r,c),this._viewToModelMapping.set(c,r)}unbindViewElement(r,c={}){const u=this.toModelElement(r);if(this._elementToMarkerNames.has(r))for(const _ of this._elementToMarkerNames.get(r))this._unboundMarkerNames.add(_);c.defer?this._deferredBindingRemovals.set(r,r.root):(this._viewToModelMapping.delete(r),this._modelToViewMapping.get(u)==r&&this._modelToViewMapping.delete(u))}unbindModelElement(r){const c=this.toViewElement(r);this._modelToViewMapping.delete(r),this._viewToModelMapping.get(c)==r&&this._viewToModelMapping.delete(c)}bindElementToMarker(r,c){const u=this._markerNameToElements.get(c)||new Set;u.add(r);const _=this._elementToMarkerNames.get(r)||new Set;_.add(c),this._markerNameToElements.set(c,u),this._elementToMarkerNames.set(r,_)}unbindElementFromMarkerName(r,c){const u=this._markerNameToElements.get(c);u&&(u.delete(r),0==u.size&&this._markerNameToElements.delete(c));const _=this._elementToMarkerNames.get(r);_&&(_.delete(c),0==_.size&&this._elementToMarkerNames.delete(r))}flushUnboundMarkerNames(){const r=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),r}flushDeferredBindings(){for(const[r,c]of this._deferredBindingRemovals)r.root==c&&this.unbindViewElement(r);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(r){return this._viewToModelMapping.get(r)}toViewElement(r){return this._modelToViewMapping.get(r)}toModelRange(r){return new Li(this.toModelPosition(r.start),this.toModelPosition(r.end))}toViewRange(r){return new Za(this.toViewPosition(r.start),this.toViewPosition(r.end))}toModelPosition(r){const c={viewPosition:r,mapper:this};return this.fire("viewToModelPosition",c),c.modelPosition}toViewPosition(r,c={}){const u={modelPosition:r,mapper:this,isPhantom:c.isPhantom};return this.fire("modelToViewPosition",u),u.viewPosition}markerNameToElements(r){const c=this._markerNameToElements.get(r);if(!c)return null;const u=new Set;for(const _ of c)if(_.is("attributeElement"))for(const C of _.getElementsWithSameId())u.add(C);else u.add(_);return u}registerViewToModelLength(r,c){this._viewToModelLengthCallbacks.set(r,c)}findMappedViewAncestor(r){let c=r.parent;for(;!this._viewToModelMapping.has(c);)c=c.parent;return c}_toModelOffset(r,c,u){if(u!=r)return this._toModelOffset(r.parent,r.index,u)+this._toModelOffset(r,c,r);if(r.is("$text"))return c;let _=0;for(let C=0;C1?r[0]+":"+r[1]:r[0]}var Kf=Object.defineProperty,Xf=Object.defineProperties,Y6=Object.getOwnPropertyDescriptors,Jg=Object.getOwnPropertySymbols,Y2=Object.prototype.hasOwnProperty,th=Object.prototype.propertyIsEnumerable,Y_=(m,r,c)=>r in m?Kf(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Gg=(m,r)=>{for(var c in r||(r={}))Y2.call(r,c)&&Y_(m,c,r[c]);if(Jg)for(var c of Jg(r))th.call(r,c)&&Y_(m,c,r[c]);return m},V_=(m,r)=>Xf(m,Y6(r));class Qg extends(Ne()){constructor(r){super(),this._conversionApi=Gg({dispatcher:this},r),this._firedEventsMap=new WeakMap}convertChanges(r,c,u){const _=this._createConversionApi(u,r.getRefreshedItems());for(const M of r.getMarkersToRemove())this._convertMarkerRemove(M.name,M.range,_);const C=this._reduceChanges(r.getChanges());for(const M of C)"insert"===M.type?this._convertInsert(Li._createFromPositionAndShift(M.position,M.length),_):"reinsert"===M.type?this._convertReinsert(Li._createFromPositionAndShift(M.position,M.length),_):"remove"===M.type?this._convertRemove(M.position,M.length,M.name,_):this._convertAttribute(M.range,M.attributeKey,M.attributeOldValue,M.attributeNewValue,_);for(const M of _.mapper.flushUnboundMarkerNames()){const E=c.get(M).getRange();this._convertMarkerRemove(M,E,_),this._convertMarkerAdd(M,E,_)}for(const M of r.getMarkersToAdd())this._convertMarkerAdd(M.name,M.range,_);_.mapper.flushDeferredBindings(),_.consumable.verifyAllConsumed("insert")}convert(r,c,u,_={}){const C=this._createConversionApi(u,void 0,_);this._convertInsert(r,C);for(const[M,E]of c)this._convertMarkerAdd(M,E,C);C.consumable.verifyAllConsumed("insert")}convertSelection(r,c,u){const _=this._createConversionApi(u);this.fire("cleanSelection",{selection:r},_);const C=r.getFirstPosition().root;if(!_.mapper.toViewElement(C))return;const M=Array.from(c.getMarkersAtPosition(r.getFirstPosition()));if(this._addConsumablesForSelection(_.consumable,r,M),this.fire("selection",{selection:r},_),r.isCollapsed){for(const E of M)if(_.consumable.test(r,"addMarker:"+E.name)){const N=E.getRange();if(!jm(r.getFirstPosition(),E,_.mapper))continue;this.fire(`addMarker:${E.name}`,{item:r,markerName:E.name,markerRange:N},_)}for(const E of r.getAttributeKeys())if(_.consumable.test(r,"attribute:"+E)){const N={item:r,range:r.getFirstRange(),attributeKey:E,attributeOldValue:null,attributeNewValue:r.getAttribute(E)};this.fire(`attribute:${E}:$text`,N,_)}}}_convertInsert(r,c,u={}){u.doNotAddConsumables||this._addConsumablesForInsert(c.consumable,Array.from(r));for(const _ of Array.from(r.getWalker({shallow:!0})).map(j_))this._testAndFire("insert",_,c)}_convertRemove(r,c,u,_){this.fire(`remove:${u}`,{position:r,length:c},_)}_convertAttribute(r,c,u,_,C){this._addConsumablesForRange(C.consumable,r,`attribute:${c}`);for(const M of r){const E={item:M.item,range:Li._createFromPositionAndShift(M.previousPosition,M.length),attributeKey:c,attributeOldValue:u,attributeNewValue:_};this._testAndFire(`attribute:${c}`,E,C)}}_convertReinsert(r,c){const u=Array.from(r.getWalker({shallow:!0}));this._addConsumablesForInsert(c.consumable,u);for(const _ of u.map(j_))this._testAndFire("insert",V_(Gg({},_),{reconversion:!0}),c)}_convertMarkerAdd(r,c,u){if("$graveyard"==c.root.rootName)return;const _=`addMarker:${r}`;if(u.consumable.add(c,_),this.fire(_,{markerName:r,markerRange:c},u),u.consumable.consume(c,_)){this._addConsumablesForRange(u.consumable,c,_);for(const C of c.getItems()){if(!u.consumable.test(C,_))continue;const M={item:C,range:Li._createOn(C),markerName:r,markerRange:c};this.fire(_,M,u)}}}_convertMarkerRemove(r,c,u){"$graveyard"!=c.root.rootName&&this.fire(`removeMarker:${r}`,{markerName:r,markerRange:c},u)}_reduceChanges(r){const c={changes:r};return this.fire("reduceChanges",c),c.changes}_addConsumablesForInsert(r,c){for(const u of c){const _=u.item;if(null===r.test(_,"insert")){r.add(_,"insert");for(const C of _.getAttributeKeys())r.add(_,"attribute:"+C)}}return r}_addConsumablesForRange(r,c,u){for(const _ of c.getItems())r.add(_,u);return r}_addConsumablesForSelection(r,c,u){r.add(c,"selection");for(const _ of u)r.add(c,"addMarker:"+_.name);for(const _ of c.getAttributeKeys())r.add(c,"attribute:"+_);return r}_testAndFire(r,c,u){const _=`${r}:${(j=c).item.is("element")?j.item.name:"$text"}`,C=c.item.is("$textProxy")?u.consumable._getSymbolForTextProxy(c.item):c.item,M=this._firedEventsMap.get(u),E=M.get(C);var j;if(E){if(E.has(_))return;E.add(_)}else M.set(C,new Set([_]));this.fire(_,c,u)}_testAndFireAddAttributes(r,c){const u={item:r,range:Li._createOn(r)};for(const _ of u.item.getAttributeKeys())u.attributeKey=_,u.attributeOldValue=null,u.attributeNewValue=u.item.getAttribute(_),this._testAndFire(`attribute:${_}`,u,c)}_createConversionApi(r,c=new Set,u={}){const _=V_(Gg({},this._conversionApi),{consumable:new j3,writer:r,options:u,convertItem:C=>this._convertInsert(Li._createOn(C),_),convertChildren:C=>this._convertInsert(Li._createIn(C),_,{doNotAddConsumables:!0}),convertAttributes:C=>this._testAndFireAddAttributes(C,_),canReuseView:C=>!c.has(_.mapper.toModelElement(C))});return this._firedEventsMap.set(_,new Map),_}}function jm(m,r,c){const u=r.getRange(),_=Array.from(m.getAncestors());return _.shift(),_.reverse(),!_.some(C=>{if(u.containsItem(C))return!!c.toViewElement(C).getCustomProperty("addHighlight")})}function j_(m){return{item:m.item,range:Li._createFromPositionAndShift(m.previousPosition,m.length)}}class Ud extends(Ne(Zp)){constructor(...r){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],r.length&&this.setTo(...r)}get anchor(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.end:r.start}return null}get focus(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.start:r.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(r){if(this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const c of this._ranges){let u=!1;for(const _ of r._ranges)if(c.isEqual(_)){u=!0;break}if(!u)return!1}return!0}*getRanges(){for(const r of this._ranges)yield new Li(r.start,r.end)}getFirstRange(){let r=null;for(const c of this._ranges)r&&!c.start.isBefore(r.start)||(r=c);return r?new Li(r.start,r.end):null}getLastRange(){let r=null;for(const c of this._ranges)r&&!c.end.isAfter(r.end)||(r=c);return r?new Li(r.start,r.end):null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}setTo(...r){let[c,u,_]=r;if("object"==typeof u&&(_=u,u=void 0),null===c)this._setRanges([]);else if(c instanceof Ud)this._setRanges(c.getRanges(),c.isBackward);else if(c&&"function"==typeof c.getRanges)this._setRanges(c.getRanges(),c.isBackward);else if(c instanceof Li)this._setRanges([c],!!_&&!!_.backward);else if(c instanceof to)this._setRanges([new Li(c)]);else if(c instanceof oc){const C=!!_&&!!_.backward;let M;if("in"==u)M=Li._createIn(c);else if("on"==u)M=Li._createOn(c);else{if(void 0===u)throw new at("model-selection-setto-required-second-parameter",[this,c]);M=new Li(to._createAt(c,u))}this._setRanges([M],C)}else{if(!et(c))throw new at("model-selection-setto-not-selectable",[this,c]);this._setRanges(c,_&&!!_.backward)}}_setRanges(r,c=!1){const u=Array.from(r),_=u.some(C=>{if(!(C instanceof Li))throw new at("model-selection-set-ranges-not-range",[this,r]);return this._ranges.every(M=>!M.isEqual(C))});(u.length!==this._ranges.length||_)&&(this._replaceAllRanges(u),this._lastRangeBackward=!!c,this.fire("change:range",{directChange:!0}))}setFocus(r,c){if(null===this.anchor)throw new at("model-selection-setfocus-no-ranges",[this,r]);const u=to._createAt(r,c);if("same"==u.compareWith(this.focus))return;const _=this.anchor;this._ranges.length&&this._popRange(),"before"==u.compareWith(_)?(this._pushRange(new Li(u,_)),this._lastRangeBackward=!0):(this._pushRange(new Li(_,u)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(r){return this._attrs.get(r)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(r){return this._attrs.has(r)}removeAttribute(r){this.hasAttribute(r)&&(this._attrs.delete(r),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}setAttribute(r,c){this.getAttribute(r)!==c&&(this._attrs.set(r,c),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const r=new WeakSet;for(const c of this.getRanges()){const u=$g(c.start,r);V2(u,c)&&(yield u);for(const C of c.getWalker()){const M=C.item;"elementEnd"==C.type&&J3(M,r,c)&&(yield M)}const _=$g(c.end,r);Xg(_,c)&&(yield _)}}containsEntireContent(r=this.anchor.root){const c=to._createAt(r,0),u=to._createAt(r,"end");return c.isTouching(this.getFirstPosition())&&u.isTouching(this.getLastPosition())}_pushRange(r){this._checkRange(r),this._ranges.push(new Li(r.start,r.end))}_checkRange(r){for(let c=0;c0;)this._popRange()}_popRange(){this._ranges.pop()}}function Wg(m,r){return!r.has(m)&&(r.add(m),m.root.document.model.schema.isBlock(m)&&!!m.parent)}function J3(m,r,c){return Wg(m,r)&&Kg(m,c)}function $g(m,r){const c=m.parent.root.document.model.schema,u=m.parent.getAncestors({parentFirst:!0,includeSelf:!0});let _=!1;const C=u.find(M=>!_&&(_=c.isLimit(M),!_&&Wg(M,r)));return u.forEach(M=>r.add(M)),C}function Kg(m,r){const c=function(u){const _=u.root.document.model.schema;let C=u.parent;for(;C;){if(_.isBlock(C))return C;C=C.parent}}(m);return!c||!r.containsRange(Li._createOn(c),!0)}function V2(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.start.isTouching(to._createAt(m,m.maxOffset))&&Kg(m,r))}function Xg(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.end.isTouching(to._createAt(m,0))&&Kg(m,r))}Ud.prototype.is=function(m){return"selection"===m||"model:selection"===m};class Xu extends(Ne(Li)){constructor(r,c){super(r,c),eh.call(this)}detach(){this.stopListening()}toRange(){return new Li(this.start,this.end)}static fromRange(r){return new Xu(r.start,r.end)}}function eh(){this.listenTo(this.root.document.model,"applyOperation",(m,r)=>{const c=r[0];c.isDocumentOperation&&J_.call(this,c)},{priority:"low"})}function J_(m){const r=this.getTransformedByOperation(m),c=Li._createFromRanges(r),u=!c.isEqual(this),_=function(M,E){switch(E.type){case"insert":return M.containsPosition(E.position);case"move":case"remove":case"reinsert":case"merge":return M.containsPosition(E.sourcePosition)||M.start.isEqual(E.sourcePosition)||M.containsPosition(E.targetPosition);case"split":return M.containsPosition(E.splitPosition)||M.containsPosition(E.insertionPosition)}return!1}(this,m);let C=null;if(u){"$graveyard"==c.root.rootName&&(C="remove"==m.type?m.sourcePosition:m.deletionPosition);const M=this.toRange();this.start=c.start,this.end=c.end,this.fire("change:range",M,{deletionPosition:C})}else _&&this.fire("change:content",this.toRange(),{deletionPosition:C})}Xu.prototype.is=function(m){return"liveRange"===m||"model:liveRange"===m||"range"==m||"model:range"===m};const j2="selection:";class Ou extends(Ne(Zp)){constructor(r){super(),this._selection=new sm(r),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(r){return this._selection.containsEntireContent(r)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(r){return this._selection.getAttribute(r)}hasAttribute(r){return this._selection.hasAttribute(r)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(r){this._selection.observeMarkers(r)}_setFocus(r,c){this._selection.setFocus(r,c)}_setTo(...r){this._selection.setTo(...r)}_setAttribute(r,c){this._selection.setAttribute(r,c)}_removeAttribute(r){this._selection.removeAttribute(r)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(r){this._selection.restoreGravity(r)}static _getStoreAttributeKey(r){return j2+r}static _isStoreAttributeKey(r){return r.startsWith(j2)}}Ou.prototype.is=function(m){return"selection"===m||"model:selection"==m||"documentSelection"==m||"model:documentSelection"==m};class sm extends Ud{constructor(r){super(),this.markers=new ec({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=r.model,this._document=r,this.listenTo(this._model,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&"marker"!=_.type&&"rename"!=_.type&&"noop"!=_.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(c,u,_,C)=>{this._updateMarker(u,C)}),this.listenTo(this._document,"change",(c,u)=>{!function(_,C){const M=_.document.differ;for(const E of M.getChanges()){if("insert"!=E.type)continue;const N=E.position.parent;E.length===N.maxOffset&&_.enqueueChange(C,j=>{const K=Array.from(N.getAttributeKeys()).filter(dt=>dt.startsWith(j2));for(const dt of K)j.removeAttribute(dt,N)})}}(this._model,u)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let r=0;r{if(this._hasChangedRange=!0,c.root==this._document.graveyard){this._selectionRestorePosition=C.deletionPosition;const M=this._ranges.indexOf(c);this._ranges.splice(M,1),c.detach()}}),c}updateMarkers(){if(!this._observedMarkers.size)return;const r=[];let c=!1;for(const _ of this._model.markers){const C=_.name.split(":",1)[0];if(!this._observedMarkers.has(C))continue;const M=_.getRange();for(const E of this.getRanges())M.containsRange(E,!E.isCollapsed)&&r.push(_)}const u=Array.from(this.markers);for(const _ of r)this.markers.has(_)||(this.markers.add(_),c=!0);for(const _ of Array.from(this.markers))r.includes(_)||(this.markers.remove(_),c=!0);c&&this.fire("change:marker",{oldMarkers:u,directChange:!1})}_updateMarker(r,c){const u=r.name.split(":",1)[0];if(!this._observedMarkers.has(u))return;let _=!1;const C=Array.from(this.markers),M=this.markers.has(r);if(c){let E=!1;for(const N of this.getRanges())if(c.containsRange(N,!N.isCollapsed)){E=!0;break}E&&!M?(this.markers.add(r),_=!0):!E&&M&&(this.markers.remove(r),_=!0)}else M&&(this.markers.remove(r),_=!0);_&&this.fire("change:marker",{oldMarkers:C,directChange:!1})}_updateAttributes(r){const c=Kc(this._getSurroundingAttributes()),u=Kc(this.getAttributes());if(r)this._attributePriority=new Map,this._attrs=new Map;else for(const[C,M]of this._attributePriority)"low"==M&&(this._attrs.delete(C),this._attributePriority.delete(C));this._setAttributesTo(c);const _=[];for(const[C,M]of this.getAttributes())u.has(C)&&u.get(C)===M||_.push(C);for(const[C]of u)this.hasAttribute(C)||_.push(C);_.length>0&&this.fire("change:attribute",{attributeKeys:_,directChange:!1})}_setAttribute(r,c,u=!0){const _=u?"normal":"low";return("low"!=_||"normal"!=this._attributePriority.get(r))&&super.getAttribute(r)!==c&&(this._attrs.set(r,c),this._attributePriority.set(r,_),!0)}_removeAttribute(r,c=!0){const u=c?"normal":"low";return!("low"==u&&"normal"==this._attributePriority.get(r)||(this._attributePriority.set(r,u),!super.hasAttribute(r)||(this._attrs.delete(r),0)))}_setAttributesTo(r){const c=new Set;for(const[u,_]of this.getAttributes())r.get(u)!==_&&this._removeAttribute(u,!1);for(const[u,_]of r)this._setAttribute(u,_,!1)&&c.add(u);return c}*getStoredAttributes(){const r=this.getFirstPosition().parent;if(this.isCollapsed&&r.isEmpty)for(const c of r.getAttributeKeys())c.startsWith(j2)&&(yield[c.substr(10),r.getAttribute(c)])}_getSurroundingAttributes(){const r=this.getFirstPosition(),c=this._model.schema;if("$graveyard"==r.root.rootName)return null;let u=null;if(this.isCollapsed){const _=r.textNode?r.textNode:r.nodeBefore,C=r.textNode?r.textNode:r.nodeAfter;if(this.isGravityOverridden||(u=J2(_,c)),u||(u=J2(C,c)),!this.isGravityOverridden&&!u){let M=_;for(;M&&!u;)M=M.previousSibling,u=J2(M,c)}if(!u){let M=C;for(;M&&!u;)M=M.nextSibling,u=J2(M,c)}u||(u=this.getStoredAttributes())}else{const _=this.getFirstRange();for(const C of _){if(C.item.is("element")&&c.isObject(C.item)){u=J2(C.item,c);break}if("text"==C.type){u=C.item.getAttributes();break}}}return u}_fixGraveyardSelection(r){const c=this._model.schema.getNearestSelectionRange(r);c&&this._pushRange(c)}}function J2(m,r){if(!m)return null;if(m instanceof Ku||m instanceof rs)return m.getAttributes();if(!r.isInline(m))return null;if(!r.isObject(m))return[];const c=[];for(const[u,_]of m.getAttributes())r.checkAttribute("$text",u)&&!1!==r.getAttributeProperties(u).copyFromObject&&c.push([u,_]);return c}class no{constructor(r){this._dispatchers=r}add(r){for(const c of this._dispatchers)r(c);return this}}class V6 extends no{elementToElement(r){return this.add(function(c){const u=G2(c.model),_=Q2(c.view,"container");return u.attributes.length&&(u.children=!0),C=>{C.on(`insert:${u.name}`,function(M,E=J6){return(N,j,K)=>{if(!E(j.item,K.consumable,{preflight:!0}))return;const dt=M(j.item,K,j);if(!dt)return;E(j.item,K.consumable);const Dt=K.mapper.toViewPosition(j.range.start);K.mapper.bindElements(j.item,dt),K.writer.insert(Dt,dt),K.convertAttributes(j.item),e0(dt,j.item.getChildren(),K,{reconversion:j.reconversion})}}(_,j6(u)),{priority:c.converterPriority||"normal"}),(u.children||u.attributes.length)&&C.on("reduceChanges",G3(u),{priority:"low"})}}(r))}elementToStructure(r){return this.add(function(c){const u=G2(c.model),_=Q2(c.view,"container");return u.children=!0,C=>{if(C._conversionApi.schema.checkChild(u.name,"$text"))throw new at("conversion-element-to-structure-disallowed-text",C,{elementName:u.name});var M,E;C.on(`insert:${u.name}`,(M=_,E=j6(u),(N,j,K)=>{if(!E(j.item,K.consumable,{preflight:!0}))return;const dt=new Map;var Ue,qe,pn;K.writer._registerSlotFactory((Ue=j.item,qe=dt,pn=K,(Ln,pi)=>{const Ri=Ln.createContainerElement("$slot");let Go=null;if("children"===pi)Go=Array.from(Ue.getChildren());else{if("function"!=typeof pi)throw new at("conversion-slot-mode-unknown",pn.dispatcher,{modeOrFilter:pi});Go=Array.from(Ue.getChildren()).filter(ka=>pi(ka))}return qe.set(Ri,Go),Ri}));const Dt=M(j.item,K,j);if(K.writer._clearSlotFactory(),!Dt)return;(function(Ue,qe,pn){const Ln=Array.from(qe.values()).flat(),pi=new Set(Ln);if(pi.size!=Ln.length)throw new at("conversion-slot-filter-overlap",pn.dispatcher,{element:Ue});if(pi.size!=Ue.childCount)throw new at("conversion-slot-filter-incomplete",pn.dispatcher,{element:Ue})})(j.item,dt,K),E(j.item,K.consumable);const me=K.mapper.toViewPosition(j.range.start);K.mapper.bindElements(j.item,Dt),K.writer.insert(me,Dt),K.convertAttributes(j.item),function(Ue,qe,pn,Ln){pn.mapper.on("modelToViewPosition",Go,{priority:"highest"});let pi=null,Ri=null;for([pi,Ri]of qe)e0(Ue,Ri,pn,Ln),pn.writer.move(pn.writer.createRangeIn(pi),pn.writer.createPositionBefore(pi)),pn.writer.remove(pi);function Go(ka,Ts){const Il=Ri.indexOf(Ts.modelPosition.nodeAfter);Il<0||(Ts.viewPosition=Ts.mapper.findPositionIn(pi,Il))}pn.mapper.off("modelToViewPosition",Go)}(Dt,dt,K,{reconversion:j.reconversion})}),{priority:c.converterPriority||"normal"}),C.on("reduceChanges",G3(u),{priority:"low"})}}(r))}attributeToElement(r){return this.add(function(c){let u=(c=U1(c)).model;"string"==typeof u&&(u={key:u});let _=`attribute:${u.key}`;if(u.name&&(_+=":"+u.name),u.values)for(const M of u.values)c.view[M]=Q2(c.view[M],"attribute");else c.view=Q2(c.view,"attribute");const C=Mp(c);return M=>{var E;M.on(_,(E=C,(N,j,K)=>{if(!K.consumable.test(j.item,N.name))return;const dt=E(j.attributeOldValue,K,j),Dt=E(j.attributeNewValue,K,j);if(!dt&&!Dt)return;K.consumable.consume(j.item,N.name);const me=K.writer;if(j.item instanceof Ud||j.item instanceof Ou)me.wrap(me.document.selection.getFirstRange(),Dt);else{let qe=K.mapper.toViewRange(j.range);null!==j.attributeOldValue&&dt&&(qe=me.unwrap(qe,dt)),null!==j.attributeNewValue&&Dt&&me.wrap(qe,Dt)}}),{priority:c.converterPriority||"normal"})}}(r))}attributeToAttribute(r){return this.add(function(c){let u=(c=U1(c)).model;"string"==typeof u&&(u={key:u});let _=`attribute:${u.key}`;if(u.name&&(_+=":"+u.name),u.values)for(const M of u.values)c.view[M]=V1(c.view[M]);else c.view=V1(c.view);const C=Mp(c);return M=>{var E;M.on(_,(E=C,(N,j,K)=>{if(!K.consumable.test(j.item,N.name))return;const dt=E(j.attributeOldValue,K,j),Dt=E(j.attributeNewValue,K,j);if(!dt&&!Dt)return;K.consumable.consume(j.item,N.name);const me=K.mapper.toViewElement(j.item),Ue=K.writer;if(!me)throw new at("conversion-attribute-to-attribute-on-text",K.dispatcher,j);if(null!==j.attributeOldValue&&dt)if("class"==dt.key){const qe=Ss(dt.value);for(const pn of qe)Ue.removeClass(pn,me)}else if("style"==dt.key){const qe=Object.keys(dt.value);for(const pn of qe)Ue.removeStyle(pn,me)}else Ue.removeAttribute(dt.key,me);if(null!==j.attributeNewValue&&Dt)if("class"==Dt.key){const qe=Ss(Dt.value);for(const pn of qe)Ue.addClass(pn,me)}else if("style"==Dt.key){const qe=Object.keys(Dt.value);for(const pn of qe)Ue.setStyle(pn,Dt.value[pn],me)}else Ue.setAttribute(Dt.key,Dt.value,me)}),{priority:c.converterPriority||"normal"})}}(r))}markerToElement(r){return this.add(function(c){const u=Q2(c.view,"ui");return _=>{var C;_.on(`addMarker:${c.model}`,(C=u,(M,E,N)=>{E.isOpening=!0;const j=C(E,N);E.isOpening=!1;const K=C(E,N);if(!j||!K)return;const dt=E.markerRange;if(dt.isCollapsed&&!N.consumable.consume(dt,M.name))return;for(const Ue of dt)if(!N.consumable.consume(Ue.item,M.name))return;const Dt=N.mapper,me=N.writer;me.insert(Dt.toViewPosition(dt.start),j),N.mapper.bindElementToMarker(j,E.markerName),dt.isCollapsed||(me.insert(Dt.toViewPosition(dt.end),K),N.mapper.bindElementToMarker(K,E.markerName)),M.stop()}),{priority:c.converterPriority||"normal"}),_.on(`removeMarker:${c.model}`,(M,E,N)=>{const j=N.mapper.markerNameToElements(E.markerName);if(j){for(const K of j)N.mapper.unbindElementFromMarkerName(K,E.markerName),N.writer.clear(N.writer.createRangeOn(K),K);N.writer.clearClonedElementsGroup(E.markerName),M.stop()}},{priority:c.converterPriority||"normal"})}}(r))}markerToHighlight(r){return this.add((c=r,u=>{var _,C;u.on(`addMarker:${c.model}`,(_=c.view,(C,M,E)=>{if(!M.item||!(M.item instanceof Ud||M.item instanceof Ou||M.item.is("$textProxy")))return;const N=W2(_,M,E);if(!N||!E.consumable.consume(M.item,C.name))return;const j=E.writer,K=t0(j,N);if(M.item instanceof Ud||M.item instanceof Ou)j.wrap(j.document.selection.getFirstRange(),K);else{const Dt=E.mapper.toViewRange(M.range),me=j.wrap(Dt,K);for(const Ue of me.getItems())if(Ue.is("attributeElement")&&Ue.isSimilar(K)){E.mapper.bindElementToMarker(Ue,M.markerName);break}}}),{priority:c.converterPriority||"normal"}),u.on(`addMarker:${c.model}`,(C=c.view,(M,E,N)=>{if(!(E.item&&E.item instanceof Jr))return;const j=W2(C,E,N);if(!j||!N.consumable.test(E.item,M.name))return;const K=N.mapper.toViewElement(E.item);if(K&&K.getCustomProperty("addHighlight")){N.consumable.consume(E.item,M.name);for(const dt of Li._createIn(E.item))N.consumable.consume(dt.item,M.name);K.getCustomProperty("addHighlight")(K,j,N.writer),N.mapper.bindElementToMarker(K,E.markerName)}}),{priority:c.converterPriority||"normal"}),u.on(`removeMarker:${c.model}`,function(C){return(M,E,N)=>{if(E.markerRange.isCollapsed)return;const j=W2(C,E,N);if(!j)return;const K=t0(N.writer,j),dt=N.mapper.markerNameToElements(E.markerName);if(dt){for(const Dt of dt)N.mapper.unbindElementFromMarkerName(Dt,E.markerName),Dt.is("attributeElement")?N.writer.unwrap(N.writer.createRangeOn(Dt),K):Dt.getCustomProperty("removeHighlight")(Dt,j.id,N.writer);N.writer.clearClonedElementsGroup(E.markerName),M.stop()}}}(c.view),{priority:c.converterPriority||"normal"})}));var c}markerToData(r){return this.add(function(c){const u=(c=U1(c)).model;let _=c.view;return _||(_=C=>({group:u,name:C.substr(c.model.length+1)})),C=>{var M,E;C.on(`addMarker:${u}`,(M=_,(E,N,j)=>{const K=M(N.markerName,j);if(!K)return;const dt=N.markerRange;j.consumable.consume(dt,E.name)&&(Eu(dt,!1,j,N,K),Eu(dt,!0,j,N,K),E.stop())}),{priority:c.converterPriority||"normal"}),C.on(`removeMarker:${u}`,(E=_,(N,j,K)=>{const dt=E(j.markerName,K);if(!dt)return;const Dt=K.mapper.markerNameToElements(j.markerName);if(Dt){for(const Ue of Dt)K.mapper.unbindElementFromMarkerName(Ue,j.markerName),Ue.is("containerElement")?(me(`data-${dt.group}-start-before`,Ue),me(`data-${dt.group}-start-after`,Ue),me(`data-${dt.group}-end-before`,Ue),me(`data-${dt.group}-end-after`,Ue)):K.writer.clear(K.writer.createRangeOn(Ue),Ue);K.writer.clearClonedElementsGroup(j.markerName),N.stop()}function me(Ue,qe){if(qe.hasAttribute(Ue)){const pn=new Set(qe.getAttribute(Ue).split(","));pn.delete(dt.name),0==pn.size?K.writer.removeAttribute(Ue,qe):K.writer.setAttribute(Ue,Array.from(pn).join(","),qe)}}}),{priority:c.converterPriority||"normal"})}}(r))}}function t0(m,r){const c=m.createAttributeElement("span",r.attributes);return r.classes&&c._addClass(r.classes),"number"==typeof r.priority&&(c._priority=r.priority),c._id=r.id,c}function Eu(m,r,c,u,_){const C=r?m.start:m.end,M=C.nodeAfter&&C.nodeAfter.is("element")?C.nodeAfter:null,E=C.nodeBefore&&C.nodeBefore.is("element")?C.nodeBefore:null;if(M||E){let N,j;r&&M||!r&&!E?(N=M,j=!0):(N=E,j=!1);const K=c.mapper.toViewElement(N);if(K)return void function(dt,Dt,me,Ue,qe,pn){const Ln=`data-${pn.group}-${Dt?"start":"end"}-${me?"before":"after"}`,pi=dt.hasAttribute(Ln)?dt.getAttribute(Ln).split(","):[];pi.unshift(pn.name),Ue.writer.setAttribute(Ln,pi.join(","),dt),Ue.mapper.bindElementToMarker(dt,qe.markerName)}(K,r,j,c,u,_)}!function(N,j,K,dt,Dt){const qe=K.writer.createUIElement(`${Dt.group}-${j?"start":"end"}`,Dt.name?{name:Dt.name}:null);K.writer.insert(N,qe),K.mapper.bindElementToMarker(qe,dt.markerName)}(c.mapper.toViewPosition(C),r,c,u,_)}function G2(m){return"string"==typeof m&&(m={name:m}),m.attributes?Array.isArray(m.attributes)||(m.attributes=[m.attributes]):m.attributes=[],m.children=!!m.children,m}function Q2(m,r){return"function"==typeof m?m:(c,u)=>function(_,C,M){let E;"string"==typeof _&&(_={name:_});const N=C.writer,j=Object.assign({},_.attributes);if(E="container"==M?N.createContainerElement(_.name,j):"attribute"==M?N.createAttributeElement(_.name,j,{priority:_.priority||tm.DEFAULT_PRIORITY}):N.createUIElement(_.name,j),_.styles){const K=Object.keys(_.styles);for(const dt of K)N.setStyle(dt,_.styles[dt],E)}if(_.classes){const K=_.classes;if("string"==typeof K)N.addClass(K,E);else for(const dt of K)N.addClass(dt,E)}return E}(m,u,r)}function Mp(m){return m.model.values?(r,c,u)=>{const _=m.view[r];return _?_(r,c,u):null}:m.view}function V1(m){return"string"==typeof m?r=>({key:m,value:r}):"object"==typeof m?m.value?()=>m:r=>({key:m.key,value:r}):m}function W2(m,r,c){const u="function"==typeof m?m(r,c):m;return u?(u.priority||(u.priority=10),u.id||(u.id=r.markerName),u):null}function G3(m){const r=(c=m,(u,_)=>{if(!u.is("element",c.name))return!1;if("attribute"==_.type){if(c.attributes.includes(_.attributeKey))return!0}else if(c.children)return!0;return!1});var c;return(c,u)=>{const _=[];u.reconvertedElements||(u.reconvertedElements=new Set);for(const C of u.changes){const M="attribute"==C.type?C.range.start.nodeAfter:C.position.parent;if(M&&r(M,C)){if(!u.reconvertedElements.has(M)){u.reconvertedElements.add(M);const E=to._createBefore(M);let N=_.length;for(let j=_.length-1;j>=0;j--){const K=_[j],dt=("attribute"==K.type?K.range.start:K.position).compareWith(E);if("before"==dt||"remove"==K.type&&"same"==dt)break;N=j}_.splice(N,0,{type:"remove",name:M.name,position:E,length:1},{type:"reinsert",name:M.name,position:E,length:1})}}else _.push(C)}u.changes=_}}function j6(m){return(r,c,u={})=>{const _=["insert"];for(const C of m.attributes)r.hasAttribute(C)&&_.push(`attribute:${C}`);return!!_.every(C=>c.test(r,C))&&(u.preflight||_.forEach(C=>c.consume(r,C)),!0)}}function e0(m,r,c,u){for(const _ of r)cm(m.root,_,c,u)||c.convertItem(_)}function cm(m,r,c,u){const{writer:_,mapper:C}=c;if(!u.reconversion)return!1;const M=C.toViewElement(r);return!(!M||M.root==m||!c.canReuseView(M)||(_.move(_.createRangeOn(M),C.toViewPosition(to._createBefore(r))),0))}function J6(m,r,{preflight:c}={}){return c?r.test(m,"insert"):r.consume(m,"insert")}function nh(m){const{schema:r,document:c}=m.model;for(const u of c.getRoots())if(u.isEmpty&&!r.checkChild(u,"$text")&&r.checkChild(u,"paragraph"))return m.insertElement("paragraph",u),!0;return!1}function $2(m,r,c){const u=c.createContext(m);return!!c.checkChild(u,"paragraph")&&!!c.checkChild(u.push("paragraph"),r)}function n0(m,r){const c=r.createElement("paragraph");return r.insert(c,m),r.createPositionAt(c,0)}var Q3=Object.defineProperty,K2=Object.defineProperties,ih=Object.getOwnPropertyDescriptors,oh=Object.getOwnPropertySymbols,Qd=Object.prototype.hasOwnProperty,o0=Object.prototype.propertyIsEnumerable,G_=(m,r,c)=>r in m?Q3(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class G6 extends no{elementToElement(r){return this.add(W3(r))}elementToAttribute(r){return this.add(function(c){Sl(c=U1(c));const u=Wd(c,!1),_=ah(c.view),C=_?`element:${_}`:"element";return M=>{M.on(C,u,{priority:c.converterPriority||"low"})}}(r))}attributeToAttribute(r){return this.add(function(c){let u=null;("string"==typeof(c=U1(c)).view||c.view.key)&&(u=function(C){"string"==typeof C.view&&(C.view={key:C.view});const M=C.view.key;let E;return E="class"==M||"style"==M?{["class"==M?"classes":"styles"]:C.view.value}:{attributes:{[M]:void 0===C.view.value?/[\s\S]*/:C.view.value}},C.view.name&&(E.name=C.view.name),C.view=E,M}(c)),Sl(c,u);const _=Wd(c,!0);return C=>{C.on("element",_,{priority:c.converterPriority||"low"})}}(r))}elementToMarker(r){return this.add(function(c){const u=(M=c.model,(E,N)=>{const j="string"==typeof M?M:M(E,N);return N.writer.createElement("$marker",{"data-name":j})});var M,_;return W3((_=((M,E)=>{for(var N in E||(E={}))Qd.call(E,N)&&G_(M,N,E[N]);if(oh)for(var N of oh(E))o0.call(E,N)&&G_(M,N,E[N]);return M})({},c),K2(_,ih({model:u}))))}(r))}dataToMarker(r){return this.add(function(c){(c=U1(c)).model||(c.model=M=>M?c.view+":"+M:c.view);const u={view:c.view,model:c.model},_=lm(kp(u,"start")),C=lm(kp(u,"end"));return M=>{M.on(`element:${c.view}-start`,_,{priority:c.converterPriority||"normal"}),M.on(`element:${c.view}-end`,C,{priority:c.converterPriority||"normal"});const E=St.low,N=St.highest,j=St.get(c.converterPriority)/N;var K;M.on("element",(K=u,(dt,Dt,me)=>{const Ue=`data-${K.view}`;function qe(pn,Ln){for(const pi of Ln){const Ri=K.model(pi,me),Go=me.writer.createElement("$marker",{"data-name":Ri});me.writer.insert(Go,pn),Dt.modelCursor=Dt.modelCursor.isEqual(pn)?Dt.modelCursor.getShiftedBy(1):Dt.modelCursor._getTransformedByInsertion(pn,1),Dt.modelRange=Dt.modelRange._getTransformedByInsertion(pn,1)[0]}}(me.consumable.test(Dt.viewItem,{attributes:Ue+"-end-after"})||me.consumable.test(Dt.viewItem,{attributes:Ue+"-start-after"})||me.consumable.test(Dt.viewItem,{attributes:Ue+"-end-before"})||me.consumable.test(Dt.viewItem,{attributes:Ue+"-start-before"}))&&(Dt.modelRange||Object.assign(Dt,me.convertChildren(Dt.viewItem,Dt.modelCursor)),me.consumable.consume(Dt.viewItem,{attributes:Ue+"-end-after"})&&qe(Dt.modelRange.end,Dt.viewItem.getAttribute(Ue+"-end-after").split(",")),me.consumable.consume(Dt.viewItem,{attributes:Ue+"-start-after"})&&qe(Dt.modelRange.end,Dt.viewItem.getAttribute(Ue+"-start-after").split(",")),me.consumable.consume(Dt.viewItem,{attributes:Ue+"-end-before"})&&qe(Dt.modelRange.start,Dt.viewItem.getAttribute(Ue+"-end-before").split(",")),me.consumable.consume(Dt.viewItem,{attributes:Ue+"-start-before"})&&qe(Dt.modelRange.start,Dt.viewItem.getAttribute(Ue+"-start-before").split(",")))}),{priority:E+j})}}(r))}}function W3(m){const r=lm(m=U1(m)),c=ah(m.view),u=c?`element:${c}`:"element";return _=>{_.on(u,r,{priority:m.converterPriority||"normal"})}}function ah(m){return"string"==typeof m?m:"object"==typeof m&&"string"==typeof m.name?m.name:null}function lm(m){const r=new ds(m.view);return(c,u,_)=>{const C=r.match(u.viewItem);if(!C)return;const M=C.match;if(M.name=!0,!_.consumable.test(u.viewItem,M))return;const E=(K=_,(N=m.model)instanceof Function?N(u.viewItem,K):K.writer.createElement(N));var N,K;E&&_.safeInsert(E,u.modelCursor)&&(_.consumable.consume(u.viewItem,M),_.convertChildren(u.viewItem,E),_.updateConversionResult(E,u))}}function Sl(m,r=null){m.model={key:"object"!=typeof m.model?m.model:m.model.key,value:"object"!=typeof m.model||void 0===m.model.value?null===r||(C=>C.getAttribute(r)):m.model.value}}function Wd(m,r){const c=new ds(m.view);return(u,_,C)=>{if(!_.modelRange&&r)return;const M=c.match(_.viewItem);if(!M||(function(K,dt){const Dt="function"==typeof K?K(dt):K;return!("object"==typeof Dt&&!ah(Dt)||Dt.classes||Dt.attributes||Dt.styles)}(m.view,_.viewItem)?M.match.name=!0:delete M.match.name,!C.consumable.test(_.viewItem,M.match)))return;const E=m.model.key,N="function"==typeof m.model.value?m.model.value(_.viewItem,C):m.model.value;null!==N&&(_.modelRange||Object.assign(_,C.convertChildren(_.viewItem,_.modelCursor)),function(K,dt,Dt,me){let Ue=!1;for(const qe of Array.from(K.getItems({shallow:Dt})))me.schema.checkAttribute(qe,dt.key)&&(Ue=!0,qe.hasAttribute(dt.key)||me.writer.setAttribute(dt.key,dt.value,qe));return Ue}(_.modelRange,{key:E,value:N},r,C)&&(C.consumable.test(_.viewItem,{name:!0})&&(M.match.name=!0),C.consumable.consume(_.viewItem,M.match)))}}function kp(m,r){return{view:`${m.view}-${r}`,model:(c,u)=>{const _=c.getAttribute("name"),C=m.model(_,u);return u.writer.createElement("$marker",{"data-name":C})}}}function Ga(m,r){return m.isCollapsed?function(c,u){const _=c.start,C=u.getNearestSelectionRange(_);if(!C){const E=_.getAncestors().reverse().find(N=>u.isObject(N));return E?Li._createOn(E):null}if(!C.isCollapsed)return C;const M=C.start;return _.isEqual(M)?null:new Li(M)}(m,r):function(c,u){const{start:_,end:C}=c,M=u.checkChild(_,"$text"),E=u.checkChild(C,"$text"),N=u.getLimitElement(_),j=u.getLimitElement(C);if(N===j){if(M&&E)return null;if(function(Dt,me,Ue){const qe=Dt.nodeAfter&&!Ue.isLimit(Dt.nodeAfter)||Ue.checkChild(Dt,"$text"),pn=me.nodeBefore&&!Ue.isLimit(me.nodeBefore)||Ue.checkChild(me,"$text");return qe||pn}(_,C,u)){const Dt=_.nodeAfter&&u.isSelectable(_.nodeAfter)?null:u.getNearestSelectionRange(_,"forward"),me=C.nodeBefore&&u.isSelectable(C.nodeBefore)?null:u.getNearestSelectionRange(C,"backward");return new Li(Dt?Dt.start:_,me?me.end:C)}}const K=N&&!N.is("rootElement"),dt=j&&!j.is("rootElement");if(K||dt){const Dt=_.nodeAfter&&C.nodeBefore&&_.nodeAfter.parent===C.nodeBefore.parent,me=K&&(!Dt||!Q_(_.nodeAfter,u)),Ue=dt&&(!Dt||!Q_(C.nodeBefore,u));let qe=_,pn=C;return me&&(qe=to._createBefore(sh(N,u))),Ue&&(pn=to._createAfter(sh(j,u))),new Li(qe,pn)}return null}(m,r)}function sh(m,r){let c=m,u=c;for(;r.isLimit(u)&&u.parent;)c=u,u=u.parent;return c}function Q_(m,r){return m&&r.isSelectable(m)}class um extends(Ze()){constructor(r,c){super(),this.model=r,this.view=new jg(c),this.mapper=new V3,this.downcastDispatcher=new Qg({mapper:this.mapper,schema:r.schema});const u=this.model.document,_=u.selection,C=this.model.markers;var M,E,N,j,K;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(u,"change",()=>{this.view.change(j=>{this.downcastDispatcher.convertChanges(u.differ,C,j),this.downcastDispatcher.convertSelection(_,C,j)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(j=this.model,K=this.mapper,(dt,Dt)=>{const me=Dt.newSelection,Ue=[];for(const pn of me.getRanges())Ue.push(K.toModelRange(pn));const qe=j.createSelection(Ue,{backward:me.isBackward});qe.isEqual(j.document.selection)||j.change(pn=>{pn.setSelection(qe)})})),this.listenTo(this.view.document,"beforeinput",(M=this.mapper,E=this.model.schema,N=this.view,(j,K)=>{if(!N.document.isComposing||D_isAndroid)for(let dt=0;dt{if(!dt.consumable.consume(K.item,j.name))return;const Dt=dt.writer,me=dt.mapper.toViewPosition(K.range.start),Ue=Dt.createText(K.item.data);Dt.insert(me,Ue)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(j,K,dt)=>{dt.convertAttributes(K.item),K.reconversion||!K.item.is("element")||K.item.isEmpty||dt.convertChildren(K.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(j,K,dt)=>{const Dt=dt.mapper.toViewPosition(K.position),me=K.position.getShiftedBy(K.length),Ue=dt.mapper.toViewPosition(me,{isPhantom:!0}),qe=dt.writer.createRange(Dt,Ue),pn=dt.writer.remove(qe.getTrimmed());for(const Ln of dt.writer.createRangeIn(pn).getItems())dt.mapper.unbindViewElement(Ln,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("cleanSelection",(j,K,dt)=>{const Dt=dt.writer,me=Dt.document.selection;for(const Ue of me.getRanges())Ue.isCollapsed&&Ue.end.parent.isAttached()&&dt.writer.mergeAttributes(Ue.start);Dt.setSelection(null)}),this.downcastDispatcher.on("selection",(j,K,dt)=>{const Dt=K.selection;if(Dt.isCollapsed||!dt.consumable.consume(Dt,"selection"))return;const me=[];for(const Ue of Dt.getRanges())me.push(dt.mapper.toViewRange(Ue));dt.writer.setSelection(me,{backward:Dt.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(j,K,dt)=>{const Dt=K.selection;if(!Dt.isCollapsed||!dt.consumable.consume(Dt,"selection"))return;const me=dt.writer,Ue=Dt.getFirstPosition(),qe=dt.mapper.toViewPosition(Ue),pn=me.breakAttributes(qe);me.setSelection(pn)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(j=>{if("$graveyard"==j.rootName)return null;const K=new qm(this.view.document,j.name);return K.rootName=j.rootName,this.mapper.bindElements(j,K),K})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(r){const c="string"==typeof r?r:r.name,u=this.model.markers.get(c);if(!u)throw new at("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:c});this.model.change(()=>{this.model.markers._refresh(u)})}reconvertItem(r){this.model.change(()=>{this.model.document.differ._refreshItem(r)})}}class W_{constructor(){this._consumables=new Map}add(r,c){let u;r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):(this._consumables.has(r)?u=this._consumables.get(r):(u=new lh(r),this._consumables.set(r,u)),u.add(c))}test(r,c){const u=this._consumables.get(r);return void 0===u?null:r.is("$text")||r.is("documentFragment")?u:u.test(c)}consume(r,c){return!!this.test(r,c)&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!1):this._consumables.get(r).consume(c),!0)}revert(r,c){const u=this._consumables.get(r);void 0!==u&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):u.revert(c))}static consumablesFromElement(r){const c={element:r,name:!0,attributes:[],classes:[],styles:[]},u=r.getAttributeKeys();for(const M of u)"style"!=M&&"class"!=M&&c.attributes.push(M);const _=r.getClassNames();for(const M of _)c.classes.push(M);const C=r.getStyleNames();for(const M of C)c.styles.push(M);return c}static createFrom(r,c){if(c||(c=new W_),r.is("$text"))return c.add(r),c;r.is("element")&&c.add(r,W_.consumablesFromElement(r)),r.is("documentFragment")&&c.add(r);for(const u of r.getChildren())c=W_.createFrom(u,c);return c}}const ch=["attributes","classes","styles"];class lh{constructor(r){this.element=r,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(r){r.name&&(this._canConsumeName=!0);for(const c of ch)c in r&&this._add(c,r[c])}test(r){if(r.name&&!this._canConsumeName)return this._canConsumeName;for(const c of ch)if(c in r){const u=this._test(c,r[c]);if(!0!==u)return u}return!0}consume(r){r.name&&(this._canConsumeName=!1);for(const c of ch)c in r&&this._consume(c,r[c])}revert(r){r.name&&(this._canConsumeName=!0);for(const c of ch)c in r&&this._revert(c,r[c])}_add(r,c){const u=je(c)?c:[c],_=this._consumables[r];for(const C of u){if("attributes"===r&&("class"===C||"style"===C))throw new at("viewconsumable-invalid-attribute",this);if(_.set(C,!0),"styles"===r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(C))_.set(M,!0)}}_test(r,c){const u=je(c)?c:[c],_=this._consumables[r];for(const C of u)if("attributes"!==r||"class"!==C&&"style"!==C){const M=_.get(C);if(void 0===M)return null;if(!M)return!1}else{const M="class"==C?"classes":"styles",E=this._test(M,[...this._consumables[M].keys()]);if(!0!==E)return E}return!0}_consume(r,c){const u=je(c)?c:[c],_=this._consumables[r];for(const C of u)if("attributes"!==r||"class"!==C&&"style"!==C){if(_.set(C,!1),"styles"==r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(C))_.set(M,!1)}else{const M="class"==C?"classes":"styles";this._consume(M,[...this._consumables[M].keys()])}}_revert(r,c){const u=je(c)?c:[c],_=this._consumables[r];for(const C of u)if("attributes"!==r||"class"!==C&&"style"!==C)!1===_.get(C)&&_.set(C,!0);else{const M="class"==C?"classes":"styles";this._revert(M,[...this._consumables[M].keys()])}}}class $3 extends(Ze()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(r,c)=>{c[0]=new dm(c[0])},{priority:"highest"}),this.on("checkChild",(r,c)=>{c[0]=new dm(c[0]),c[1]=this.getDefinition(c[1])},{priority:"highest"})}register(r,c){if(this._sourceDefinitions[r])throw new at("schema-cannot-register-item-twice",this,{itemName:r});this._sourceDefinitions[r]=[Object.assign({},c)],this._clearCache()}extend(r,c){if(!this._sourceDefinitions[r])throw new at("schema-cannot-extend-missing-item",this,{itemName:r});this._sourceDefinitions[r].push(Object.assign({},c)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(r){let c;return c="string"==typeof r?r:"is"in r&&(r.is("$text")||r.is("$textProxy"))?"$text":r.name,this.getDefinitions()[c]}isRegistered(r){return!!this.getDefinition(r)}isBlock(r){const c=this.getDefinition(r);return!(!c||!c.isBlock)}isLimit(r){const c=this.getDefinition(r);return!(!c||!c.isLimit&&!c.isObject)}isObject(r){const c=this.getDefinition(r);return!!c&&!!(c.isObject||c.isLimit&&c.isSelectable&&c.isContent)}isInline(r){const c=this.getDefinition(r);return!(!c||!c.isInline)}isSelectable(r){const c=this.getDefinition(r);return!(!c||!c.isSelectable&&!c.isObject)}isContent(r){const c=this.getDefinition(r);return!(!c||!c.isContent&&!c.isObject)}checkChild(r,c){return!!c&&this._checkContextMatch(c,r)}checkAttribute(r,c){const u=this.getDefinition(r.last);return!!u&&u.allowAttributes.includes(c)}checkMerge(r,c){if(r instanceof to){const u=r.nodeBefore,_=r.nodeAfter;if(!(u instanceof Jr))throw new at("schema-check-merge-no-element-before",this);if(!(_ instanceof Jr))throw new at("schema-check-merge-no-element-after",this);return this.checkMerge(u,_)}for(const u of c.getChildren())if(!this.checkChild(r,u))return!1;return!0}addChildCheck(r){this.on("checkChild",(c,[u,_])=>{if(!_)return;const C=r(u,_);"boolean"==typeof C&&(c.stop(),c.return=C)},{priority:"high"})}addAttributeCheck(r){this.on("checkAttribute",(c,[u,_])=>{const C=r(u,_);"boolean"==typeof C&&(c.stop(),c.return=C)},{priority:"high"})}setAttributeProperties(r,c){this._attributeProperties[r]=Object.assign(this.getAttributeProperties(r),c)}getAttributeProperties(r){return this._attributeProperties[r]||{}}getLimitElement(r){let c;for(c=r instanceof to?r.parent:(r instanceof Li?[r]:Array.from(r.getRanges())).reduce((u,_)=>{const C=_.getCommonAncestor();return u?u.getCommonAncestor(C,{includeSelf:!0}):C},null);!this.isLimit(c)&&c.parent;)c=c.parent;return c}checkAttributeInSelection(r,c){if(r.isCollapsed){const u=[...r.getFirstPosition().getAncestors(),new rs("",r.getAttributes())];return this.checkAttribute(u,c)}{const u=r.getRanges();for(const _ of u)for(const C of _)if(this.checkAttribute(C.item,c))return!0}return!1}*getValidRanges(r,c){r=function*(u){for(const _ of u)yield*_.getMinimalFlatRanges()}(r);for(const u of r)yield*this._getValidRangesForRange(u,c)}getNearestSelectionRange(r,c="both"){if("$graveyard"==r.root.rootName)return null;if(this.checkChild(r,"$text"))return new Li(r);let u,_;const C=r.getAncestors().reverse().find(M=>this.isLimit(M))||r.root;"both"!=c&&"backward"!=c||(u=new Gd({boundaries:Li._createIn(C),startPosition:r,direction:"backward"})),"both"!=c&&"forward"!=c||(_=new Gd({boundaries:Li._createIn(C),startPosition:r}));for(const M of function*(E,N){let j=!1;for(;!j;){if(j=!0,E){const K=E.next();K.done||(j=!1,yield{walker:E,value:K.value})}if(N){const K=N.next();K.done||(j=!1,yield{walker:N,value:K.value})}}}(u,_)){const N=M.value;if(N.type==(M.walker==u?"elementEnd":"elementStart")&&this.isObject(N.item))return Li._createOn(N.item);if(this.checkChild(N.nextPosition,"$text"))return new Li(N.nextPosition)}return null}findAllowedParent(r,c){let u=r.parent;for(;u;){if(this.checkChild(u,c))return u;if(this.isLimit(u))return null;u=u.parent}return null}setAllowedAttributes(r,c,u){const _=u.model;for(const[C,M]of Object.entries(c))_.schema.checkAttribute(r,C)&&u.setAttribute(C,M,r)}removeDisallowedAttributes(r,c){for(const u of r)if(u.is("$text"))uh(this,u,c);else{const _=Li._createIn(u).getPositions();for(const C of _)uh(this,C.nodeBefore||C.parent,c)}}getAttributesWithProperty(r,c,u){const _={};for(const[C,M]of r.getAttributes()){const E=this.getAttributeProperties(C);void 0!==E[c]&&(void 0!==u&&u!==E[c]||(_[C]=M))}return _}createContext(r){return new dm(r)}_clearCache(){this._compiledDefinitions=null}_compile(){const r={},c=this._sourceDefinitions,u=Object.keys(c);for(const _ of u)r[_]=a0(c[_],_);for(const _ of u)K3(r,_);for(const _ of u)Q6(r,_);for(const _ of u)X3(r,_);for(const _ of u)Zd(r,_),pm(r,_);for(const _ of u)W6(r,_),Dp(r,_),Qa(r,_);this._compiledDefinitions=r}_checkContextMatch(r,c,u=c.length-1){const _=c.getItem(u);if(r.allowIn.includes(_.name)){if(0==u)return!0;{const C=this.getDefinition(_);return this._checkContextMatch(C,c,u-1)}}return!1}*_getValidRangesForRange(r,c){let u=r.start,_=r.start;for(const C of r.getItems({shallow:!0}))C.is("element")&&(yield*this._getValidRangesForRange(Li._createIn(C),c)),this.checkAttribute(C,c)||(u.isEqual(_)||(yield new Li(u,_)),u=to._createAfter(C)),_=to._createAfter(C);u.isEqual(_)||(yield new Li(u,_))}}class dm{constructor(r){if(r instanceof dm)return r;let c;c="string"==typeof r?[r]:Array.isArray(r)?r:r.getAncestors({includeSelf:!0}),this._items=c.map(Nc)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(r){const c=new dm([r]);return c._items=[...this._items,...c._items],c}getItem(r){return this._items[r]}*getNames(){yield*this._items.map(r=>r.name)}endsWith(r){return Array.from(this.getNames()).join(" ").endsWith(r)}startsWith(r){return Array.from(this.getNames()).join(" ").startsWith(r)}}function a0(m,r){const c={name:r,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(u,_){for(const C of u){const M=Object.keys(C).filter(E=>E.startsWith("is"));for(const E of M)_[E]=!!C[E]}}(m,c),Jm(m,c,"allowIn"),Jm(m,c,"allowContentOf"),Jm(m,c,"allowWhere"),Jm(m,c,"allowAttributes"),Jm(m,c,"allowAttributesOf"),Jm(m,c,"allowChildren"),Jm(m,c,"inheritTypesFrom"),function(u,_){for(const C of u){const M=C.inheritAllFrom;M&&(_.allowContentOf.push(M),_.allowWhere.push(M),_.allowAttributesOf.push(M),_.inheritTypesFrom.push(M))}}(m,c),c}function K3(m,r){const c=m[r];for(const u of c.allowChildren){const _=m[u];_&&_.allowIn.push(r)}c.allowChildren.length=0}function Q6(m,r){for(const c of m[r].allowContentOf)m[c]&&td(m,c).forEach(u=>{u.allowIn.push(r)});delete m[r].allowContentOf}function X3(m,r){for(const c of m[r].allowWhere){const u=m[c];u&&m[r].allowIn.push(...u.allowIn)}delete m[r].allowWhere}function Zd(m,r){for(const c of m[r].allowAttributesOf){const u=m[c];u&&m[r].allowAttributes.push(...u.allowAttributes)}delete m[r].allowAttributesOf}function pm(m,r){const c=m[r];for(const u of c.inheritTypesFrom){const _=m[u];if(_){const C=Object.keys(_).filter(M=>M.startsWith("is"));for(const M of C)M in c||(c[M]=_[M])}}delete c.inheritTypesFrom}function W6(m,r){const c=m[r],u=c.allowIn.filter(_=>m[_]);c.allowIn=Array.from(new Set(u))}function Dp(m,r){const c=m[r];for(const u of c.allowIn)m[u].allowChildren.push(r)}function Qa(m,r){const c=m[r];c.allowAttributes=Array.from(new Set(c.allowAttributes))}function Jm(m,r,c){for(const u of m){const _=u[c];"string"==typeof _?r[c].push(_):Array.isArray(_)&&r[c].push(..._)}}function td(m,r){const c=m[r];return(u=m,Object.keys(u).map(_=>u[_])).filter(_=>_.allowIn.includes(c.name));var u}function Nc(m){return"string"==typeof m||m.is("documentFragment")?{name:"string"==typeof m?m:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:m.is("element")?m.name:"$text",*getAttributeKeys(){yield*m.getAttributeKeys()},getAttribute:r=>m.getAttribute(r)}}function uh(m,r,c){for(const u of r.getAttributeKeys())m.checkAttribute(r,u)||c.removeAttribute(u,r)}var Md=Object.defineProperty,r0=Object.defineProperties,dh=Object.getOwnPropertyDescriptors,s0=Object.getOwnPropertySymbols,Gm=Object.prototype.hasOwnProperty,X2=Object.prototype.propertyIsEnumerable,tf=(m,r,c)=>r in m?Md(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Qm extends(Ne()){constructor(r){var c;super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=(c=((u,_)=>{for(var C in _||(_={}))Gm.call(_,C)&&tf(u,C,_[C]);if(s0)for(var C of s0(_))X2.call(_,C)&&tf(u,C,_[C]);return u})({},r),r0(c,dh({consumable:null,writer:null,store:null,convertItem:(u,_)=>this._convertItem(u,_),convertChildren:(u,_)=>this._convertChildren(u,_),safeInsert:(u,_)=>this._safeInsert(u,_),updateConversionResult:(u,_)=>this._updateConversionResult(u,_),splitToAllowedParent:(u,_)=>this._splitToAllowedParent(u,_),getSplitParts:u=>this._getSplitParts(u),keepEmptyElement:u=>this._keepEmptyElement(u)})))}convert(r,c,u=["$root"]){this.fire("viewCleanup",r),this._modelCursor=function(M,E){let N;for(const j of new dm(M)){const K={};for(const Dt of j.getAttributeKeys())K[Dt]=j.getAttribute(Dt);const dt=E.createElement(j.name,K);N&&E.insert(dt,N),N=to._createAt(dt,0)}return N}(u,c),this.conversionApi.writer=c,this.conversionApi.consumable=W_.createFrom(r),this.conversionApi.store={};const{modelRange:_}=this._convertItem(r,this._modelCursor),C=c.createDocumentFragment();if(_){this._removeEmptyElements();for(const M of Array.from(this._modelCursor.parent.getChildren()))c.append(M,C);C.markers=function(M,E){const N=new Set,j=new Map,K=Li._createIn(M).getItems();for(const dt of K)dt.is("element","$marker")&&N.add(dt);for(const dt of N){const Dt=dt.getAttribute("data-name"),me=E.createPositionBefore(dt);j.has(Dt)?j.get(Dt).end=me.clone():j.set(Dt,new Li(me.clone())),E.remove(dt)}return j}(C,c)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,C}_convertItem(r,c){const u={viewItem:r,modelCursor:c,modelRange:null};if(r.is("element")?this.fire(`element:${r.name}`,u,this.conversionApi):r.is("$text")?this.fire("text",u,this.conversionApi):this.fire("documentFragment",u,this.conversionApi),u.modelRange&&!(u.modelRange instanceof Li))throw new at("view-conversion-dispatcher-incorrect-result",this);return{modelRange:u.modelRange,modelCursor:u.modelCursor}}_convertChildren(r,c){let u=c.is("position")?c:to._createAt(c,0);const _=new Li(u);for(const C of Array.from(r.getChildren())){const M=this._convertItem(C,u);M.modelRange instanceof Li&&(_.end=M.modelRange.end,u=M.modelCursor)}return{modelRange:_,modelCursor:u}}_safeInsert(r,c){const u=this._splitToAllowedParent(r,c);return!!u&&(this.conversionApi.writer.insert(r,u.position),!0)}_updateConversionResult(r,c){const u=this._getSplitParts(r),_=this.conversionApi.writer;c.modelRange||(c.modelRange=_.createRange(_.createPositionBefore(r),_.createPositionAfter(u[u.length-1])));const C=this._cursorParents.get(r);c.modelCursor=C?_.createPositionAt(C,0):c.modelRange.end}_splitToAllowedParent(r,c){const{schema:u,writer:_}=this.conversionApi;let C=u.findAllowedParent(c,r);if(C){if(C===c.parent)return{position:c};this._modelCursor.parent.getAncestors().includes(C)&&(C=null)}if(!C)return $2(c,r,u)?{position:n0(c,_)}:null;const M=this.conversionApi.writer.split(c,C),E=[];for(const j of M.range.getWalker())if("elementEnd"==j.type)E.push(j.item);else{const K=E.pop();this._registerSplitPair(K,j.item)}const N=M.range.end.parent;return this._cursorParents.set(r,N),{position:M.position,cursorParent:N}}_registerSplitPair(r,c){this._splitParts.has(r)||this._splitParts.set(r,[r]);const u=this._splitParts.get(r);this._splitParts.set(c,u),u.push(c)}_getSplitParts(r){let c;return c=this._splitParts.has(r)?this._splitParts.get(r):[r],c}_keepEmptyElement(r){this._emptyElementsToKeep.add(r)}_removeEmptyElements(){let r=!1;for(const c of this._splitParts.keys())c.isEmpty&&!this._emptyElementsToKeep.has(c)&&(this.conversionApi.writer.remove(c),this._splitParts.delete(c),r=!0);r&&this._removeEmptyElements()}}class j1{getHtml(r){const c=document.implementation.createHTMLDocument("").createElement("div");return c.appendChild(r),c.innerHTML}}class c0{constructor(r){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new N_(r,{renderingMode:"data"}),this.htmlWriter=new j1}toData(r){const c=this.domConverter.viewToDom(r);return this.htmlWriter.getHtml(c)}toView(r){const c=this._toDom(r);return this.domConverter.domToView(c,{skipComments:this.skipComments})}registerRawContentMatcher(r){this.domConverter.registerRawContentMatcher(r)}useFillerType(r){this.domConverter.blockFillerMode="marked"==r?"markedNbsp":"nbsp"}_toDom(r){r.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(r=`${r}`);const c=this.domParser.parseFromString(r,"text/html"),u=c.createDocumentFragment(),_=c.body.childNodes;for(;_.length>0;)u.appendChild(_[0]);return u}}class $_ extends(Ne()){constructor(r,c){super(),this.model=r,this.mapper=new V3,this.downcastDispatcher=new Qg({mapper:this.mapper,schema:r.schema}),this.downcastDispatcher.on("insert:$text",(u,_,C)=>{if(!C.consumable.consume(_.item,u.name))return;const M=C.writer,E=C.mapper.toViewPosition(_.range.start),N=M.createText(_.item.data);M.insert(E,N)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(u,_,C)=>{C.convertAttributes(_.item),_.reconversion||!_.item.is("element")||_.item.isEmpty||C.convertChildren(_.item)},{priority:"lowest"}),this.upcastDispatcher=new Qm({schema:r.schema}),this.viewDocument=new Xp(c),this.stylesProcessor=c,this.htmlProcessor=new c0(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Hm(this.viewDocument),this.upcastDispatcher.on("text",(u,_,{schema:C,consumable:M,writer:E})=>{let N=_.modelCursor;if(!M.test(_.viewItem))return;if(!C.checkChild(N,"$text")){if(!$2(N,"$text",C)||0==_.viewItem.data.trim().length)return;const K=N.nodeBefore;N=n0(N,E),K&&K.is("element","$marker")&&(E.move(E.createRangeOn(K),N),N=E.createPositionAfter(K))}M.consume(_.viewItem);const j=E.createText(_.viewItem.data);E.insert(j,N),_.modelRange=E.createRange(N,N.getShiftedBy(j.offsetSize)),_.modelCursor=_.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(u,_,C)=>{if(!_.modelRange&&C.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=C.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(u,_,C)=>{if(!_.modelRange&&C.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=C.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),Ze().prototype.decorate.call(this,"init"),Ze().prototype.decorate.call(this,"set"),Ze().prototype.decorate.call(this,"get"),Ze().prototype.decorate.call(this,"toView"),Ze().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},nh)},{priority:"lowest"})}get(r={}){const{rootName:c="main",trim:u="empty"}=r;if(!this._checkIfRootsExists([c]))throw new at("datacontroller-get-non-existent-root",this);const _=this.model.document.getRoot(c);return _.isAttached()||Zt("datacontroller-get-detached-root",this),"empty"!==u||this.model.hasContent(_,{ignoreWhitespaces:!0})?this.stringify(_,r):""}stringify(r,c={}){const u=this.toView(r,c);return this.processor.toData(u)}toView(r,c={}){const u=this.viewDocument,_=this._viewWriter;this.mapper.clearBindings();const C=Li._createIn(r),M=new Td(u);this.mapper.bindElements(r,M);const E=r.is("documentFragment")?r.markers:function(N){const j=[],K=N.root.document;if(!K)return new Map;const dt=Li._createIn(N);for(const Dt of K.model.markers){const me=Dt.getRange(),Ue=me.isCollapsed,qe=me.start.isEqual(dt.start)||me.end.isEqual(dt.end);if(Ue&&qe)j.push([Dt.name,me]);else{const pn=dt.getIntersection(me);pn&&j.push([Dt.name,pn])}}return j.sort(([Dt,me],[Ue,qe])=>{if("after"!==me.end.compareWith(qe.start))return 1;if("before"!==me.start.compareWith(qe.end))return-1;switch(me.start.compareWith(qe.start)){case"before":return 1;case"after":return-1;default:switch(me.end.compareWith(qe.end)){case"before":return 1;case"after":return-1;default:return Ue.localeCompare(Dt)}}}),new Map(j)}(r);return this.downcastDispatcher.convert(C,E,_,c),M}init(r){if(this.model.document.version)throw new at("datacontroller-init-document-not-empty",this);let c={};if("string"==typeof r?c.main=r:c=r,!this._checkIfRootsExists(Object.keys(c)))throw new at("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},u=>{for(const _ of Object.keys(c)){const C=this.model.document.getRoot(_);u.insert(this.parse(c[_],C),C,0)}}),Promise.resolve()}set(r,c={}){let u={};if("string"==typeof r?u.main=r:u=r,!this._checkIfRootsExists(Object.keys(u)))throw new at("datacontroller-set-non-existent-root",this);this.model.enqueueChange(c.batchType||{},_=>{_.setSelection(null),_.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const C of Object.keys(u)){const M=this.model.document.getRoot(C);_.remove(_.createRangeIn(M)),_.insert(this.parse(u[C],M),M,0)}})}parse(r,c="$root"){const u=this.processor.toView(r);return this.toModel(u,c)}toModel(r,c="$root"){return this.model.change(u=>this.upcastDispatcher.convert(r,u,c))}addStyleProcessorRules(r){r(this.stylesProcessor)}registerRawContentMatcher(r){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(r),this.htmlProcessor.registerRawContentMatcher(r)}destroy(){this.stopListening()}_checkIfRootsExists(r){for(const c of r)if(!this.model.document.getRoot(c))return!1;return!0}}class Os{constructor(r,c){this._helpers=new Map,this._downcast=Ss(r),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Ss(c),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(r,c){const u=this._downcast.includes(c);if(!this._upcast.includes(c)&&!u)throw new at("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:r,dispatchers:[c],isDowncast:u})}for(r){if(!this._helpers.has(r))throw new at("conversion-for-unknown-group",this);return this._helpers.get(r)}elementToElement(r){this.for("downcast").elementToElement(r);for(const{model:c,view:u}of ac(r))this.for("upcast").elementToElement({model:c,view:u,converterPriority:r.converterPriority})}attributeToElement(r){this.for("downcast").attributeToElement(r);for(const{model:c,view:u}of ac(r))this.for("upcast").elementToAttribute({view:u,model:c,converterPriority:r.converterPriority})}attributeToAttribute(r){this.for("downcast").attributeToAttribute(r);for(const{model:c,view:u}of ac(r))this.for("upcast").attributeToAttribute({view:u,model:c})}_createConversionHelpers({name:r,dispatchers:c,isDowncast:u}){if(this._helpers.has(r))throw new at("conversion-group-exists",this);const _=u?new V6(c):new G6(c);this._helpers.set(r,_)}}function*ac(m){if(m.model.values)for(const r of m.model.values){const c={key:m.model.key,value:r},u=m.view[r],_=m.upcastAlso?m.upcastAlso[r]:void 0;yield*l0(c,u,_)}else yield*l0(m.model,m.view,m.upcastAlso)}function*l0(m,r,c){if(yield{model:m,view:r},c)for(const u of Ss(c))yield{model:m,view:u}}class ed{constructor(r){this.baseVersion=r,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const r=Object.assign({},this);return r.__className=this.constructor.className,delete r.batch,delete r.isDocumentOperation,r}static get className(){return"Operation"}static fromJSON(r,c){return new this(r.baseVersion)}}function ph(m,r){const c=_h(r),u=c.reduce((M,E)=>M+E.offsetSize,0),_=m.parent;$m(m);const C=m.index;return _._insertChild(C,c),J1(_,C+c.length),J1(_,C),new Li(m,m.getShiftedBy(u))}function mh(m){if(!m.isFlat)throw new at("operation-utils-remove-range-not-flat",this);const r=m.start.parent;$m(m.start),$m(m.end);const c=r._removeChildren(m.start.index,m.end.index-m.start.index);return J1(r,m.start.index),c}function Wm(m,r){if(!m.isFlat)throw new at("operation-utils-move-range-not-flat",this);const c=mh(m);return ph(r=r._getTransformedByDeletion(m.start,m.end.offset-m.start.offset),c)}function _h(m){const r=[];!function c(u){if("string"==typeof u)r.push(new rs(u));else if(u instanceof Ku)r.push(new rs(u.data,u.getAttributes()));else if(u instanceof oc)r.push(u);else if(et(u))for(const _ of u)c(_)}(m);for(let c=1;cr.maxOffset)throw new at("move-operation-nodes-do-not-exist",this);if(r===c&&u<_&&_=u&&this.targetPosition.path[C]u._clone(!0))),c=new _c(this.position,r,this.baseVersion);return c.shouldReceiveAttributes=this.shouldReceiveAttributes,c}getReversed(){const c=new to(this.position.root.document.graveyard,[0]);return new ir(this.position,this.nodes.maxOffset,c,this.baseVersion+1)}_validate(){const r=this.position.parent;if(!r||r.maxOffsetc._clone(!0))),ph(this.position,r)}toJSON(){const r=super.toJSON();return r.position=this.position.toJSON(),r.nodes=this.nodes.toJSON(),r}static get className(){return"InsertOperation"}static fromJSON(r,c){const u=[];for(const C of r.nodes)u.push(C.name?Jr.fromJSON(C):rs.fromJSON(C));const _=new _c(to.fromJSON(r.position,c),u,r.baseVersion);return _.shouldReceiveAttributes=r.shouldReceiveAttributes,_}}class Ar extends ed{constructor(r,c,u,_,C){super(C),this.splitPosition=r.clone(),this.splitPosition.stickiness="toNext",this.howMany=c,this.insertionPosition=u,this.graveyardPosition=_?_.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const r=this.insertionPosition.path.slice();return r.push(0),new to(this.insertionPosition.root,r)}get movedRange(){const r=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Li(this.splitPosition,r)}get affectedSelectable(){const r=[Li._createFromPositionAndShift(this.splitPosition,0),Li._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&r.push(Li._createFromPositionAndShift(this.graveyardPosition,0)),r}clone(){return new Ar(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const c=new to(this.splitPosition.root.document.graveyard,[0]);return new _s(this.moveTargetPosition,this.howMany,this.splitPosition,c,this.baseVersion+1)}_validate(){const r=this.splitPosition.parent;if(!r||r.maxOffset{if(m.key===r.key&&m.range.start.hasSameParentAs(r.range.start)){const u=m.range.getDifference(r.range).map(C=>new Wr(C,m.key,m.oldValue,m.newValue,0)),_=m.range.getIntersection(r.range);return _&&c.aIsStrong&&u.push(new Wr(_,r.key,r.newValue,m.newValue,0)),0==u.length?[new fc(0)]:u}return[m]}),Zr(Wr,_c,(m,r)=>{if(m.range.start.hasSameParentAs(r.position)&&m.range.containsPosition(r.position)){const c=m.range._getTransformedByInsertion(r.position,r.howMany,!r.shouldReceiveAttributes).map(u=>new Wr(u,m.key,m.oldValue,m.newValue,m.baseVersion));if(r.shouldReceiveAttributes){const u=Km(r,m.key,m.oldValue);u&&c.unshift(u)}return c}return m.range=m.range._getTransformedByInsertion(r.position,r.howMany,!1)[0],[m]}),Zr(Wr,_s,(m,r)=>{const c=[];m.range.start.hasSameParentAs(r.deletionPosition)&&(m.range.containsPosition(r.deletionPosition)||m.range.start.isEqual(r.deletionPosition))&&c.push(Li._createFromPositionAndShift(r.graveyardPosition,1));const u=m.range._getTransformedByMergeOperation(r);return u.isCollapsed||c.push(u),c.map(_=>new Wr(_,m.key,m.oldValue,m.newValue,m.baseVersion))}),Zr(Wr,ir,(m,r)=>function(u,_){const C=Li._createFromPositionAndShift(_.sourcePosition,_.howMany);let M=null,E=[];C.containsRange(u,!0)?M=u:u.start.hasSameParentAs(C.start)?(E=u.getDifference(C),M=u.getIntersection(C)):E=[u];const N=[];for(let j of E){j=j._getTransformedByDeletion(_.sourcePosition,_.howMany);const K=_.getMovedRangeStart(),dt=j.start.hasSameParentAs(K),Dt=j._getTransformedByInsertion(K,_.howMany,dt);N.push(...Dt)}return M&&N.push(M._getTransformedByMove(_.sourcePosition,_.targetPosition,_.howMany,!1)[0]),N}(m.range,r).map(u=>new Wr(u,m.key,m.oldValue,m.newValue,m.baseVersion))),Zr(Wr,Ar,(m,r)=>{if(m.range.end.isEqual(r.insertionPosition))return r.graveyardPosition||m.range.end.offset++,[m];if(m.range.start.hasSameParentAs(r.splitPosition)&&m.range.containsPosition(r.splitPosition)){const c=m.clone();return c.range=new Li(r.moveTargetPosition.clone(),m.range.end._getCombined(r.splitPosition,r.moveTargetPosition)),m.range.end=r.splitPosition.clone(),m.range.end.stickiness="toPrevious",[m,c]}return m.range=m.range._getTransformedBySplitOperation(r),[m]}),Zr(_c,Wr,(m,r)=>{const c=[m];if(m.shouldReceiveAttributes&&m.position.hasSameParentAs(r.range.start)&&r.range.containsPosition(m.position)){const u=Km(m,r.key,r.newValue);u&&c.push(u)}return c}),Zr(_c,_c,(m,r,c)=>(m.position.isEqual(r.position)&&c.aIsStrong||(m.position=m.position._getTransformedByInsertOperation(r)),[m])),Zr(_c,ir,(m,r)=>(m.position=m.position._getTransformedByMoveOperation(r),[m])),Zr(_c,Ar,(m,r)=>(m.position=m.position._getTransformedBySplitOperation(r),[m])),Zr(_c,_s,(m,r)=>(m.position=m.position._getTransformedByMergeOperation(r),[m])),Zr(ys,_c,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByInsertOperation(r)[0]),m.newRange&&(m.newRange=m.newRange._getTransformedByInsertOperation(r)[0]),[m])),Zr(ys,ys,(m,r,c)=>{if(m.name==r.name){if(!c.aIsStrong)return[new fc(0)];m.oldRange=r.newRange?r.newRange.clone():null}return[m]}),Zr(ys,_s,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByMergeOperation(r)),m.newRange&&(m.newRange=m.newRange._getTransformedByMergeOperation(r)),[m])),Zr(ys,ir,(m,r,c)=>{if(m.oldRange&&(m.oldRange=Li._createFromRanges(m.oldRange._getTransformedByMoveOperation(r))),m.newRange){if(c.abRelation){const u=Li._createFromRanges(m.newRange._getTransformedByMoveOperation(r));if("left"==c.abRelation.side&&r.targetPosition.isEqual(m.newRange.start))return m.newRange.end=u.end,m.newRange.start.path=c.abRelation.path,[m];if("right"==c.abRelation.side&&r.targetPosition.isEqual(m.newRange.end))return m.newRange.start=u.start,m.newRange.end.path=c.abRelation.path,[m]}m.newRange=Li._createFromRanges(m.newRange._getTransformedByMoveOperation(r))}return[m]}),Zr(ys,Ar,(m,r,c)=>{if(m.oldRange&&(m.oldRange=m.oldRange._getTransformedBySplitOperation(r)),m.newRange){if(c.abRelation){const u=m.newRange._getTransformedBySplitOperation(r);return m.newRange.start.isEqual(r.splitPosition)&&c.abRelation.wasStartBeforeMergedElement?m.newRange.start=to._createAt(r.insertionPosition):m.newRange.start.isEqual(r.splitPosition)&&!c.abRelation.wasInLeftElement&&(m.newRange.start=to._createAt(r.moveTargetPosition)),m.newRange.end=m.newRange.end.isEqual(r.splitPosition)&&c.abRelation.wasInRightElement?to._createAt(r.moveTargetPosition):m.newRange.end.isEqual(r.splitPosition)&&c.abRelation.wasEndBeforeMergedElement?to._createAt(r.insertionPosition):u.end,[m]}m.newRange=m.newRange._getTransformedBySplitOperation(r)}return[m]}),Zr(_s,_c,(m,r)=>(m.sourcePosition.hasSameParentAs(r.position)&&(m.howMany+=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByInsertOperation(r),m.targetPosition=m.targetPosition._getTransformedByInsertOperation(r),[m])),Zr(_s,_s,(m,r,c)=>{if(m.sourcePosition.isEqual(r.sourcePosition)&&m.targetPosition.isEqual(r.targetPosition)){if(c.bWasUndone){const u=r.graveyardPosition.path.slice();return u.push(0),m.sourcePosition=new to(r.graveyardPosition.root,u),m.howMany=0,[m]}return[new fc(0)]}if(m.sourcePosition.isEqual(r.sourcePosition)&&!m.targetPosition.isEqual(r.targetPosition)&&!c.bWasUndone&&"splitAtSource"!=c.abRelation){const u="$graveyard"==m.targetPosition.root.rootName,_="$graveyard"==r.targetPosition.root.rootName;if(_&&!u||(!u||_)&&c.aIsStrong){const C=r.targetPosition._getTransformedByMergeOperation(r),M=m.targetPosition._getTransformedByMergeOperation(r);return[new ir(C,m.howMany,M,0)]}return[new fc(0)]}return m.sourcePosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByMergeOperation(r),m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),m.graveyardPosition.isEqual(r.graveyardPosition)&&c.aIsStrong||(m.graveyardPosition=m.graveyardPosition._getTransformedByMergeOperation(r)),[m]}),Zr(_s,ir,(m,r,c)=>{const u=Li._createFromPositionAndShift(r.sourcePosition,r.howMany);return"remove"==r.type&&!c.bWasUndone&&!c.forceWeakRemove&&m.deletionPosition.hasSameParentAs(r.sourcePosition)&&u.containsPosition(m.sourcePosition)?[new fc(0)]:(m.sourcePosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.sourcePosition.hasSameParentAs(r.sourcePosition)&&(m.howMany-=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByMoveOperation(r),m.targetPosition=m.targetPosition._getTransformedByMoveOperation(r),m.graveyardPosition.isEqual(r.targetPosition)||(m.graveyardPosition=m.graveyardPosition._getTransformedByMoveOperation(r)),[m])}),Zr(_s,Ar,(m,r,c)=>{if(r.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedByDeletion(r.graveyardPosition,1),m.deletionPosition.isEqual(r.graveyardPosition)&&(m.howMany=r.howMany)),m.targetPosition.isEqual(r.splitPosition)){const u=0!=r.howMany,_=r.graveyardPosition&&m.deletionPosition.isEqual(r.graveyardPosition);if(u||_||"mergeTargetNotMoved"==c.abRelation)return m.sourcePosition=m.sourcePosition._getTransformedBySplitOperation(r),[m]}if(m.sourcePosition.isEqual(r.splitPosition)){if("mergeSourceNotMoved"==c.abRelation)return m.howMany=0,m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m];if("mergeSameElement"==c.abRelation||m.sourcePosition.offset>0)return m.sourcePosition=r.moveTargetPosition.clone(),m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m]}return m.sourcePosition.hasSameParentAs(r.splitPosition)&&(m.howMany=r.splitPosition.offset),m.sourcePosition=m.sourcePosition._getTransformedBySplitOperation(r),m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m]}),Zr(ir,_c,(m,r)=>{const c=Li._createFromPositionAndShift(m.sourcePosition,m.howMany)._getTransformedByInsertOperation(r,!1)[0];return m.sourcePosition=c.start,m.howMany=c.end.offset-c.start.offset,m.targetPosition.isEqual(r.position)||(m.targetPosition=m.targetPosition._getTransformedByInsertOperation(r)),[m]}),Zr(ir,ir,(m,r,c)=>{const u=Li._createFromPositionAndShift(m.sourcePosition,m.howMany),_=Li._createFromPositionAndShift(r.sourcePosition,r.howMany);let C,M=c.aIsStrong,E=!c.aIsStrong;if("insertBefore"==c.abRelation||"insertAfter"==c.baRelation?E=!0:"insertAfter"!=c.abRelation&&"insertBefore"!=c.baRelation||(E=!1),C=m.targetPosition.isEqual(r.targetPosition)&&E?m.targetPosition._getTransformedByDeletion(r.sourcePosition,r.howMany):m.targetPosition._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),ef(m,r)&&ef(r,m))return[r.getReversed()];if(u.containsPosition(r.targetPosition)&&u.containsRange(_,!0))return u.start=u.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),u.end=u.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),mm([u],C);if(_.containsPosition(m.targetPosition)&&_.containsRange(u,!0))return u.start=u.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),u.end=u.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),mm([u],C);const N=tt(m.sourcePosition.getParentPath(),r.sourcePosition.getParentPath());if("prefix"==N||"extension"==N)return u.start=u.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),u.end=u.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),mm([u],C);"remove"!=m.type||"remove"==r.type||c.aWasUndone||c.forceWeakRemove?"remove"==m.type||"remove"!=r.type||c.bWasUndone||c.forceWeakRemove||(M=!1):M=!0;const j=[],K=u.getDifference(_);for(const Dt of K){Dt.start=Dt.start._getTransformedByDeletion(r.sourcePosition,r.howMany),Dt.end=Dt.end._getTransformedByDeletion(r.sourcePosition,r.howMany);const me="same"==tt(Dt.start.getParentPath(),r.getMovedRangeStart().getParentPath()),Ue=Dt._getTransformedByInsertion(r.getMovedRangeStart(),r.howMany,me);j.push(...Ue)}const dt=u.getIntersection(_);return null!==dt&&M&&(dt.start=dt.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),dt.end=dt.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),0===j.length?j.push(dt):1==j.length?_.start.isBefore(u.start)||_.start.isEqual(u.start)?j.unshift(dt):j.push(dt):j.splice(1,0,dt)),0===j.length?[new fc(m.baseVersion)]:mm(j,C)}),Zr(ir,Ar,(m,r,c)=>{let u=m.targetPosition.clone();m.targetPosition.isEqual(r.insertionPosition)&&r.graveyardPosition&&"moveTargetAfter"!=c.abRelation||(u=m.targetPosition._getTransformedBySplitOperation(r));const _=Li._createFromPositionAndShift(m.sourcePosition,m.howMany);if(_.end.isEqual(r.insertionPosition))return r.graveyardPosition||m.howMany++,m.targetPosition=u,[m];if(_.start.hasSameParentAs(r.splitPosition)&&_.containsPosition(r.splitPosition)){let M=new Li(r.splitPosition,_.end);return M=M._getTransformedBySplitOperation(r),mm([new Li(_.start,r.splitPosition),M],u)}m.targetPosition.isEqual(r.splitPosition)&&"insertAtSource"==c.abRelation&&(u=r.moveTargetPosition),m.targetPosition.isEqual(r.insertionPosition)&&"insertBetween"==c.abRelation&&(u=m.targetPosition);const C=[_._getTransformedBySplitOperation(r)];if(r.graveyardPosition){const M=_.start.isEqual(r.graveyardPosition)||_.containsPosition(r.graveyardPosition);m.howMany>1&&M&&!c.aWasUndone&&C.push(Li._createFromPositionAndShift(r.insertionPosition,1))}return mm(C,u)}),Zr(ir,_s,(m,r,c)=>{const u=Li._createFromPositionAndShift(m.sourcePosition,m.howMany);if(r.deletionPosition.hasSameParentAs(m.sourcePosition)&&u.containsPosition(r.sourcePosition))if("remove"!=m.type||c.forceWeakRemove){if(1==m.howMany)return c.bWasUndone?(m.sourcePosition=r.graveyardPosition.clone(),m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),[m]):[new fc(0)]}else if(!c.aWasUndone){const C=[];let M=r.graveyardPosition.clone(),E=r.targetPosition._getTransformedByMergeOperation(r);m.howMany>1&&(C.push(new ir(m.sourcePosition,m.howMany-1,m.targetPosition,0)),M=M._getTransformedByMove(m.sourcePosition,m.targetPosition,m.howMany-1),E=E._getTransformedByMove(m.sourcePosition,m.targetPosition,m.howMany-1));const N=r.deletionPosition._getCombined(m.sourcePosition,m.targetPosition),j=new ir(M,1,N,0),K=j.getMovedRangeStart().path.slice();K.push(0);const dt=new to(j.targetPosition.root,K);E=E._getTransformedByMove(M,N,1);const Dt=new ir(E,r.howMany,dt,0);return C.push(j),C.push(Dt),C}const _=Li._createFromPositionAndShift(m.sourcePosition,m.howMany)._getTransformedByMergeOperation(r);return m.sourcePosition=_.start,m.howMany=_.end.offset-_.start.offset,m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),[m]}),Zr(Ll,_c,(m,r)=>(m.position=m.position._getTransformedByInsertOperation(r),[m])),Zr(Ll,_s,(m,r)=>m.position.isEqual(r.deletionPosition)?(m.position=r.graveyardPosition.clone(),m.position.stickiness="toNext",[m]):(m.position=m.position._getTransformedByMergeOperation(r),[m])),Zr(Ll,ir,(m,r)=>(m.position=m.position._getTransformedByMoveOperation(r),[m])),Zr(Ll,Ll,(m,r,c)=>{if(m.position.isEqual(r.position)){if(!c.aIsStrong)return[new fc(0)];m.oldName=r.newName}return[m]}),Zr(Ll,Ar,(m,r)=>{if("same"==tt(m.position.path,r.splitPosition.getParentPath())&&!r.graveyardPosition){const c=new Ll(m.position.getShiftedBy(1),m.oldName,m.newName,0);return[m,c]}return m.position=m.position._getTransformedBySplitOperation(r),[m]}),Zr($d,$d,(m,r,c)=>{if(m.root===r.root&&m.key===r.key){if(!c.aIsStrong||m.newValue===r.newValue)return[new fc(0)];m.oldValue=r.newValue}return[m]}),Zr(_l,_l,(m,r)=>m.rootName===r.rootName&&m.isAdd===r.isAdd?[new fc(0)]:[m]),Zr(Ar,_c,(m,r)=>(m.splitPosition.hasSameParentAs(r.position)&&m.splitPosition.offset{if(!m.graveyardPosition&&!c.bWasUndone&&m.splitPosition.hasSameParentAs(r.sourcePosition)){const u=r.graveyardPosition.path.slice();u.push(0);const _=new to(r.graveyardPosition.root,u),C=Ar.getInsertionPosition(new to(r.graveyardPosition.root,u)),M=new Ar(_,0,C,null,0);return m.splitPosition=m.splitPosition._getTransformedByMergeOperation(r),m.insertionPosition=Ar.getInsertionPosition(m.splitPosition),m.graveyardPosition=M.insertionPosition.clone(),m.graveyardPosition.stickiness="toNext",[M,m]}return m.splitPosition.hasSameParentAs(r.deletionPosition)&&!m.splitPosition.isAfter(r.deletionPosition)&&m.howMany--,m.splitPosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.splitPosition=m.splitPosition._getTransformedByMergeOperation(r),m.insertionPosition=Ar.getInsertionPosition(m.splitPosition),m.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedByMergeOperation(r)),[m]}),Zr(Ar,ir,(m,r,c)=>{const u=Li._createFromPositionAndShift(r.sourcePosition,r.howMany);if(m.graveyardPosition){const C=u.start.isEqual(m.graveyardPosition)||u.containsPosition(m.graveyardPosition);if(!c.bWasUndone&&C){const M=m.splitPosition._getTransformedByMoveOperation(r),E=m.graveyardPosition._getTransformedByMoveOperation(r),N=E.path.slice();N.push(0);const j=new to(E.root,N);return[new ir(M,m.howMany,j,0)]}m.graveyardPosition=m.graveyardPosition._getTransformedByMoveOperation(r)}const _=m.splitPosition.isEqual(r.targetPosition);if(_&&("insertAtSource"==c.baRelation||"splitBefore"==c.abRelation))return m.howMany+=r.howMany,m.splitPosition=m.splitPosition._getTransformedByDeletion(r.sourcePosition,r.howMany),m.insertionPosition=Ar.getInsertionPosition(m.splitPosition),[m];if(_&&c.abRelation&&c.abRelation.howMany){const{howMany:C,offset:M}=c.abRelation;return m.howMany+=C,m.splitPosition=m.splitPosition.getShiftedBy(M),[m]}return m.splitPosition.hasSameParentAs(r.sourcePosition)&&u.containsPosition(m.splitPosition)?(m.howMany-=r.howMany-(m.splitPosition.offset-r.sourcePosition.offset),m.splitPosition.hasSameParentAs(r.targetPosition)&&m.splitPosition.offset{if(m.splitPosition.isEqual(r.splitPosition)){if(!m.graveyardPosition&&!r.graveyardPosition)return[new fc(0)];if(m.graveyardPosition&&r.graveyardPosition&&m.graveyardPosition.isEqual(r.graveyardPosition))return[new fc(0)];if("splitBefore"==c.abRelation)return m.howMany=0,m.graveyardPosition=m.graveyardPosition._getTransformedBySplitOperation(r),[m]}if(m.graveyardPosition&&r.graveyardPosition&&m.graveyardPosition.isEqual(r.graveyardPosition)){const u="$graveyard"==m.splitPosition.root.rootName,_="$graveyard"==r.splitPosition.root.rootName;if(_&&!u||(!u||_)&&c.aIsStrong){const C=[];return r.howMany&&C.push(new ir(r.moveTargetPosition,r.howMany,r.splitPosition,0)),m.howMany&&C.push(new ir(m.splitPosition,m.howMany,m.moveTargetPosition,0)),C}return[new fc(0)]}if(m.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedBySplitOperation(r)),m.splitPosition.isEqual(r.insertionPosition)&&"splitBefore"==c.abRelation)return m.howMany++,[m];if(r.splitPosition.isEqual(m.insertionPosition)&&"splitBefore"==c.baRelation){const u=r.insertionPosition.path.slice();u.push(0);const _=new to(r.insertionPosition.root,u);return[m,new ir(m.insertionPosition,1,_,0)]}return m.splitPosition.hasSameParentAs(r.splitPosition)&&m.splitPosition.offset{const c=r[0];c.isDocumentOperation&&$6.call(this,c)},{priority:"low"})}function $6(m){const r=this.getTransformedByOperation(m);if(!this.isEqual(r)){const c=this.toPosition();this.path=r.path,this.root=r.root,this.fire("change",c)}}el.prototype.is=function(m){return"livePosition"===m||"model:livePosition"===m||"position"==m||"model:position"===m};class _m{constructor(r={}){"string"==typeof r&&(r="transparent"===r?{isUndoable:!1}:{},Zt("batch-constructor-deprecated-string-type"));const{isUndoable:c=!0,isLocal:u=!0,isUndo:_=!1,isTyping:C=!1}=r;this.operations=[],this.isUndoable=c,this.isLocal=u,this.isUndo=_,this.isTyping=C}get type(){return Zt("batch-type-deprecated"),"default"}get baseVersion(){for(const r of this.operations)if(null!==r.baseVersion)return r.baseVersion;return null}addOperation(r){return r.batch=this,this.operations.push(r),r}}var K6=Object.defineProperty,e4=Object.defineProperties,Tv=Object.getOwnPropertyDescriptors,hh=Object.getOwnPropertySymbols,nf=Object.prototype.hasOwnProperty,n4=Object.prototype.propertyIsEnumerable,Ql=(m,r,c)=>r in m?K6(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,af=(m,r)=>{for(var c in r||(r={}))nf.call(r,c)&&Ql(m,c,r[c]);if(hh)for(var c of hh(r))n4.call(r,c)&&Ql(m,c,r[c]);return m};class i4{constructor(r){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=r}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(r){const c=r;switch(c.type){case"insert":if(this._isInInsertedElement(c.position.parent))return;this._markInsert(c.position.parent,c.position.offset,c.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const u of c.range.getItems({shallow:!0}))this._isInInsertedElement(u.parent)||this._markAttribute(u);break;case"remove":case"move":case"reinsert":{if(c.sourcePosition.isEqual(c.targetPosition)||c.sourcePosition.getShiftedBy(c.howMany).isEqual(c.targetPosition))return;const u=this._isInInsertedElement(c.sourcePosition.parent),_=this._isInInsertedElement(c.targetPosition.parent);u||this._markRemove(c.sourcePosition.parent,c.sourcePosition.offset,c.howMany),_||this._markInsert(c.targetPosition.parent,c.getMovedRangeStart().offset,c.howMany);break}case"rename":{if(this._isInInsertedElement(c.position.parent))return;this._markRemove(c.position.parent,c.position.offset,1),this._markInsert(c.position.parent,c.position.offset,1);const u=Li._createFromPositionAndShift(c.position,1);for(const _ of this._markerCollection.getMarkersIntersectingRange(u)){const C=_.getData();this.bufferMarkerChange(_.name,C,C)}break}case"split":{const u=c.splitPosition.parent;this._isInInsertedElement(u)||this._markRemove(u,c.splitPosition.offset,c.howMany),this._isInInsertedElement(c.insertionPosition.parent)||this._markInsert(c.insertionPosition.parent,c.insertionPosition.offset,1),c.graveyardPosition&&this._markRemove(c.graveyardPosition.parent,c.graveyardPosition.offset,1);break}case"merge":{const u=c.sourcePosition.parent;this._isInInsertedElement(u.parent)||this._markRemove(u.parent,u.startOffset,1),this._markInsert(c.graveyardPosition.parent,c.graveyardPosition.offset,1);const C=c.targetPosition.parent;this._isInInsertedElement(C)||this._markInsert(C,c.targetPosition.offset,u.maxOffset);break}case"detachRoot":case"addRoot":{const u=c.affectedSelectable;if(!u._isLoaded||u.isAttached()==c.isAdd)return;this._bufferRootStateChange(c.rootName,c.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":if(!c.root._isLoaded)return;this._bufferRootAttributeChange(c.root.rootName,c.key,c.oldValue,c.newValue)}this._cachedChanges=null}bufferMarkerChange(r,c,u){c.range&&c.range.root.is("rootElement")&&!c.range.root._isLoaded&&(c.range=null),u.range&&u.range.root.is("rootElement")&&!u.range.root._isLoaded&&(u.range=null);let _=this._changedMarkers.get(r);_?_.newMarkerData=u:(_={newMarkerData:u,oldMarkerData:c},this._changedMarkers.set(r,_)),null==_.oldMarkerData.range&&null==u.range&&this._changedMarkers.delete(r)}getMarkersToRemove(){const r=[];for(const[c,u]of this._changedMarkers)null!=u.oldMarkerData.range&&r.push({name:c,range:u.oldMarkerData.range});return r}getMarkersToAdd(){const r=[];for(const[c,u]of this._changedMarkers)null!=u.newMarkerData.range&&r.push({name:c,range:u.newMarkerData.range});return r}getChangedMarkers(){return Array.from(this._changedMarkers).map(([r,c])=>({name:r,data:{oldRange:c.oldMarkerData.range,newRange:c.newMarkerData.range}}))}hasDataChanges(){if(this._changesInElement.size>0||this._changedRoots.size>0)return!0;for(const{newMarkerData:r,oldMarkerData:c}of this._changedMarkers.values()){if(r.affectsData!==c.affectsData)return!0;if(r.affectsData){const u=r.range&&!c.range,_=!r.range&&c.range,C=r.range&&c.range&&!r.range.isEqual(c.range);if(u||_||C)return!0}}return!1}getChanges(r={}){if(this._cachedChanges)return r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let c=[];for(const u of this._changesInElement.keys()){const _=this._changesInElement.get(u).sort((K,dt)=>K.offset===dt.offset?K.type!=dt.type?"remove"==K.type?-1:1:0:K.offsetu.position.root!=_.position.root?u.position.root.rootName<_.position.root.rootName?-1:1:u.position.isEqual(_.position)?u.changeCount-_.changeCount:u.position.isBefore(_.position)?-1:1);for(let u=1,_=0;uu);for(const u of c)delete u.changeCount,"attribute"==u.type&&(delete u.position,delete u.length);return this._changeCount=0,this._cachedChangesWithGraveyard=c,this._cachedChanges=c.filter(p0),r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map(r=>{const c=af({},r);return void 0!==c.state&&delete c.attributes,c})}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(r,c){if(!this._changedRoots.has(r))return void this._changedRoots.set(r,{name:r,state:c?"attached":"detached"});const u=this._changedRoots.get(r);void 0!==u.state?(delete u.state,void 0===u.attributes&&this._changedRoots.delete(r)):u.state=c?"attached":"detached"}_bufferRootAttributeChange(r,c,u,_){const C=this._changedRoots.get(r)||{name:r},M=C.attributes||{};if(M[c]){const E=M[c];_===E.oldValue?delete M[c]:E.newValue=_}else M[c]={oldValue:u,newValue:_};0===Object.entries(M).length?(delete C.attributes,void 0===C.state&&this._changedRoots.delete(r)):(C.attributes=M,this._changedRoots.set(r,C))}_refreshItem(r){if(this._isInInsertedElement(r.parent))return;this._markRemove(r.parent,r.startOffset,r.offsetSize),this._markInsert(r.parent,r.startOffset,r.offsetSize),this._refreshedItems.add(r);const c=Li._createOn(r);for(const u of this._markerCollection.getMarkersIntersectingRange(c)){const _=u.getData();this.bufferMarkerChange(u.name,_,_)}this._cachedChanges=null}_bufferRootLoad(r){if(r.isAttached()){this._bufferRootStateChange(r.rootName,!0),this._markInsert(r,0,r.maxOffset);for(const u of r.getAttributeKeys())this._bufferRootAttributeChange(r.rootName,u,null,r.getAttribute(u));for(const u of this._markerCollection)if(u.getRange().root==r){const _=u.getData();this.bufferMarkerChange(u.name,(c=af({},_),e4(c,Tv({range:null}))),_)}var c}}_markInsert(r,c,u){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const _={type:"insert",offset:c,howMany:u,count:this._changeCount++};this._markChange(r,_)}_markRemove(r,c,u){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const _={type:"remove",offset:c,howMany:u,count:this._changeCount++};this._markChange(r,_),this._removeAllNestedChanges(r,c,u)}_markAttribute(r){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const c={type:"attribute",offset:r.startOffset,howMany:r.offsetSize,count:this._changeCount++};this._markChange(r.parent,c)}_markChange(r,c){this._makeSnapshot(r);const u=this._getChangesForElement(r);this._handleChange(c,u),u.push(c);for(let _=0;_u.offset){if(_>C){const M={type:"attribute",offset:C,howMany:_-C,count:this._changeCount++};this._handleChange(M,c),c.push(M)}r.nodesToHandle=u.offset-r.offset,r.howMany=r.nodesToHandle}else r.offset>=u.offset&&r.offsetC?(r.nodesToHandle=_-C,r.offset=C):r.nodesToHandle=0);if("remove"==u.type&&r.offsetu.offset){const M={type:"attribute",offset:u.offset,howMany:_-u.offset,count:this._changeCount++};this._handleChange(M,c),c.push(M),r.nodesToHandle=u.offset-r.offset,r.howMany=r.nodesToHandle}"attribute"==u.type&&(r.offset>=u.offset&&_<=C?(r.nodesToHandle=0,r.howMany=0,r.offset=0):r.offset<=u.offset&&_>=C&&(u.howMany=0))}}r.howMany=r.nodesToHandle,delete r.nodesToHandle}_getInsertDiff(r,c,u){return{type:"insert",position:to._createAt(r,c),name:u.name,attributes:new Map(u.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(r,c,u){return{type:"remove",position:to._createAt(r,c),name:u.name,attributes:new Map(u.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(r,c,u){const _=[];u=new Map(u);for(const[C,M]of c){const E=u.has(C)?u.get(C):null;E!==M&&_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:C,attributeOldValue:M,attributeNewValue:E,changeCount:this._changeCount++}),u.delete(C)}for(const[C,M]of u)_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:C,attributeOldValue:null,attributeNewValue:M,changeCount:this._changeCount++});return _}_isInInsertedElement(r){const c=r.parent;if(!c)return!1;const u=this._changesInElement.get(c),_=r.startOffset;if(u)for(const C of u)if("insert"==C.type&&_>=C.offset&&_u){for(let M=0;Mthis._version+1&&this._gaps.set(this._version,r),this._version=r}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(r){if(r.baseVersion!==this.version)throw new at("model-document-history-addoperation-incorrect-version",this,{operation:r,historyVersion:this.version});this._operations.push(r),this._version++,this._baseVersionToOperationIndex.set(r.baseVersion,this._operations.length-1)}getOperations(r,c=this.version){if(!this._operations.length)return[];const u=this._operations[0];void 0===r&&(r=u.baseVersion);let _=c-1;for(const[E,N]of this._gaps)r>E&&rE&&_this.lastOperation.baseVersion)return[];let C=this._baseVersionToOperationIndex.get(r);void 0===C&&(C=0);let M=this._baseVersionToOperationIndex.get(_);return void 0===M&&(M=this._operations.length-1),this._operations.slice(C,M+1)}getOperation(r){const c=this._baseVersionToOperationIndex.get(r);if(void 0!==c)return this._operations[c]}setOperationAsUndone(r,c){this._undoPairs.set(c,r),this._undoneOperations.add(r)}isUndoingOperation(r){return this._undoPairs.has(r)}isUndoneOperation(r){return this._undoneOperations.has(r)}getUndoneOperation(r){return this._undoPairs.get(r)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class nl extends Jr{constructor(r,c,u="main"){super(c),this._isAttached=!0,this._isLoaded=!0,this._document=r,this.rootName=u}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}nl.prototype.is=function(m,r){return r?r===this.name&&("rootElement"===m||"model:rootElement"===m||"element"===m||"model:element"===m):"rootElement"===m||"model:rootElement"===m||"element"===m||"model:element"===m||"node"===m||"model:node"===m};var kd=Object.defineProperty,t5=Object.defineProperties,wv=Object.getOwnPropertyDescriptors,Pp=Object.getOwnPropertySymbols,bh=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable,fm=(m,r,c)=>r in m?kd(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,X_=(m,r)=>{for(var c in r||(r={}))bh.call(r,c)&&fm(m,c,r[c]);if(Pp)for(var c of Pp(r))vh.call(r,c)&&fm(m,c,r[c]);return m},Xm=(m,r)=>t5(m,wv(r));const rf="$graveyard";class e5 extends(Ne()){constructor(r){super(),this.model=r,this.history=new X6,this.selection=new Ou(this),this.roots=new ec({idProperty:"rootName"}),this.differ=new i4(r.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",rf),this.listenTo(r,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&this.differ.bufferOperation(_)},{priority:"high"}),this.listenTo(r,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&this.history.addOperation(_)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(r.markers,"update",(c,u,_,C,M)=>{const E=Xm(X_({},u.getData()),{range:C});this.differ.bufferMarkerChange(u.name,M,E),null===_&&u.on("change",(N,j)=>{const K=u.getData();this.differ.bufferMarkerChange(u.name,Xm(X_({},K),{range:j}),K)})}),this.registerPostFixer(c=>{let u=!1;for(const _ of this.roots)_.isAttached()||_.isEmpty||(c.remove(c.createRangeIn(_)),u=!0);for(const _ of this.model.markers)_.getRange().root.isAttached()||(c.removeMarker(_),u=!0);return u})}get version(){return this.history.version}set version(r){this.history.version=r}get graveyard(){return this.getRoot(rf)}createRoot(r="$root",c="main"){if(this.roots.get(c))throw new at("model-document-createroot-name-exists",this,{name:c});const u=new nl(this,r,c);return this.roots.add(u),u}destroy(){this.selection.destroy(),this.stopListening()}getRoot(r="main"){return this.roots.get(r)}getRootNames(r=!1){return this.getRoots(r).map(c=>c.rootName)}getRoots(r=!1){return Array.from(this.roots).filter(c=>c!=this.graveyard&&(r||c.isAttached())&&c._isLoaded)}registerPostFixer(r){this._postFixers.add(r)}toJSON(){const r=Mi(this);return r.selection="[engine.model.DocumentSelection]",r.model="[engine.model.Model]",r}_handleChangeBlock(r){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(r),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",r.batch):this.fire("change",r.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const r=this.getRoots();return r.length?r[0]:this.graveyard}_getDefaultRange(){const r=this._getDefaultRoot(),c=this.model,u=c.schema,_=c.createPositionFromPath(r,[0]);return u.getNearestSelectionRange(_)||c.createRange(_)}_validateSelectionRange(r){return G1(r.start)&&G1(r.end)}_callPostFixers(r){let c=!1;do{for(const u of this._postFixers)if(this.selection.refresh(),c=u(r),c)break}while(c)}}function G1(m){const r=m.textNode;if(r){const c=r.data,u=m.offset-r.startOffset;return!un(c,u)&&!hd(c,u)}return!0}var xh=Object.defineProperty,m0=Object.defineProperties,n5=Object.getOwnPropertyDescriptors,_0=Object.getOwnPropertySymbols,o5=Object.prototype.hasOwnProperty,Ch=Object.prototype.propertyIsEnumerable,Q1=(m,r,c)=>r in m?xh(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class t2 extends(Ne()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(r){return this._markers.has(r instanceof hm?r.name:r)}get(r){return this._markers.get(r)||null}_set(r,c,u=!1,_=!1){const C=r instanceof hm?r.name:r;if(C.includes(","))throw new at("markercollection-incorrect-marker-name",this);const M=this._markers.get(C);if(M){const K=M.getData(),dt=M.getRange();let Dt=!1;return dt.isEqual(c)||(M._attachLiveRange(Xu.fromRange(c)),Dt=!0),u!=M.managedUsingOperations&&(M._managedUsingOperations=u,Dt=!0),"boolean"==typeof _&&_!=M.affectsData&&(M._affectsData=_,Dt=!0),Dt&&this.fire(`update:${C}`,M,dt,c,K),M}const E=Xu.fromRange(c),N=new hm(C,E,u,_);var j;return this._markers.set(C,N),this.fire(`update:${C}`,N,null,c,(j=((K,dt)=>{for(var Dt in dt||(dt={}))o5.call(dt,Dt)&&Q1(K,Dt,dt[Dt]);if(_0)for(var Dt of _0(dt))Ch.call(dt,Dt)&&Q1(K,Dt,dt[Dt]);return K})({},N.getData()),m0(j,n5({range:null})))),N}_remove(r){const c=r instanceof hm?r.name:r,u=this._markers.get(c);return!!u&&(this._markers.delete(c),this.fire(`update:${c}`,u,u.getRange(),null,u.getData()),this._destroyMarker(u),!0)}_refresh(r){const c=r instanceof hm?r.name:r,u=this._markers.get(c);if(!u)throw new at("markercollection-refresh-marker-not-exists",this);const _=u.getRange();this.fire(`update:${c}`,u,_,_,u.getData())}*getMarkersAtPosition(r){for(const c of this)c.getRange().containsPosition(r)&&(yield c)}*getMarkersIntersectingRange(r){for(const c of this)null!==c.getRange().getIntersection(r)&&(yield c)}destroy(){for(const r of this._markers.values())this._destroyMarker(r);this._markers=null,this.stopListening()}*getMarkersGroup(r){for(const c of this._markers.values())c.name.startsWith(r+":")&&(yield c)}_destroyMarker(r){r.stopListening(),r._detachLiveRange()}}class hm extends(Ne(Zp)){constructor(r,c,u,_){super(),this.name=r,this._liveRange=this._attachLiveRange(c),this._managedUsingOperations=u,this._affectsData=_}get managedUsingOperations(){if(!this._liveRange)throw new at("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new at("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new at("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new at("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new at("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(r){return this._liveRange&&this._detachLiveRange(),r.delegate("change:range").to(this),r.delegate("change:content").to(this),this._liveRange=r,r}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}hm.prototype.is=function(m){return"marker"===m||"model:marker"===m};class gm extends ed{constructor(r,c){super(null),this.sourcePosition=r.clone(),this.howMany=c}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const r=super.toJSON();return r.sourcePosition=this.sourcePosition.toJSON(),r}_validate(){if(this.sourcePosition.root.document)throw new at("detach-operation-on-document-node",this)}_execute(){mh(Li._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Xd extends Zp{constructor(r){super(),this.markers=new Map,this._children=new am,r&&this._insertChild(0,r)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}getPath(){return[]}getNodeByPath(r){let c=this;for(const u of r)c=c.getChild(c.offsetToIndex(u));return c}offsetToIndex(r){return this._children.offsetToIndex(r)}toJSON(){const r=[];for(const c of this._children)r.push(c.toJSON());return r}static fromJSON(r){const c=[];for(const u of r)c.push(u.name?Jr.fromJSON(u):rs.fromJSON(u));return new Xd(c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const u="string"==typeof(_=c)?[new rs(_)]:(et(_)||(_=[_]),Array.from(_).map(C=>"string"==typeof C?new rs(C):C instanceof Ku?new rs(C.data,C.getAttributes()):C));var _;for(const _ of u)null!==_.parent&&_._remove(),_.parent=this;this._children._insertNodes(r,u)}_removeChildren(r,c=1){const u=this._children._removeNodes(r,c);for(const _ of u)_.parent=null;return u}}Xd.prototype.is=function(m){return"documentFragment"===m||"model:documentFragment"===m};class sf{constructor(r,c){this.model=r,this.batch=c}createText(r,c){return new rs(r,c)}createElement(r,c){return new Jr(r,c)}createDocumentFragment(){return new Xd}cloneElement(r,c=!0){return r._clone(c)}insert(r,c,u=0){if(this._assertWriterUsedCorrectly(),r instanceof rs&&""==r.data)return;const _=to._createAt(c,u);if(r.parent){if(h0(r.root,_.root))return void this.move(Li._createOn(r),_);if(r.root.document)throw new at("model-writer-insert-forbidden-move",this);this.remove(r)}const M=new _c(_,r,_.root.document?_.root.document.version:null);if(r instanceof rs&&(M.shouldReceiveAttributes=!0),this.batch.addOperation(M),this.model.applyOperation(M),r instanceof Xd)for(const[E,N]of r.markers){const j=to._createAt(N.root,0),K={range:new Li(N.start._getCombined(j,_),N.end._getCombined(j,_)),usingOperation:!0,affectsData:!0};this.model.markers.has(E)?this.updateMarker(E,K):this.addMarker(E,K)}}insertText(r,c,u,_){c instanceof Xd||c instanceof Jr||c instanceof to?this.insert(this.createText(r),c,u):this.insert(this.createText(r,c),u,_)}insertElement(r,c,u,_){c instanceof Xd||c instanceof Jr||c instanceof to?this.insert(this.createElement(r),c,u):this.insert(this.createElement(r,c),u,_)}append(r,c){this.insert(r,c,"end")}appendText(r,c,u){c instanceof Xd||c instanceof Jr?this.insert(this.createText(r),c,"end"):this.insert(this.createText(r,c),u,"end")}appendElement(r,c,u){c instanceof Xd||c instanceof Jr?this.insert(this.createElement(r),c,"end"):this.insert(this.createElement(r,c),u,"end")}setAttribute(r,c,u){if(this._assertWriterUsedCorrectly(),u instanceof Li){const _=u.getMinimalFlatRanges();for(const C of _)t_(this,r,c,C)}else Ah(this,r,c,u)}setAttributes(r,c){for(const[u,_]of Kc(r))this.setAttribute(u,_,c)}removeAttribute(r,c){if(this._assertWriterUsedCorrectly(),c instanceof Li){const u=c.getMinimalFlatRanges();for(const _ of u)t_(this,r,null,_)}else Ah(this,r,null,c)}clearAttributes(r){this._assertWriterUsedCorrectly();const c=u=>{for(const _ of u.getAttributeKeys())this.removeAttribute(_,u)};if(r instanceof Li)for(const u of r.getItems())c(u);else c(r)}move(r,c,u){if(this._assertWriterUsedCorrectly(),!(r instanceof Li))throw new at("writer-move-invalid-range",this);if(!r.isFlat)throw new at("writer-move-range-not-flat",this);const _=to._createAt(c,u);if(_.isEqual(r.start))return;if(this._addOperationForAffectedMarkers("move",r),!h0(r.root,_.root))throw new at("writer-move-different-document",this);const M=new ir(r.start,r.end.offset-r.start.offset,_,r.root.document?r.root.document.version:null);this.batch.addOperation(M),this.model.applyOperation(M)}remove(r){this._assertWriterUsedCorrectly();const c=(r instanceof Li?r:Li._createOn(r)).getMinimalFlatRanges().reverse();for(const u of c)this._addOperationForAffectedMarkers("move",u),f0(u.start,u.end.offset-u.start.offset,this.batch,this.model)}merge(r){this._assertWriterUsedCorrectly();const c=r.nodeBefore,u=r.nodeAfter;if(this._addOperationForAffectedMarkers("merge",r),!(c instanceof Jr))throw new at("writer-merge-no-element-before",this);if(!(u instanceof Jr))throw new at("writer-merge-no-element-after",this);r.root.document?this._merge(r):this._mergeDetached(r)}createPositionFromPath(r,c,u){return this.model.createPositionFromPath(r,c,u)}createPositionAt(r,c){return this.model.createPositionAt(r,c)}createPositionAfter(r){return this.model.createPositionAfter(r)}createPositionBefore(r){return this.model.createPositionBefore(r)}createRange(r,c){return this.model.createRange(r,c)}createRangeIn(r){return this.model.createRangeIn(r)}createRangeOn(r){return this.model.createRangeOn(r)}createSelection(...r){return this.model.createSelection(...r)}_mergeDetached(r){const c=r.nodeBefore,u=r.nodeAfter;this.move(Li._createIn(u),to._createAt(c,"end")),this.remove(u)}_merge(r){const c=to._createAt(r.nodeBefore,"end"),u=to._createAt(r.nodeAfter,0),C=new to(r.root.document.graveyard,[0]),E=new _s(u,r.nodeAfter.maxOffset,c,C,r.root.document.version);this.batch.addOperation(E),this.model.applyOperation(E)}rename(r,c){if(this._assertWriterUsedCorrectly(),!(r instanceof Jr))throw new at("writer-rename-not-element-instance",this);const u=r.root.document?r.root.document.version:null,_=new Ll(to._createBefore(r),r.name,c,u);this.batch.addOperation(_),this.model.applyOperation(_)}split(r,c){this._assertWriterUsedCorrectly();let u,_,C=r.parent;if(!C.parent)throw new at("writer-split-element-no-parent",this);if(c||(c=C.parent),!r.parent.getAncestors({includeSelf:!0}).includes(c))throw new at("writer-split-invalid-limit-element",this);do{const M=C.root.document?C.root.document.version:null,E=C.maxOffset-r.offset,N=Ar.getInsertionPosition(r),j=new Ar(r,E,N,null,M);this.batch.addOperation(j),this.model.applyOperation(j),u||_||(u=C,_=r.parent.nextSibling),C=(r=this.createPositionAfter(r.parent)).parent}while(C!==c);return{position:r,range:new Li(to._createAt(u,"end"),to._createAt(_,0))}}wrap(r,c){if(this._assertWriterUsedCorrectly(),!r.isFlat)throw new at("writer-wrap-range-not-flat",this);const u=c instanceof Jr?c:new Jr(c);if(u.childCount>0)throw new at("writer-wrap-element-not-empty",this);if(null!==u.parent)throw new at("writer-wrap-element-attached",this);this.insert(u,r.start);const _=new Li(r.start.getShiftedBy(1),r.end.getShiftedBy(1));this.move(_,to._createAt(u,0))}unwrap(r){if(this._assertWriterUsedCorrectly(),null===r.parent)throw new at("writer-unwrap-element-no-parent",this);this.move(Li._createIn(r),this.createPositionAfter(r)),this.remove(r)}addMarker(r,c){if(this._assertWriterUsedCorrectly(),!c||"boolean"!=typeof c.usingOperation)throw new at("writer-addmarker-no-usingoperation",this);const u=c.usingOperation,_=c.range,C=void 0!==c.affectsData&&c.affectsData;if(this.model.markers.has(r))throw new at("writer-addmarker-marker-exists",this);if(!_)throw new at("writer-addmarker-no-range",this);return u?(Sp(this,r,null,_,C),this.model.markers.get(r)):this.model.markers._set(r,_,u,C)}updateMarker(r,c){this._assertWriterUsedCorrectly();const u="string"==typeof r?r:r.name,_=this.model.markers.get(u);if(!_)throw new at("writer-updatemarker-marker-not-exists",this);if(!c)return Zt("writer-updatemarker-reconvert-using-editingcontroller",{markerName:u}),void this.model.markers._refresh(_);const C="boolean"==typeof c.usingOperation,M="boolean"==typeof c.affectsData,E=M?c.affectsData:_.affectsData;if(!C&&!c.range&&!M)throw new at("writer-updatemarker-wrong-options",this);const N=_.getRange(),j=c.range?c.range:N;C&&c.usingOperation!==_.managedUsingOperations?c.usingOperation?Sp(this,u,null,j,E):(Sp(this,u,N,null,E),this.model.markers._set(u,j,void 0,E)):_.managedUsingOperations?Sp(this,u,N,j,E):this.model.markers._set(u,j,void 0,E)}removeMarker(r){this._assertWriterUsedCorrectly();const c="string"==typeof r?r:r.name;if(!this.model.markers.has(c))throw new at("writer-removemarker-no-marker",this);const u=this.model.markers.get(c);u.managedUsingOperations?Sp(this,c,u.getRange(),null,u.affectsData):this.model.markers._remove(c)}addRoot(r,c="$root"){this._assertWriterUsedCorrectly();const u=this.model.document.getRoot(r);if(u&&u.isAttached())throw new at("writer-addroot-root-exists",this);const _=this.model.document,C=new _l(r,c,!0,_,_.version);return this.batch.addOperation(C),this.model.applyOperation(C),this.model.document.getRoot(r)}detachRoot(r){this._assertWriterUsedCorrectly();const c="string"==typeof r?this.model.document.getRoot(r):r;if(!c||!c.isAttached())throw new at("writer-detachroot-no-root",this);for(const C of this.model.markers)C.getRange().root===c&&this.removeMarker(C);for(const C of c.getAttributeKeys())this.removeAttribute(C,c);this.remove(this.createRangeIn(c));const u=this.model.document,_=new _l(c.rootName,c.name,!1,u,u.version);this.batch.addOperation(_),this.model.applyOperation(_)}setSelection(...r){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...r)}setSelectionFocus(r,c){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(r,c)}setSelectionAttribute(r,c){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._setSelectionAttribute(r,c);else for(const[u,_]of Kc(r))this._setSelectionAttribute(u,_)}removeSelectionAttribute(r){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._removeSelectionAttribute(r);else for(const c of r)this._removeSelectionAttribute(c)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(r){this.model.document.selection._restoreGravity(r)}_setSelectionAttribute(r,c){const u=this.model.document.selection;if(u.isCollapsed&&u.anchor.parent.isEmpty){const _=Ou._getStoreAttributeKey(r);this.setAttribute(_,c,u.anchor.parent)}u._setAttribute(r,c)}_removeSelectionAttribute(r){const c=this.model.document.selection;if(c.isCollapsed&&c.anchor.parent.isEmpty){const u=Ou._getStoreAttributeKey(r);this.removeAttribute(u,c.anchor.parent)}c._removeAttribute(r)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new at("writer-incorrect-use",this)}_addOperationForAffectedMarkers(r,c){for(const u of this.model.markers){if(!u.managedUsingOperations)continue;const _=u.getRange();let C=!1;if("move"===r){const M=c;C=M.containsPosition(_.start)||M.start.isEqual(_.start)||M.containsPosition(_.end)||M.end.isEqual(_.end)}else{const N=c.nodeAfter,K=_.end.parent==N&&0==_.end.offset,dt=_.end.nodeAfter==N,Dt=_.start.nodeAfter==N;C=_.start.parent==c.nodeBefore&&_.start.isAtEnd||K||dt||Dt}C&&this.updateMarker(u.name,{range:_})}}}function t_(m,r,c,u){const _=m.model,C=_.document;let M,E,N,j=u.start;for(const dt of u.getWalker({shallow:!0}))N=dt.item.getAttribute(r),M&&E!=N&&(E!=c&&K(),j=M),M=dt.nextPosition,E=N;function K(){const dt=new Li(j,M),me=new Wr(dt,r,E,c,dt.root.document?C.version:null);m.batch.addOperation(me),_.applyOperation(me)}M instanceof to&&M!=j&&E!=c&&K()}function Ah(m,r,c,u){const _=m.model,C=_.document,M=u.getAttribute(r);let E,N;M!=c&&(u.root===u?N=new $d(u,r,M,c,u.document?C.version:null):(E=new Li(to._createBefore(u),m.createPositionAfter(u)),N=new Wr(E,r,M,c,E.root.document?C.version:null)),m.batch.addOperation(N),_.applyOperation(N))}function Sp(m,r,c,u,_){const C=m.model,E=new ys(r,c,u,C.markers,!!_,C.document.version);m.batch.addOperation(E),C.applyOperation(E)}function f0(m,r,c,u){let _;if(m.root.document){const C=u.document,M=new to(C.graveyard,[0]);_=new ir(m,r,M,C.version)}else _=new gm(m,r);c.addOperation(_),u.applyOperation(_)}function h0(m,r){return m===r||m instanceof nl&&r instanceof nl}function yh(m,r,c={}){if(r.isCollapsed)return;const u=r.getFirstRange();if("$graveyard"==u.root.rootName)return;const _=m.schema;m.change(C=>{if(!c.doNotResetEntireContent&&function(j,K){const dt=j.getLimitElement(K);if(!K.containsEntireContent(dt))return!1;const Dt=K.getFirstRange();return Dt.start.parent!=Dt.end.parent&&j.checkChild(dt,"paragraph")}(_,r))return void function(j,K){const dt=j.model.schema.getLimitElement(K);j.remove(j.createRangeIn(dt)),b0(j,j.createPositionAt(dt,0),K)}(C,r);const M={};if(!c.doNotAutoparagraph){const j=r.getSelectedElement();j&&Object.assign(M,_.getAttributesWithProperty(j,"copyOnReplace",!0))}const[E,N]=function(j){const K=j.root.document.model,dt=j.start;let Dt=j.end;if(K.hasContent(j,{ignoreMarkers:!0})){const me=function(Ue){const qe=Ue.parent,pn=qe.root.document.model.schema,Ln=qe.getAncestors({parentFirst:!0,includeSelf:!0});for(const pi of Ln){if(pn.isLimit(pi))return null;if(pn.isBlock(pi))return pi}}(Dt);if(me&&Dt.isTouching(K.createPositionAt(me,0))){const Ue=K.createSelection(j);K.modifySelection(Ue,{direction:"backward"});const qe=Ue.getLastPosition(),pn=K.createRange(qe,Dt);K.hasContent(pn,{ignoreMarkers:!0})||(Dt=qe)}}return[el.fromPosition(dt,"toPrevious"),el.fromPosition(Dt,"toNext")]}(u);E.isTouching(N)||C.remove(C.createRange(E,N)),c.leaveUnmerged||(function(j,K,dt){const Dt=j.model;if(!g0(j.model.schema,K,dt))return;const[me,Ue]=function(qe,pn){const Ln=qe.getAncestors(),pi=pn.getAncestors();let Ri=0;for(;Ln[Ri]&&Ln[Ri]==pi[Ri];)Ri++;return[Ln[Ri],pi[Ri]]}(K,dt);!me||!Ue||(!Dt.hasContent(me,{ignoreMarkers:!0})&&Dt.hasContent(Ue,{ignoreMarkers:!0})?a5(j,K,dt,me.parent):o4(j,K,dt,me.parent))}(C,E,N),_.removeDisallowedAttributes(E.parent.getChildren(),C)),v0(C,r,E),!c.doNotAutoparagraph&&function(j,K){const dt=j.checkChild(K,"$text"),Dt=j.checkChild(K,"paragraph");return!dt&&Dt}(_,E)&&b0(C,E,r,M),E.detach(),N.detach()})}function o4(m,r,c,u){const _=r.parent,C=c.parent;if(_!=u&&C!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(C)).isEqual(r)||m.insert(C,r),m.merge(r);c.parent.isEmpty;){const M=c.parent;c=m.createPositionBefore(M),m.remove(M)}g0(m.model.schema,r,c)&&o4(m,r,c,u)}}function a5(m,r,c,u){const _=r.parent,C=c.parent;if(_!=u&&C!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(C)).isEqual(r)||m.insert(_,c);r.parent.isEmpty;){const M=r.parent;r=m.createPositionBefore(M),m.remove(M)}c=m.createPositionBefore(C),function(M,E){const N=E.nodeBefore,j=E.nodeAfter;N.name!=j.name&&M.rename(N,j.name),M.clearAttributes(N),M.setAttributes(Object.fromEntries(j.getAttributes()),N),M.merge(E)}(m,c),g0(m.model.schema,r,c)&&a5(m,r,c,u)}}function g0(m,r,c){const u=r.parent,_=c.parent;return u!=_&&!m.isLimit(u)&&!m.isLimit(_)&&function(C,M,E){const N=new Li(C,M);for(const j of N.getWalker())if(E.isLimit(j.item))return!1;return!0}(r,c,m)}function b0(m,r,c,u={}){const _=m.createElement("paragraph");m.model.schema.setAllowedAttributes(_,u,m),m.insert(_,r),v0(m,c,m.createPositionAt(_,0))}function v0(m,r,c){r instanceof Ou?m.setSelection(c):r.setTo(c)}function cf(m,r){const c=[];Array.from(m.getItems({direction:"backward"})).map(u=>r.createRangeOn(u)).filter(u=>(u.start.isAfter(m.start)||u.start.isEqual(m.start))&&(u.end.isBefore(m.end)||u.end.isEqual(m.end))).forEach(u=>{c.push(u.start.parent),r.remove(u)}),c.forEach(u=>{let _=u;for(;_.parent&&_.isEmpty;){const C=r.createRangeOn(_);_=_.parent,r.remove(C)}})}class a4{constructor(r,c,u){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=r,this.writer=c,this.position=u,this.canMergeWith=new Set([this.position.parent]),this.schema=r.schema,this._documentFragment=c.createDocumentFragment(),this._documentFragmentPosition=c.createPositionAt(this._documentFragment,0)}handleNodes(r){for(const c of Array.from(r))this._handleNode(c);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(r){const c=this.writer.createPositionAfter(this._lastNode),u=this.writer.createPositionAfter(r);if(u.isAfter(c)){if(this._lastNode=r,this.position.parent!=r||!this.position.isAtEnd)throw new at("insertcontent-invalid-insertion-position",this);this.position=u,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Li._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Li(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(r){if(this.schema.isObject(r))return void this._handleObject(r);let c=this._checkAndAutoParagraphToAllowedPosition(r);c||(c=this._checkAndSplitToAllowedPosition(r),c)?(this._appendToFragment(r),this._firstNode||(this._firstNode=r),this._lastNode=r):this._handleDisallowedNode(r)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const r=el.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=r.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=r.toPosition(),r.detach()}_handleObject(r){this._checkAndSplitToAllowedPosition(r)?this._appendToFragment(r):this._tryAutoparagraphing(r)}_handleDisallowedNode(r){r.is("element")?this.handleNodes(r.getChildren()):this._tryAutoparagraphing(r)}_appendToFragment(r){if(!this.schema.checkChild(this.position,r))throw new at("insertcontent-wrong-position",this,{node:r,position:this.position});this.writer.insert(r,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(r.offsetSize),this._nodeToSelect=this.schema.isObject(r)&&!this.schema.checkChild(this.position,"$text")?r:null,this._filterAttributesOf.push(r)}_setAffectedBoundaries(r){this._affectedStart||(this._affectedStart=el.fromPosition(r,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(r)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=el.fromPosition(r,"toNext"))}_mergeOnLeft(){const r=this._firstNode;if(!(r instanceof Jr&&this._canMergeLeft(r)))return;const c=el._createBefore(r);c.stickiness="toNext";const u=el.fromPosition(this.position,"toNext");this._affectedStart.isEqual(c)&&(this._affectedStart.detach(),this._affectedStart=el._createAt(c.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=c.nodeBefore,this._lastNode=c.nodeBefore),this.writer.merge(c),c.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=el._createAt(c.nodeBefore,"end","toNext")),this.position=u.toPosition(),u.detach(),this._filterAttributesOf.push(this.position.parent),c.detach()}_mergeOnRight(){const r=this._lastNode;if(!(r instanceof Jr&&this._canMergeRight(r)))return;const c=el._createAfter(r);if(c.stickiness="toNext",!this.position.isEqual(c))throw new at("insertcontent-invalid-insertion-position",this);this.position=to._createAt(c.nodeBefore,"end");const u=el.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(c)&&(this._affectedEnd.detach(),this._affectedEnd=el._createAt(c.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=c.nodeBefore,this._lastNode=c.nodeBefore),this.writer.merge(c),c.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=el._createAt(c.nodeBefore,0,"toPrevious")),this.position=u.toPosition(),u.detach(),this._filterAttributesOf.push(this.position.parent),c.detach()}_canMergeLeft(r){const c=r.previousSibling;return c instanceof Jr&&this.canMergeWith.has(c)&&this.model.schema.checkMerge(c,r)}_canMergeRight(r){const c=r.nextSibling;return c instanceof Jr&&this.canMergeWith.has(c)&&this.model.schema.checkMerge(r,c)}_tryAutoparagraphing(r){const c=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,c)&&this.schema.checkChild(c,r)&&(c._appendChild(r),this._handleNode(c))}_checkAndAutoParagraphToAllowedPosition(r){if(this.schema.checkChild(this.position.parent,r))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",r))return!1;this._insertPartialFragment();const c=this.writer.createElement("paragraph");return this.writer.insert(c,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=c,this.position=this.writer.createPositionAt(c,0),!0}_checkAndSplitToAllowedPosition(r){const c=this._getAllowedIn(this.position.parent,r);if(!c)return!1;for(c!=this.position.parent&&this._insertPartialFragment();c!=this.position.parent;)if(this.position.isAtStart){const u=this.position.parent;this.position=this.writer.createPositionBefore(u),u.isEmpty&&u.parent===c&&this.writer.remove(u)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const u=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=u,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(r,c){return this.schema.checkChild(r,c)?r:this.schema.isLimit(r)?null:this._getAllowedIn(r.parent,c)}}function x0(m,r,c="auto"){const u=m.getSelectedElement();if(u&&r.schema.isObject(u)&&!r.schema.isInline(u))return"before"==c||"after"==c?r.createRange(r.createPositionAt(u,c)):r.createRangeOn(u);const _=os(m.getSelectedBlocks());if(!_)return r.createRange(m.focus);if(_.isEmpty)return r.createRange(r.createPositionAt(_,0));const C=r.createPositionAfter(_);return m.focus.isTouching(C)?r.createRange(C):r.createRange(r.createPositionBefore(_))}function r4(m,r){const{isForward:c,walker:u,unit:_,schema:C,treatEmojiAsSingleUnit:M}=m,{type:E,item:N,nextPosition:j}=r;if("text"==E)return"word"===m.unit?function(K,dt){let Dt=K.position.textNode;for(Dt||(Dt=dt?K.position.nodeAfter:K.position.nodeBefore);Dt&&Dt.is("$text");){const me=K.position.offset-Dt.startOffset;if(C0(Dt,me,dt))Dt=dt?K.position.nodeAfter:K.position.nodeBefore;else{if(r5(Dt.data,me,dt))break;K.next()}}return K.position}(u,c):function(K,dt,Dt){const me=K.position.textNode;if(me){const Ue=me.data;let qe=K.position.offset-me.startOffset;for(;un(Ue,qe)||"character"==dt&&hd(Ue,qe)||Dt&&kl(Ue,qe);)K.next(),qe=K.position.offset-me.startOffset}return K.position}(u,_,M);if(E==(c?"elementStart":"elementEnd")){if(C.isSelectable(N))return to._createAt(N,c?"after":"before");if(C.checkChild(j,"$text"))return j}else{if(C.isLimit(N))return void u.skip(()=>!0);if(C.checkChild(j,"$text"))return j}}function s4(m,r){const u=to._createAt(m.root,r?"end":0);return r?new Li(m,u):new Li(u,m)}function r5(m,r,c){return' ,.?!:;"-()'.includes(m.charAt(r+(c?0:-1)))}function C0(m,r,c){return r===(c?m.offsetSize:0)}class fs extends(Ze()){constructor(){super(),this.markers=new t2,this.document=new e5(this),this.schema=new $3,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(r=>this.decorate(r)),this.on("applyOperation",(r,c)=>{c[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((r,c)=>{if("$marker"===c.name)return!0}),function rh(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.selection,C=u.schema,M=[];let E=!1;for(const N of _.getRanges()){const j=Ga(N,C);j&&!j.isEqual(N)?(M.push(j),E=!0):M.push(N)}return E&&c.setSelection(function(N){const j=[...N],K=new Set;let dt=1;for(;dt!K.has(me))}(M),{backward:_.isBackward}),!1}(r,m))}(this),this.document.registerPostFixer(nh),this.on("insertContent",(r,[c,u])=>{var _,C,M;r.return=(C=c,M=u,(_=this).change(E=>{const N=M||_.document.selection;N.isCollapsed||_.deleteContent(N,{doNotAutoparagraph:!0});const j=new a4(_,E,N.anchor),K=[];let dt;if(C.is("documentFragment")){if(C.markers.size){const Ue=[];for(const[qe,pn]of C.markers){const{start:Ln,end:pi}=pn,Ri=Ln.isEqual(pi);Ue.push({position:Ln,name:qe,isCollapsed:Ri},{position:pi,name:qe,isCollapsed:Ri})}Ue.sort(({position:qe},{position:pn})=>qe.isBefore(pn)?1:-1);for(const{position:qe,name:pn,isCollapsed:Ln}of Ue){let pi=null,Ri=null;const Go=qe.parent===C&&qe.isAtStart,ka=qe.parent===C&&qe.isAtEnd;Go||ka?Ln&&(Ri=Go?"start":"end"):(pi=E.createElement("$marker"),E.insert(pi,qe)),K.push({name:pn,element:pi,collapsed:Ri})}}dt=C.getChildren()}else dt=[C];j.handleNodes(dt);let Dt=j.getSelectionRange();if(C.is("documentFragment")&&K.length){const Ue=Dt?Xu.fromRange(Dt):null,qe={};for(let pn=K.length-1;pn>=0;pn--){const{name:Ln,element:pi,collapsed:Ri}=K[pn],Go=!qe[Ln];if(Go&&(qe[Ln]=[]),pi){const ka=E.createPositionAt(pi,"before");qe[Ln].push(ka),E.remove(pi)}else{const ka=j.getAffectedRange();if(!ka){Ri&&qe[Ln].push(j.position);continue}qe[Ln].push(Ri?ka[Ri]:Go?ka.start:ka.end)}}for(const[pn,[Ln,pi]]of Object.entries(qe))Ln&&pi&&Ln.root===pi.root&&E.addMarker(pn,{usingOperation:!0,affectsData:!0,range:new Li(Ln,pi)});Ue&&(Dt=Ue.toRange(),Ue.detach())}Dt&&(N instanceof Ou?E.setSelection(Dt):N.setTo(Dt));const me=j.getAffectedRange()||_.createRange(N.anchor);return j.destroy(),me}))}),this.on("insertObject",(r,[c,u,_])=>{r.return=function mu(m,r,c,u={}){if(!m.schema.isObject(r))throw new at("insertobject-element-not-an-object",m,{object:r});const _=c||m.document.selection;let C=_;u.findOptimalPosition&&m.schema.isBlock(r)&&(C=m.createSelection(x0(_,m,u.findOptimalPosition)));const M=os(_.getSelectedBlocks()),E={};return M&&Object.assign(E,m.schema.getAttributesWithProperty(M,"copyOnReplace",!0)),m.change(N=>{C.isCollapsed||m.deleteContent(C,{doNotAutoparagraph:!0});let j=r;const K=C.anchor.parent;!m.schema.checkChild(K,r)&&m.schema.checkChild(K,"paragraph")&&m.schema.checkChild("paragraph",r)&&(j=N.createElement("paragraph"),N.insert(r,j)),m.schema.setAllowedAttributes(j,E,N);const dt=m.insertContent(j,C);return dt.isCollapsed||u.setSelection&&function(Dt,me,Ue,qe){const pn=Dt.model;if("on"==Ue)return void Dt.setSelection(me,"on");if("after"!=Ue)throw new at("insertobject-invalid-place-parameter-value",pn);let Ln=me.nextSibling;pn.schema.isInline(me)?Dt.setSelection(me,"after"):(!(Ln&&pn.schema.checkChild(Ln,"$text"))&&pn.schema.checkChild(me.parent,"paragraph")&&(Ln=Dt.createElement("paragraph"),pn.schema.setAllowedAttributes(Ln,qe,Dt),pn.insertContent(Ln,Dt.createPositionAfter(me))),Ln&&Dt.setSelection(Ln,0))}(N,r,u.setSelection,E),dt})}(this,c,u,_)}),this.on("canEditAt",r=>{const c=!this.document.isReadOnly;r.return=c,c||r.stop()})}change(r){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new _m,callback:r}),this._runPendingChanges()[0]):r(this._currentWriter)}catch(c){at.rethrowUnexpectedError(c,this)}}enqueueChange(r,c){try{r?"function"==typeof r?(c=r,r=new _m):r instanceof _m||(r=new _m(r)):r=new _m,this._pendingChanges.push({batch:r,callback:c}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(u){at.rethrowUnexpectedError(u,this)}}applyOperation(r){r._execute()}insertContent(r,c,u,..._){const C=e2(c,u);return this.fire("insertContent",[r,C,u,..._])}insertObject(r,c,u,_,...C){const M=e2(c,u);return this.fire("insertObject",[r,M,_,_,...C])}deleteContent(r,c){yh(this,r,c)}modifySelection(r,c){!function(u,_,C={}){const M=u.schema,E="backward"!=C.direction,N=C.unit?C.unit:"character",j=!!C.treatEmojiAsSingleUnit,dt=new Gd({boundaries:s4(_.focus,E),singleCharacters:!0,direction:E?"forward":"backward"}),Dt={walker:dt,schema:M,isForward:E,unit:N,treatEmojiAsSingleUnit:j};let me;for(;me=dt.next();){if(me.done)return;const Ue=r4(Dt,me.value);if(Ue)return void(_ instanceof Ou?u.change(qe=>{qe.setSelectionFocus(Ue)}):_.setFocus(Ue))}}(this,r,c)}getSelectedContent(r){return u=r,this.change(_=>{const C=_.createDocumentFragment(),M=u.getFirstRange();if(!M||M.isCollapsed)return C;const E=M.start.root,N=M.start.getCommonPath(M.end),j=E.getNodeByPath(N);let K;K=M.start.parent==M.end.parent?M:_.createRange(_.createPositionAt(j,M.start.path[N.length]),_.createPositionAt(j,M.end.path[N.length]+1));const dt=K.end.offset-K.start.offset;for(const Dt of K.getItems({shallow:!0}))Dt.is("$textProxy")?_.appendText(Dt.data,Dt.getAttributes(),C):_.append(_.cloneElement(Dt,!0),C);if(K!=M){const Dt=M._getTransformedByMove(K.start,_.createPositionAt(C,0),dt)[0],me=_.createRange(_.createPositionAt(C,0),Dt.start);cf(_.createRange(Dt.end,_.createPositionAt(C,"end")),_),cf(me,_)}return C});var u}hasContent(r,c={}){const u=r instanceof Li?r:Li._createIn(r);if(u.isCollapsed)return!1;const{ignoreWhitespaces:_=!1,ignoreMarkers:C=!1}=c;if(!C)for(const M of this.markers.getMarkersIntersectingRange(u))if(M.affectsData)return!0;for(const M of u.getItems())if(this.schema.isContent(M)&&(!M.is("$textProxy")||!_||-1!==M.data.search(/\S/)))return!0;return!1}canEditAt(r){const c=e2(r);return this.fire("canEditAt",[c])}createPositionFromPath(r,c,u){return new to(r,c,u)}createPositionAt(r,c){return to._createAt(r,c)}createPositionAfter(r){return to._createAfter(r)}createPositionBefore(r){return to._createBefore(r)}createRange(r,c){return new Li(r,c)}createRangeIn(r){return Li._createIn(r)}createRangeOn(r){return Li._createOn(r)}createSelection(...r){return new Ud(...r)}createBatch(r){return new _m(r)}createOperationFromJSON(r){return class Z1{static fromJSON(r,c){return pu[r.__className].fromJSON(r,c)}}.fromJSON(r,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const r=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){this._currentWriter=new sf(this,this._pendingChanges[0].batch);const u=this._pendingChanges[0].callback(this._currentWriter);r.push(u),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return r}}function e2(m,r){if(m)return m instanceof Ud||m instanceof Ou?m:m instanceof oc?r||0===r?new Ud(m,r):m.is("rootElement")?new Ud(m,"in"):new Ud(m,"on"):new Ud(m)}class c4 extends Wu{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(r){this.fire(r.type,r)}}class A0 extends Wu{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(r){this.fire(r.type,r)}}class W1{constructor(r){this.document=r}createDocumentFragment(r){return new Td(this.document,r)}createElement(r,c,u){return new Xc(this.document,r,c,u)}createText(r){return new Eo(this.document,r)}clone(r,c=!1){return r._clone(c)}appendChild(r,c){return c._appendChild(r)}insertChild(r,c,u){return u._insertChild(r,c)}removeChildren(r,c,u){return u._removeChildren(r,c)}remove(r){const c=r.parent;return c?this.removeChildren(c.getChildIndex(r),1,c):[]}replace(r,c){const u=r.parent;if(u){const _=u.getChildIndex(r);return this.removeChildren(_,1,u),this.insertChild(_,c,u),!0}return!1}unwrapElement(r){const c=r.parent;if(c){const u=c.getChildIndex(r);this.remove(r),this.insertChild(u,r.getChildren(),c)}}rename(r,c){const u=new Xc(this.document,r,c.getAttributes(),c.getChildren());return this.replace(c,u)?u:null}setAttribute(r,c,u){u._setAttribute(r,c)}removeAttribute(r,c){c._removeAttribute(r)}addClass(r,c){c._addClass(r)}removeClass(r,c){c._removeClass(r)}setStyle(r,c,u){en(r)&&void 0===u?c._setStyle(r):u._setStyle(r,c)}removeStyle(r,c){c._removeStyle(r)}setCustomProperty(r,c,u){u._setCustomProperty(r,c)}removeCustomProperty(r,c){return c._removeCustomProperty(r)}createPositionAt(r,c){return Uo._createAt(r,c)}createPositionAfter(r){return Uo._createAfter(r)}createPositionBefore(r){return Uo._createBefore(r)}createRange(r,c){return new Za(r,c)}createRangeOn(r){return Za._createOn(r)}createRangeIn(r){return Za._createIn(r)}createSelection(...r){return new ju(...r)}}class l4{constructor(){this._commands=new Map}add(r,c){this._commands.set(r,c)}get(r){return this._commands.get(r)}execute(r,...c){const u=this.get(r);if(!u)throw new at("commandcollection-command-not-found",this,{commandName:r});return u.execute(...c)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const r of this.commands())r.destroy()}}class u4 extends(Ze()){constructor(r={}){super();const c=this.constructor;this._context=r.context||new k2({language:r.language||c.defaultConfig&&c.defaultConfig.language}),this._context._addEditor(this,!r.context);const _=Array.from(c.builtinPlugins||[]);this.config=new nr(r,c.defaultConfig),this.config.define("plugins",_),this.config.define(this._context._getEditorConfig()),this.plugins=new If(this,_,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new l4,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new fs,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const C=new Og;this.data=new $_(this.model,C),this.editing=new um(this.model,C),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new Os([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Wp(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(r){throw new at("editor-isreadonly-has-no-setter")}enableReadOnlyMode(r){if("string"!=typeof r&&"symbol"!=typeof r)throw new at("editor-read-only-lock-id-invalid",null,{lockId:r});this._readOnlyLocks.has(r)||(this._readOnlyLocks.add(r),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(r){if("string"!=typeof r&&"symbol"!=typeof r)throw new at("editor-read-only-lock-id-invalid",null,{lockId:r});this._readOnlyLocks.has(r)&&(this._readOnlyLocks.delete(r),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const r=this.config,c=r.get("plugins"),u=r.get("removePlugins")||[],_=r.get("extraPlugins")||[],C=r.get("substitutePlugins")||[];return this.plugins.init(c.concat(_),u,C)}destroy(){let r=Promise.resolve();return"initializing"==this.state&&(r=new Promise(c=>this.once("ready",c))),r.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(r,...c){try{return this.commands.execute(r,...c)}catch(u){at.rethrowUnexpectedError(u,this)}}focus(){this.editing.view.focus()}static create(...r){throw new Error("This is an abstract method.")}}function n2(m){return class extends m{setData(r){this.data.set(r)}getData(r){return this.data.get(r)}}}{const m=n2(Object);n2.setData=m.prototype.setData,n2.getData=m.prototype.getData}function lf(m){return class extends m{updateSourceElement(r=this.data.get()){if(!this.sourceElement)throw new at("editor-missing-sourceelement",this);const c=this.config.get("updateSourceElementOnDestroy"),u=this.sourceElement instanceof HTMLTextAreaElement;!function Ti(m,r){m instanceof HTMLTextAreaElement&&(m.value=r),m.innerHTML=r}(this.sourceElement,c||u?r:"")}}}lf.updateSourceElement=lf(Object).prototype.updateSourceElement;class wh extends w_{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new ec({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(r){if("string"!=typeof r)throw new at("pendingactions-add-invalid-message",this);const c=new(Ze());return c.set("message",r),this._actions.add(c),this.hasAny=!0,c}remove(r){this._actions.remove(r),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const hs={bold:'',cancel:'',caption:'',check:'',cog:'',eraser:'',history:'',image:'',lowVision:'',loupe:'',importExport:'',paragraph:'',plus:'',text:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:'',quote:'',threeVerticalDots:'',dragIndicator:''};var y0=v(5542);Fo()(y0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const{threeVerticalDots:o2}=hs,T0={alignLeft:hs.alignLeft,bold:hs.bold,importExport:hs.importExport,paragraph:hs.paragraph,plus:hs.plus,text:hs.text,threeVerticalDots:hs.threeVerticalDots,pilcrow:hs.pilcrow,dragIndicator:hs.dragIndicator};class w0 extends oa{constructor(r,c){super(r);const u=this.bindTemplate,_=this.t;this.options=c||{},this.set("ariaLabel",_("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new as,this.keystrokes=new $c,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new Ys(r),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const C="rtl"===r.uiLanguageDirection;this._focusCycler=new dl({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[C?"arrowright":"arrowleft","arrowup"],focusNext:[C?"arrowleft":"arrowright","arrowdown"]}});const M=["ck","ck-toolbar",u.to("class"),u.if("isCompact","ck-toolbar_compact")];var E;this.options.shouldGroupWhenFull&&this.options.isFloating&&M.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:M,role:"toolbar","aria-label":u.to("ariaLabel"),style:{maxWidth:u.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(E=this,E.bindTemplate.to(N=>{N.target===E.element&&N.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new d4(this):new qc(this)}render(){super.render(),this.focusTracker.add(this.element);for(const r of this.items)this.focusTracker.add(r.element);this.items.on("add",(r,c)=>{this.focusTracker.add(c.element)}),this.items.on("remove",(r,c)=>{this.focusTracker.remove(c.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(r,c,u){this.items.addMany(this._buildItemsFromConfig(r,c,u))}_buildItemsFromConfig(r,c,u){const _=fp(r),C=u||_.removeItems;return this._cleanItemsConfiguration(_.items,c,C).map(M=>Kt(M)?this._createNestedToolbarDropdown(M,c,C):"|"===M?new pl:"-"===M?new M2:c.create(M)).filter(M=>!!M)}_cleanItemsConfiguration(r,c,u){const _=r.filter((C,M,E)=>"|"===C||-1===u.indexOf(C)&&("-"===C?!this.options.shouldGroupWhenFull||(Zt("toolbarview-line-break-ignored-when-grouping-items",E),!1):!(!Kt(C)&&!c.has(C)&&(Zt("toolbarview-item-unavailable",{item:C}),1))));return this._cleanSeparatorsAndLineBreaks(_)}_cleanSeparatorsAndLineBreaks(r){const c=M=>"-"!==M&&"|"!==M,u=r.length,_=r.findIndex(c);if(-1===_)return[];const C=u-r.slice().reverse().findIndex(c);return r.slice(_,C).filter((M,E,N)=>!!c(M)||!(E>0&&N[E-1]===M))}_createNestedToolbarDropdown(r,c,u){let{label:_,icon:C,items:M,tooltip:E=!0,withText:N=!1}=r;if(M=this._cleanItemsConfiguration(M,c,u),!M.length)return null;const j=Op(this.locale);return _||Zt("toolbarview-nested-toolbar-dropdown-missing-label",r),j.class="ck-toolbar__nested-toolbar-dropdown",j.buttonView.set({label:_,tooltip:E,withText:!!N}),!1!==C?j.buttonView.icon=T0[C]||C||o2:j.buttonView.withText=!0,e_(j,()=>j.toolbarView._buildItemsFromConfig(M,c,u)),j}}class Ys extends oa{constructor(r){super(r),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class qc{constructor(r){const c=r.bindTemplate;r.set("isVertical",!1),r.itemsView.children.bindTo(r.items).using(u=>u),r.focusables.bindTo(r.items).using(u=>u),r.extendTemplate({attributes:{class:[c.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class d4{constructor(r){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=r,this.viewChildren=r.children,this.viewFocusables=r.focusables,this.viewItemsView=r.itemsView,this.viewFocusTracker=r.focusTracker,this.viewLocale=r.locale,this.ungroupedItems=r.createCollection(),this.groupedItems=r.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),r.itemsView.children.bindTo(this.ungroupedItems).using(c=>c),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),r.children.on("change",this._updateFocusCycleableItems.bind(this)),r.items.on("change",(c,u)=>{const _=u.index,C=Array.from(u.added);for(const M of u.removed)_>=this.ungroupedItems.length?this.groupedItems.remove(M):this.ungroupedItems.remove(M);for(let M=_;M<_+C.length;M++){const E=C[M-_];M>this.ungroupedItems.length?this.groupedItems.add(E,M-this.ungroupedItems.length):this.ungroupedItems.add(E,M)}this._updateGrouping()}),r.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(r){this.viewElement=r.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(r)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!ra(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const r=this.groupedItems.length;let c;for(;this._areItemsOverflowing;)this._groupLastItem(),c=!0;if(!c&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==r&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const r=this.viewElement,c=this.viewLocale.uiLanguageDirection,u=new de(r.lastChild),_=new de(r);if(!this.cachedPadding){const C=Lt.window.getComputedStyle(r);this.cachedPadding=Number.parseInt(C["ltr"===c?"paddingRight":"paddingLeft"])}return"ltr"===c?u.right>_.right-this.cachedPadding:u.left<_.left+this.cachedPadding}_enableGroupingOnResize(){let r;this.resizeObserver=new yi(this.viewElement,c=>{r&&r===c.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),r=c.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(r){r.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new pl),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const r=this.viewLocale,c=r.t,u=Op(r);return u.class="ck-toolbar__grouped-dropdown",u.panelPosition="ltr"===r.uiLanguageDirection?"sw":"se",e_(u,this.groupedItems),u.buttonView.set({label:c("Show more items"),tooltip:!0,tooltipPosition:"rtl"===r.uiLanguageDirection?"se":"sw",icon:o2}),u}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(r=>{this.viewFocusables.add(r)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class a2 extends oa{constructor(r){super(r);const c=this.bindTemplate,u=`ck-editor__label_${Pt()}`,_=new p4(r);this.children=this.createCollection(),this.children.addMany([this._createLabel(u),_]),this.set({label:"",isVisible:!0}),_.set({role:"group",ariaLabelledBy:u}),_.focusTracker.destroy(),_.keystrokes.destroy(),this.items=_.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",c.if("isVisible","ck-hidden",C=>!C)]},children:this.children})}_createLabel(r){const c=new oa(this.locale);return c.setTemplate({tag:"span",attributes:{id:r},children:[{text:this.bindTemplate.to("label")}]}),c}focus(){this.items.first&&this.items.first.focus()}}var r2=v(1046);Fo()(r2.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class p4 extends oa{constructor(r){super(r),this._listItemGroupToChangeListeners=new WeakMap;const c=this.bindTemplate;this.focusables=new Ia,this.items=this.createCollection(),this.focusTracker=new as,this.keystrokes=new $c,this._focusCycler=new dl({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:c.to("role"),"aria-label":c.to("ariaLabel"),"aria-labelledby":c.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const r of this.items)r instanceof a2?this._registerFocusableItemsGroup(r):this._registerFocusableListItem(r);this.items.on("change",(r,c)=>{for(const u of c.removed)u instanceof a2?this._deregisterFocusableItemsGroup(u):this._deregisterFocusableListItem(u);for(const u of Array.from(c.added).reverse())u instanceof a2?this._registerFocusableItemsGroup(u,c.index):this._registerFocusableListItem(u,c.index)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(r,c){this.focusTracker.add(r.element),this.focusables.add(r,c)}_deregisterFocusableListItem(r){this.focusTracker.remove(r.element),this.focusables.remove(r)}_getOnGroupItemsChangeCallback(r){return(c,u)=>{for(const _ of u.removed)this._deregisterFocusableListItem(_);for(const _ of Array.from(u.added).reverse())this._registerFocusableListItem(_,this.items.getIndex(r)+u.index)}}_registerFocusableItemsGroup(r,c){Array.from(r.items).forEach((_,C)=>{this._registerFocusableListItem(_,void 0!==c?c+C:void 0)});const u=this._getOnGroupItemsChangeCallback(r);this._listItemGroupToChangeListeners.set(r,u),r.items.on("change",u)}_deregisterFocusableItemsGroup(r){for(const c of r.items)this._deregisterFocusableListItem(c);r.items.off("change",this._listItemGroupToChangeListeners.get(r)),this._listItemGroupToChangeListeners.delete(r)}}class Zh extends oa{constructor(r){super(r);const c=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",c.if("isVisible","ck-hidden",u=>!u)],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class Lp extends oa{constructor(r){super(r),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var bm=v(7686);Fo()(bm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class m4 extends oa{constructor(r){super(r);const c=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new $c,this.focusTracker=new as,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",c.to("class"),c.if("isVisible","ck-hidden",u=>!u),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(r,c)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),c())}),this.keystrokes.set("arrowleft",(r,c)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),c())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const r=new $o;return r.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),r.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),r.delegate("execute").to(this),r}_createArrowView(){const r=new $o,c=r.bindTemplate;return r.icon=xd,r.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":c.to("isOn"),"aria-haspopup":!0,"aria-expanded":c.to("isOn",u=>String(u))}}),r.bind("isEnabled").to(this),r.bind("label").to(this),r.bind("tooltip").to(this),r.delegate("execute").to(this,"open"),r}}var kh=v(7339);Fo()(kh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var vm=v(3949);function Op(m,r=x1){const c=new r(m),u=new y_(m),_=new Uu(m,c,u);return c.bind("isEnabled").to(_),c instanceof m4?c.arrowView.bind("isOn").to(_,"isOpen"):c.bind("isOn").to(_,"isOpen"),(M=C=_).on("render",()=>{t({emitter:M,activator:()=>M.isOpen,callback:()=>{M.isOpen=!1},contextElements:()=>[M.element,...M.focusTracker._elements]})}),function(M){M.on("execute",E=>{E.source instanceof As||(M.isOpen=!1)})}(C),function(M){M.focusTracker.on("change:isFocused",(E,N,j)=>{M.isOpen&&!j&&(M.isOpen=!1)})}(C),function(M){M.keystrokes.set("arrowdown",(E,N)=>{M.isOpen&&(M.panelView.focus(),N())}),M.keystrokes.set("arrowup",(E,N)=>{M.isOpen&&(M.panelView.focusLast(),N())})}(C),function(M){M.on("change:isOpen",(E,N,j)=>{if(j)return;const K=M.panelView.element;K&&K.contains(Lt.document.activeElement)&&M.buttonView.focus()})}(C),function(M){M.on("change:isOpen",(E,N,j)=>{j&&M.panelView.focus()},{priority:"low"})}(C),_;var C,M}function e_(m,r,c={}){m.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),m.isOpen?n_(m,r,c):m.once("change:isOpen",()=>n_(m,r,c),{priority:"highest"}),c.enableActiveItemFocusOnDropdownOpen&&s2(m,()=>m.toolbarView.items.find(u=>u.isOn))}function n_(m,r,c){const u=m.locale,_=u.t,C=m.toolbarView=new w0(u),M="function"==typeof r?r():r;C.ariaLabel=c.ariaLabel||_("Dropdown toolbar"),c.maxWidth&&(C.maxWidth=c.maxWidth),c.class&&(C.class=c.class),c.isCompact&&(C.isCompact=c.isCompact),c.isVertical&&(C.isVertical=!0),M instanceof Ia?C.items.bindTo(M).using(E=>E):C.items.addMany(M),m.panelView.children.add(C),C.items.delegate("execute").to(m)}function t1(m,r,c={}){m.isOpen?Cm(m,r,c):m.once("change:isOpen",()=>Cm(m,r,c),{priority:"highest"}),s2(m,()=>m.listView.items.find(u=>u instanceof Zh&&u.children.first.isOn))}function Cm(m,r,c){const u=m.locale,_=m.listView=new p4(u),C="function"==typeof r?r():r;_.ariaLabel=c.ariaLabel,_.role=c.role,Am(m,_.items,C,u),m.panelView.children.add(_),_.items.delegate("execute").to(m)}function s2(m,r){m.on("change:isOpen",()=>{if(!m.isOpen)return;const c=r();c&&("function"==typeof c.focus?c.focus():Zt("ui-dropdown-focus-child-on-open-child-missing-focus",{view:c}))},{priority:St.low-10})}function Am(m,r,c,u){r.bindTo(c).using(_=>{if("separator"===_.type)return new Lp(u);if("group"===_.type){const C=new a2(u);return C.set({label:_.label}),Am(m,C.items,_.items,u),C.items.delegate("execute").to(m),C}if("button"===_.type||"switchbutton"===_.type){const C=new Zh(u);let M;return M="button"===_.type?new $o(u):new As(u),M.bind(...Object.keys(_.model)).to(_.model),M.delegate("execute").to(C),C.children.add(M),C}return null})}Fo()(vm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const uf=(m,r,c)=>{const u=new xg(m.locale);return u.set({id:r,ariaDescribedById:c}),u.bind("isReadOnly").to(m,"isEnabled",_=>!_),u.bind("hasError").to(m,"errorText",_=>!!_),u.on("input",()=>{m.errorText=null}),m.bind("isEmpty","isFocused","placeholder").to(u),u},K1=(m,r=0,c=1)=>m>c?c:mMath.round(c*m)/c,U0=m=>("#"===m[0]&&(m=m.substring(1)),m.length<6?{r:parseInt(m[0]+m[0],16),g:parseInt(m[1]+m[1],16),b:parseInt(m[2]+m[2],16),a:4===m.length?Ol(parseInt(m[3]+m[3],16)/255,2):1}:{r:parseInt(m.substring(0,2),16),g:parseInt(m.substring(2,4),16),b:parseInt(m.substring(4,6),16),a:8===m.length?Ol(parseInt(m.substring(6,8),16)/255,2):1}),X1=m=>{const{h:r,s:c,l:u}=(({h:m,s:r,v:c,a:u})=>{const _=(200-r)*c/100;return{h:Ol(m),s:Ol(_>0&&_<200?r*c/100/(_<=100?_:200-_)*100:0),l:Ol(_/2),a:Ol(u,2)}})(m);return`hsl(${r}, ${c}%, ${u}%)`},Dh=m=>{const r=m.toString(16);return r.length<2?"0"+r:r},f4=(m,r)=>{if(m===r)return!0;for(const c in m)if(m[c]!==r[c])return!1;return!0},D0={},P0=m=>{let r=D0[m];return r||(r=document.createElement("template"),r.innerHTML=m,D0[m]=r),r},Ph=(m,r,c)=>{m.dispatchEvent(new CustomEvent(r,{bubbles:!0,detail:c}))};let ym=!1;const S0=m=>"touches"in m,df=(m,r)=>{const c=S0(r)?r.touches[0]:r,u=m.el.getBoundingClientRect();Ph(m.el,"move",m.getMove({x:K1((c.pageX-(u.left+window.pageXOffset))/u.width),y:K1((c.pageY-(u.top+window.pageYOffset))/u.height)}))};class h4{constructor(r,c,u,_){const C=P0(`
`);r.appendChild(C.content.cloneNode(!0));const M=r.querySelector(`[part=${c}]`);M.addEventListener("mousedown",this),M.addEventListener("touchstart",this),M.addEventListener("keydown",this),this.el=M,this.xy=_,this.nodes=[M.firstChild,M]}set dragging(r){const c=r?document.addEventListener:document.removeEventListener;c(ym?"touchmove":"mousemove",this),c(ym?"touchend":"mouseup",this)}handleEvent(r){switch(r.type){case"mousedown":case"touchstart":if(r.preventDefault(),c=r,ym&&!S0(c)||(ym||(ym=S0(c)),0)||!ym&&0!=r.button)return;this.el.focus(),df(this,r),this.dragging=!0;break;case"mousemove":case"touchmove":r.preventDefault(),df(this,r);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((c,u)=>{const _=u.keyCode;_>40||c.xy&&_<37||_<33||(u.preventDefault(),Ph(c.el,"move",c.getMove({x:39===_?.01:37===_?-.01:34===_?.05:33===_?-.05:35===_?1:36===_?-1:0,y:40===_?.01:38===_?-.01:0},!0)))})(this,r)}var c}style(r){r.forEach((c,u)=>{for(const _ in c)this.nodes[u].style.setProperty(_,c[_])})}}class L extends h4{constructor(r){super(r,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:r}){this.h=r,this.style([{left:r/360*100+"%",color:X1({h:r,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Ol(r)}`)}getMove(r,c){return{h:c?K1(this.h+360*r.x,0,360):360*r.x}}}class R extends h4{constructor(r){super(r,"saturation",'aria-label="Color"',!0)}update(r){this.hsva=r,this.style([{top:100-r.v+"%",left:`${r.s}%`,color:X1(r)},{"background-color":X1({h:r.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Ol(r.s)}%, Brightness ${Ol(r.v)}%`)}getMove(r,c){return{s:c?K1(this.hsva.s+100*r.x,0,100):100*r.x,v:c?K1(this.hsva.v-100*r.y,0,100):Math.round(100-100*r.y)}}}const lt=Symbol("same"),Xt=Symbol("color"),Re=Symbol("hsva"),_n=Symbol("update"),Yn=Symbol("parts"),ci=Symbol("css"),fi=Symbol("sliders");class Wi extends HTMLElement{static get observedAttributes(){return["color"]}get[ci](){return[':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',"[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}","[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}"]}get[fi](){return[R,L]}get color(){return this[Xt]}set color(r){if(!this[lt](r)){const c=this.colorModel.toHsva(r);this[_n](c),this[Xt]=r}}constructor(){super();const r=P0(``),c=this.attachShadow({mode:"open"});c.appendChild(r.content.cloneNode(!0)),c.addEventListener("move",this),this[Yn]=this[fi].map(u=>new u(c))}connectedCallback(){if(this.hasOwnProperty("color")){const r=this.color;delete this.color,this.color=r}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(r,c,u){const _=this.colorModel.fromAttr(u);this[lt](_)||(this.color=_)}handleEvent(r){const c=this[Re],u={...c,...r.detail};let _;this[_n](u),f4(u,c)||this[lt](_=this.colorModel.fromHsva(u))||(this[Xt]=_,Ph(this,"color-changed",{value:_}))}[lt](r){return this.color&&this.colorModel.equal(r,this.color)}[_n](r){this[Re]=r,this[Yn].forEach(c=>c.update(r))}}const $i={defaultColor:"#000",toHsva:m=>(({r:m,g:r,b:c,a:u})=>{const _=Math.max(m,r,c),C=_-Math.min(m,r,c),M=C?_===m?(r-c)/C:_===r?2+(c-m)/C:4+(m-r)/C:0;return{h:Ol(60*(M<0?M+6:M)),s:Ol(_?C/_*100:0),v:Ol(_/255*100),a:u}})(U0(m)),fromHsva:({h:m,s:r,v:c})=>(({r:m,g:r,b:c,a:u})=>{const _=u<1?Dh(Ol(255*u)):"";return"#"+Dh(m)+Dh(r)+Dh(c)+_})((({h:m,s:r,v:c,a:u})=>{m=m/360*6,r/=100,c/=100;const _=Math.floor(m),C=c*(1-r),M=c*(1-(m-_)*r),E=c*(1-(1-m+_)*r),N=_%6;return{r:Ol(255*[c,M,C,C,E,c][N]),g:Ol(255*[E,c,c,M,C,C][N]),b:Ol(255*[C,C,E,c,c,M][N]),a:Ol(u,2)}})({h:m,s:r,v:c,a:1})),equal:(m,r)=>m.toLowerCase()===r.toLowerCase()||f4(U0(m),U0(r)),fromAttr:m=>m};class co extends Wi{get colorModel(){return $i}}customElements.define("hex-color-picker",class extends co{});var Lo=v(3398);Fo()(Lo.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ze(ec);var xa=v(4157);Fo()(xa.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class ba{constructor(r){this._components=new Map,this.editor=r}*names(){for(const r of this._components.values())yield r.originalName}add(r,c){this._components.set(Xa(r),{callback:c,originalName:r})}create(r){if(!this.has(r))throw new at("componentfactory-item-missing",this,{name:r});return this._components.get(Xa(r)).callback(this.editor.locale)}has(r){return this._components.has(Xa(r))}}function Xa(m){return String(m).toLowerCase()}var za=v(8793);Fo()(za.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var hc=Object.defineProperty,fl=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Wl=Object.prototype.propertyIsEnumerable,_u=(m,r,c)=>r in m?hc(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,_r=(m,r)=>{for(var c in r||(r={}))Es.call(r,c)&&_u(m,c,r[c]);if(fl)for(var c of fl(r))Wl.call(r,c)&&_u(m,c,r[c]);return m};const i_=bo("px"),c2=Lt.document.body,Sh={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},g4=class extends oa{constructor(m){super(m);const r=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",r.to("position",c=>`ck-balloon-panel_${c}`),r.if("isVisible","ck-balloon-panel_visible"),r.if("withArrow","ck-balloon-panel_with-arrow"),r.to("class")],style:{top:r.to("top",i_),left:r.to("left",i_)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(m){this.show();const r=g4.defaultPositions,c=Object.assign({},{element:this.element,positions:[r.southArrowNorth,r.southArrowNorthMiddleWest,r.southArrowNorthMiddleEast,r.southArrowNorthWest,r.southArrowNorthEast,r.northArrowSouth,r.northArrowSouthMiddleWest,r.northArrowSouthMiddleEast,r.northArrowSouthWest,r.northArrowSouthEast,r.viewportStickyNorth],limiter:c2,fitInViewport:!0},m),u=g4._getOptimalPosition(c)||Sh,_=parseInt(u.left),C=parseInt(u.top),M=u.name,E=u.config||{},{withArrow:N=!0}=E;this.top=C,this.left=_,this.position=M,this.withArrow=N}pin(m){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(m):this._stopPinning()},this._startPinning(m),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(m){this.attachTo(m);const r=b4(m.target),c=m.limiter?b4(m.limiter):c2;this.listenTo(Lt.document,"scroll",(u,_)=>{const C=_.target,M=r&&C.contains(r),E=c&&C.contains(c);!M&&!E&&r&&c||this.attachTo(m)},{useCapture:!0}),this.listenTo(Lt.window,"resize",()=>{this.attachTo(m)})}_stopPinning(){this.stopListening(Lt.document,"scroll"),this.stopListening(Lt.window,"resize")}};let id=g4;function b4(m){return ua(m)?m:$t(m)?m.commonAncestorContainer:"function"==typeof m?b4(m()):null}function v4(m={}){const{sideOffset:r=id.arrowSideOffset,heightOffset:c=id.arrowHeightOffset,stickyVerticalOffset:u=id.stickyVerticalOffset,config:_}=m;return{northWestArrowSouthWest:(E,N)=>_r({top:C(E,N),left:E.left-r,name:"arrow_sw"},_&&{config:_}),northWestArrowSouthMiddleWest:(E,N)=>_r({top:C(E,N),left:E.left-.25*N.width-r,name:"arrow_smw"},_&&{config:_}),northWestArrowSouth:(E,N)=>_r({top:C(E,N),left:E.left-N.width/2,name:"arrow_s"},_&&{config:_}),northWestArrowSouthMiddleEast:(E,N)=>_r({top:C(E,N),left:E.left-.75*N.width+r,name:"arrow_sme"},_&&{config:_}),northWestArrowSouthEast:(E,N)=>_r({top:C(E,N),left:E.left-N.width+r,name:"arrow_se"},_&&{config:_}),northArrowSouthWest:(E,N)=>_r({top:C(E,N),left:E.left+E.width/2-r,name:"arrow_sw"},_&&{config:_}),northArrowSouthMiddleWest:(E,N)=>_r({top:C(E,N),left:E.left+E.width/2-.25*N.width-r,name:"arrow_smw"},_&&{config:_}),northArrowSouth:(E,N)=>_r({top:C(E,N),left:E.left+E.width/2-N.width/2,name:"arrow_s"},_&&{config:_}),northArrowSouthMiddleEast:(E,N)=>_r({top:C(E,N),left:E.left+E.width/2-.75*N.width+r,name:"arrow_sme"},_&&{config:_}),northArrowSouthEast:(E,N)=>_r({top:C(E,N),left:E.left+E.width/2-N.width+r,name:"arrow_se"},_&&{config:_}),northEastArrowSouthWest:(E,N)=>_r({top:C(E,N),left:E.right-r,name:"arrow_sw"},_&&{config:_}),northEastArrowSouthMiddleWest:(E,N)=>_r({top:C(E,N),left:E.right-.25*N.width-r,name:"arrow_smw"},_&&{config:_}),northEastArrowSouth:(E,N)=>_r({top:C(E,N),left:E.right-N.width/2,name:"arrow_s"},_&&{config:_}),northEastArrowSouthMiddleEast:(E,N)=>_r({top:C(E,N),left:E.right-.75*N.width+r,name:"arrow_sme"},_&&{config:_}),northEastArrowSouthEast:(E,N)=>_r({top:C(E,N),left:E.right-N.width+r,name:"arrow_se"},_&&{config:_}),southWestArrowNorthWest:E=>_r({top:M(E),left:E.left-r,name:"arrow_nw"},_&&{config:_}),southWestArrowNorthMiddleWest:(E,N)=>_r({top:M(E),left:E.left-.25*N.width-r,name:"arrow_nmw"},_&&{config:_}),southWestArrowNorth:(E,N)=>_r({top:M(E),left:E.left-N.width/2,name:"arrow_n"},_&&{config:_}),southWestArrowNorthMiddleEast:(E,N)=>_r({top:M(E),left:E.left-.75*N.width+r,name:"arrow_nme"},_&&{config:_}),southWestArrowNorthEast:(E,N)=>_r({top:M(E),left:E.left-N.width+r,name:"arrow_ne"},_&&{config:_}),southArrowNorthWest:E=>_r({top:M(E),left:E.left+E.width/2-r,name:"arrow_nw"},_&&{config:_}),southArrowNorthMiddleWest:(E,N)=>_r({top:M(E),left:E.left+E.width/2-.25*N.width-r,name:"arrow_nmw"},_&&{config:_}),southArrowNorth:(E,N)=>_r({top:M(E),left:E.left+E.width/2-N.width/2,name:"arrow_n"},_&&{config:_}),southArrowNorthMiddleEast:(E,N)=>_r({top:M(E),left:E.left+E.width/2-.75*N.width+r,name:"arrow_nme"},_&&{config:_}),southArrowNorthEast:(E,N)=>_r({top:M(E),left:E.left+E.width/2-N.width+r,name:"arrow_ne"},_&&{config:_}),southEastArrowNorthWest:E=>_r({top:M(E),left:E.right-r,name:"arrow_nw"},_&&{config:_}),southEastArrowNorthMiddleWest:(E,N)=>_r({top:M(E),left:E.right-.25*N.width-r,name:"arrow_nmw"},_&&{config:_}),southEastArrowNorth:(E,N)=>_r({top:M(E),left:E.right-N.width/2,name:"arrow_n"},_&&{config:_}),southEastArrowNorthMiddleEast:(E,N)=>_r({top:M(E),left:E.right-.75*N.width+r,name:"arrow_nme"},_&&{config:_}),southEastArrowNorthEast:(E,N)=>_r({top:M(E),left:E.right-N.width+r,name:"arrow_ne"},_&&{config:_}),westArrowEast:(E,N)=>_r({top:E.top+E.height/2-N.height/2,left:E.left-N.width-c,name:"arrow_e"},_&&{config:_}),eastArrowWest:(E,N)=>_r({top:E.top+E.height/2-N.height/2,left:E.right+c,name:"arrow_w"},_&&{config:_}),viewportStickyNorth:(E,N,j,K)=>{const dt=K||j;return E.getIntersection(dt)?dt.height-E.height>u?null:{top:dt.top+u,left:E.left+E.width/2-N.width/2,name:"arrowless",config:_r({withArrow:!1},_)}:null}};function C(E,N){return E.top-N.height-c}function M(E){return E.bottom+c}}id.arrowSideOffset=25,id.arrowHeightOffset=10,id.stickyVerticalOffset=20,id._getOptimalPosition=ts,id.defaultPositions=v4();var c5=v(3332);Fo()(c5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const l5="ck-tooltip",od=class extends(Xi()){constructor(m){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,od._editors.add(m),od._instance)return od._instance;od._instance=this,this.tooltipTextView=new oa(m.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new id(m.locale),this.balloonPanelView.class=l5,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=R_(this._pinTooltip,600),this.listenTo(Lt.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Lt.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Lt.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Lt.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Lt.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(m){const r=m.ui.view&&m.ui.view.body;od._editors.delete(m),this.stopListening(m.ui),r&&r.has(this.balloonPanelView)&&r.remove(this.balloonPanelView),od._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),od._instance=null)}static getPositioningFunctions(m){const r=od.defaultBalloonPositions;return{s:[r.southArrowNorth,r.southArrowNorthEast,r.southArrowNorthWest],n:[r.northArrowSouth],e:[r.eastArrowWest],w:[r.westArrowEast],sw:[r.southArrowNorthEast],se:[r.southArrowNorthWest]}[m]}_onEnterOrFocus(m,{target:r}){const c=x4(r);var u;c&&c!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(c,{text:(u=c).dataset.ckeTooltipText,position:u.dataset.ckeTooltipPosition||"s",cssClass:u.dataset.ckeTooltipClass||""}))}_onLeaveOrBlur(m,{target:r,relatedTarget:c}){if("mouseleave"===m.name){if(!ua(r)||this._currentElementWithTooltip&&r!==this._currentElementWithTooltip)return;const u=x4(r),_=x4(c);u&&u!==_&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&r!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(m,{target:r}){this._currentElementWithTooltip&&(r.contains(this.balloonPanelView.element)&&r.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(m,{text:r,position:c,cssClass:u}){const _=os(od._editors.values()).ui.view.body;_.has(this.balloonPanelView)||_.add(this.balloonPanelView),this.tooltipTextView.text=r,this.balloonPanelView.pin({target:m,positions:od.getPositioningFunctions(c)}),this._resizeObserver=new yi(m,()=>{ra(m)||this._unpinTooltip()}),this.balloonPanelView.class=[l5,u].filter(C=>C).join(" ");for(const C of od._editors)this.listenTo(C.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=m,this._currentTooltipPosition=c}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const m of od._editors)this.stopListening(m.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){ra(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:od.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}};let L0=od;function x4(m){return ua(m)?m.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}L0.defaultBalloonPositions=v4({heightOffset:5,sideOffset:13}),L0._editors=new Set,L0._instance=null;const Lh=function(m,r,c){var u=!0,_=!0;if("function"!=typeof m)throw new TypeError("Expected a function");return Kt(c)&&(u="leading"in c?!!c.leading:u,_="trailing"in c?!!c.trailing:_),R_(m,r,{leading:u,maxWait:r,trailing:_})};var C4=Object.defineProperty,Zv=Object.getOwnPropertySymbols,u5=Object.prototype.hasOwnProperty,A4=Object.prototype.propertyIsEnumerable,O0=(m,r,c)=>r in m?C4(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class kv extends(Xi()){constructor(r){super(),this.editor=r,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=Lh(this._showBalloon.bind(this),50,{leading:!0}),r.on("ready",this._handleEditorReady.bind(this))}destroy(){const r=this._balloonView;r&&(r.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const r=this.editor;(r.config.get("ui.poweredBy.forceVisible")||"VALID"!==function(c){function u(me){return me.length>=40&&me.length<=255?"VALID":"INVALID"}if(!c)return"INVALID";let _="";try{_=atob(c)}catch{return"INVALID"}const C=_.split("-"),M=C[0],E=C[1];if(!E)return u(c);try{atob(E)}catch{try{if(atob(M),!atob(M).length)return u(c)}catch{return u(c)}}if(M.length<40||M.length>255)return"INVALID";let N="";try{atob(M),N=atob(E)}catch{return"INVALID"}if(8!==N.length)return"INVALID";const j=Number(N.substring(0,4)),K=Number(N.substring(4,6))-1,dt=Number(N.substring(6,8)),Dt=new Date(j,K,dt);return Dt{this._updateLastFocusedEditableElement(),_?this._showBalloon():this._hideBalloon()}),r.ui.focusTracker.on("change:focusedElement",(c,u,_)=>{this._updateLastFocusedEditableElement(),_&&this._showBalloon()}),r.ui.on("update",()=>{this._showBalloonThrottled()}))}_createBalloonView(){const r=this.editor,c=this._balloonView=new id,u=l2(r),_=new T4(r.locale,u.label);c.content.add(_),c.set({class:"ck-powered-by-balloon"}),r.ui.view.body.add(c),r.ui.focusTracker.add(c.element),this._balloonView=c}_showBalloon(){if(!this._lastFocusedEditableElement)return;const r=function(c,u){const _=l2(c);var E;return{target:u,positions:["right"===_.side?Eh(u,E=_,(N,j)=>N.left+N.width-j.width-E.horizontalOffset):function(M,E){return Eh(M,E,N=>N.left+E.horizontalOffset)}(u,_)]}}(this.editor,this._lastFocusedEditableElement);r&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(r))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const r=this.editor,u=r.ui.focusTracker.focusedElement;if(!r.ui.focusTracker.isFocused||!u)return void(this._lastFocusedEditableElement=null);const _=Array.from(r.ui.getEditableElementsNames()).map(C=>r.ui.getEditableElement(C));this._lastFocusedEditableElement=_.includes(u)?u:_[0]}}class T4 extends oa{constructor(r,c){super(r);const u=new zs,_=this.bindTemplate;u.set({content:'\n',isColorInherited:!1}),u.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...c?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[c]}]:[],u],on:{dragstart:_.to(C=>C.preventDefault())}}]})}}function Eh(m,r,c){return(u,_)=>{const C=new de(m);if(C.width<350||C.height<50)return null;let M;M="inside"===r.position?C.bottom-_.height:C.bottom-_.height/2,M-=r.verticalOffset;const E=c(C,_),N=u.clone().moveTo(E,M).getIntersection(_.clone().moveTo(E,M)).getVisible();return!N||N.getArea()<_.getArea()?null:{top:M,left:E,name:`position_${r.position}-side_${r.side}`,config:{withArrow:!1}}}}function l2(m){const r=m.config.get("ui.poweredBy"),c=r&&r.position||"border";return((m,r)=>{for(var c in r||(r={}))u5.call(r,c)&&O0(m,c,r[c]);if(Zv)for(var c of Zv(r))A4.call(r,c)&&O0(m,c,r[c]);return m})({position:c,label:"Powered by",verticalOffset:"inside"===c?5:0,horizontalOffset:5,side:"ltr"===m.locale.contentLanguageDirection?"right":"left"},r)}var Dv=Object.defineProperty,e1=Object.getOwnPropertySymbols,w4=Object.prototype.hasOwnProperty,I0=Object.prototype.propertyIsEnumerable,M1=(m,r,c)=>r in m?Dv(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Ep extends(Ze()){constructor(r){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const c=r.editing.view;this.editor=r,this.componentFactory=new ba(r),this.focusTracker=new as,this.tooltipManager=new L0(r),this.poweredBy=new kv(r),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",()=>{this.isReady=!0}),this.listenTo(c.document,"layoutChanged",this.update.bind(this)),this.listenTo(c,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const r of this._editableElementsMap.values())r.ckeditorInstance=null,this.editor.keystrokes.stopListening(r);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(r,c){this._editableElementsMap.set(r,c),c.ckeditorInstance||(c.ckeditorInstance=this.editor),this.focusTracker.add(c);const u=()=>{this.editor.editing.view.getDomRoot(r)||this.editor.keystrokes.listenTo(c)};this.isReady?u():this.once("ready",u)}removeEditableElement(r){const c=this._editableElementsMap.get(r);c&&(this._editableElementsMap.delete(r),this.editor.keystrokes.stopListening(c),this.focusTracker.remove(c),c.ckeditorInstance=null)}getEditableElement(r="main"){return this._editableElementsMap.get(r)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(r,c={}){r.isRendered?(this.focusTracker.add(r.element),this.editor.keystrokes.listenTo(r.element)):r.once("render",()=>{this.focusTracker.add(r.element),this.editor.keystrokes.listenTo(r.element)}),this._focusableToolbarDefinitions.push({toolbarView:r,options:c})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const r=this.editor,c=r.config.get("ui.viewportOffset");if(c)return c;const u=r.config.get("toolbar.viewportTopOffset");return u?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:u}):{top:0}}_initFocusTracking(){const r=this.editor,c=r.editing.view;let u,_;r.keystrokes.set("Alt+F10",(C,M)=>{const E=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(E)&&!Array.from(c.domRoots.values()).includes(E)&&(u=E);const N=this._getCurrentFocusedToolbarDefinition();N&&_||(_=this._getFocusableCandidateToolbarDefinitions());for(let j=0;j<_.length;j++){const K=_.shift();if(_.push(K),K!==N&&this._focusFocusableCandidateToolbar(K)){N&&N.options.afterBlur&&N.options.afterBlur();break}}M()}),r.keystrokes.set("Esc",(C,M)=>{const E=this._getCurrentFocusedToolbarDefinition();E&&(u?(u.focus(),u=null):r.editing.view.focus(),E.options.afterBlur&&E.options.afterBlur(),M())})}_getFocusableCandidateToolbarDefinitions(){const r=[];for(const c of this._focusableToolbarDefinitions){const{toolbarView:u,options:_}=c;(ra(u.element)||_.beforeFocus)&&r.push(c)}return r.sort((c,u)=>Pv(c)-Pv(u)),r}_getCurrentFocusedToolbarDefinition(){for(const r of this._focusableToolbarDefinitions)if(r.toolbarView.element&&r.toolbarView.element.contains(this.focusTracker.focusedElement))return r;return null}_focusFocusableCandidateToolbar(r){const{toolbarView:c,options:{beforeFocus:u}}=r;return u&&u(),!!ra(c.element)&&(c.focus(),!0)}_handleScrollToTheSelection(r,c){const u=((_,C)=>{for(var M in C||(C={}))w4.call(C,M)&&M1(_,M,C[M]);if(e1)for(var M of e1(C))I0.call(C,M)&&M1(_,M,C[M]);return _})({top:0,bottom:0,left:0,right:0},this.viewportOffset);c.viewportOffset.top+=u.top,c.viewportOffset.bottom+=u.bottom,c.viewportOffset.left+=u.left,c.viewportOffset.right+=u.right}}function Pv(m){const{toolbarView:r,options:c}=m;let u=10;return ra(r.element)&&u--,c.isContextual&&u--,u}var U4=v(9688);Fo()(U4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class p5 extends oa{constructor(r){super(r),this.body=new Qi(r)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class Sv extends p5{constructor(r){super(r),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:r.uiLanguageDirection,lang:r.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const r=this.t,c=new wu;return c.text=r("Rich Text Editor"),c.extendTemplate({attributes:{class:"ck-voice-label"}}),c}}class k8 extends oa{constructor(r,c,u){super(r),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:r.contentLanguage,dir:r.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=u,this._hasExternalElement=!!this._editableElement,this._editingView=c}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const r=this._editingView;function c(u){r.change(_=>{const C=r.document.getRoot(u.name);_.addClass(u.isFocused?"ck-focused":"ck-blurred",C),_.removeClass(u.isFocused?"ck-blurred":"ck-focused",C)})}r.isRenderingInProgress?function u(_){r.once("change:isRenderingInProgress",(C,M,E)=>{E?u(_):c(_)})}(this):c(this)}}class Z4 extends k8{constructor(r,c,u,_={}){super(r,c,u);const C=r.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=_.label||(()=>C("Editor editing area: %0",this.name))}render(){super.render();const r=this._editingView;r.change(c=>{const u=r.document.getRoot(this.name);c.setAttribute("aria-label",this._generateLabel(this),u)})}}var Ih=v(8847);Fo()(Ih.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class u2 extends w_{static get pluginName(){return"Notification"}init(){this.on("show:warning",(r,c)=>{window.alert(c.message)},{priority:"lowest"})}showSuccess(r,c={}){this._showNotification({message:r,type:"success",namespace:c.namespace,title:c.title})}showInfo(r,c={}){this._showNotification({message:r,type:"info",namespace:c.namespace,title:c.title})}showWarning(r,c={}){this._showNotification({message:r,type:"warning",namespace:c.namespace,title:c.title})}_showNotification(r){this.fire(r.namespace?`show:${r.type}:${r.namespace}`:`show:${r.type}`,{message:r.message,type:r.type,title:r.title||""})}}class M4 extends(Ze()){constructor(r,c){super(),c&&R2(this,c),r&&this.set(r)}}var N0=v(4650);Fo()(N0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var pf=v(7676);Fo()(pf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Fh=bo("px");class q0 extends lo{constructor(r){super(r),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const c=this.editor.editing.view,u=c.document.selection.editableElement;return u?c.domConverter.mapViewToDom(u.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(r){return Array.from(this._viewToStack.keys()).includes(r)}add(r){if(this._view||this._createPanelView(),this.hasView(r.view))throw new at("contextualballoon-add-view-exist",[this,r]);const c=r.stackId||"main";if(!this._idToStack.has(c))return this._idToStack.set(c,new Map([[r.view,r]])),this._viewToStack.set(r.view,this._idToStack.get(c)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!r.singleViewMode||this.showStack(c));const u=this._idToStack.get(c);r.singleViewMode&&this.showStack(c),u.set(r.view,r),this._viewToStack.set(r.view,u),u===this._visibleStack&&this._showView(r)}remove(r){if(!this.hasView(r))throw new at("contextualballoon-remove-view-not-exist",[this,r]);const c=this._viewToStack.get(r);this._singleViewMode&&this.visibleView===r&&(this._singleViewMode=!1),this.visibleView===r&&(1===c.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(c.values())[c.size-2])),1===c.size?(this._idToStack.delete(this._getStackId(c)),this._numberOfStacks=this._idToStack.size):c.delete(r),this._viewToStack.delete(r)}updatePosition(r){r&&(this._visibleStack.get(this.visibleView).position=r),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(r){this.visibleStack=r;const c=this._idToStack.get(r);if(!c)throw new at("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==c&&this._showView(Array.from(c.values()).pop())}_createPanelView(){this._view=new id(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(r){return Array.from(this._idToStack.entries()).find(c=>c[1]===r)[0]}_showNextStack(){const r=Array.from(this._idToStack.values());let c=r.indexOf(this._visibleStack)+1;r[c]||(c=0),this.showStack(this._getStackId(r[c]))}_showPrevStack(){const r=Array.from(this._idToStack.values());let c=r.indexOf(this._visibleStack)-1;r[c]||(c=r.length-1),this.showStack(this._getStackId(r[c]))}_createRotatorView(){const r=new Lv(this.editor.locale),c=this.editor.locale.t;return this.view.content.add(r),r.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(u,_)=>!_&&u>1),r.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),r.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(u,_)=>{if(_<2)return"";const C=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return c("%0 of %1",[C,_])}),r.buttonNextView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),r.buttonPrevView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),r}_createFakePanelsView(){const r=new D8(this.editor.locale,this.view);return r.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(c,u)=>!u&&c>=2?Math.min(c-1,2):0),r.listenTo(this.view,"change:top",()=>r.updatePosition()),r.listenTo(this.view,"change:left",()=>r.updatePosition()),this.editor.ui.view.body.add(r),r}_showView({view:r,balloonClassName:c="",withArrow:u=!0,singleViewMode:_=!1}){this.view.class=c,this.view.withArrow=u,this._rotatorView.showView(r),this.visibleView=r,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),_&&(this._singleViewMode=!0)}_getBalloonPosition(){let r=Array.from(this._visibleStack.values()).pop().position;return r&&(r.limiter||(r=Object.assign({},r,{limiter:this.positionLimiter})),r=Object.assign({},r,{viewportOffsetConfig:this.editor.ui.viewportOffset})),r}}class Lv extends oa{constructor(r){super(r);const c=r.t,u=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new as,this.buttonPrevView=this._createButtonView(c("Previous"),''),this.buttonNextView=this._createButtonView(c("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",u.to("isNavigationVisible",_=>_?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:u.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(r){this.hideView(),this.content.add(r)}hideView(){this.content.clear()}_createButtonView(r,c){const u=new $o(this.locale);return u.set({label:r,icon:c,tooltip:!0}),u}}class D8 extends oa{constructor(r,c){super(r);const u=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=c,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",u.to("numberOfPanels",_=>_?"":"ck-hidden")],style:{top:u.to("top",Fh),left:u.to("left",Fh),width:u.to("width",Fh),height:u.to("height",Fh)}},children:this.content}),this.on("change:numberOfPanels",(_,C,M,E)=>{M>E?this._addPanels(M-E):this._removePanels(E-M),this.updatePosition()})}_addPanels(r){for(;r--;){const c=new oa;c.setTemplate({tag:"div"}),this.content.add(c),this.registerChild(c)}}_removePanels(r){for(;r--;){const c=this.content.last;this.content.remove(c),this.deregisterChild(c),c.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:r,left:c}=this._balloonPanelView,{width:u,height:_}=new de(this._balloonPanelView.element);Object.assign(this,{top:r,left:c,width:u,height:_})}}}var Ov=v(5868);Fo()(Ov.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const mf=bo("px");class Iv extends oa{constructor(r){super(r);const c=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new Ur({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:c.to("isSticky",u=>u?"block":"none"),height:c.to("isSticky",u=>u?mf(this._contentPanelRect.height):null)}}}).render(),this._contentPanel=new Ur({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",c.if("isSticky","ck-sticky-panel__content_sticky"),c.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:c.to("isSticky",u=>u?mf(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:c.to("_stickyTopOffset",u=>u&&mf(u)),bottom:c.to("_stickyBottomOffset",u=>u&&mf(u)),marginLeft:c.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(Lt.document,"scroll",()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,"change:isActive",()=>{this.checkIfShouldBeSticky()})}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const r=new de(this.limiterElement);let c=r.getVisible();if(c){const u=new de(Lt.window);u.top+=this.viewportTopOffset,u.height-=this.viewportTopOffset,c=c.getIntersection(u)}if(c&&r.topc.bottom){const _=Math.max(r.bottom-c.bottom,0)+this.limiterBottomOffset;r.bottom-_>r.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(_):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset{this.reset(),this.focus(),this.fire("reset")}),this.resetButtonView.bind("isVisible").to(this.fieldView,"isEmpty",C=>!C),this.fieldWrapperChildren.add(this.resetButtonView),this.extendTemplate({attributes:{class:"ck-search__query_with-reset"}}))}reset(){this.fieldView.reset(),this._viewConfig.showResetButton&&(this.resetButtonView.isVisible=!1)}}class o_ extends oa{constructor(){super();const r=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",r.if("isVisible","ck-hidden",c=>!c)],tabindex:-1},children:[{tag:"span",children:[{text:[r.to("primaryText")]}]},{tag:"span",children:[{text:[r.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class P8 extends oa{constructor(r){super(r),this.children=this.createCollection(),this.focusTracker=new as,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new dl({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const r of this.children)this.focusTracker.add(r.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var Fv=/[\\^$.*+?()[\]{}|]/g,Nv=RegExp(Fv.source);const _5=function(m){return(m=Ug(m))&&Nv.test(m)?m.replace(Fv,"\\$&"):m};var f5=v(6770);Fo()(f5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var fu=Object.defineProperty,h5=Object.getOwnPropertySymbols,S8=Object.prototype.hasOwnProperty,n1=Object.prototype.propertyIsEnumerable,g5=(m,r,c)=>r in m?fu(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class b5 extends oa{constructor(r,c){super(r),this._config=c,this.filteredView=c.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new as,this.keystrokes=new $c,this.resultsView=new P8(r),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),c.infoView&&c.infoView.instance?this.infoView=c.infoView.instance:(this.infoView=new o_,this._enableDefaultInfoViewBehavior(),this.on("render",()=>{this.search("")})),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new dl({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(u,{resultsCount:_,totalItemsCount:C})=>{this.resultsCount=_,this.totalItemsCount=C}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",c.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const r=c=>c.stopPropagation();for(const c of this.focusableChildren)this.focusTracker.add(c.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(r){const c=r?new RegExp(_5(r),"ig"):null,u=this.filteredView.filter(c);this.fire("search",((_,C)=>{for(var M in C||(C={}))S8.call(C,M)&&g5(_,M,C[M]);if(h5)for(var M of h5(C))n1.call(C,M)&&g5(_,M,C[M]);return _})({query:r},u))}_createSearchTextQueryView(){const r=new $l(this.locale,this._config.queryView);return this.listenTo(r.fieldView,"input",()=>{this.search(r.fieldView.element.value)}),r.on("reset",()=>this.reset()),r.bind("isEnabled").to(this),r}_enableDefaultInfoViewBehavior(){const r=this.locale.t,c=this.infoView;function u(_,{query:C,resultsCount:M,totalItemsCount:E}){return"function"==typeof _?_(C,M,E):_}this.on("search",(_,C)=>{if(C.resultsCount)c.set({isVisible:!1});else{const M=this._config.infoView&&this._config.infoView.text;let E,N;C.totalItemsCount?M&&M.notFound?(E=M.notFound.primary,N=M.notFound.secondary):(E=r("No results found"),N=""):M&&M.noSearchableItems?(E=M.noSearchableItems.primary,N=M.noSearchableItems.secondary):(E=r("No searchable items"),N=""),c.set({primaryText:u(E,C),secondaryText:u(N,C),isVisible:!0})}})}}var L8=v(8157);Fo()(L8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const R0=class extends b5{constructor(m,r){super(m,r),this._config=r;const c=bo("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const u=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[u.if("isVisible","ck-hidden",_=>!_),u.to("_position",_=>`ck-search__results_${_}`)],style:{width:u.to("_width",c)}}}),this.focusTracker.on("change:isFocused",(_,C,M)=>{this._updateResultsVisibility(),M?this.resultsView.element.scrollTop=0:r.resetOnBlur&&this.queryView.reset()}),this.on("search",()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()}),this.keystrokes.set("esc",(_,C)=>{this.resultsView.isVisible=!1,C()}),this.listenTo(Lt.document,"scroll",()=>{this._updateResultsViewWidthAndPosition()}),this.on("change:isEnabled",()=>{this._updateResultsVisibility()}),this.filteredView.on("execute",(_,{value:C})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=C,this.resultsView.isVisible=!1}),this.resultsView.on("change:isVisible",()=>{this._updateResultsViewWidthAndPosition()})}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new de(this.queryView.fieldView.element).width;const m=R0._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:R0.defaultResultsPositions});this.resultsView._position=m?m.name:"s"}_updateResultsVisibility(){this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&this.queryView.fieldView.element.value.length>=(void 0===this._config.queryMinChars?0:this._config.queryMinChars)}};let Ip=R0;Ip.defaultResultsPositions=[m=>({top:m.bottom,left:m.left,name:"s"}),(m,r)=>({top:m.top-r.height,left:m.left,name:"n"})],Ip._getOptimalPosition=ts;var qv=v(8960);Fo()(qv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var o1=v(498);Fo()(o1.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bo("px");var tp=v(9695);Fo()(tp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bo("px"),bo("px");class Hv extends Ep{constructor(r,c){super(r),this.view=c,this._toolbarConfig=fp(r.config.get("toolbar")),this._elementReplacer=new vt,this.listenTo(r.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(r){const u=this.view,_=this.editor.editing.view,C=u.editable,M=_.document.getRoot();C.name=M.rootName,u.render();const E=C.element;this.setEditableElement(C.name,E),u.editable.bind("isFocused").to(this.focusTracker),_.attachDomRoot(E),r&&this._elementReplacer.replace(r,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const r=this.view,c=this.editor.editing.view;this._elementReplacer.restore(),c.detachDomRoot(r.editable.name),r.destroy()}_initToolbar(){const r=this.view;r.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),r.stickyPanel.limiterElement=r.element,r.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:c})=>c||0),r.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(r.toolbar)}_initPlaceholder(){const r=this.editor,c=r.editing.view,u=c.document.getRoot(),_=r.sourceElement;let C;const M=r.config.get("placeholder");M&&(C="string"==typeof M?M:M[this.view.editable.name]),!C&&_&&"textarea"===_.tagName.toLowerCase()&&(C=_.getAttribute("placeholder")),C&&(u.placeholder=C),B({view:c,element:u,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(r,c,u){const _=this.view.stickyPanel;if(_.isSticky){const C=new de(_.element).height;c.viewportOffset.top+=C}else{const C=()=>{this.editor.editing.view.scrollToTheSelection(u)};this.listenTo(_,"change:isSticky",C),setTimeout(()=>{this.stopListening(_,"change:isSticky",C)},20)}}}var zv=v(3143);Fo()(zv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class E8 extends Sv{constructor(r,c,u={}){super(r),this.stickyPanel=new Iv(r),this.toolbar=new w0(r,{shouldGroupWhenFull:u.shouldToolbarGroupWhenFull}),this.editable=new Z4(r,c)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class x5{constructor(r){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof r.crashNumberLimit?r.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof r.minimumNonErrorTimePeriod?r.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=c=>{const u="error"in c?c.error:c.reason;u instanceof Error&&this._handleError(u,c)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(r,c){this._listeners[r]||(this._listeners[r]=[]),this._listeners[r].push(c)}off(r,c){this._listeners[r]=this._listeners[r].filter(u=>u!==c)}_fire(r,...c){const u=this._listeners[r]||[];for(const _ of u)_.apply(this,[null,...c])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(r,c){if(this._shouldReactToError(r)){this.crashes.push({message:r.message,stack:r.stack,filename:c instanceof ErrorEvent?c.filename:void 0,lineno:c instanceof ErrorEvent?c.lineno:void 0,colno:c instanceof ErrorEvent?c.colno:void 0,date:this._now()});const u=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:r,causesRestart:u}),u?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(r){return r.is&&r.is("CKEditorError")&&null!=r.context&&"ready"===this.state&&this._isErrorComingFromThisItem(r)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function d2(m,r=new Set){const c=[m],u=new Set;let _=0;for(;c.length>_;){const C=c[_++];if(!u.has(C)&&H0(C)&&!r.has(C))if(u.add(C),Symbol.iterator in C)try{for(const M of C)c.push(M)}catch{}else for(const M in C)"defaultValue"!==M&&c.push(C[M])}return u}function H0(m){const r=Object.prototype.toString.call(m),c=typeof m;return!("number"===c||"boolean"===c||"string"===c||"symbol"===c||"function"===c||"[object Date]"===r||"[object RegExp]"===r||"[object Module]"===r||null==m||m._watchdogExcluded||m instanceof EventTarget||m instanceof Event)}function Bv(m,r,c=new Set){if(m===r&&"object"==typeof(u=m)&&null!==u)return!0;var u;const _=d2(m,c),C=d2(r,c);for(const M of _)if(C.has(M))return!0;return!1}var C5=Object.defineProperty,I8=Object.defineProperties,A5=Object.getOwnPropertyDescriptors,z0=Object.getOwnPropertySymbols,Nh=Object.prototype.hasOwnProperty,Yv=Object.prototype.propertyIsEnumerable,D4=(m,r,c)=>r in m?C5(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,P4=(m,r)=>{for(var c in r||(r={}))Nh.call(r,c)&&D4(m,c,r[c]);if(z0)for(var c of z0(r))Yv.call(r,c)&&D4(m,c,r[c]);return m};class S4 extends x5{constructor(r,c={}){super(c),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=Lh(this._save.bind(this),"number"==typeof c.saveInterval?c.saveInterval:5e3),r&&(this._creator=(u,_)=>r.create(u,_)),this._destructor=u=>u.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(r){this._creator=r}setDestructor(r){this._destructor=r}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(r=>{console.error("An error happened during the editor destroying.",r)}).then(()=>{const r={},c=[],u=this._config.rootsAttributes||{},_={};for(const[N,j]of Object.entries(this._data.roots))j.isLoaded?(r[N]="",_[N]=u[N]||{}):c.push(N);const C=(M=P4({},this._config),I8(M,A5({extraPlugins:this._config.extraPlugins||[],lazyRoots:c,rootsAttributes:_,_watchdogInitialData:this._data})));var M;return delete C.initialData,C.extraPlugins.push(rc),this._initUsingData?this.create(r,C,C.context):ua(this._elementOrData)?this.create(this._elementOrData,C,C.context):this.create(this._editables,C,C.context)}).then(()=>{this._fire("restart")})}create(r=this._elementOrData,c=this._config,u){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=r,this._initUsingData="string"==typeof r||Object.keys(r).length>0&&"string"==typeof Object.values(r)[0],this._config=this._cloneEditorConfiguration(c)||{},this._config.context=u,this._creator(r,this._config))).then(_=>{this._editor=_,_.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=_.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const r=this._editor;return this._editor=null,r.model.document.off("change:data",this._throttledSave),this._destructor(r)})}_save(){const r=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=r}catch(c){console.error(c,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(r){this._excludedProps=r}_getData(){const r=this._editor,c=r.model.document.roots.filter(E=>E.isAttached()&&"$graveyard"!=E.rootName),{plugins:u}=r,_=u.has("CommentsRepository")&&u.get("CommentsRepository"),C=u.has("TrackChanges")&&u.get("TrackChanges"),M={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};c.forEach(E=>{M.roots[E.rootName]={content:JSON.stringify(Array.from(E.getChildren())),attributes:JSON.stringify(Array.from(E.getAttributes())),isLoaded:E._isLoaded}});for(const E of r.model.markers)E._affectsData&&(M.markers[E.name]={rangeJSON:E.getRange().toJSON(),usingOperation:E._managedUsingOperations,affectsData:E._affectsData});return _&&(M.commentThreads=JSON.stringify(_.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),C&&(M.suggestions=JSON.stringify(C.getSuggestions({toJSON:!0,skipNotAttached:!0}))),M}_getEditables(){const r={};for(const c of this.editor.model.document.getRootNames()){const u=this.editor.ui.getEditableElement(c);u&&(r[c]=u)}return r}_isErrorComingFromThisItem(r){return Bv(this._editor,r.context,this._excludedProps)}_cloneEditorConfiguration(r){return So(r,(c,u)=>ua(c)||"context"===u?c:void 0)}}class rc{constructor(r){this.editor=r,this._data=r.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",r=>{r.stop(),this.editor.model.enqueueChange({isUndoable:!1},c=>{this._restoreCollaborationData(),this._restoreEditorData(c)}),this.editor.data.fire("ready")},{priority:999})}_createNode(r,c){if("name"in c){const u=r.createElement(c.name,c.attributes);if(c.children)for(const _ of c.children)u._appendChild(this._createNode(r,_));return u}return r.createText(c.data,c.attributes)}_restoreEditorData(r){const c=this.editor;Object.entries(this._data.roots).forEach(([u,{content:_,attributes:C}])=>{const M=JSON.parse(_),E=JSON.parse(C),N=c.model.document.getRoot(u);for(const[j,K]of E)r.setAttribute(j,K,N);for(const j of M){const K=this._createNode(r,j);r.insert(K,N,"end")}}),Object.entries(this._data.markers).forEach(([u,_])=>{const{document:C}=c.model,M=_,{rangeJSON:{start:E,end:N}}=M,j=((Ue,qe)=>{var pn={};for(var Ln in Ue)Nh.call(Ue,Ln)&&qe.indexOf(Ln)<0&&(pn[Ln]=Ue[Ln]);if(null!=Ue&&z0)for(var Ln of z0(Ue))qe.indexOf(Ln)<0&&Yv.call(Ue,Ln)&&(pn[Ln]=Ue[Ln]);return pn})(M,["rangeJSON"]),K=C.getRoot(E.root),dt=r.createPositionFromPath(K,E.path,E.stickiness),Dt=r.createPositionFromPath(K,N.path,N.stickiness),me=r.createRange(dt,Dt);r.addMarker(u,P4({range:me},j))})}_restoreCollaborationData(){const r=JSON.parse(this._data.commentThreads),c=JSON.parse(this._data.suggestions);r.forEach(u=>{const _=this.editor.config.get("collaboration.channelId"),C=this.editor.plugins.get("CommentsRepository");C.hasCommentThread(u.threadId)&&C.getCommentThread(u.threadId).remove(),C.addCommentThread(P4({channelId:_},u))}),c.forEach(u=>{const _=this.editor.plugins.get("TrackChangesEditing");_.hasSuggestion(u.id)?_.getSuggestion(u.id).attributes=u.attributes:_.addSuggestionData(u)})}}const _f=Symbol("MainQueueId");class y5{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(r){this._onEmptyCallbacks.push(r)}enqueue(r,c){const u=r===_f;this._activeActions++,this._queues.get(r)||this._queues.set(r,Promise.resolve());const _=Promise.all(u?this._queues.values():[this._queues.get(_f),this._queues.get(r)]).then(c),C=_.catch(()=>{});return this._queues.set(r,C),_.finally(()=>{this._activeActions--,this._queues.get(r)===C&&0===this._activeActions&&this._onEmptyCallbacks.forEach(M=>M())})}}function B0(m){return Array.isArray(m)?m:[m]}class Y0 extends(n2(lf(u4))){constructor(r,c={}){if(!qh(r)&&void 0!==c.initialData)throw new at("editor-create-initial-data",null);var C,M;super(c),void 0===this.config.get("initialData")&&this.config.set("initialData",qh(C=r)?(M=C)instanceof HTMLTextAreaElement?M.value:M.innerHTML:C),qh(r)&&(this.sourceElement=r),this.model.document.createRoot();const u=!this.config.get("toolbar.shouldNotGroupWhenFull"),_=new E8(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:u});this.ui=new Hv(this,_),function(C){if(!No(C.updateSourceElement))throw new at("attachtoform-missing-elementapi-interface",C);const M=C.sourceElement;if((E=M)&&"textarea"===E.tagName.toLowerCase()&&M.form){let E;const N=M.form,j=()=>C.updateSourceElement();No(N.submit)&&(E=N.submit,N.submit=()=>{j(),E.apply(N)}),N.addEventListener("submit",j),C.on("destroy",()=>{N.removeEventListener("submit",j),E&&(N.submit=E)})}var E}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(r,c={}){return new Promise(u=>{const _=new this(r,c);u(_.initPlugins().then(()=>_.ui.init(qh(r)?r:null)).then(()=>_.data.init(_.config.get("initialData"))).then(()=>_.fire("ready")).then(()=>_))})}}function qh(m){return ua(m)}Y0.Context=k2,Y0.EditorWatchdog=S4,Y0.ContextWatchdog=class extends x5{constructor(m,r={}){super(r),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new y5,this._watchdogConfig=r,this._creator=c=>m.create(c),this._destructor=c=>c.destroy(),this._actionQueues.onEmpty(()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))})}setCreator(m){this._creator=m}setDestructor(m){this._destructor=m}get context(){return this._context}create(m={}){return this._actionQueues.enqueue(_f,()=>(this._contextConfig=m,this._create()))}getItem(m){return this._getWatchdog(m)._item}getItemState(m){return this._getWatchdog(m).state}add(m){const r=B0(m);return Promise.all(r.map(c=>this._actionQueues.enqueue(c.id,()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let u;if(this._watchdogs.has(c.id))throw new Error(`Item with the given id is already added: '${c.id}'.`);if("editor"===c.type)return u=new S4(null,this._watchdogConfig),u.setCreator(c.creator),u._setExcludedProperties(this._contextProps),c.destructor&&u.setDestructor(c.destructor),this._watchdogs.set(c.id,u),u.on("error",(_,{error:C,causesRestart:M})=>{this._fire("itemError",{itemId:c.id,error:C}),M&&this._actionQueues.enqueue(c.id,()=>new Promise(E=>{const N=()=>{u.off("restart",N),this._fire("itemRestart",{itemId:c.id}),E()};u.on("restart",N)}))}),u.create(c.sourceElementOrData,c.config,this._context);throw new Error(`Not supported item type: '${c.type}'.`)})))}remove(m){const r=B0(m);return Promise.all(r.map(c=>this._actionQueues.enqueue(c,()=>{const u=this._getWatchdog(c);return this._watchdogs.delete(c),u.destroy()})))}destroy(){return this._actionQueues.enqueue(_f,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(_f,()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch(m=>{console.error("An error happened during destroying the context or items.",m)}).then(()=>this._create()).then(()=>this._fire("restart"))))}_create(){return Promise.resolve().then(()=>(this._startErrorHandling(),this._creator(this._contextConfig))).then(m=>(this._context=m,this._contextProps=d2(this._context),Promise.all(Array.from(this._watchdogs.values()).map(r=>(r._setExcludedProperties(this._contextProps),r.create(void 0,void 0,this._context))))))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling();const m=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map(r=>r.destroy())).then(()=>this._destructor(m))})}_getWatchdog(m){const r=this._watchdogs.get(m);if(!r)throw new Error(`Item with the given id was not registered: ${m}.`);return r}_isErrorComingFromThisItem(m){for(const r of this._watchdogs.values())if(r._isErrorComingFromThisItem(m))return!1;return Bv(this._context,m.context)}};class Rh extends Wu{constructor(r){super(r),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const c=this.document;function u(_){return(C,M)=>{M.preventDefault();const E=M.dropRange?[M.dropRange]:null,N=new ct(c,_);c.fire(N,{dataTransfer:M.dataTransfer,method:C.name,targetRanges:E,target:M.target,domEvent:M.domEvent}),N.stop.called&&M.stopPropagation()}}this.listenTo(c,"paste",u("clipboardInput"),{priority:"low"}),this.listenTo(c,"drop",u("clipboardInput"),{priority:"low"}),this.listenTo(c,"dragover",u("dragging"),{priority:"low"})}onDomEvent(r){const _={dataTransfer:new mc("clipboardData"in r?r.clipboardData:r.dataTransfer,{cacheFiles:"drop"==r.type||"paste"==r.type})};"drop"!=r.type&&"dragover"!=r.type||(_.dropRange=function(C,M){const E=M.target.ownerDocument,N=M.clientX,j=M.clientY;let K;return E.caretRangeFromPoint&&E.caretRangeFromPoint(N,j)?K=E.caretRangeFromPoint(N,j):M.rangeParent&&(K=E.createRange(),K.setStart(M.rangeParent,M.rangeOffset),K.collapse(!0)),K?C.domConverter.domRangeToView(K):null}(this.view,r)),this.fire(r.type,r,_)}}const T5=["figcaption","li"];function w5(m){let r="";if(m.is("$text")||m.is("$textProxy"))r=m.data;else if(m.is("element","img")&&m.hasAttribute("alt"))r=m.getAttribute("alt");else if(m.is("element","br"))r="\n";else{let c=null;for(const u of m.getChildren()){const _=w5(u);c&&(c.is("containerElement")||u.is("containerElement"))&&(T5.includes(c.name)||T5.includes(u.name)?r+="\n":r+="\n\n"),r+=_,c=u}}return r}class Np extends lo{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(Rh),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(r,c,u){const _=this.editor.model.getSelectedContent(c);this.fire("outputTransformation",{dataTransfer:r,content:_,method:u})}_setupPasteDrop(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document;this.listenTo(_,"clipboardInput",(C,M)=>{"paste"!=M.method||r.model.canEditAt(r.model.document.selection)||C.stop()},{priority:"highest"}),this.listenTo(_,"clipboardInput",(C,M)=>{const E=M.dataTransfer;let N;if(M.content)N=M.content;else{let dt="";E.getData("text/html")?dt=E.getData("text/html").replace(/(\s+)<\/span>/g,(me,Ue)=>1==Ue.length?" ":Ue).replace(//g,""):E.getData("text/plain")&&(((j=(j=E.getData("text/plain")).replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/\t/g,"    ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||j.includes("
"))&&(j=`

${j}

`),dt=j),N=this.editor.data.htmlProcessor.toView(dt)}var j;const K=new ct(this,"inputTransformation");this.fire(K,{content:N,dataTransfer:E,targetRanges:M.targetRanges,method:M.method}),K.stop.called&&C.stop(),u.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(C,M)=>{if(M.content.isEmpty)return;const E=this.editor.data.toModel(M.content,"$clipboardHolder");0!=E.childCount&&(C.stop(),c.change(()=>{this.fire("contentInsertion",{content:E,method:M.method,dataTransfer:M.dataTransfer,targetRanges:M.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(C,M)=>{M.resultRange=c.insertContent(M.content)},{priority:"low"})}_setupCopyCut(){const r=this.editor,c=r.model.document,u=r.editing.view.document,_=(C,M)=>{const E=M.dataTransfer;M.preventDefault(),this._fireOutputTransformationEvent(E,c.selection,C.name)};this.listenTo(u,"copy",_,{priority:"low"}),this.listenTo(u,"cut",(C,M)=>{r.model.canEditAt(r.model.document.selection)?_(C,M):M.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(C,M)=>{const E=r.data.toView(M.content);u.fire("clipboardOutput",{dataTransfer:M.dataTransfer,content:E,method:M.method})},{priority:"low"}),this.listenTo(u,"clipboardOutput",(C,M)=>{M.content.isEmpty||(M.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(M.content)),M.dataTransfer.setData("text/plain",w5(M.content))),"cut"==M.method&&r.model.deleteContent(c.selection)},{priority:"low"})}}class U5{constructor(r,c=20){this._batch=null,this.model=r,this._size=0,this.limit=c,this._isLocked=!1,this._changeCallback=(u,_)=>{_.isLocal&&_.isUndoable&&_!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(r){this._size+=r,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(r=!1){this.isLocked&&!r||(this._batch=null,this._size=0)}}class F8 extends Ua{constructor(r,c){super(r),this._buffer=new U5(r.model,c),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(r={}){const c=this.editor.model,u=c.document,_=r.text||"",C=_.length;let M=u.selection;if(r.selection?M=r.selection:r.range&&(M=c.createSelection(r.range)),!c.canEditAt(M))return;const E=r.resultRange;c.enqueueChange(this._buffer.batch,N=>{this._buffer.lock(),c.deleteContent(M),_&&c.insertContent(N.createText(_,u.selection.getAttributes()),M),E?N.setSelection(E):M.is("documentSelection")||N.setSelection(M),this._buffer.unlock(),this._buffer.input(C)})}}const Vv=["insertText","insertReplacementText"];class jv extends Qu{constructor(r){super(r),this.focusObserver=r.getObserver(z_),D_isAndroid&&Vv.push("insertCompositionText");const c=r.document;c.on("beforeinput",(u,_)=>{if(!this.isEnabled)return;const{data:C,targetRanges:M,inputType:E,domEvent:N}=_;if(!Vv.includes(E))return;this.focusObserver.flush();const j=new ct(c,"insertText");c.fire(j,new pc(r,N,{text:C,selection:r.createSelection(M)})),j.stop.called&&u.stop()}),c.on("compositionend",(u,{data:_,domEvent:C})=>{this.isEnabled&&!D_isAndroid&&_&&c.fire("insertText",new pc(r,C,{text:_,selection:c.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class Jv extends lo{static get pluginName(){return"Input"}init(){const r=this.editor,c=r.model,u=r.editing.view,_=c.document.selection;u.addObserver(jv);const C=new F8(r,r.config.get("typing.undoStep")||20);r.commands.add("insertText",C),r.commands.add("input",C),this.listenTo(u.document,"insertText",(M,E)=>{u.document.isComposing||E.preventDefault();const{text:N,selection:j,resultRange:K}=E,dt=Array.from(j.getRanges()).map(Ue=>r.editing.mapper.toModelRange(Ue));let Dt=N;if(D_isAndroid){const Ue=Array.from(dt[0].getItems()).reduce((qe,pn)=>qe+(pn.is("$textProxy")?pn.data:""),"");Ue&&(Ue.length<=Dt.length?Dt.startsWith(Ue)&&(Dt=Dt.substring(Ue.length),dt[0].start=dt[0].start.getShiftedBy(Ue.length)):Ue.startsWith(Dt)&&(dt[0].start=dt[0].start.getShiftedBy(Dt.length),Dt=""))}const me={text:Dt,selection:c.createSelection(dt)};K&&(me.resultRange=r.editing.mapper.toModelRange(K)),r.execute("insertText",me),u.scrollToTheSelection()}),D_isAndroid?this.listenTo(u.document,"keydown",(M,E)=>{!_.isCollapsed&&229==E.keyCode&&u.document.isComposing&&Z5(c,C)}):this.listenTo(u.document,"compositionstart",()=>{_.isCollapsed||Z5(c,C)})}}function Z5(m,r){if(!r.isEnabled)return;const c=r.buffer;c.lock(),m.enqueueChange(c.batch,()=>{m.deleteContent(m.document.selection)}),c.unlock()}class Gv extends Ua{constructor(r,c){super(r),this.direction=c,this._buffer=new U5(r.model,r.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(r={}){const c=this.editor.model,u=c.document;c.enqueueChange(this._buffer.batch,_=>{this._buffer.lock();const C=_.createSelection(r.selection||u.selection);if(!c.canEditAt(C))return;const M=r.sequence||1,E=C.isCollapsed;if(C.isCollapsed&&c.modifySelection(C,{direction:this.direction,unit:r.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(M))return void this._replaceEntireContentWithParagraph(_);if(this._shouldReplaceFirstBlockWithParagraph(C,M))return void this.editor.execute("paragraph",{selection:C});if(C.isCollapsed)return;let N=0;C.getFirstRange().getMinimalFlatRanges().forEach(j=>{N+=xt(j.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),c.deleteContent(C,{doNotResetEntireContent:E,direction:this.direction}),this._buffer.input(N),_.setSelection(C),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(r){if(r>1)return!1;const c=this.editor.model,u=c.document.selection,_=c.schema.getLimitElement(u);if(!u.isCollapsed||!u.containsEntireContent(_)||!c.schema.checkChild(_,"paragraph"))return!1;const C=_.getChild(0);return!C||!C.is("element","paragraph")}_replaceEntireContentWithParagraph(r){const c=this.editor.model,_=c.schema.getLimitElement(c.document.selection),C=r.createElement("paragraph");r.remove(r.createRangeIn(_)),r.insert(C,_),r.setSelection(C,0)}_shouldReplaceFirstBlockWithParagraph(r,c){const u=this.editor.model;if(c>1||"backward"!=this.direction||!r.isCollapsed)return!1;const _=r.getFirstPosition(),C=u.schema.getLimitElement(_),M=C.getChild(0);return _.parent==M&&!!r.containsEntireContent(M)&&!!u.schema.checkChild(C,"paragraph")&&"paragraph"!=M.name}}const p2="selection",Hh="backward",a_="forward",Wv={deleteContent:{unit:p2,direction:Hh},deleteContentBackward:{unit:"codePoint",direction:Hh},deleteWordBackward:{unit:"word",direction:Hh},deleteHardLineBackward:{unit:p2,direction:Hh},deleteSoftLineBackward:{unit:p2,direction:Hh},deleteContentForward:{unit:"character",direction:a_},deleteWordForward:{unit:"word",direction:a_},deleteHardLineForward:{unit:p2,direction:a_},deleteSoftLineForward:{unit:p2,direction:a_}};class $v extends Qu{constructor(r){super(r);const c=r.document;let u=0;c.on("keydown",()=>{u++}),c.on("keyup",()=>{u=0}),c.on("beforeinput",(_,C)=>{if(!this.isEnabled)return;const{targetRanges:M,domEvent:E,inputType:N}=C,j=Wv[N];if(!j)return;const K={direction:j.direction,unit:j.unit,sequence:u};K.unit==p2&&(K.selectionToRemove=r.createSelection(M[0])),"deleteContentBackward"===N&&(D_isAndroid&&(K.sequence=1),function(Dt){if(1!=Dt.length||Dt[0].isCollapsed)return!1;const me=Dt[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let Ue=0;for(const{nextPosition:qe}of me){if(qe.parent.is("$text")){const pn=qe.parent.data,Ln=qe.offset;if(un(pn,Ln)||hd(pn,Ln)||kl(pn,Ln))continue;Ue++}else Ue++;if(Ue>1)return!0}return!1}(M)&&(K.unit=p2,K.selectionToRemove=r.createSelection(M)));const dt=new Cp(c,"delete",M[0]);c.fire(dt,new pc(r,E,K)),dt.stop.called&&_.stop()}),D_isBlink&&function(_){const C=_.view,M=C.document;let E=null,N=!1;function j(dt){return dt==Ka.backspace||dt==Ka.delete}function K(dt){return dt==Ka.backspace?Hh:a_}M.on("keydown",(dt,{keyCode:Dt})=>{E=Dt,N=!1}),M.on("keyup",(dt,{keyCode:Dt,domEvent:me})=>{const Ue=M.selection,qe=_.isEnabled&&Dt==E&&j(Dt)&&!Ue.isCollapsed&&!N;if(E=null,qe){const pn=Ue.getFirstRange(),Ln=new Cp(M,"delete",pn),pi={unit:p2,direction:K(Dt),selectionToRemove:Ue};M.fire(Ln,new pc(C,me,pi))}}),M.on("beforeinput",(dt,{inputType:Dt})=>{const me=Wv[Dt];j(E)&&me&&me.direction==K(E)&&(N=!0)},{priority:"high"}),M.on("beforeinput",(dt,{inputType:Dt,data:me})=>{E==Ka.delete&&"insertText"==Dt&&"\x7f"==me&&dt.stop()},{priority:"high"})}(this)}observe(){}stopObserving(){}}class r_ extends lo{static get pluginName(){return"Delete"}init(){const r=this.editor,c=r.editing.view,u=c.document,_=r.model.document;c.addObserver($v),this._undoOnBackspace=!1;const C=new Gv(r,"forward");r.commands.add("deleteForward",C),r.commands.add("forwardDelete",C),r.commands.add("delete",new Gv(r,"backward")),this.listenTo(u,"delete",(M,E)=>{u.isComposing||E.preventDefault();const{direction:N,sequence:j,selectionToRemove:K,unit:dt}=E,Dt="forward"===N?"deleteForward":"delete",me={sequence:j};if("selection"==dt){const Ue=Array.from(K.getRanges()).map(qe=>r.editing.mapper.toModelRange(qe));me.selection=r.model.createSelection(Ue)}else me.unit=dt;r.execute(Dt,me),c.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(u,"delete",(M,E)=>{this._undoOnBackspace&&"backward"==E.direction&&1==E.sequence&&"codePoint"==E.unit&&(this._undoOnBackspace=!1,r.execute("undo"),E.preventDefault(),M.stop())},{context:"$capture"}),this.listenTo(_,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class Ba extends lo{static get requires(){return[Jv,r_]}static get pluginName(){return"Typing"}}function L4(m,r){let c=m.start;return{text:Array.from(m.getWalker({ignoreElementEnd:!1})).reduce((u,{item:_})=>_.is("$text")||_.is("$textProxy")?u+_.data:(c=r.createPositionAfter(_),""),""),range:r.createRange(c,m.end)}}class Kv extends(Ze()){constructor(r,c){super(),this.model=r,this.testCallback=c,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(r.document.selection),this.stopListening(r.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const r=this.model.document;this.listenTo(r.selection,"change:range",(c,{directChange:u})=>{u&&(r.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(r,"change:data",(c,u)=>{!u.isUndo&&u.isLocal&&this._evaluateTextBeforeSelection("data",{batch:u})})}_evaluateTextBeforeSelection(r,c={}){const u=this.model,_=u.document.selection,C=u.createRange(u.createPositionAt(_.focus.parent,0),_.focus),{text:M,range:E}=L4(C,u),N=this.testCallback(M);if(!N&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!N,N){const j=Object.assign(c,{text:M,range:E});"object"==typeof N&&Object.assign(j,N),this.fire(`matched:${r}`,j)}}}class M5 extends lo{constructor(r){super(r),this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const r=this.editor,_=r.locale,C=r.model.document.selection;this.listenTo(r.editing.view.document,"arrowKey",(M,E)=>{if(!C.isCollapsed||E.shiftKey||E.altKey||E.ctrlKey)return;const N=E.keyCode==Ka.arrowright,j=E.keyCode==Ka.arrowleft;if(!N&&!j)return;const K=_.contentLanguageDirection;let dt=!1;dt="ltr"===K&&N||"rtl"===K&&j?this._handleForwardMovement(E):this._handleBackwardMovement(E),!0===dt&&M.stop()},{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(C,"change:range",(M,E)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!E.directChange&&V0(C.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(r){this.attributes.add(r)}_handleForwardMovement(r){const c=this.attributes,u=this.editor.model.document.selection,_=u.getFirstPosition();return!(this._isGravityOverridden||_.isAtStart&&O4(u,c)||!V0(_,c)||(zh(r),this._overrideGravity(),0))}_handleBackwardMovement(r){const c=this.attributes,u=this.editor.model,_=u.document.selection,C=_.getFirstPosition();return this._isGravityOverridden?(zh(r),this._restoreGravity(),E4(u,c,C),!0):C.isAtStart?!!O4(_,c)&&(zh(r),E4(u,c,C),!0):(E=c,!(!V0(C.getShiftedBy(-1),E)||(C.isAtEnd&&!O4(_,c)&&V0(C,c)?(zh(r),E4(u,c,C),0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),1))));var E}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(r=>r.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(r=>{r.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function O4(m,r){for(const c of r)if(m.hasAttribute(c))return!0;return!1}function E4(m,r,c){const u=c.nodeBefore;m.change(_=>{if(u){const C=[],M=m.schema.isObject(u)&&m.schema.isInline(u);for(const[E,N]of u.getAttributes())!m.schema.checkAttribute("$text",E)||M&&!1===m.schema.getAttributeProperties(E).copyFromObject||C.push([E,N]);_.setSelectionAttribute(C)}else _.removeSelectionAttribute(r)})}function zh(m){m.preventDefault()}function V0(m,r){const{nodeBefore:c,nodeAfter:u}=m;for(const _ of r){const C=c?c.getAttribute(_):void 0;if((u?u.getAttribute(_):void 0)!==C)return!0}return!1}const k5={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"\xbd",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"\u2153",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"\u2154",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"\xbc",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"\xbe",null]},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:a1('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:a1("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:a1("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:a1('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:a1('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:a1("'"),to:[null,"\u201a",null,"\u2019"]}},Dd={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},da=["symbols","mathematical","typography","quotes"];function Xv(m){return"string"==typeof m?new RegExp(`(${_5(m)})$`):m}function I4(m){return"string"==typeof m?()=>[m]:m instanceof Array?()=>m:m}function D5(m){return(m.textNode?m.textNode:m.nodeAfter).getAttributes()}function a1(m){return new RegExp(`(^|\\s)(${m})([^${m}]*)(${m})$`)}function gc(m,r,c,u){return u.createRange(tx(m,r,c,!0,u),tx(m,r,c,!1,u))}function tx(m,r,c,u,_){let C=m.textNode||(u?m.nodeBefore:m.nodeAfter),M=null;for(;C&&C.getAttribute(r)==c;)M=C,C=u?C.previousSibling:C.nextSibling;return M?_.createPositionAt(M,u?"before":"after"):m}function*m2(m,r){for(const c of r)c&&m.getAttributeProperties(c[0]).copyOnEnter&&(yield c)}class ex extends Ua{execute(){this.editor.model.change(r=>{this.enterBlock(r),this.fire("afterExecute",{writer:r})})}enterBlock(r){const c=this.editor.model,u=c.document.selection,_=c.schema,C=u.isCollapsed,M=u.getFirstRange(),E=M.start.parent,N=M.end.parent;if(_.isLimit(E)||_.isLimit(N))return C||E!=N||c.deleteContent(u),!1;if(C){const j=m2(r.model.schema,u.getAttributes());return wi(r,M.start),r.setSelectionAttribute(j),!0}{const j=!(M.start.isAtStart&&M.end.isAtEnd),K=E==N;if(c.deleteContent(u,{leaveUnmerged:j}),j){if(K)return wi(r,u.focus),!0;r.setSelection(N,0)}}return!1}}function wi(m,r){m.split(r),m.setSelection(r.parent.nextSibling,0)}const jn={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class H extends Qu{constructor(r){super(r);const c=this.document;let u=!1;c.on("keydown",(_,C)=>{u=C.shiftKey}),c.on("beforeinput",(_,C)=>{if(!this.isEnabled)return;let M=C.inputType;D_isSafari&&u&&"insertParagraph"==M&&(M="insertLineBreak");const E=C.domEvent,N=jn[M];if(!N)return;const j=new Cp(c,"enter",C.targetRanges[0]);c.fire(j,new pc(r,E,{isSoft:N.isSoft})),j.stop.called&&_.stop()})}observe(){}stopObserving(){}}class Tm extends lo{static get pluginName(){return"Enter"}init(){const r=this.editor,c=r.editing.view,u=c.document;c.addObserver(H),r.commands.add("enter",new ex(r)),this.listenTo(u,"enter",(_,C)=>{u.isComposing||C.preventDefault(),C.isSoft||(r.execute("enter"),c.scrollToTheSelection())},{priority:"low"})}}class hu extends Ua{execute(){const r=this.editor.model,c=r.document;r.change(u=>{(function(_,C,M){const E=M.isCollapsed,N=M.getFirstRange(),K=N.end.parent,dt=N.start.parent==K;if(E){const Dt=m2(_.schema,M.getAttributes());Ma(_,C,N.end),C.removeSelectionAttribute(M.getAttributeKeys()),C.setSelectionAttribute(Dt)}else{const Dt=!(N.start.isAtStart&&N.end.isAtEnd);_.deleteContent(M,{leaveUnmerged:Dt}),dt?Ma(_,C,M.focus):Dt&&C.setSelection(K,0)}})(r,u,c.selection),this.fire("afterExecute",{writer:u})})}refresh(){const r=this.editor.model;this.isEnabled=function(u,_){if(_.rangeCount>1)return!1;const C=_.anchor;if(!C||!u.checkChild(C,"softBreak"))return!1;const M=_.getFirstRange(),E=M.start.parent,N=M.end.parent;return!((F4(E,u)||F4(N,u))&&E!==N)}(r.schema,r.document.selection)}}function Ma(m,r,c){const u=r.createElement("softBreak");m.insertContent(u,c),r.setSelection(u,"after")}function F4(m,r){return!m.is("rootElement")&&(r.isLimit(m)||F4(m.parent,r))}class N8 extends lo{static get pluginName(){return"ShiftEnter"}init(){const r=this.editor,u=r.conversion,_=r.editing.view,C=_.document;r.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),u.for("upcast").elementToElement({model:"softBreak",view:"br"}),u.for("downcast").elementToElement({model:"softBreak",view:(M,{writer:E})=>E.createEmptyElement("br")}),_.addObserver(H),r.commands.add("shiftEnter",new hu(r)),this.listenTo(C,"enter",(M,E)=>{C.isComposing||E.preventDefault(),E.isSoft&&(r.execute("shiftEnter"),_.scrollToTheSelection())},{priority:"low"})}}class nx extends(Ne()){constructor(){super(...arguments),this._stack=[]}add(r,c){const u=this._stack,_=u[0];this._insertDescriptor(r);const C=u[0];_===C||s_(_,C)||this.fire("change:top",{oldDescriptor:_,newDescriptor:C,writer:c})}remove(r,c){const u=this._stack,_=u[0];this._removeDescriptor(r);const C=u[0];_===C||s_(_,C)||this.fire("change:top",{oldDescriptor:_,newDescriptor:C,writer:c})}_insertDescriptor(r){const c=this._stack,u=c.findIndex(C=>C.id===r.id);if(s_(r,c[u]))return;u>-1&&c.splice(u,1);let _=0;for(;c[_]&&q8(c[_],r);)_++;c.splice(_,0,r)}_removeDescriptor(r){const c=this._stack,u=c.findIndex(_=>_.id===r);u>-1&&c.splice(u,1)}}function s_(m,r){return m&&r&&m.priority==r.priority&&ff(m.classes)==ff(r.classes)}function q8(m,r){return m.priority>r.priority||!(m.priorityff(r.classes)}function ff(m){return Array.isArray(m)?m.sort().join(","):m}const ix="ck-widget_selected";function El(m){return!!m.is("element")&&!!m.getCustomProperty("widget")}function ep(m,r,c={}){if(!m.is("containerElement"))throw new at("widget-to-widget-wrong-element-type",null,{element:m});return r.setAttribute("contenteditable","false",m),r.addClass("ck-widget",m),r.setCustomProperty("widget",!0,m),m.getFillerOffset=H8,r.setCustomProperty("widgetLabel",[],m),c.label&&(_=c.label,m.getCustomProperty("widgetLabel").push(_)),c.hasSelectionHandle&&function(u,_){const C=_.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(M){const E=this.toDomElement(M),N=new zs;return N.set("content",''),N.render(),E.appendChild(N.element),E});_.insert(_.createPositionAt(u,0),C),_.addClass(["ck-widget_with-selection-handle"],u)}(m,r),P5(m,r),m;var _}function R8(m,r,c){if(r.classes&&c.addClass(Ss(r.classes),m),r.attributes)for(const u in r.attributes)c.setAttribute(u,r.attributes[u],m)}function ox(m,r,c){if(r.classes&&c.removeClass(Ss(r.classes),m),r.attributes)for(const u in r.attributes)c.removeAttribute(u,m)}function P5(m,r,c=R8,u=ox){const _=new nx;_.on("change:top",(C,M)=>{M.oldDescriptor&&u(m,M.oldDescriptor,M.writer),M.newDescriptor&&c(m,M.newDescriptor,M.writer)}),r.setCustomProperty("addHighlight",(C,M,E)=>_.add(M,E),m),r.setCustomProperty("removeHighlight",(C,M,E)=>_.remove(M,E),m)}function S5(m,r,c={}){return r.addClass(["ck-editor__editable","ck-editor__nested-editable"],m),r.setAttribute("role","textbox",m),c.label&&r.setAttribute("aria-label",c.label,m),r.setAttribute("contenteditable",m.isReadOnly?"false":"true",m),m.on("change:isReadOnly",(u,_,C)=>{r.setAttribute("contenteditable",C?"false":"true",m)}),m.on("change:isFocused",(u,_,C)=>{C?r.addClass("ck-editor__nested-editable_focused",m):r.removeClass("ck-editor__nested-editable_focused",m)}),P5(m,r),m}function q4(m,r){const c=m.getSelectedElement();if(c){const u=np(m);if(u)return r.createRange(r.createPositionAt(c,u))}return x0(m,r)}function H8(){return null}const c_="widget-type-around";function hf(m,r,c){return!!m&&El(m)&&!c.isInline(r)}function np(m){return m.getAttribute(c_)}var ax=v(4921);Fo()(ax.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const gf=["before","after"],_2=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,R4="ck-widget__type-around_disabled";class sx extends lo{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Tm,r_]}init(){const r=this.editor,c=r.editing.view;this.on("change:isEnabled",(u,_,C)=>{c.change(M=>{for(const E of c.document.roots)C?M.removeClass(R4,E):M.addClass(R4,E)}),C||r.model.change(M=>{M.removeSelectionAttribute(c_)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(r,c){const u=this.editor,_=u.editing.view,C=u.model.schema.getAttributesWithProperty(r,"copyOnReplace",!0);u.execute("insertParagraph",{position:u.model.createPositionAt(r,c),attributes:C}),_.focus(),_.scrollToTheSelection()}_listenToIfEnabled(r,c,u,_){this.listenTo(r,c,(...C)=>{this.isEnabled&&u(...C)},_)}_insertParagraphAccordingToFakeCaretPosition(){const r=this.editor.model.document.selection,c=np(r);if(!c)return!1;const u=r.getSelectedElement();return this._insertParagraph(u,c),!0}_enableTypeAroundUIInjection(){const r=this.editor,c=r.model.schema,u=r.locale.t,_={before:u("Insert paragraph before block"),after:u("Insert paragraph after block")};r.editing.downcastDispatcher.on("insert",(C,M,E)=>{const N=E.mapper.toViewElement(M.item);N&&hf(N,M.item,c)&&(function(j,K,dt){const Dt=j.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(me){const Ue=this.toDomElement(me);return function(qe,pn){for(const Ln of gf){const pi=new Ur({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${Ln}`],title:pn[Ln],"aria-hidden":"true"},children:[qe.ownerDocument.importNode(_2,!0)]});qe.appendChild(pi.render())}}(Ue,K),function(qe){const pn=new Ur({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});qe.appendChild(pn.render())}(Ue),Ue});j.insert(j.createPositionAt(dt,"end"),Dt)}(E.writer,_,N),N.getCustomProperty("widgetLabel").push(()=>this.isEnabled?u("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const r=this.editor,c=r.model,u=c.document.selection,_=c.schema;function M(E){return`ck-widget_type-around_show-fake-caret_${E}`}this._listenToIfEnabled(r.editing.view.document,"arrowKey",(E,N)=>{this._handleArrowKeyPress(E,N)},{context:[El,"$text"],priority:"high"}),this._listenToIfEnabled(u,"change:range",(E,N)=>{N.directChange&&r.model.change(j=>{j.removeSelectionAttribute(c_)})}),this._listenToIfEnabled(c.document,"change:data",()=>{const E=u.getSelectedElement();E&&hf(r.editing.mapper.toViewElement(E),E,_)||r.model.change(N=>{N.removeSelectionAttribute(c_)})}),this._listenToIfEnabled(r.editing.downcastDispatcher,"selection",(E,N,j)=>{const K=j.writer;if(this._currentFakeCaretModelElement){const Ue=j.mapper.toViewElement(this._currentFakeCaretModelElement);Ue&&(K.removeClass(gf.map(M),Ue),this._currentFakeCaretModelElement=null)}const dt=N.selection.getSelectedElement();if(!dt)return;const Dt=j.mapper.toViewElement(dt);if(!hf(Dt,dt,_))return;const me=np(N.selection);me&&(K.addClass(M(me),Dt),this._currentFakeCaretModelElement=dt)}),this._listenToIfEnabled(r.ui.focusTracker,"change:isFocused",(E,N,j)=>{j||r.model.change(K=>{K.removeSelectionAttribute(c_)})})}_handleArrowKeyPress(r,c){const u=this.editor,_=u.model,C=_.document.selection,M=_.schema,E=u.editing.view,N=function(dt,Dt){const me=b1(dt,Dt);return"down"===me||"right"===me}(c.keyCode,u.locale.contentLanguageDirection),j=E.document.selection.getSelectedElement();let K;hf(j,u.editing.mapper.toModelElement(j),M)?K=this._handleArrowKeyPressOnSelectedWidget(N):C.isCollapsed?K=this._handleArrowKeyPressWhenSelectionNextToAWidget(N):c.shiftKey||(K=this._handleArrowKeyPressWhenNonCollapsedSelection(N)),K&&(c.preventDefault(),r.stop())}_handleArrowKeyPressOnSelectedWidget(r){const c=this.editor.model,u=np(c.document.selection);return c.change(_=>u?u!==(r?"after":"before")&&(_.removeSelectionAttribute(c_),!0):(_.setSelectionAttribute(c_,r?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(r){const c=this.editor,u=c.model,_=u.schema,C=c.plugins.get("Widget"),M=C._getObjectElementNextToSelection(r);return!!hf(c.editing.mapper.toViewElement(M),M,_)&&(u.change(E=>{C._setSelectionOverElement(M),E.setSelectionAttribute(c_,r?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(r){const c=this.editor,u=c.model,_=u.schema,C=c.editing.mapper,M=u.document.selection,E=r?M.getLastPosition().nodeBefore:M.getFirstPosition().nodeAfter;return!!hf(C.toViewElement(E),E,_)&&(u.change(N=>{N.setSelection(E,"on"),N.setSelectionAttribute(c_,r?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const r=this.editor,c=r.editing.view;this._listenToIfEnabled(c.document,"mousedown",(u,_)=>{const C=_.domTarget.closest(".ck-widget__type-around__button");if(!C)return;const M=C.classList.contains("ck-widget__type-around__button_before")?"before":"after",E=function(j,K){const dt=j.closest(".ck-widget");return K.mapDomToView(dt)}(C,c.domConverter),N=r.editing.mapper.toModelElement(E);this._insertParagraph(N,M),_.preventDefault(),u.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const r=this.editor,c=r.model.document.selection;this._listenToIfEnabled(r.editing.view.document,"enter",(_,C)=>{if("atTarget"!=_.eventPhase)return;const M=c.getSelectedElement(),E=r.editing.mapper.toViewElement(M),N=r.model.schema;let j;this._insertParagraphAccordingToFakeCaretPosition()?j=!0:hf(E,M,N)&&(this._insertParagraph(M,C.isSoft?"before":"after"),j=!0),j&&(C.preventDefault(),_.stop())},{context:El})}_enableInsertingParagraphsOnTypingKeystroke(){const r=this.editor.editing.view.document;this._listenToIfEnabled(r,"insertText",(c,u)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(u.selection=r.selection)},{priority:"high"}),D_isAndroid?this._listenToIfEnabled(r,"keydown",(c,u)=>{229==u.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(r,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const r=this.editor,u=r.model,_=u.schema;this._listenToIfEnabled(r.editing.view.document,"delete",(C,M)=>{if("atTarget"!=C.eventPhase)return;const E=np(u.document.selection);if(!E)return;const N=M.direction,j=u.document.selection.getSelectedElement(),K="forward"==N;if("before"===E===K)r.execute("delete",{selection:u.createSelection(j,"on")});else{const dt=_.getNearestSelectionRange(u.createPositionAt(j,E),N);if(dt)if(dt.isCollapsed){const Dt=u.createSelection(dt.start);if(u.modifySelection(Dt,{direction:N}),Dt.focus.isEqual(dt.start)){const me=function(Ue,qe){let pn=qe;for(const Ln of qe.getAncestors({parentFirst:!0})){if(Ln.childCount>1||Ue.isLimit(Ln))break;pn=Ln}return pn}(_,dt.start.parent);u.deleteContent(u.createSelection(me,"on"),{doNotAutoparagraph:!0})}else u.change(me=>{me.setSelection(dt),r.execute(K?"deleteForward":"delete")})}else u.change(Dt=>{Dt.setSelection(dt),r.execute(K?"deleteForward":"delete")})}M.preventDefault(),C.stop()},{context:El})}_enableInsertContentIntegration(){const c=this.editor.model,u=c.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(_,[C,M])=>{if(M&&!M.is("documentSelection"))return;const E=np(u);return E?(_.stop(),c.change(N=>{const j=u.getSelectedElement(),K=c.createPositionAt(j,E),dt=N.createSelection(K),Dt=c.insertContent(C,dt);return N.setSelection(dt),Dt})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const c=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"insertObject",(u,_)=>{const[,C,M={}]=_;if(C&&!C.is("documentSelection"))return;const E=np(c);E&&(M.findOptimalPosition=E,_[3]=M)},{priority:"high"})}_enableDeleteContentIntegration(){const c=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"deleteContent",(u,[_])=>{_&&!_.is("documentSelection")||np(c)&&u.stop()},{priority:"high"})}}function lx(m,r,c){const u=m.schema,_=m.createRangeIn(r.root),C="forward"==c?"elementStart":"elementEnd";for(const{previousPosition:M,item:E,type:N}of _.getWalker({startPosition:r,direction:c})){if(u.isLimit(E)&&!u.isInline(E))return M;if(N==C&&u.isBlock(E))return null}return null}function bf(m,r,c){const u="backward"==c?r.end:r.start;if(m.checkChild(u,"$text"))return u;for(const{nextPosition:_}of r.getWalker({direction:c}))if(m.checkChild(_,"$text"))return _;return null}var Bh=v(3488);Fo()(Bh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class j0 extends lo{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[sx,r_]}init(){const r=this.editor,c=r.editing.view,u=c.document;this.editor.editing.downcastDispatcher.on("selection",(_,C,M)=>{const E=M.writer,N=C.selection;if(N.isCollapsed)return;const j=N.getSelectedElement();if(!j)return;const K=r.editing.mapper.toViewElement(j);var dt;El(K)&&M.consumable.consume(N,"selection")&&E.setSelection(E.createRangeOn(K),{fake:!0,label:(dt=K,dt.getCustomProperty("widgetLabel").reduce((Dt,me)=>"function"==typeof me?Dt?Dt+". "+me():me():Dt?Dt+". "+me:me,""))})}),this.editor.editing.downcastDispatcher.on("selection",(_,C,M)=>{this._clearPreviouslySelectedWidgets(M.writer);const E=M.writer,N=E.document.selection;let j=null;for(const K of N.getRanges())for(const dt of K){const Dt=dt.item;El(Dt)&&!z8(Dt,j)&&(E.addClass(ix,Dt),this._previouslySelected.add(Dt),j=Dt)}},{priority:"low"}),c.addObserver(A0),this.listenTo(u,"mousedown",(..._)=>this._onMousedown(..._)),this.listenTo(u,"arrowKey",(..._)=>{this._handleSelectionChangeOnArrowKeyPress(..._)},{context:[El,"$text"]}),this.listenTo(u,"arrowKey",(..._)=>{this._preventDefaultOnArrowKeyPress(..._)},{context:"$root"}),this.listenTo(u,"arrowKey",function cx(m){const r=m.model;return(c,u)=>{const C=u.keyCode==Ka.arrowdown,M=u.shiftKey,E=r.document.selection;if(u.keyCode!=Ka.arrowup&&!C)return;const N=C;if(M&&!(K=E).isCollapsed&&K.isBackward==N)return;var K;const j=function(K,dt,Dt){const me=K.model;if(Dt){const Ue=dt.isCollapsed?dt.focus:dt.getLastPosition(),qe=lx(me,Ue,"forward");if(!qe)return null;const pn=me.createRange(Ue,qe),Ln=bf(me.schema,pn,"backward");return Ln?me.createRange(Ue,Ln):null}{const Ue=dt.isCollapsed?dt.focus:dt.getFirstPosition(),qe=lx(me,Ue,"backward");if(!qe)return null;const pn=me.createRange(qe,Ue),Ln=bf(me.schema,pn,"forward");return Ln?me.createRange(Ln,Ue):null}}(m,E,N);if(j){if(j.isCollapsed&&(E.isCollapsed||M))return;(j.isCollapsed||function(K,dt,Dt){const me=K.model,Ue=K.view.domConverter;if(Dt){const Ri=me.createSelection(dt.start);me.modifySelection(Ri),Ri.focus.isAtEnd||dt.start.isEqual(Ri.focus)||(dt=me.createRange(Ri.focus,dt.end))}const qe=K.mapper.toViewRange(dt),pn=Ue.viewRangeToDom(qe),Ln=de.getDomRangeRects(pn);let pi;for(const Ri of Ln)if(void 0!==pi){if(Math.round(Ri.top)>=pi)return!1;pi=Math.max(pi,Math.round(Ri.bottom))}else pi=Math.round(Ri.bottom);return!0}(m,j,N))&&(r.change(K=>{const dt=N?j.end:j.start;if(M){const Dt=r.createSelection(E.anchor);Dt.setFocus(dt),K.setSelection(Dt)}else K.setSelection(dt)}),c.stop(),u.preventDefault(),u.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(u,"delete",(_,C)=>{this._handleDelete("forward"==C.direction)&&(C.preventDefault(),_.stop())},{context:"$root"})}_onMousedown(r,c){const u=this.editor,_=u.editing.view,C=_.document;let M=c.target;if(function(N){let j=N;for(;j;){if(j.is("editableElement")&&!j.is("rootElement"))return!0;if(El(j))return!1;j=j.parent}return!1}(M)){if((D_isSafari||D_isGecko)&&c.domEvent.detail>=3){const N=u.editing.mapper,j=M.is("attributeElement")?M.findAncestor(dt=>!dt.is("attributeElement")):M,K=N.toModelElement(j);c.preventDefault(),this.editor.model.change(dt=>{dt.setSelection(K,"in")})}return}if(!El(M)&&(M=M.findAncestor(El),!M))return;D_isAndroid&&c.preventDefault(),C.isFocused||_.focus();const E=u.editing.mapper.toModelElement(M);this._setSelectionOverElement(E)}_handleSelectionChangeOnArrowKeyPress(r,c){const u=c.keyCode,_=this.editor.model,C=_.schema,M=_.document.selection,E=M.getSelectedElement(),N=b1(u,this.editor.locale.contentLanguageDirection),j="down"==N||"right"==N,K="up"==N||"down"==N;if(E&&C.isObject(E)){const Dt=j?M.getLastPosition():M.getFirstPosition(),me=C.getNearestSelectionRange(Dt,j?"forward":"backward");return void(me&&(_.change(Ue=>{Ue.setSelection(me)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed&&!c.shiftKey){const Dt=M.getFirstPosition(),me=M.getLastPosition(),Ue=Dt.nodeAfter,qe=me.nodeBefore;return void((Ue&&C.isObject(Ue)||qe&&C.isObject(qe))&&(_.change(pn=>{pn.setSelection(j?me:Dt)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed)return;const dt=this._getObjectElementNextToSelection(j);if(dt&&C.isObject(dt)){if(C.isInline(dt)&&K)return;this._setSelectionOverElement(dt),c.preventDefault(),r.stop()}}_preventDefaultOnArrowKeyPress(r,c){const u=this.editor.model,_=u.schema,C=u.document.selection.getSelectedElement();C&&_.isObject(C)&&(c.preventDefault(),r.stop())}_handleDelete(r){const c=this.editor.model.document.selection;if(!this.editor.model.canEditAt(c)||!c.isCollapsed)return;const u=this._getObjectElementNextToSelection(r);return u?(this.editor.model.change(_=>{let C=c.anchor.parent;for(;C.isEmpty;){const M=C;C=M.parent,_.remove(M)}this._setSelectionOverElement(u)}),!0):void 0}_setSelectionOverElement(r){this.editor.model.change(c=>{c.setSelection(c.createRangeOn(r))})}_getObjectElementNextToSelection(r){const c=this.editor.model,u=c.schema,_=c.document.selection,C=c.createSelection(_);if(c.modifySelection(C,{direction:r?"forward":"backward"}),C.isEqual(_))return null;const M=r?C.focus.nodeBefore:C.focus.nodeAfter;return M&&u.isObject(M)?M:null}_clearPreviouslySelectedWidgets(r){for(const c of this._previouslySelected)r.removeClass(ix,c);this._previouslySelected.clear()}}function z8(m,r){return!!r&&Array.from(m.getAncestors()).includes(r)}class J0 extends lo{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[q0]}static get pluginName(){return"WidgetToolbarRepository"}init(){const r=this.editor;if(r.plugins.has("BalloonToolbar")){const c=r.plugins.get("BalloonToolbar");this.listenTo(c,"show",u=>{(function(_){const C=_.getSelectedElement();return!(!C||!El(C))})(r.editing.view.document.selection)&&u.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const r of this._toolbarDefinitions.values())r.view.destroy()}register(r,{ariaLabel:c,items:u,getRelatedElement:_,balloonClassName:C="ck-toolbar-container"}){if(!u.length)return void Zt("widget-toolbar-no-items",{toolbarId:r});const M=this.editor,E=M.t,N=new w0(M.locale);if(N.ariaLabel=c||E("Widget toolbar"),this._toolbarDefinitions.has(r))throw new at("widget-toolbar-duplicated",this,{toolbarId:r});const j={view:N,getRelatedElement:_,balloonClassName:C,itemsConfig:u,initialized:!1};M.ui.addToolbar(N,{isContextual:!0,beforeFocus:()=>{const K=_(M.editing.view.document.selection);K&&this._showToolbar(j,K)},afterBlur:()=>{this._hideToolbar(j)}}),this._toolbarDefinitions.set(r,j)}_updateToolbarsVisibility(){let r=0,c=null,u=null;for(const _ of this._toolbarDefinitions.values()){const C=_.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&C)if(this.editor.ui.focusTracker.isFocused){const M=C.getAncestors().length;M>r&&(r=M,c=C,u=_)}else this._isToolbarVisible(_)&&this._hideToolbar(_);else this._isToolbarInBalloon(_)&&this._hideToolbar(_)}u&&this._showToolbar(u,c)}_hideToolbar(r){this._balloon.remove(r.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(r,c){this._isToolbarVisible(r)?L5(this.editor,c):this._isToolbarInBalloon(r)||(r.initialized||(r.initialized=!0,r.view.fillFromConfig(r.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:r.view,position:O5(this.editor,c),balloonClassName:r.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const u of this._toolbarDefinitions.values())if(this._isToolbarVisible(u)){const _=u.getRelatedElement(this.editor.editing.view.document.selection);L5(this.editor,_)}}))}_isToolbarVisible(r){return this._balloon.visibleView===r.view}_isToolbarInBalloon(r){return this._balloon.hasView(r.view)}}function L5(m,r){const c=m.plugins.get("ContextualBalloon"),u=O5(m,r);c.updatePosition(u)}function O5(m,r){const u=id.defaultPositions;return{target:m.editing.view.domConverter.mapViewToDom(r),positions:[u.northArrowSouth,u.northArrowSouthWest,u.northArrowSouthEast,u.southArrowNorth,u.southArrowNorthWest,u.southArrowNorthEast,u.viewportStickyNorth]}}Ze(),Ze();var dx=v(8506);Fo()(dx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const E5=bo("px");class B8 extends oa{constructor(){super();const r=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",r.if("isVisible","ck-hidden",c=>!c)],style:{left:r.to("left",c=>E5(c)),top:r.to("top",c=>E5(c)),width:r.to("width",c=>E5(c))}}})}}class I5 extends lo{constructor(){super(...arguments),this.removeDropMarkerDelayed=wr(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=Lh(r=>this._updateDropMarker(r),40),this._reconvertMarkerThrottled=Lh(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new B8,this._domEmitter=new(Xi()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:r}of this._scrollables.values())r.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(r,c,u,_,C){this.removeDropMarkerDelayed.cancel();const M=F5(this.editor,r,c,u,_,C);M&&this._updateDropMarkerThrottled(M)}getFinalDropRange(r,c,u,_,C){const M=F5(this.editor,r,c,u,_,C);return this.removeDropMarker(),M}removeDropMarker(){const r=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,r.markers.has("drop-target")&&r.change(c=>{c.removeMarker("drop-target")})}_setupDropMarker(){const r=this.editor;r.ui.view.body.add(this._dropTargetLineView),r.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),r.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(c,{writer:u})=>{if(r.model.schema.checkChild(c.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(u);c.markerRange.isCollapsed?this._updateDropTargetLine(c.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(r){const c=this.editor,u=c.model.markers;c.model.change(_=>{u.has("drop-target")?u.get("drop-target").getRange().isEqual(r)||_.updateMarker("drop-target",{range:r}):_.addMarker("drop-target",{range:r,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(r){return r.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(c){const u=this.toDomElement(c);return u.append("\u2060",c.createElement("span"),"\u2060"),u})}_updateDropTargetLine(r){const c=this.editor.editing,u=r.start.nodeBefore,_=r.start.nodeAfter,C=r.start.parent,M=u?c.mapper.toViewElement(u):null,E=M?c.view.domConverter.mapViewToDom(M):null,N=_?c.mapper.toViewElement(_):null,j=N?c.view.domConverter.mapViewToDom(N):null,K=c.mapper.toViewElement(C),dt=c.view.domConverter.mapViewToDom(K),Dt=this._getScrollableRect(K),{scrollX:me,scrollY:Ue}=Lt.window,qe=E?new de(E):null,pn=j?new de(j):null,Ln=new de(dt).excludeScrollbarsAndBorders(),pi=qe?qe.bottom:Ln.top,Ri=pn?pn.top:Ln.bottom,Go=Lt.window.getComputedStyle(dt),ka=pi<=Ri?(pi+Ri)/2:Ri;if(Dt.topDt.is("element")&&!iy(m,Dt));let K=0,dt=j.length;if(0==dt)return M.createRange(M.createPositionAt(N,"end"));for(;Kr in m?Y8(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class j8 extends lo{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(Xi())}static get pluginName(){return"DragDropBlockToolbar"}init(){const r=this.editor;if(this.listenTo(r,"change:isReadOnly",(c,u,_)=>{_?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),D_isAndroid&&this.forceDisabled("noAndroidSupport"),r.plugins.has("BlockToolbar")){const c=r.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(c,"dragstart",(u,_)=>this._handleBlockDragStart(_)),this._domEmitter.listenTo(Lt.document,"dragover",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Lt.document,"drop",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Lt.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&c.setAttribute("draggable","true"),this.on("change:isEnabled",(u,_,C)=>{c.setAttribute("draggable",C?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(r){if(!this.isEnabled)return;const c=this.editor.model,_=this.editor.editing.view,C=Array.from(c.document.selection.getSelectedBlocks()),M=c.createRange(c.createPositionBefore(C[0]),c.createPositionAfter(C[C.length-1]));c.change(E=>E.setSelection(M)),this._isBlockDragging=!0,_.focus(),_.getObserver(Rh).onDomEvent(r)}_handleBlockDragging(r){if(!this.isEnabled||!this._isBlockDragging)return;const c=r.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),u=r.clientY,_=document.elementFromPoint(c,u),C=this.editor.editing.view;var M;_&&_.closest(".ck-editor__editable")&&C.getObserver(Rh).onDomEvent((M=((N,j)=>{for(var K in j||(j={}))_x.call(j,K)&&fx(N,K,j[K]);if(vf)for(var K of vf(j))N5.call(j,K)&&fx(N,K,j[K]);return N})({},r),V8(M,mx({type:r.type,dataTransfer:r.dataTransfer,target:_,clientX:c,clientY:u,preventDefault:()=>r.preventDefault(),stopPropagation:()=>r.stopPropagation()}))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var hx=v(903);Fo()(hx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class bx extends lo{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=wr(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(Xi())}static get pluginName(){return"DragDrop"}static get requires(){return[Np,j0,I5,j8]}init(){const r=this.editor,c=r.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,c.addObserver(Rh),c.addObserver(A0),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(r,"change:isReadOnly",(u,_,C)=>{C?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(u,_,C)=>{C||this._finalizeDragging(!1)}),D_isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document,C=r.plugins.get(I5);this.listenTo(_,"dragstart",(M,E)=>{if(E.target&&E.target.is("editableElement")||(this._prepareDraggedRange(E.target),!this._draggedRange))return void E.preventDefault();this._draggingUid=Pt(),E.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",E.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const N=c.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(E.dataTransfer,N,"dragstart");const{dataTransfer:j,domTarget:K,domEvent:dt}=E,{clientX:Dt}=dt;this._updatePreview({dataTransfer:j,domTarget:K,clientX:Dt}),E.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(_,"dragend",(M,E)=>{this._finalizeDragging(!E.dataTransfer.isCanceled&&"move"==E.dataTransfer.dropEffect)},{priority:"low"}),this._domEmitter.listenTo(Lt.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(_,"dragenter",()=>{this.isEnabled&&u.focus()}),this.listenTo(_,"dragleave",()=>{C.removeDropMarkerDelayed()}),this.listenTo(_,"dragging",(M,E)=>{if(!this.isEnabled)return void(E.dataTransfer.dropEffect="none");const{clientX:N,clientY:j}=E.domEvent;C.updateDropMarker(E.target,E.targetRanges,N,j,this._blockMode),this._draggedRange||(E.dataTransfer.dropEffect="copy"),D_isGecko||("copy"==E.dataTransfer.effectAllowed?E.dataTransfer.dropEffect="copy":["all","copyMove"].includes(E.dataTransfer.effectAllowed)&&(E.dataTransfer.dropEffect="move")),M.stop()},{priority:"low"})}_setupClipboardInputIntegration(){const r=this.editor,c=r.editing.view.document,u=r.plugins.get(I5);this.listenTo(c,"clipboardInput",(_,C)=>{if("drop"!=C.method)return;const{clientX:M,clientY:E}=C.domEvent,N=u.getFinalDropRange(C.target,C.targetRanges,M,E,this._blockMode);return N?(this._draggedRange&&this._draggingUid!=C.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==vx(C.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(N,!0)?(this._finalizeDragging(!1),void _.stop()):void(C.targetRanges=[r.editing.mapper.toViewRange(N)])):(this._finalizeDragging(!1),void _.stop())},{priority:"high"})}_setupContentInsertionIntegration(){const r=this.editor.plugins.get(Np);r.on("contentInsertion",(c,u)=>{if(!this.isEnabled||"drop"!==u.method)return;const _=u.targetRanges.map(C=>this.editor.editing.mapper.toModelRange(C));this.editor.model.change(C=>C.setSelection(_))},{priority:"high"}),r.on("contentInsertion",(c,u)=>{if(!this.isEnabled||"drop"!==u.method)return;const _="move"==vx(u.dataTransfer);this._finalizeDragging((!u.resultRange||!u.resultRange.isCollapsed)&&_)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const r=this.editor,c=r.editing.view,u=c.document;this.listenTo(u,"mousedown",(_,C)=>{if(D_isAndroid||!C)return;this._clearDraggableAttributesDelayed.cancel();let M=Yh(C.target);if(D_isBlink&&!r.isReadOnly&&!M&&!u.selection.isCollapsed){const E=u.selection.getSelectedElement();E&&El(E)||(M=u.selection.editableElement)}M&&(c.change(E=>{E.setAttribute("draggable","true",M)}),this._draggableElement=r.editing.mapper.toModelElement(M))}),this.listenTo(u,"mouseup",()=>{D_isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const r=this.editor.editing;r.view.change(c=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&c.removeAttribute("draggable",r.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(r){const c=this.editor,u=c.model;c.plugins.get(I5).removeDropMarker(),this._clearDraggableAttributes(),c.plugins.has("WidgetToolbarRepository")&&c.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(r&&this.isEnabled&&u.change(_=>{const C=u.createSelection(this._draggedRange);u.deleteContent(C,{doNotAutoparagraph:!0});const M=C.getFirstPosition().parent;M.isEmpty&&!u.schema.checkChild(M,"$text")&&u.schema.checkChild(M,"paragraph")&&_.insertElement("paragraph",M,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(r){const c=this.editor,u=c.model,_=u.document.selection,C=r?Yh(r):null;if(C){const j=c.editing.mapper.toModelElement(C);return this._draggedRange=Xu.fromRange(u.createRangeOn(j)),this._blockMode=u.schema.isBlock(j),void(c.plugins.has("WidgetToolbarRepository")&&c.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop"))}if(_.isCollapsed&&!_.getFirstPosition().parent.isEmpty)return;const M=Array.from(_.getSelectedBlocks()),E=_.getFirstRange();if(0==M.length)return void(this._draggedRange=Xu.fromRange(E));const N=xx(u,M);if(M.length>1)this._draggedRange=Xu.fromRange(N),this._blockMode=!0;else if(1==M.length){const j=E.start.isTouching(N.start)&&E.end.isTouching(N.end);this._draggedRange=Xu.fromRange(j?N:E),this._blockMode=j}u.change(j=>j.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:r,domTarget:c,clientX:u}){const _=this.editor.editing.view,M=_.domConverter.mapViewToDom(_.document.selection.editableElement),E=Lt.window.getComputedStyle(M);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=tn(Lt.document,"div",{style:"position: fixed; left: -999999px;"}),Lt.document.body.appendChild(this._previewContainer));const N=new de(M);if(M.contains(c))return;const j=parseFloat(E.paddingLeft),K=tn(Lt.document,"div");K.className="ck ck-content",K.style.width=E.width,K.style.paddingLeft=`${N.left-u+j}px`,D_isiOS&&(K.style.backgroundColor="white"),K.innerHTML=r.getData("text/html"),r.setDragImage(K,0,0),this._previewContainer.appendChild(K)}}function vx(m){return D_isGecko?m.dropEffect:["all","copyMove"].includes(m.effectAllowed)?"move":"copy"}function Yh(m){if(m.is("editableElement"))return null;if(m.hasClass("ck-widget__selection-handle"))return m.findAncestor(El);if(El(m))return m;const r=m.findAncestor(c=>El(c)||c.is("editableElement"));return El(r)?r:null}function xx(m,r){const c=r[0],u=r[r.length-1],_=c.getCommonAncestor(u),C=m.createPositionBefore(c),M=m.createPositionAfter(u);if(_&&_.is("element")&&!m.schema.isLimit(_)){const E=m.createRangeOn(_),N=C.isTouching(E.start),j=M.isTouching(E.end);if(N&&j)return xx(m,[_])}return m.createRange(C,M)}class Cx extends lo{static get pluginName(){return"PastePlainText"}static get requires(){return[Np]}init(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document,C=c.document.selection;let M=!1;u.addObserver(Rh),this.listenTo(_,"keydown",(E,N)=>{M=N.shiftKey}),r.plugins.get(Np).on("contentInsertion",(E,N)=>{(M||function(j,K){if(j.childCount>1)return!1;const dt=j.getChild(0);return!K.isObject(dt)&&0==Array.from(dt.getAttributeKeys()).length}(N.content,c.schema))&&c.change(j=>{const K=Array.from(C.getAttributes()).filter(([Dt])=>c.schema.getAttributeProperties(Dt).isFormatting);C.isCollapsed||c.deleteContent(C,{doNotAutoparagraph:!0}),K.push(...C.getAttributes());const dt=j.createRangeIn(N.content);for(const Dt of dt.getItems())Dt.is("$textProxy")&&j.setAttributes(K,Dt)})})}}class Ax extends lo{static get pluginName(){return"Clipboard"}static get requires(){return[Np,bx,Cx]}}class z4 extends Ua{constructor(r){super(r),this.affectsData=!1}execute(){const r=this.editor.model,c=r.document.selection;let u=r.schema.getLimitElement(c);if(c.containsEntireContent(u)||!yx(r.schema,u))do{if(u=u.parent,!u)return}while(!yx(r.schema,u));r.change(_=>{_.setSelection(u,"in")})}}function yx(m,r){return m.isLimit(r)&&(m.checkChild(r,"$text")||m.checkChild(r,"paragraph"))}const Tx=tc("Ctrl+A");class J8 extends lo{static get pluginName(){return"SelectAllEditing"}init(){const r=this.editor,c=r.editing.view.document;r.commands.add("selectAll",new z4(r)),this.listenTo(c,"keydown",(u,_)=>{Tc(_)===Tx&&(r.execute("selectAll"),_.preventDefault())})}}class q5 extends lo{static get pluginName(){return"SelectAllUI"}init(){const r=this.editor;r.ui.componentFactory.add("selectAll",c=>{const u=r.commands.get("selectAll"),_=new $o(c);return _.set({label:(0,c.t)("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),_.bind("isEnabled").to(u,"isEnabled"),this.listenTo(_,"execute",()=>{r.execute("selectAll"),r.editing.view.focus()}),_})}}class G8 extends lo{static get requires(){return[J8,q5]}static get pluginName(){return"SelectAll"}}var wx=Object.defineProperty,R5=Object.getOwnPropertySymbols,Ux=Object.prototype.hasOwnProperty,Zx=Object.prototype.propertyIsEnumerable,Mx=(m,r,c)=>r in m?wx(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Vh extends Ua{constructor(r){super(r),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(r.data,"set",(c,u)=>{u[1]=((C,M)=>{for(var E in M||(M={}))Ux.call(M,E)&&Mx(C,E,M[E]);if(R5)for(var E of R5(M))Zx.call(M,E)&&Mx(C,E,M[E]);return C})({},u[1]);const _=u[1];_.batchType||(_.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(r.data,"set",(c,u)=>{u[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(r){const c=this.editor.model.document.selection,u={ranges:c.hasOwnRange?Array.from(c.getRanges()):[],isBackward:c.isBackward};this._stack.push({batch:r,selection:u}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(r,c,u){const _=this.editor.model,C=_.document,M=[],E=r.map(j=>j.getTransformedByOperations(u)),N=E.flat();for(const j of E){const K=j.filter(dt=>dt.root!=C.graveyard).filter(dt=>!kx(dt,N));K.length&&(Q8(K),M.push(K[0]))}M.length&&_.change(j=>{j.setSelection(M,{backward:c})})}_undo(r,c){const u=this.editor.model,_=u.document;this._createdBatches.add(c);const C=r.operations.slice().filter(M=>M.isDocumentOperation);C.reverse();for(const M of C){const N=Array.from(_.history.getOperations(M.baseVersion+1)),j=fh([M.getReversed()],N,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let K of j){const dt=K.affectedSelectable;dt&&!u.canEditAt(dt)&&(K=new fc(K.baseVersion)),c.addOperation(K),u.applyOperation(K),_.history.setOperationAsUndone(M,K)}}}}function Q8(m){m.sort((r,c)=>r.start.isBefore(c.start)?-1:1);for(let r=1;rc!==m&&c.containsRange(m,!0))}class Dx extends Vh{execute(r=null){const c=r?this._stack.findIndex(C=>C.batch==r):this._stack.length-1,u=this._stack.splice(c,1)[0],_=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(_,()=>{this._undo(u.batch,_);const C=this.editor.model.document.history.getOperations(u.batch.baseVersion);this._restoreSelection(u.selection.ranges,u.selection.isBackward,C)}),this.fire("revert",u.batch,_),this.refresh()}}class W8 extends Vh{execute(){const r=this._stack.pop(),c=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(c,()=>{const _=this.editor.model.document.history.getOperations(r.batch.operations[r.batch.operations.length-1].baseVersion+1);this._restoreSelection(r.selection.ranges,r.selection.isBackward,_),this._undo(r.batch,c)}),this.refresh()}}class $8 extends lo{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const r=this.editor;this._undoCommand=new Dx(r),this._redoCommand=new W8(r),r.commands.add("undo",this._undoCommand),r.commands.add("redo",this._redoCommand),this.listenTo(r.model,"applyOperation",(c,u)=>{const _=u[0];if(!_.isDocumentOperation)return;const C=_.batch,M=this._redoCommand.createdBatches.has(C),E=this._undoCommand.createdBatches.has(C);this._batchRegistry.has(C)||(this._batchRegistry.add(C),C.isUndoable&&(M?this._undoCommand.addBatch(C):E||(this._undoCommand.addBatch(C),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(c,u,_)=>{this._redoCommand.addBatch(_)}),r.keystrokes.set("CTRL+Z","undo"),r.keystrokes.set("CTRL+Y","redo"),r.keystrokes.set("CTRL+SHIFT+Z","redo")}}const H5='',Px='';class K8 extends lo{static get pluginName(){return"UndoUI"}init(){const r=this.editor,c=r.locale,u=r.t,_="ltr"==c.uiLanguageDirection?H5:Px,C="ltr"==c.uiLanguageDirection?Px:H5;this._addButton("undo",u("Undo"),"CTRL+Z",_),this._addButton("redo",u("Redo"),"CTRL+Y",C)}_addButton(r,c,u,_){const C=this.editor;C.ui.componentFactory.add(r,M=>{const E=C.commands.get(r),N=new $o(M);return N.set({label:c,icon:_,keystroke:u,tooltip:!0}),N.bind("isEnabled").to(E,"isEnabled"),this.listenTo(N,"execute",()=>{C.execute(r),C.editing.view.focus()}),N})}}class Sx extends lo{static get requires(){return[$8,K8]}static get pluginName(){return"Undo"}}class Lx extends(Ze()){constructor(){super();const r=new window.FileReader;this._reader=r,this._data=void 0,this.set("loaded",0),r.onprogress=c=>{this.loaded=c.loaded}}get error(){return this._reader.error}get data(){return this._data}read(r){const c=this._reader;return this.total=r.size,new Promise((u,_)=>{c.onload=()=>{const C=c.result;this._data=C,u(C)},c.onerror=()=>{_("error")},c.onabort=()=>{_("aborted")},this._reader.readAsDataURL(r)})}abort(){this._reader.abort()}}class ip extends lo{constructor(){super(...arguments),this.loaders=new ec,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[wh]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,c)=>c?r/c*100:0)}getLoader(r){return this._loadersMap.get(r)||null}createLoader(r){if(!this.createUploadAdapter)return Zt("filerepository-no-upload-adapter"),null;const c=new z5(Promise.resolve(r),this.createUploadAdapter);return this.loaders.add(c),this._loadersMap.set(r,c),r instanceof Promise&&c.file.then(u=>{this._loadersMap.set(u,c)}).catch(()=>{}),c.on("change:uploaded",()=>{let u=0;for(const _ of this.loaders)u+=_.uploaded;this.uploaded=u}),c.on("change:uploadTotal",()=>{let u=0;for(const _ of this.loaders)_.uploadTotal&&(u+=_.uploadTotal);this.uploadTotal=u}),c}destroyLoader(r){const c=r instanceof z5?r:this.getLoader(r);c._destroy(),this.loaders.remove(c),this._loadersMap.forEach((u,_)=>{u===c&&this._loadersMap.delete(_)})}_updatePendingAction(){const r=this.editor.plugins.get(wh);if(this.loaders.length){if(!this._pendingAction){const c=this.editor.t,u=_=>`${c("Upload in progress")} ${parseInt(_)}%.`;this._pendingAction=r.add(u(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",u)}}else r.remove(this._pendingAction),this._pendingAction=null}}class z5 extends(Ze()){constructor(r,c){super(),this.id=Pt(),this._filePromiseWrapper=this._createFilePromiseWrapper(r),this._adapter=c(this),this._reader=new Lx,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(u,_)=>_?u/_*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(r=>this._filePromiseWrapper?r:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new at("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(r=>this._reader.read(r)).then(r=>{if("reading"!==this.status)throw this.status;return this.status="idle",r}).catch(r=>{throw"aborted"===r?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:r)})}upload(){if("idle"!=this.status)throw new at("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(r=>(this.uploadResponse=r,this.status="idle",r)).catch(r=>{throw"aborted"===this.status?"aborted":(this.status="error",r)})}abort(){const r=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==r?this._reader.abort():"uploading"==r&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(r){const c={};return c.promise=new Promise((u,_)=>{c.rejecter=_,c.isFulfilled=!1,r.then(C=>{c.isFulfilled=!0,u(C)}).catch(C=>{c.isFulfilled=!0,_(C)})}),c}}class Ox extends oa{constructor(r){super(r),this.buttonView=new $o(r),this._fileInputView=new X8(r),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class X8 extends oa{constructor(r){super(r),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const c=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:c.to("acceptedType"),multiple:c.to("allowMultipleFiles")},on:{change:c.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}const B5="abcdefghijklmnopqrstuvwxyz0123456789";class tA{constructor(r,c,u){this.loader=r,this.url=c,this.t=u}upload(){return this.loader.file.then(r=>new Promise((c,u)=>{this._initRequest(),this._initListeners(c,u,r),this._sendRequest(r)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const r=this.xhr=new XMLHttpRequest;r.open("POST",this.url,!0),r.responseType="json"}_initListeners(r,c,u){const _=this.xhr,C=this.loader,M=(0,this.t)("Cannot upload file:")+` ${u.name}.`;_.addEventListener("error",()=>c(M)),_.addEventListener("abort",()=>c()),_.addEventListener("load",()=>{const E=_.response;if(!E||!E.uploaded)return c(E&&E.error&&E.error.message?E.error.message:M);r({default:E.url})}),_.upload&&_.upload.addEventListener("progress",E=>{E.lengthComputable&&(C.uploadTotal=E.total,C.uploaded=E.loaded)})}_sendRequest(r){const c=new FormData;c.append("upload",r),c.append("ckCsrfToken",function Y5(){let m=function(u){u=u.toLowerCase();const _=document.cookie.split(";");for(const C of _){const M=C.split("=");if(decodeURIComponent(M[0].trim().toLowerCase())===u)return decodeURIComponent(M[1])}return null}("ckCsrfToken");var c;return m&&40==m.length||(m=function(u){let _="";const C=new Uint8Array(40);window.crypto.getRandomValues(C);for(let M=0;M.5?E.toUpperCase():E}return _}(),c=m,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(c)+";path=/"),m}()),this.xhr.send(c)}}function qp(m,r,c,u){let _,C=null;"function"==typeof u?_=u:(C=m.commands.get(u),_=()=>{m.execute(u)}),m.model.document.on("change:data",(M,E)=>{if(C&&!C.isEnabled||!r.isEnabled)return;const N=os(m.model.document.selection.getRanges());if(!N.isCollapsed||E.isUndo||!E.isLocal)return;const j=Array.from(m.model.document.differ.getChanges()),K=j[0];if(1!=j.length||"insert"!==K.type||"$text"!=K.name||1!=K.length)return;const dt=K.position.parent;if(dt.is("element","codeBlock")||dt.is("element","listItem")&&"function"!=typeof u&&!["numberedList","bulletedList","todoList"].includes(u)||C&&!0===C.value)return;const Dt=dt.getChild(0),me=m.model.createRangeOn(Dt);if(!me.containsRange(N)&&!N.end.isEqual(me.end))return;const Ue=c.exec(Dt.data.substr(0,N.end.offset));Ue&&m.model.enqueueChange(qe=>{const pn=qe.createPositionAt(dt,0),Ln=qe.createPositionAt(dt,Ue[0].length),pi=new Xu(pn,Ln);if(!1!==_({match:Ue})){qe.remove(pi);const Ri=m.model.document.selection.getFirstRange(),Go=qe.createRangeIn(dt);!dt.isEmpty||Go.isEqual(Ri)||Go.containsRange(Ri,!0)||qe.remove(dt)}pi.detach(),m.model.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})})})}function f2(m,r,c,u){let _,C;c instanceof RegExp?_=c:C=c,C=C||(M=>{let E;const N=[],j=[];for(;null!==(E=_.exec(M))&&!(E&&E.length<4);){let{index:K,1:dt,2:Dt,3:me}=E;K+=E[0].length-(dt+Dt+me).length;const pn=[K+dt.length+Dt.length,K+dt.length+Dt.length+me.length];N.push([K,K+dt.length]),N.push(pn),j.push([K+dt.length,K+dt.length+Dt.length])}return{remove:N,format:j}}),m.model.document.on("change:data",(M,E)=>{if(E.isUndo||!E.isLocal||!r.isEnabled)return;const N=m.model,j=N.document.selection;if(!j.isCollapsed)return;const K=Array.from(N.document.differ.getChanges()),dt=K[0];if(1!=K.length||"insert"!==dt.type||"$text"!=dt.name||1!=dt.length)return;const Dt=j.focus,me=Dt.parent,{text:Ue,range:qe}=function(Ri,Go){let ka=Ri.start;return{text:Array.from(Ri.getItems()).reduce(($r,Il)=>!Il.is("$text")&&!Il.is("$textProxy")||Il.getAttribute("code")?(ka=Go.createPositionAfter(Il),""):$r+Il.data,""),range:Go.createRange(ka,Ri.end)}}(N.createRange(N.createPositionAt(me,0),Dt),N),pn=C(Ue),Ln=V5(qe.start,pn.format,N),pi=V5(qe.start,pn.remove,N);Ln.length&&pi.length&&N.enqueueChange(Ri=>{if(!1!==u(Ri,Ln)){for(const Go of pi.reverse())Ri.remove(Go);N.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})}})})}function V5(m,r,c){return r.filter(u=>void 0!==u[0]&&void 0!==u[1]).map(u=>c.createRange(m.getShiftedBy(u[0]),m.getShiftedBy(u[1])))}function jh(m,r){return(c,u)=>{if(!m.commands.get(r).isEnabled)return!1;const _=m.model.schema.getValidRanges(u,r);for(const C of _)c.setAttribute(r,!0,C);c.removeSelectionAttribute(r)}}class Ex extends Ua{constructor(r,c){super(r),this.attributeKey=c}refresh(){const r=this.editor.model,c=r.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=r.schema.checkAttributeInSelection(c.selection,this.attributeKey)}execute(r={}){const c=this.editor.model,u=c.document.selection,_=void 0===r.forceValue?!this.value:r.forceValue;c.change(C=>{if(u.isCollapsed)_?C.setSelectionAttribute(this.attributeKey,!0):C.removeSelectionAttribute(this.attributeKey);else{const M=c.schema.getValidRanges(u.getRanges(),this.attributeKey);for(const E of M)_?C.setAttribute(this.attributeKey,_,E):C.removeAttribute(this.attributeKey,E)}})}_getValueFromFirstAllowedNode(){const r=this.editor.model,c=r.schema,u=r.document.selection;if(u.isCollapsed)return u.hasAttribute(this.attributeKey);for(const _ of u.getRanges())for(const C of _.getItems())if(c.checkAttribute(C,this.attributeKey))return C.hasAttribute(this.attributeKey);return!1}}const Jh="bold";class j5 extends lo{static get pluginName(){return"BoldEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:Jh}),r.model.schema.setAttributeProperties(Jh,{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:Jh,view:"strong",upcastAlso:["b",c=>{const u=c.getStyle("font-weight");return u&&("bold"==u||Number(u)>=600)?{name:!0,styles:["font-weight"]}:null}]}),r.commands.add(Jh,new Ex(r,Jh)),r.keystrokes.set("CTRL+B",Jh)}}const J5="bold";class G5 extends lo{static get pluginName(){return"BoldUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(J5,u=>{const _=r.commands.get(J5),C=new $o(u);return C.set({label:c("Bold"),icon:hs.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),C.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(C,"execute",()=>{r.execute(J5),r.editing.view.focus()}),C})}}var xf=v(8603);Fo()(xf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Gh="italic";class oy extends lo{static get pluginName(){return"ItalicEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:Gh}),r.model.schema.setAttributeProperties(Gh,{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:Gh,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),r.commands.add(Gh,new Ex(r,Gh)),r.keystrokes.set("CTRL+I",Gh)}}const W0="italic";class V4 extends lo{static get pluginName(){return"ItalicUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(W0,u=>{const _=r.commands.get(W0),C=new $o(u);return C.set({label:c("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),C.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(C,"execute",()=>{r.execute(W0),r.editing.view.focus()}),C})}}class eA extends Ua{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const c=this.editor.model,u=c.schema,C=Array.from(c.document.selection.getSelectedBlocks()),M=void 0===r.forceValue?!this.value:r.forceValue;c.change(E=>{if(M){const N=C.filter(j=>Cf(j)||Q5(u,j));this._applyQuote(E,N)}else this._removeQuote(E,C.filter(Cf))})}_getValue(){const r=os(this.editor.model.document.selection.getSelectedBlocks());return!(!r||!Cf(r))}_checkEnabled(){if(this.value)return!0;const c=this.editor.model.schema,u=os(this.editor.model.document.selection.getSelectedBlocks());return!!u&&Q5(c,u)}_removeQuote(r,c){Ix(r,c).reverse().forEach(u=>{if(u.start.isAtStart&&u.end.isAtEnd)return void r.unwrap(u.start.parent);if(u.start.isAtStart){const C=r.createPositionBefore(u.start.parent);return void r.move(u,C)}u.end.isAtEnd||r.split(u.end);const _=r.createPositionAfter(u.end.parent);r.move(u,_)})}_applyQuote(r,c){const u=[];Ix(r,c).reverse().forEach(_=>{let C=Cf(_.start);C||(C=r.createElement("blockQuote"),r.wrap(_,C)),u.push(C)}),u.reverse().reduce((_,C)=>_.nextSibling==C?(r.merge(r.createPositionAfter(_)),_):C)}}function Cf(m){return"blockQuote"==m.parent.name?m.parent:null}function Ix(m,r){let c,u=0;const _=[];for(;u{const E=r.model.document.differ.getChanges();for(const N of E)if("insert"==N.type){const j=N.position.nodeAfter;if(!j)continue;if(j.is("element","blockQuote")&&j.isEmpty)return M.remove(j),!0;if(j.is("element","blockQuote")&&!c.checkChild(N.position,j))return M.unwrap(j),!0;if(j.is("element")){const K=M.createRangeIn(j);for(const dt of K.getItems())if(dt.is("element","blockQuote")&&!c.checkChild(M.createPositionBefore(dt),dt))return M.unwrap(dt),!0}}else if("remove"==N.type){const j=N.position.parent;if(j.is("element","blockQuote")&&j.isEmpty)return M.remove(j),!0}return!1});const u=this.editor.editing.view.document,_=r.model.document.selection,C=r.commands.get("blockQuote");this.listenTo(u,"enter",(M,E)=>{!_.isCollapsed||!C.value||_.getLastPosition().parent.isEmpty&&(r.execute("blockQuote"),r.editing.view.scrollToTheSelection(),E.preventDefault(),M.stop())},{context:"blockquote"}),this.listenTo(u,"delete",(M,E)=>{if("backward"!=E.direction||!_.isCollapsed||!C.value)return;const N=_.getLastPosition().parent;N.isEmpty&&!N.previousSibling&&(r.execute("blockQuote"),r.editing.view.scrollToTheSelection(),E.preventDefault(),M.stop())},{context:"blockquote"})}}var _a=v(3062);Fo()(_a.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Fx extends lo{static get pluginName(){return"BlockQuoteUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add("blockQuote",u=>{const _=r.commands.get("blockQuote"),C=new $o(u);return C.set({label:c("Block quote"),icon:hs.quote,tooltip:!0,isToggleable:!0}),C.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(C,"execute",()=>{r.execute("blockQuote"),r.editing.view.focus()}),C})}}class Nx extends lo{static get pluginName(){return"CKBoxUI"}afterInit(){const r=this.editor,c=r.commands.get("ckbox");if(!c)return;const u=r.t;r.ui.componentFactory.add("ckbox",_=>{const C=new $o(_);return C.set({label:u("Open file manager"),icon:'',tooltip:!0}),C.bind("isOn","isEnabled").to(c,"value","isEnabled"),C.on("execute",()=>{r.execute("ckbox")}),C})}}function qx(m){const r=[];let c=0;for(const _ in m){const C=parseInt(_,10);isNaN(C)||(C>c&&(c=C),r.push(`${m[_]} ${_}w`))}const u=[{srcset:r.join(","),sizes:`(max-width: ${c}px) 100vw, ${c}px`,type:"image/webp"}];return{imageFallbackUrl:m.default,imageSources:u}}class nA extends Ua{constructor(r){super(r),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const r=this.editor.commands.get("insertImage"),c=this.editor.commands.get("link");return!(!r.isEnabled&&!c.isEnabled)}_prepareOptions(){const r=this.editor.config.get("ckbox");return{theme:r.theme,language:r.language,tokenUrl:r.tokenUrl,serviceOrigin:r.serviceOrigin,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:c=>this.fire("ckbox:choose",c)}}}_initListeners(){const r=this.editor,c=r.model,u=!r.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=tn(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null)}),this.on("ckbox:choose",(_,C)=>{if(!this.isEnabled)return;const M=r.commands.get("insertImage"),E=r.commands.get("link"),N=function({assets:j,isImageAllowed:K,isLinkAllowed:dt}){return j.map(Dt=>function(me){const Ue=me.data.metadata;return!!Ue&&Ue.width&&Ue.height}(Dt)?{id:Dt.data.id,type:"image",attributes:iA(Dt)}:{id:Dt.data.id,type:"link",attributes:oA(Dt)}).filter(Dt=>"image"===Dt.type?K:dt)}({assets:C,isImageAllowed:M.isEnabled,isLinkAllowed:E.isEnabled});0!==N.length&&c.change(j=>{for(const K of N)this._insertAsset(K,K===N[N.length-1],j),u&&(setTimeout(()=>this._chosenAssets.delete(K),1e3),this._chosenAssets.add(K))})}),this.listenTo(r,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(r,c,u){const _=this.editor.model.document.selection;u.removeSelectionAttribute("linkHref"),"image"===r.type?this._insertImage(r):this._insertLink(r,u),c||u.setSelection(_.getLastPosition())}_insertImage(r){const c=this.editor,{imageFallbackUrl:u,imageSources:_,imageTextAlternative:C}=r.attributes;c.execute("insertImage",{source:{src:u,sources:_,alt:C}})}_insertLink(r,c){const u=this.editor,_=u.model,C=_.document.selection,{linkName:M,linkHref:E}=r.attributes;if(C.isCollapsed){const N=Kc(C.getAttributes()),j=c.createText(M,N),K=_.insertContent(j);c.setSelection(K)}u.execute("link",E)}}function iA(m){const{imageFallbackUrl:r,imageSources:c}=qx(m.data.imageUrls);return{imageFallbackUrl:r,imageSources:c,imageTextAlternative:m.data.metadata.description||""}}function oA(m){return{linkName:m.data.name,linkHref:$5(m)}}function $5(m){const r=new URL(m.data.url);return r.searchParams.set("download","true"),r.toString()}var Qh=(m,r,c)=>new Promise((u,_)=>{var C=N=>{try{E(c.next(N))}catch(j){_(j)}},M=N=>{try{E(c.throw(N))}catch(j){_(j)}},E=N=>N.done?u(N.value):Promise.resolve(N.value).then(C,M);E((c=c.apply(m,r)).next())});class Rx extends lo{static get requires(){return["ImageUploadEditing","ImageUploadProgress",ip,K5]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return Qh(this,null,function*(){const r=this.editor,c=!!r.config.get("ckbox"),u=!!window.CKBox;if(!c&&!u)return;const _=r.plugins.get(ip),C=r.plugins.get(K5);_.createUploadAdapter=N=>new Hx(N,C.getToken(),r);const M=!r.config.get("ckbox.ignoreDataId"),E=r.plugins.get("ImageUploadEditing");M&&E.on("uploadComplete",(N,{imageElement:j,data:K})=>{r.model.change(dt=>{dt.setAttribute("ckboxImageId",K.ckboxImageId,j)})})})}}class Hx{constructor(r,c,u){this.loader=r,this.token=c,this.editor=u,this.controller=new AbortController,this.serviceOrigin=u.config.get("ckbox.serviceOrigin")}getWorkspaceId(){const r=(0,this.editor.t)("Cannot access default workspace."),c=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),u=function(_,C){const[,M]=_.value.split("."),E=JSON.parse(atob(M)),N=E.auth&&E.auth.ckbox&&E.auth.ckbox.workspaces||[E.aud];return C?"superadmin"==(E.auth&&E.auth.ckbox&&E.auth.ckbox.role)||N.includes(C)?C:null:N[0]}(this.token,c);if(null==u)throw wt("ckbox-access-default-workspace-error"),r;return u}getAvailableCategories(r=0){return Qh(this,null,function*(){const c=new URL("categories",this.serviceOrigin);return c.searchParams.set("limit",50..toString()),c.searchParams.set("offset",r.toString()),c.searchParams.set("workspaceId",this.getWorkspaceId()),this._sendHttpRequest({url:c}).then(u=>Qh(this,null,function*(){if(u.totalCount-(r+50)>0){const _=yield this.getAvailableCategories(r+50);return[...u.items,..._]}return u.items})).catch(()=>{this.controller.signal.throwIfAborted(),wt("ckbox-fetch-category-http-error")})})}getCategoryIdForFile(r){return Qh(this,null,function*(){const c=function(M){const E=new RegExp("\\.(?[^.]+)$");return M.match(E).groups.ext.toLowerCase()}(r.name),u=yield this.getAvailableCategories();if(!u)return null;const _=this.editor.config.get("ckbox.defaultUploadCategories");if(_){const M=Object.keys(_).find(E=>_[E].find(N=>N.toLowerCase()==c));if(M){const E=u.find(N=>N.id===M||N.name===M);return E?E.id:null}}const C=u.find(M=>M.extensions.find(E=>E.toLowerCase()==c));return C?C.id:null})}upload(){return Qh(this,null,function*(){const r=this.editor.t,c=r("Cannot determine a category for the uploaded file."),u=yield this.loader.file,_=yield this.getCategoryIdForFile(u);if(!_)return Promise.reject(c);const C=new URL("assets",this.serviceOrigin),M=new FormData;return C.searchParams.set("workspaceId",this.getWorkspaceId()),M.append("categoryId",_),M.append("file",u),this._sendHttpRequest({method:"POST",url:C,data:M,onUploadProgress:N=>{N.lengthComputable&&(this.loader.uploadTotal=N.total,this.loader.uploaded=N.loaded)}}).then(N=>Qh(this,null,function*(){const j=qx(N.imageUrls);return{ckboxImageId:N.id,default:j.imageFallbackUrl,sources:j.imageSources}})).catch(()=>{const N=r("Cannot upload file:")+` ${u.name}.`;return Promise.reject(N)})})}abort(){this.controller.abort()}_sendHttpRequest({url:r,method:c="GET",data:u,onUploadProgress:_}){const C=this.controller.signal,M=new XMLHttpRequest;M.open(c,r.toString(),!0),M.setRequestHeader("Authorization",this.token.value),M.setRequestHeader("CKBox-Version","CKEditor 5"),M.responseType="json";const E=()=>{M.abort()};return new Promise((N,j)=>{C.addEventListener("abort",E),M.addEventListener("loadstart",()=>{C.addEventListener("abort",E)}),M.addEventListener("loadend",()=>{C.removeEventListener("abort",E)}),M.addEventListener("error",()=>{j()}),M.addEventListener("abort",()=>{j()}),M.addEventListener("load",()=>Qh(this,null,function*(){const K=M.response;return!K||K.statusCode>=400?j(K&&K.message):N(K)})),_&&M.upload.addEventListener("progress",K=>{_(K)}),M.send(u)})}}class K5 extends lo{static get pluginName(){return"CKBoxEditing"}static get requires(){return["CloudServices","LinkEditing","PictureEditing",Rx]}init(){return r=this,u=function*(){const _=this.editor,C=!!_.config.get("ckbox"),M=!!window.CKBox;if(!C&&!M)return;this._initConfig();const E=_.plugins.get("CloudServicesCore"),N=_.config.get("ckbox.tokenUrl");if(N===_.config.get("cloudServices.tokenUrl")){const j=_.plugins.get("CloudServices");this._token=j.token}else this._token=yield E.createToken(N).init();_.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),M&&_.commands.add("ckbox",new nA(_))},new Promise((_,C)=>{var M=j=>{try{N(u.next(j))}catch(K){C(K)}},E=j=>{try{N(u.throw(j))}catch(K){C(K)}},N=j=>j.done?_(j.value):Promise.resolve(j.value).then(M,E);N((u=u.apply(r,null)).next())});var r,u}getToken(){return this._token}_initConfig(){const r=this.editor;if(r.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:r.locale.uiLanguage,theme:"default",tokenUrl:r.config.get("cloudServices.tokenUrl")}),!r.config.get("ckbox.tokenUrl"))throw new at("ckbox-plugin-missing-token-url",this);r.plugins.has("ImageBlockEditing")||r.plugins.has("ImageInlineEditing")||wt("ckbox-plugin-image-feature-missing",r)}_initSchema(){const r=this.editor.model.schema;r.extend("$text",{allowAttributes:"ckboxLinkId"}),r.isRegistered("imageBlock")&&r.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),r.isRegistered("imageInline")&&r.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),r.addAttributeCheck((c,u)=>{if(!c.last.getAttribute("linkHref")&&"ckboxLinkId"===u)return!1})}_initConversion(){const r=this.editor;r.conversion.for("downcast").add(c=>{c.on("attribute:ckboxLinkId:imageBlock",(u,_,C)=>{const{writer:M,mapper:E,consumable:N}=C;if(!N.consume(_.item,u.name))return;const j=[...E.toViewElement(_.item).getChildren()].find(K=>"a"===K.name);j&&(_.item.hasAttribute("ckboxLinkId")?M.setAttribute("data-ckbox-resource-id",_.item.getAttribute("ckboxLinkId"),j):M.removeAttribute("data-ckbox-resource-id",j))},{priority:"low"}),c.on("attribute:ckboxLinkId",(u,_,C)=>{const{writer:M,mapper:E,consumable:N}=C;if(N.consume(_.item,u.name)){if(_.attributeOldValue){const j=rA(M,_.attributeOldValue);M.unwrap(E.toViewRange(_.range),j)}if(_.attributeNewValue){const j=rA(M,_.attributeNewValue);_.item.is("selection")?M.wrap(M.document.selection.getFirstRange(),j):M.wrap(E.toViewRange(_.range),j)}}},{priority:"low"})}),r.conversion.for("upcast").add(c=>{c.on("element:a",(u,_,C)=>{const{writer:M,consumable:E}=C;if(!_.viewItem.getAttribute("href")||!E.consume(_.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const N=_.viewItem.getAttribute("data-ckbox-resource-id");if(N)if(_.modelRange)for(let j of _.modelRange.getItems())j.is("$textProxy")&&(j=j.textNode),sA(j)&&M.setAttribute("ckboxLinkId",N,j);else M.setAttribute("ckboxLinkId",N,_.modelCursor.nodeBefore||_.modelCursor.parent)},{priority:"low"})}),r.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),r.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:c=>c.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}})}_initFixers(){const r=this.editor,c=r.model,u=c.document.selection;var _;c.document.registerPostFixer((_=r,C=>{let M=!1;const E=_.model,N=_.commands.get("ckbox");if(!N)return M;for(const j of E.document.differ.getChanges()){if("insert"!==j.type&&"attribute"!==j.type)continue;const K="insert"===j.type?new Li(j.position,j.position.getShiftedBy(j.length)):j.range,dt="attribute"===j.type&&"linkHref"===j.attributeKey&&null===j.attributeNewValue;for(const Dt of K.getItems()){if(dt&&Dt.hasAttribute("ckboxLinkId")){C.removeAttribute("ckboxLinkId",Dt),M=!0;continue}const me=aA(Dt,N._chosenAssets);for(const Ue of me){const qe="image"===Ue.type?"ckboxImageId":"ckboxLinkId";Ue.id!==Dt.getAttribute(qe)&&(C.setAttribute(qe,Ue.id,Dt),M=!0)}}}return M})),c.document.registerPostFixer(function(_){return C=>!(_.hasAttribute("linkHref")||!_.hasAttribute("ckboxLinkId")||(C.removeSelectionAttribute("ckboxLinkId"),0))}(u))}}function aA(m,r){const c=m.is("element","imageInline")||m.is("element","imageBlock"),u=m.hasAttribute("linkHref");return[...r].filter(_=>"image"===_.type&&c?_.attributes.imageFallbackUrl===m.getAttribute("src"):"link"===_.type&&u?_.attributes.linkHref===m.getAttribute("linkHref"):void 0)}function rA(m,r){const c=m.createAttributeElement("a",{"data-ckbox-resource-id":r},{priority:5});return m.setCustomProperty("link",!0,c),c}function sA(m){return!!m.is("$text")||!(!m.is("element","imageInline")&&!m.is("element","imageBlock"))}class zx extends lo{static get pluginName(){return"CKFinderUI"}init(){const r=this.editor,u=r.t;r.ui.componentFactory.add("ckfinder",_=>{const C=r.commands.get("ckfinder"),M=new $o(_);return M.set({label:u("Insert image or file"),icon:'',tooltip:!0}),M.bind("isEnabled").to(C),M.on("execute",()=>{r.execute("ckfinder"),r.editing.view.focus()}),M})}}class Bx extends Ua{constructor(r){super(r),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const r=this.editor.commands.get("insertImage"),c=this.editor.commands.get("link");this.isEnabled=r.isEnabled||c.isEnabled}execute(){const r=this.editor,c=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=c&&"modal"!=c)throw new at("ckfinder-unknown-openermethod",r);const u=this.editor.config.get("ckfinder.options")||{};u.chooseFiles=!0;const _=u.onInit;u.language||(u.language=r.locale.uiLanguage),u.onInit=C=>{_&&_(C),C.on("files:choose",M=>{const E=M.data.files.toArray(),N=E.filter(dt=>!dt.isImage()),j=E.filter(dt=>dt.isImage());for(const dt of N)r.execute("link",dt.getUrl());const K=[];for(const dt of j){const Dt=dt.getUrl();K.push(Dt||C.request("file:getProxyUrl",{file:dt}))}K.length&&X5(r,K)}),C.on("file:choose:resizedImage",M=>{const E=M.data.resizedUrl;if(E)X5(r,[E]);else{const N=r.plugins.get("Notification"),j=r.locale.t;N.showWarning(j("Could not obtain resized image URL."),{title:j("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[c](u)}}function X5(m,r){if(m.commands.get("insertImage").isEnabled)m.execute("insertImage",{source:r});else{const c=m.plugins.get("Notification"),u=m.locale.t;c.showWarning(u("Could not insert image at the current position."),{title:u("Inserting image failed"),namespace:"ckfinder"})}}class Yx extends lo{static get pluginName(){return"CKFinderEditing"}static get requires(){return[u2,"LinkEditing"]}init(){const r=this.editor;if(!r.plugins.has("ImageBlockEditing")&&!r.plugins.has("ImageInlineEditing"))throw new at("ckfinder-missing-image-plugin",r);r.commands.add("ckfinder",new Bx(r))}}class cA extends lo{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",ip]}init(){const r=this.editor,c=r.plugins.get("CloudServices"),u=c.token,_=c.uploadUrl;if(!u)return;const C=r.plugins.get("CloudServicesCore");this._uploadGateway=C.createUploadGateway(u,_),r.plugins.get(ip).createUploadAdapter=M=>new lA(this._uploadGateway,M)}}class lA{constructor(r,c){this.uploadGateway=r,this.loader=c}upload(){return this.loader.file.then(r=>(this.fileUploader=this.uploadGateway.upload(r),this.fileUploader.on("progress",(c,u)=>{this.loader.uploadTotal=u.total,this.loader.uploaded=u.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class tb extends Ua{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}refresh(){const r=this.editor.model,c=os(r.document.selection.getSelectedBlocks());this.value=!!c&&c.is("element","paragraph"),this.isEnabled=!!c&&Vx(c,r.schema)}execute(r={}){const c=this.editor.model,_=r.selection||c.document.selection;c.canEditAt(_)&&c.change(C=>{const M=_.getSelectedBlocks();for(const E of M)!E.is("element","paragraph")&&Vx(E,c.schema)&&C.rename(E,"paragraph")})}}function Vx(m,r){return r.checkChild(m.parent,"paragraph")&&!r.isObject(m)}class uA extends Ua{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}execute(r){const c=this.editor.model,u=r.attributes;let _=r.position;c.canEditAt(_)&&c.change(C=>{if(_=this._findPositionToInsertParagraph(_,C),!_)return;const M=C.createElement("paragraph");u&&c.schema.setAllowedAttributes(M,u,C),c.insertContent(M,_),C.setSelection(M,"in")})}_findPositionToInsertParagraph(r,c){const u=this.editor.model;if(u.schema.checkChild(r,"paragraph"))return r;const _=u.schema.findAllowedParent(r,"paragraph");if(!_)return null;const C=r.parent,M=u.schema.checkChild(C,"$text");return C.isEmpty||M&&r.isAtEnd?u.createPositionAfter(C):!C.isEmpty&&M&&r.isAtStart?u.createPositionBefore(C):c.split(r,_).position}}const eb=class extends lo{static get pluginName(){return"Paragraph"}init(){const m=this.editor,r=m.model;m.commands.add("paragraph",new tb(m)),m.commands.add("insertParagraph",new uA(m)),r.schema.register("paragraph",{inheritAllFrom:"$block"}),m.conversion.elementToElement({model:"paragraph",view:"p"}),m.conversion.for("upcast").elementToElement({model:(c,{writer:u})=>eb.paragraphLikeElements.has(c.name)?c.isEmpty?null:u.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let nb=eb;nb.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class h2 extends Ua{constructor(r,c){super(r),this.modelElements=c}refresh(){const r=os(this.editor.model.document.selection.getSelectedBlocks());this.value=!!r&&this.modelElements.includes(r.name)&&r.name,this.isEnabled=!!r&&this.modelElements.some(c=>j4(r,c,this.editor.model.schema))}execute(r){const c=this.editor.model,u=c.document,_=r.value;c.change(C=>{const M=Array.from(u.selection.getSelectedBlocks()).filter(E=>j4(E,_,c.schema));for(const E of M)E.is("element",_)||C.rename(E,_)})}}function j4(m,r,c){return c.checkChild(m.parent,r)&&!c.isObject(m)}const ib="paragraph";class ob extends lo{static get pluginName(){return"HeadingEditing"}constructor(r){super(r),r.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[nb]}init(){const r=this.editor,c=r.config.get("heading.options"),u=[];for(const _ of c)"paragraph"!==_.model&&(r.model.schema.register(_.model,{inheritAllFrom:"$block"}),r.conversion.elementToElement(_),u.push(_.model));this._addDefaultH1Conversion(r),r.commands.add("heading",new h2(r,u))}afterInit(){const r=this.editor,c=r.commands.get("enter"),u=r.config.get("heading.options");c&&this.listenTo(c,"afterExecute",(_,C)=>{const M=r.model.document.selection.getFirstPosition().parent;u.some(E=>M.is("element",E.model))&&!M.is("element",ib)&&0===M.childCount&&C.writer.rename(M,ib)})}_addDefaultH1Conversion(r){r.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:St.low+1})}}var ab=v(8733);Fo()(ab.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Jx extends lo{static get pluginName(){return"HeadingUI"}init(){const r=this.editor,c=r.t,u=function(M){const E=M.t,N={Paragraph:E("Paragraph"),"Heading 1":E("Heading 1"),"Heading 2":E("Heading 2"),"Heading 3":E("Heading 3"),"Heading 4":E("Heading 4"),"Heading 5":E("Heading 5"),"Heading 6":E("Heading 6")};return M.config.get("heading.options").map(j=>{const K=N[j.title];return K&&K!=j.title&&(j.title=K),j})}(r),_=c("Choose heading"),C=c("Heading");r.ui.componentFactory.add("heading",M=>{const E={},N=new ec,j=r.commands.get("heading"),K=r.commands.get("paragraph"),dt=[j];for(const me of u){const Ue={type:"button",model:new M4({label:me.title,class:me.class,role:"menuitemradio",withText:!0})};"paragraph"===me.model?(Ue.model.bind("isOn").to(K,"value"),Ue.model.set("commandName","paragraph"),dt.push(K)):(Ue.model.bind("isOn").to(j,"value",qe=>qe===me.model),Ue.model.set({commandName:"heading",commandValue:me.model})),N.add(Ue),E[me.model]=me.title}const Dt=Op(M);return t1(Dt,N,{ariaLabel:C,role:"menu"}),Dt.buttonView.set({ariaLabel:C,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:C}),Dt.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),Dt.bind("isEnabled").toMany(dt,"isEnabled",(...me)=>me.some(Ue=>Ue)),Dt.buttonView.bind("label").to(j,"value",K,"value",(me,Ue)=>{const qe=me||Ue&&"paragraph";return"boolean"==typeof qe?_:E[qe]?E[qe]:_}),this.listenTo(Dt,"execute",me=>{const{commandName:Ue,commandValue:qe}=me.source;r.execute(Ue,qe?{value:qe}:void 0),r.editing.view.focus()}),Dt})}}function Gx(m){return m.createContainerElement("figure",{class:"image"},[m.createEmptyElement("img"),m.createSlot("children")])}function dA(m,r){const c=m.plugins.get("ImageUtils"),u=m.plugins.has("ImageInlineEditing")&&m.plugins.has("ImageBlockEditing");return C=>c.isInlineImageView(C)?u&&("block"==C.getStyle("display")||C.findAncestor(c.isBlockImageView)?"imageBlock":"imageInline")!==r?null:function _(C){const M={name:!0};return C.hasAttribute("src")&&(M.attributes=["src"]),M}(C):null}function J4(m,r){const c=os(r.getSelectedBlocks());return!c||m.isObject(c)||c.isEmpty&&"listItem"!=c.name?"imageBlock":"imageInline"}function $0(m){return m&&m.endsWith("px")?parseInt(m):null}function rb(m){const r=$0(m.getStyle("width")),c=$0(m.getStyle("height"));return!(!r||!c)}var G4=Object.defineProperty,Qx=Object.getOwnPropertySymbols,K0=Object.prototype.hasOwnProperty,pA=Object.prototype.propertyIsEnumerable,sa=(m,r,c)=>r in m?G4(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Pd=(m,r)=>{for(var c in r||(r={}))K0.call(r,c)&&sa(m,c,r[c]);if(Qx)for(var c of Qx(r))pA.call(r,c)&&sa(m,c,r[c]);return m};const mA=/^(image|image-inline)$/;class Sd extends lo{constructor(){super(...arguments),this._domEmitter=new(Xi())}static get pluginName(){return"ImageUtils"}isImage(r){return this.isInlineImage(r)||this.isBlockImage(r)}isInlineImageView(r){return!!r&&r.is("element","img")}isBlockImageView(r){return!!r&&r.is("element","figure")&&r.hasClass("image")}insertImage(r={},c=null,u=null,_={}){const C=this.editor,M=C.model,E=M.document.selection;u=Wh(C,c||E,u),r=Pd(Pd({},Object.fromEntries(E.getAttributes())),r);for(const N in r)M.schema.checkAttribute(u,N)||delete r[N];return M.change(N=>{const{setImageSizes:j=!0}=_,K=N.createElement(u,r);return M.insertObject(K,c,null,{setSelection:"on",findOptimalPosition:c||"imageInline"==u?void 0:"auto"}),K.parent?(j&&this.setImageNaturalSizeAttributes(K),K):null})}setImageNaturalSizeAttributes(r){const c=r.getAttribute("src");c&&(r.getAttribute("width")||r.getAttribute("height")||this.editor.model.change(u=>{const _=new Lt.window.Image;this._domEmitter.listenTo(_,"load",()=>{r.getAttribute("width")||r.getAttribute("height")||this.editor.model.enqueueChange(u.batch,C=>{C.setAttribute("width",_.naturalWidth,r),C.setAttribute("height",_.naturalHeight,r)}),this._domEmitter.stopListening(_,"load")}),_.src=c}))}getClosestSelectedImageWidget(r){const c=r.getFirstPosition();if(!c)return null;const u=r.getSelectedElement();if(u&&this.isImageWidget(u))return u;let _=c.parent;for(;_;){if(_.is("element")&&this.isImageWidget(_))return _;_=_.parent}return null}getClosestSelectedImageElement(r){const c=r.getSelectedElement();return this.isImage(c)?c:r.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(r){return r.findAncestor({classes:mA})}isImageAllowed(){const r=this.editor.model.document.selection;return function(c,u){if("imageBlock"==Wh(c,u,null)){const C=function(M,E){const j=q4(M,E).start.parent;return j.isEmpty&&!j.is("element","$root")?j.parent:j}(u,c.model);if(c.model.schema.checkChild(C,"imageBlock"))return!0}else if(c.model.schema.checkChild(u.focus,"imageInline"))return!0;return!1}(this.editor,r)&&[...r.focus.getAncestors()].every(u=>!u.is("element","imageBlock"))}toImageWidget(r,c,u){return c.setCustomProperty("image",!0,r),ep(r,c,{label:()=>{const _=this.findViewImgElement(r).getAttribute("alt");return _?`${_} ${u}`:u}})}isImageWidget(r){return!!r.getCustomProperty("image")&&El(r)}isBlockImage(r){return!!r&&r.is("element","imageBlock")}isInlineImage(r){return!!r&&r.is("element","imageInline")}findViewImgElement(r){if(this.isInlineImageView(r))return r;const c=this.editor.editing.view;for(const{item:u}of c.createRangeIn(r))if(this.isInlineImageView(u))return u}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function Wh(m,r,c){const u=m.model.schema,_=m.config.get("image.insert.type");return m.plugins.has("ImageBlockEditing")?m.plugins.has("ImageInlineEditing")?c||("inline"===_?"imageInline":"block"===_?"imageBlock":r.is("selection")?J4(u,r):u.checkChild(r,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class sb extends Ua{refresh(){const r=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!r,this.value=!(!this.isEnabled||!r.hasAttribute("alt"))&&r.getAttribute("alt")}execute(r){const c=this.editor,u=c.plugins.get("ImageUtils"),_=c.model,C=u.getClosestSelectedImageElement(_.document.selection);_.change(M=>{M.setAttribute("alt",r.newValue,C)})}}class Wx extends lo{static get requires(){return[Sd]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new sb(this.editor))}}var $x=v(1905);Fo()($x.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var X0=v(6764);Fo()(X0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Kx extends oa{constructor(r){super(r);const c=this.locale.t;this.focusTracker=new as,this.keystrokes=new $c,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(c("Save"),hs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(c("Cancel"),hs.cancel,"ck-button-cancel","cancel"),this._focusables=new Ia,this._focusCycler=new dl({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),x({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(r,c,u,_){const C=new $o(this.locale);return C.set({label:r,icon:c,tooltip:!0}),C.extendTemplate({attributes:{class:u}}),_&&C.delegate("execute").to(this,_),C}_createLabeledInputView(){const r=this.locale.t,c=new Sr(this.locale,uf);return c.label=r("Text alternative"),c}}function cb(m){const r=m.editing.view,c=id.defaultPositions,u=m.plugins.get("ImageUtils");return{target:r.domConverter.mapViewToDom(u.getClosestSelectedImageWidget(r.document.selection)),positions:[c.northArrowSouth,c.northArrowSouthWest,c.northArrowSouthEast,c.southArrowNorth,c.southArrowNorthWest,c.southArrowNorthEast,c.viewportStickyNorth]}}class Xx extends lo{static get requires(){return[q0]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const r=this.editor,c=r.t;r.ui.componentFactory.add("imageTextAlternative",u=>{const _=r.commands.get("imageTextAlternative"),C=new $o(u);return C.set({label:c("Change image text alternative"),icon:hs.lowVision,tooltip:!0}),C.bind("isEnabled").to(_,"isEnabled"),C.bind("isOn").to(_,"value",M=>!!M),this.listenTo(C,"execute",()=>{this._showForm()}),C})}_createForm(){const r=this.editor,c=r.editing.view.document,u=r.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(A(Kx))(r.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{r.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(_,C)=>{this._hideForm(!0),C()}),this.listenTo(r.ui,"update",()=>{u.getClosestSelectedImageWidget(c.selection)?this._isVisible&&function(_){const C=_.plugins.get("ContextualBalloon");if(_.plugins.get("ImageUtils").getClosestSelectedImageWidget(_.editing.view.document.selection)){const M=cb(_);C.updatePosition(M)}}(r):this._hideForm(!0)}),t({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const r=this.editor,c=r.commands.get("imageTextAlternative"),u=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:cb(r)}),u.fieldView.value=u.fieldView.element.value=c.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(r=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),r&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class Q4 extends lo{static get requires(){return[Wx,Xx]}static get pluginName(){return"ImageTextAlternative"}}function W4(m,r){const c=(u,_,C)=>{if(!C.consumable.consume(_.item,u.name))return;const M=C.writer,E=C.mapper.toViewElement(_.item),N=m.findViewImgElement(E);null===_.attributeNewValue?(M.removeAttribute("srcset",N),M.removeAttribute("sizes",N)):_.attributeNewValue&&(M.setAttribute("srcset",_.attributeNewValue,N),M.setAttribute("sizes","100vw",N))};return u=>{u.on(`attribute:srcset:${r}`,c)}}function $4(m,r,c){const u=(_,C,M)=>{if(!M.consumable.consume(C.item,_.name))return;const E=M.writer,N=M.mapper.toViewElement(C.item),j=m.findViewImgElement(N);E.setAttribute(C.attributeKey,C.attributeNewValue||"",j)};return _=>{_.on(`attribute:${c}:${r}`,u)}}class fA extends Qu{observe(r){this.listenTo(r,"load",(c,u)=>{const _=u.target;this.checkShouldIgnoreEventFromTarget(_)||"IMG"==_.tagName&&this._fireEvents(u)},{useCapture:!0})}stopObserving(r){this.stopListening(r)}_fireEvents(r){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",r))}}var ay=Object.defineProperty,t3=Object.getOwnPropertySymbols,lb=Object.prototype.hasOwnProperty,ub=Object.prototype.propertyIsEnumerable,K4=(m,r,c)=>r in m?ay(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Kh=(m,r)=>{for(var c in r||(r={}))lb.call(r,c)&&K4(m,c,r[c]);if(t3)for(var c of t3(r))ub.call(r,c)&&K4(m,c,r[c]);return m};class db extends Ua{constructor(r){super(r);const c=r.config.get("image.insert.type");r.plugins.has("ImageBlockEditing")||"block"===c&&Zt("image-block-plugin-required"),r.plugins.has("ImageInlineEditing")||"inline"===c&&Zt("image-inline-plugin-required")}refresh(){const r=this.editor.plugins.get("ImageUtils");this.isEnabled=r.isImageAllowed()}execute(r){const c=Ss(r.source),u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageUtils"),C=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const N=u.getSelectedElement();if("string"==typeof M&&(M={src:M}),E&&N&&_.isImage(N)){const j=this.editor.model.createPositionAfter(N);_.insertImage(Kh(Kh({},M),C),j)}else _.insertImage(Kh(Kh({},M),C))})}}class hA extends Ua{refresh(){const r=this.editor.plugins.get("ImageUtils"),c=this.editor.model.document.selection.getSelectedElement();this.isEnabled=r.isImage(c),this.value=this.isEnabled?c.getAttribute("src"):null}execute(r){const c=this.editor.model.document.selection.getSelectedElement();this.editor.model.change(u=>{u.setAttribute("src",r.source,c),u.removeAttribute("srcset",c),u.removeAttribute("sizes",c)})}}class pb extends lo{static get requires(){return[Sd]}static get pluginName(){return"ImageEditing"}init(){const r=this.editor,c=r.conversion;r.editing.view.addObserver(fA),c.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const u=new db(r),_=new hA(r);r.commands.add("insertImage",u),r.commands.add("replaceImageSource",_),r.commands.add("imageInsert",u)}}class mb extends lo{static get requires(){return[Sd]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(r){const c=this.editor,u=c.plugins.get("ImageUtils"),_="imageBlock"===r?"figure":"img";function C(M,E,N,j){M.on(`attribute:${E}:${r}`,(K,dt,Dt)=>{if(!Dt.consumable.consume(dt.item,K.name))return;const me=Dt.writer,Ue=Dt.mapper.toViewElement(dt.item),qe=u.findViewImgElement(Ue);if(null!==dt.attributeNewValue?me.setAttribute(N,dt.attributeNewValue,qe):me.removeAttribute(N,qe),dt.item.hasAttribute("sources"))return;const pn=dt.item.hasAttribute("resizedWidth");if("imageInline"===r&&!pn&&!j)return;const Ln=dt.item.getAttribute("width"),pi=dt.item.getAttribute("height"),Ri=qe.getStyle("aspect-ratio");Ln&&pi&&!Ri&&me.setStyle("aspect-ratio",`${Ln}/${pi}`,qe)})}c.conversion.for("upcast").attributeToAttribute({view:{name:_,styles:{width:/.+/}},model:{key:"width",value:M=>rb(M)?$0(M.getStyle("width")):null}}).attributeToAttribute({view:{name:_,key:"width"},model:"width"}).attributeToAttribute({view:{name:_,styles:{height:/.+/}},model:{key:"height",value:M=>rb(M)?$0(M.getStyle("height")):null}}).attributeToAttribute({view:{name:_,key:"height"},model:"height"}),c.conversion.for("editingDowncast").add(M=>{C(M,"width","width",!0),C(M,"height","height",!0)}),c.conversion.for("dataDowncast").add(M=>{C(M,"width","width",!1),C(M,"height","height",!1)})}}class _b extends Ua{constructor(r,c){super(r),this._modelElementName=c}refresh(){const r=this.editor.plugins.get("ImageUtils"),c=r.getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled="imageBlock"===this._modelElementName?r.isInlineImage(c):r.isBlockImage(c)}execute(r={}){const u=this.editor.model,_=this.editor.plugins.get("ImageUtils"),C=_.getClosestSelectedImageElement(u.document.selection),M=Object.fromEntries(C.getAttributes());return M.src||M.uploadId?u.change(E=>{const{setImageSizes:N=!0}=r,j=Array.from(u.markers).filter(Dt=>Dt.getRange().containsItem(C)),K=_.insertImage(M,u.createSelection(C,"on"),this._modelElementName,{setImageSizes:N});if(!K)return null;const dt=E.createRangeOn(K);for(const Dt of j){const me=Dt.getRange(),Ue="$graveyard"!=me.root.rootName?me.getJoined(dt,!0):dt;E.updateMarker(Dt,{range:Ue})}return{oldElement:C,newElement:K}}):null}}class e3 extends lo{static get requires(){return[pb,mb,Sd,Np]}static get pluginName(){return"ImageBlockEditing"}init(){const r=this.editor;r.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),r.plugins.has("ImageInlineEditing")&&(r.commands.add("imageTypeBlock",new _b(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const r=this.editor,c=r.t,u=r.conversion,_=r.plugins.get("ImageUtils");u.for("dataDowncast").elementToStructure({model:"imageBlock",view:(C,{writer:M})=>Gx(M)}),u.for("editingDowncast").elementToStructure({model:"imageBlock",view:(C,{writer:M})=>_.toImageWidget(Gx(M),M,c("image widget"))}),u.for("downcast").add($4(_,"imageBlock","src")).add($4(_,"imageBlock","alt")).add(W4(_,"imageBlock")),u.for("upcast").elementToElement({view:dA(r,"imageBlock"),model:(C,{writer:M})=>M.createElement("imageBlock",C.hasAttribute("src")?{src:C.getAttribute("src")}:void 0)}).add(function(C){const M=(E,N,j)=>{if(!j.consumable.test(N.viewItem,{name:!0,classes:"image"}))return;const K=C.findViewImgElement(N.viewItem);if(!K||!j.consumable.test(K,{name:!0}))return;j.consumable.consume(N.viewItem,{name:!0,classes:"image"});const dt=os(j.convertItem(K,N.modelCursor).modelRange.getItems());dt?(j.convertChildren(N.viewItem,dt),j.updateConversionResult(dt,N)):j.consumable.revert(N.viewItem,{name:!0,classes:"image"})};return E=>{E.on("element:figure",M)}}(_))}_setupClipboardIntegration(){const r=this.editor,c=r.model,u=r.editing.view,_=r.plugins.get("ImageUtils"),C=r.plugins.get("ClipboardPipeline");this.listenTo(C,"inputTransformation",(M,E)=>{const N=Array.from(E.content.getChildren());let j;if(!N.every(_.isInlineImageView))return;j=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const K=c.createSelection(j);if("imageBlock"===J4(c.schema,K)){const dt=new W1(u.document),Dt=N.map(me=>dt.createElement("figure",{class:"image"},me));E.content=dt.createDocumentFragment(Dt)}}),this.listenTo(C,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(N=>{const j=N.createRangeIn(E.content);for(const K of j.getItems())K.is("element","imageBlock")&&_.setImageNaturalSizeAttributes(K)})})}}var X4=v(3508);Fo()(X4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class tC extends lo{static get requires(){return[e3,j0,Q4]}static get pluginName(){return"ImageBlock"}}class eC extends lo{static get requires(){return[pb,mb,Sd,Np]}static get pluginName(){return"ImageInlineEditing"}init(){const r=this.editor,c=r.model.schema;c.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),c.addChildCheck((u,_)=>{if(u.endsWith("caption")&&"imageInline"===_.name)return!1}),this._setupConversion(),r.plugins.has("ImageBlockEditing")&&(r.commands.add("imageTypeInline",new _b(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const r=this.editor,c=r.t,u=r.conversion,_=r.plugins.get("ImageUtils");u.for("dataDowncast").elementToElement({model:"imageInline",view:(C,{writer:M})=>M.createEmptyElement("img")}),u.for("editingDowncast").elementToStructure({model:"imageInline",view:(C,{writer:M})=>{return _.toImageWidget((E=M).createContainerElement("span",{class:"image-inline"},E.createEmptyElement("img")),M,c("image widget"));var E}}),u.for("downcast").add($4(_,"imageInline","src")).add($4(_,"imageInline","alt")).add(W4(_,"imageInline")),u.for("upcast").elementToElement({view:dA(r,"imageInline"),model:(C,{writer:M})=>M.createElement("imageInline",C.hasAttribute("src")?{src:C.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const r=this.editor,c=r.model,u=r.editing.view,_=r.plugins.get("ImageUtils"),C=r.plugins.get("ClipboardPipeline");this.listenTo(C,"inputTransformation",(M,E)=>{const N=Array.from(E.content.getChildren());let j;if(!N.every(_.isBlockImageView))return;j=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const K=c.createSelection(j);if("imageInline"===J4(c.schema,K)){const dt=new W1(u.document),Dt=N.map(me=>1===me.childCount?(Array.from(me.getAttributes()).forEach(Ue=>dt.setAttribute(...Ue,_.findViewImgElement(me))),me.getChild(0)):me);E.content=dt.createDocumentFragment(Dt)}}),this.listenTo(C,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(N=>{const j=N.createRangeIn(E.content);for(const K of j.getItems())K.is("element","imageInline")&&_.setImageNaturalSizeAttributes(K)})})}}class gA extends lo{static get requires(){return[eC,j0,Q4]}static get pluginName(){return"ImageInline"}}class n3 extends lo{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Sd]}getCaptionFromImageModelElement(r){for(const c of r.getChildren())if(c&&c.is("element","caption"))return c;return null}getCaptionFromModelSelection(r){const c=this.editor.plugins.get("ImageUtils"),u=r.getFirstPosition().findAncestor("caption");return u&&c.isBlockImage(u.parent)?u:null}matchImageCaptionViewElement(r){const c=this.editor.plugins.get("ImageUtils");return"figcaption"==r.name&&c.isBlockImageView(r.parent)?{name:!0}:null}}class nC extends Ua{refresh(){const r=this.editor,c=r.plugins.get("ImageCaptionUtils"),u=r.plugins.get("ImageUtils");if(!r.plugins.has(e3))return this.isEnabled=!1,void(this.value=!1);const _=r.model.document.selection,C=_.getSelectedElement();if(!C){const M=c.getCaptionFromModelSelection(_);return this.isEnabled=!!M,void(this.value=!!M)}this.isEnabled=u.isImage(C),this.value=!!this.isEnabled&&!!c.getCaptionFromImageModelElement(C)}execute(r={}){const{focusCaptionOnShow:c}=r;this.editor.model.change(u=>{this.value?this._hideImageCaption(u):this._showImageCaption(u,c)})}_showImageCaption(r,c){const u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageCaptionEditing"),C=this.editor.plugins.get("ImageUtils");let M=u.getSelectedElement();const E=_._getSavedCaption(M);C.isInlineImage(M)&&(this.editor.execute("imageTypeBlock"),M=u.getSelectedElement());const N=E||r.createElement("caption");r.append(N,M),c&&r.setSelection(N,"in")}_hideImageCaption(r){const c=this.editor,u=c.model.document.selection,_=c.plugins.get("ImageCaptionEditing"),C=c.plugins.get("ImageCaptionUtils");let M,E=u.getSelectedElement();E?M=C.getCaptionFromImageModelElement(E):(M=C.getCaptionFromModelSelection(u),E=M.parent),_._saveCaption(E,M),r.setSelection(E,"on"),r.remove(M)}}class bA extends lo{constructor(r){super(r),this._savedCaptionsMap=new WeakMap}static get requires(){return[Sd,n3]}static get pluginName(){return"ImageCaptionEditing"}init(){const r=this.editor,c=r.model.schema;c.isRegistered("caption")?c.extend("caption",{allowIn:"imageBlock"}):c.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),r.commands.add("toggleImageCaption",new nC(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const r=this.editor,c=r.editing.view,u=r.plugins.get("ImageUtils"),_=r.plugins.get("ImageCaptionUtils"),C=r.t;r.conversion.for("upcast").elementToElement({view:M=>_.matchImageCaptionViewElement(M),model:"caption"}),r.conversion.for("dataDowncast").elementToElement({model:"caption",view:(M,{writer:E})=>u.isBlockImage(M.parent)?E.createContainerElement("figcaption"):null}),r.conversion.for("editingDowncast").elementToElement({model:"caption",view:(M,{writer:E})=>{if(!u.isBlockImage(M.parent))return null;const N=E.createEditableElement("figcaption");E.setCustomProperty("imageCaption",!0,N),N.placeholder=C("Enter image caption"),B({view:c,element:N,keepOnFocus:!0});const j=M.parent.getAttribute("alt");return S5(N,E,{label:j?C("Caption for image: %0",[j]):C("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const r=this.editor,c=r.plugins.get("ImageUtils"),u=r.plugins.get("ImageCaptionUtils"),_=r.commands.get("imageTypeInline"),C=r.commands.get("imageTypeBlock"),M=E=>{if(!E.return)return;const{oldElement:N,newElement:j}=E.return;if(!N)return;if(c.isBlockImage(N)){const dt=u.getCaptionFromImageModelElement(N);if(dt)return void this._saveCaption(j,dt)}const K=this._getSavedCaption(N);K&&this._saveCaption(j,K)};_&&this.listenTo(_,"execute",M,{priority:"low"}),C&&this.listenTo(C,"execute",M,{priority:"low"})}_getSavedCaption(r){const c=this._savedCaptionsMap.get(r);return c?Jr.fromJSON(c):null}_saveCaption(r,c){this._savedCaptionsMap.set(r,c.toJSON())}_registerCaptionReconversion(){const r=this.editor,c=r.model,u=r.plugins.get("ImageUtils"),_=r.plugins.get("ImageCaptionUtils");c.document.on("change:data",()=>{const C=c.document.differ.getChanges();for(const M of C){if("alt"!==M.attributeKey)continue;const E=M.range.start.nodeAfter;if(u.isBlockImage(E)){const N=_.getCaptionFromImageModelElement(E);if(!N)return;r.editing.reconvertItem(N)}}})}}class hb extends lo{static get requires(){return[n3]}static get pluginName(){return"ImageCaptionUI"}init(){const r=this.editor,c=r.editing.view,u=r.plugins.get("ImageCaptionUtils"),_=r.t;r.ui.componentFactory.add("toggleImageCaption",C=>{const M=r.commands.get("toggleImageCaption"),E=new $o(C);return E.set({icon:hs.caption,tooltip:!0,isToggleable:!0}),E.bind("isOn","isEnabled").to(M,"value","isEnabled"),E.bind("label").to(M,"value",N=>_(N?"Toggle caption off":"Toggle caption on")),this.listenTo(E,"execute",()=>{r.execute("toggleImageCaption",{focusCaptionOnShow:!0});const N=u.getCaptionFromModelSelection(r.model.document.selection);if(N){const j=r.editing.mapper.toViewElement(N);c.scrollToTheSelection(),c.change(K=>{K.addClass("image__caption_highlighted",j)})}r.editing.view.focus()}),E})}}var gb=v(2640);function Af(m){const r=m.map(c=>c.replace("+","\\+"));return new RegExp(`^image\\/(${r.join("|")})$`)}function vA(m){return new Promise((r,c)=>{const u=m.getAttribute("src");fetch(u).then(_=>_.blob()).then(_=>{const C=iC(_,u),M=C.replace("image/",""),E=new File([_],`image.${M}`,{type:C});r(E)}).catch(_=>{return _&&"TypeError"===_.name?(C=u,(M=C,new Promise((E,N)=>{const j=Lt.document.createElement("img");j.addEventListener("load",()=>{const K=Lt.document.createElement("canvas");K.width=j.width,K.height=j.height,K.getContext("2d").drawImage(j,0,0),K.toBlob(dt=>dt?E(dt):N())}),j.addEventListener("error",()=>N()),j.src=M})).then(M=>{const E=iC(M,C),N=E.replace("image/","");return new File([M],`image.${N}`,{type:E})})).then(r).catch(c):c(_);var C,M})})}function iC(m,r){return m.type?m.type:r.match(/data:(image\/\w+);base64/)?r.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}Fo()(gb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class bb extends lo{static get pluginName(){return"ImageUploadUI"}init(){const r=this.editor,c=r.t,u=_=>{const C=new Ox(_),M=r.commands.get("uploadImage"),E=r.config.get("image.upload.types"),N=Af(E);return C.set({acceptedType:E.map(j=>`image/${j}`).join(","),allowMultipleFiles:!0}),C.buttonView.set({label:c("Insert image"),icon:hs.image,tooltip:!0}),C.buttonView.bind("isEnabled").to(M),C.on("done",(j,K)=>{const dt=Array.from(K).filter(Dt=>N.test(Dt.type));dt.length&&(r.execute("uploadImage",{file:dt}),r.editing.view.focus())}),C};r.ui.componentFactory.add("uploadImage",u),r.ui.componentFactory.add("imageUpload",u)}}var xA=v(3689);Fo()(xA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var vb=v(4036);Fo()(vb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var xb=v(3773);Fo()(xb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class CA extends lo{constructor(r){super(r),this.uploadStatusChange=(c,u,_)=>{const C=this.editor,M=u.item,E=M.getAttribute("uploadId");if(!_.consumable.consume(u.item,c.name))return;const N=C.plugins.get("ImageUtils"),j=C.plugins.get(ip),K=E?u.attributeNewValue:null,dt=this.placeholder,Dt=C.editing.mapper.toViewElement(M),me=_.writer;if("reading"==K)return Cb(Dt,me),void aC(N,dt,Dt,me);if("uploading"==K){const Ue=j.loaders.get(E);return Cb(Dt,me),void(Ue?(rC(Dt,me),function(qe,pn,Ln,pi){const Ri=function(Go){const ka=Go.createUIElement("div",{class:"ck-progress-bar"});return Go.setCustomProperty("progressBar",!0,ka),ka}(pn);pn.insert(pn.createPositionAt(qe,"end"),Ri),Ln.on("change:uploadedPercent",(Go,ka,Ts)=>{pi.change($r=>{$r.setStyle("width",Ts+"%",Ri)})})}(Dt,me,Ue,C.editing.view),function(qe,pn,Ln,pi){if(pi.data){const Ri=qe.findViewImgElement(pn);Ln.setAttribute("src",pi.data,Ri)}}(N,Dt,me,Ue)):aC(N,dt,Dt,me))}"complete"==K&&j.loaders.get(E)&&function(Ue,qe,pn){const Ln=qe.createUIElement("div",{class:"ck-image-upload-complete-icon"});qe.insert(qe.createPositionAt(Ue,"end"),Ln),setTimeout(()=>{pn.change(pi=>pi.remove(pi.createRangeOn(Ln)))},3e3)}(Dt,me,C.editing.view),i3(Dt,me,"progressBar"),rC(Dt,me),me.removeClass("ck-appear",Dt)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}init(){const r=this.editor;r.plugins.has("ImageBlockEditing")&&r.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),r.plugins.has("ImageInlineEditing")&&r.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function Cb(m,r){m.hasClass("ck-appear")||r.addClass("ck-appear",m)}function aC(m,r,c,u){c.hasClass("ck-image-upload-placeholder")||u.addClass("ck-image-upload-placeholder",c);const _=m.findViewImgElement(c);_.getAttribute("src")!==r&&u.setAttribute("src",r,_),sC(c,"placeholder")||u.insert(u.createPositionAfter(_),function(C){const M=C.createUIElement("div",{class:"ck-upload-placeholder-loader"});return C.setCustomProperty("placeholder",!0,M),M}(u))}function rC(m,r){m.hasClass("ck-image-upload-placeholder")&&r.removeClass("ck-image-upload-placeholder",m),i3(m,r,"placeholder")}function sC(m,r){for(const c of m.getChildren())if(c.getCustomProperty(r))return c}function i3(m,r,c){const u=sC(m,c);u&&r.remove(r.createRangeOn(u))}var cC=Object.defineProperty,lC=Object.defineProperties,e6=Object.getOwnPropertyDescriptors,n6=Object.getOwnPropertySymbols,ry=Object.prototype.hasOwnProperty,Ab=Object.prototype.propertyIsEnumerable,uC=(m,r,c)=>r in m?cC(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class dC extends Ua{refresh(){const r=this.editor,c=r.plugins.get("ImageUtils"),u=r.model.document.selection.getSelectedElement();this.isEnabled=c.isImageAllowed()||c.isImage(u)}execute(r){const c=Ss(r.file),u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageUtils"),C=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const N=u.getSelectedElement();if(E&&N&&_.isImage(N)){const j=this.editor.model.createPositionAfter(N);this._uploadImage(M,C,j)}else this._uploadImage(M,C)})}_uploadImage(r,c,u){const _=this.editor,C=_.plugins.get(ip).createLoader(r),M=_.plugins.get("ImageUtils");var E;C&&M.insertImage((E=((j,K)=>{for(var dt in K||(K={}))ry.call(K,dt)&&uC(j,dt,K[dt]);if(n6)for(var dt of n6(K))Ab.call(K,dt)&&uC(j,dt,K[dt]);return j})({},c),lC(E,e6({uploadId:C.id}))),u)}}class yf extends lo{constructor(r){super(r),r.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}static get requires(){return[ip,u2,Np,Sd]}static get pluginName(){return"ImageUploadEditing"}init(){const r=this.editor,c=r.model.document,u=r.conversion,_=r.plugins.get(ip),C=r.plugins.get("ImageUtils"),M=r.plugins.get("ClipboardPipeline"),E=Af(r.config.get("image.upload.types")),N=new dC(r);r.commands.add("uploadImage",N),r.commands.add("imageUpload",N),u.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(r.editing.view.document,"clipboardInput",(j,K)=>{if(dt=K.dataTransfer,Array.from(dt.types).includes("text/html")&&""!==dt.getData("text/html"))return;var dt;const Dt=Array.from(K.dataTransfer.files).filter(me=>!!me&&E.test(me.type));Dt.length&&(j.stop(),r.model.change(me=>{K.targetRanges&&me.setSelection(K.targetRanges.map(Ue=>r.editing.mapper.toModelRange(Ue))),r.execute("uploadImage",{file:Dt})}))}),this.listenTo(M,"inputTransformation",(j,K)=>{const dt=Array.from(r.editing.view.createRangeIn(K.content)).map(me=>me.item).filter(me=>{return!(!C.isInlineImageView(qe=me)||!qe.getAttribute("src")||!qe.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!qe.getAttribute("src").match(/^blob:/g)||me.getAttribute("uploadProcessed"));var qe}).map(me=>({promise:vA(me),imageElement:me}));if(!dt.length)return;const Dt=new W1(r.editing.view.document);for(const me of dt){Dt.setAttribute("uploadProcessed",!0,me.imageElement);const Ue=_.createLoader(me.promise);Ue&&(Dt.setAttribute("src","",me.imageElement),Dt.setAttribute("uploadId",Ue.id,me.imageElement))}}),r.editing.view.document.on("dragover",(j,K)=>{K.preventDefault()}),c.on("change",()=>{const j=c.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),K=new Set;for(const dt of j)if("insert"==dt.type&&"$text"!=dt.name){const Dt=dt.position.nodeAfter,me="$graveyard"==dt.position.root.rootName;for(const Ue of AA(r,Dt)){const qe=Ue.getAttribute("uploadId");if(!qe)continue;const pn=_.loaders.get(qe);pn&&(me?K.has(qe)||pn.abort():(K.add(qe),this._uploadImageElements.set(qe,Ue),"idle"==pn.status&&this._readAndUpload(pn)))}}}),this.on("uploadComplete",(j,{imageElement:K,data:dt})=>{const Dt=dt.urls?dt.urls:dt;this.editor.model.change(me=>{me.setAttribute("src",Dt.default,K),this._parseAndSetSrcsetAttributeOnImage(Dt,K,me),C.setImageNaturalSizeAttributes(K)})},{priority:"low"})}afterInit(){const r=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&r.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&r.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(r){const c=this.editor,u=c.model,_=c.locale.t,C=c.plugins.get(ip),M=c.plugins.get(u2),E=c.plugins.get("ImageUtils"),N=this._uploadImageElements;return u.enqueueChange({isUndoable:!1},K=>{K.setAttribute("uploadStatus","reading",N.get(r.id))}),r.read().then(()=>{const K=r.upload(),dt=N.get(r.id);if(D_isSafari){const Dt=c.editing.mapper.toViewElement(dt),me=E.findViewImgElement(Dt);c.editing.view.once("render",()=>{if(!me.parent)return;const Ue=c.editing.view.domConverter.mapViewToDom(me.parent);if(!Ue)return;const qe=Ue.style.display;Ue.style.display="none",Ue._ckHack=Ue.offsetHeight,Ue.style.display=qe})}return u.enqueueChange({isUndoable:!1},Dt=>{Dt.setAttribute("uploadStatus","uploading",dt)}),K}).then(K=>{u.enqueueChange({isUndoable:!1},dt=>{const Dt=N.get(r.id);dt.setAttribute("uploadStatus","complete",Dt),this.fire("uploadComplete",{data:K,imageElement:Dt})}),j()}).catch(K=>{if("error"!==r.status&&"aborted"!==r.status)throw K;"error"==r.status&&K&&M.showWarning(K,{title:_("Upload failed"),namespace:"upload"}),u.enqueueChange({isUndoable:!1},dt=>{dt.remove(N.get(r.id))}),j()});function j(){u.enqueueChange({isUndoable:!1},K=>{const dt=N.get(r.id);K.removeAttribute("uploadId",dt),K.removeAttribute("uploadStatus",dt),N.delete(r.id)}),C.destroyLoader(r)}}_parseAndSetSrcsetAttributeOnImage(r,c,u){let _=0;const C=Object.keys(r).filter(M=>{const E=parseInt(M,10);if(!isNaN(E))return _=Math.max(_,E),!0}).map(M=>`${r[M]} ${M}w`).join(", ");if(""!=C){const M={srcset:C};c.hasAttribute("width")||c.hasAttribute("height")||(M.width=_),u.setAttributes(M,c)}}}function AA(m,r){const c=m.plugins.get("ImageUtils");return Array.from(m.model.createRangeOn(r)).filter(u=>c.isImage(u.item)).map(u=>u.item)}var o3=v(1568);Fo()(o3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var pC=v(3535);Fo()(pC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var yA=v(6270);Fo()(yA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class wA extends Ua{constructor(r,c){super(r),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(c.map(u=>{if(u.isDefault)for(const _ of u.modelElements)this._defaultStyles[_]=u.name;return[u.name,u]}))}refresh(){const r=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!r,this.value=!!this.isEnabled&&(r.hasAttribute("imageStyle")?r.getAttribute("imageStyle"):this._defaultStyles[r.name])}execute(r={}){const c=this.editor,u=c.model,_=c.plugins.get("ImageUtils");u.change(C=>{const M=r.value,{setImageSizes:E=!0}=r;let N=_.getClosestSelectedImageElement(u.document.selection);M&&this.shouldConvertImageType(M,N)&&(this.editor.execute(_.isBlockImage(N)?"imageTypeInline":"imageTypeBlock",{setImageSizes:E}),N=_.getClosestSelectedImageElement(u.document.selection)),!M||this._styles.get(M).isDefault?C.removeAttribute("imageStyle",N):C.setAttribute("imageStyle",M,N),E&&_.setImageNaturalSizeAttributes(N)})}shouldConvertImageType(r,c){return!this._styles.get(r).modelElements.includes(c.name)}}var UA=Object.defineProperty,Tb=Object.getOwnPropertySymbols,wb=Object.prototype.hasOwnProperty,ZA=Object.prototype.propertyIsEnumerable,i6=(m,r,c)=>r in m?UA(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Ub=(m,r)=>{for(var c in r||(r={}))wb.call(r,c)&&i6(m,c,r[c]);if(Tb)for(var c of Tb(r))ZA.call(r,c)&&i6(m,c,r[c]);return m};const{objectFullWidth:o6,objectInline:mC,objectLeft:Zb,objectRight:Mb,objectCenter:a3,objectBlockLeft:kb,objectBlockRight:Db}=hs,tg={get inline(){return{name:"inline",title:"In line",icon:mC,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:Zb,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:kb,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:a3,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:Mb,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Db,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:a3,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:Mb,modelElements:["imageBlock"],className:"image-style-side"}}},Pb={full:o6,left:kb,right:Db,center:a3,inlineLeft:Zb,inlineRight:Mb,inline:mC},_C=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function MA(m){Zt("image-style-configuration-definition-invalid",m)}const r3={normalizeStyles:function(m){return(m.configuredStyles.options||[]).map(r=>{return"string"==typeof(c="string"==typeof(c=r)?tg[c]?Ub({},tg[c]):{name:c}:function(u,_){const C=Ub({},_);for(const M in u)Object.prototype.hasOwnProperty.call(_,M)||(C[M]=u[M]);return C}(tg[c.name],c)).icon&&(c.icon=Pb[c.icon]||c.icon),c;var c}).filter(r=>function(c,{isBlockPluginLoaded:u,isInlinePluginLoaded:_}){const{modelElements:C,name:M}=c;if(!(C&&C.length&&M))return MA({style:c}),!1;{const E=[u?"imageBlock":null,_?"imageInline":null];if(!C.some(N=>E.includes(N)))return Zt("image-style-missing-dependency",{style:c,missingPlugins:C.map(N=>"imageBlock"===N?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}(r,m))},getDefaultStylesConfiguration:function(m,r){return m&&r?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:m?{options:["block","side"]}:r?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(m){return m.has("ImageBlockEditing")&&m.has("ImageInlineEditing")?[..._C]:[]},warnInvalidStyle:MA,DEFAULT_OPTIONS:tg,DEFAULT_ICONS:Pb,DEFAULT_DROPDOWN_DEFINITIONS:_C};function kA(m,r){for(const c of r)if(c.name===m)return c}class fC extends lo{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Sd]}init(){const{normalizeStyles:r,getDefaultStylesConfiguration:c}=r3,u=this.editor,_=u.plugins.has("ImageBlockEditing"),C=u.plugins.has("ImageInlineEditing");u.config.define("image.styles",c(_,C)),this.normalizedStyles=r({configuredStyles:u.config.get("image.styles"),isBlockPluginLoaded:_,isInlinePluginLoaded:C}),this._setupConversion(_,C),this._setupPostFixer(),u.commands.add("imageStyle",new wA(u,this.normalizedStyles))}_setupConversion(r,c){const u=this.editor,_=u.model.schema,C=(M=this.normalizedStyles,(N,j,K)=>{if(!K.consumable.consume(j.item,N.name))return;const dt=kA(j.attributeNewValue,M),Dt=kA(j.attributeOldValue,M),me=K.mapper.toViewElement(j.item),Ue=K.writer;Dt&&Ue.removeClass(Dt.className,me),dt&&Ue.addClass(dt.className,me)});var M;const E=function(N){const j={imageInline:N.filter(K=>!K.isDefault&&K.modelElements.includes("imageInline")),imageBlock:N.filter(K=>!K.isDefault&&K.modelElements.includes("imageBlock"))};return(K,dt,Dt)=>{if(!dt.modelRange)return;const me=dt.viewItem,Ue=os(dt.modelRange.getItems());if(Ue&&Dt.schema.checkAttribute(Ue,"imageStyle"))for(const qe of j[Ue.name])Dt.consumable.consume(me,{classes:qe.className})&&Dt.writer.setAttribute("imageStyle",qe.name,Ue)}}(this.normalizedStyles);u.editing.downcastDispatcher.on("attribute:imageStyle",C),u.data.downcastDispatcher.on("attribute:imageStyle",C),r&&(_.extend("imageBlock",{allowAttributes:"imageStyle"}),u.data.upcastDispatcher.on("element:figure",E,{priority:"low"})),c&&(_.extend("imageInline",{allowAttributes:"imageStyle"}),u.data.upcastDispatcher.on("element:img",E,{priority:"low"}))}_setupPostFixer(){const r=this.editor,c=r.model.document,u=r.plugins.get(Sd),_=new Map(this.normalizedStyles.map(C=>[C.name,C]));c.registerPostFixer(C=>{let M=!1;for(const E of c.differ.getChanges())if("insert"==E.type||"attribute"==E.type&&"imageStyle"==E.attributeKey){let N="insert"==E.type?E.position.nodeAfter:E.range.start.nodeAfter;if(N&&N.is("element","paragraph")&&N.childCount>0&&(N=N.getChild(0)),!u.isImage(N))continue;const j=N.getAttribute("imageStyle");if(!j)continue;const K=_.get(j);K&&K.modelElements.includes(N.name)||(C.removeAttribute("imageStyle",N),M=!0)}return M})}}var DA=v(5083);Fo()(DA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class cy extends lo{static get requires(){return[fC]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const r=this.editor.t;return{"Wrap text":r("Wrap text"),"Break text":r("Break text"),"In line":r("In line"),"Full size image":r("Full size image"),"Side image":r("Side image"),"Left aligned image":r("Left aligned image"),"Centered image":r("Centered image"),"Right aligned image":r("Right aligned image")}}init(){const r=this.editor.plugins,c=this.editor.config.get("image.toolbar")||[],u=PA(r.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const C of u)this._createButton(C);const _=PA([...c.filter(Kt),...r3.getDefaultDropdownDefinitions(r)],this.localizedDefaultStylesTitles);for(const C of _)this._createDropdown(C,u)}_createDropdown(r,c){const u=this.editor.ui.componentFactory;u.add(r.name,_=>{let C;const{defaultItem:M,items:E,title:N}=r,j=E.filter(me=>c.find(({name:Ue})=>SA(Ue)===me)).map(me=>{const Ue=u.create(me);return me===M&&(C=Ue),Ue});E.length!==j.length&&r3.warnInvalidStyle({dropdown:r});const K=Op(_,m4),dt=K.buttonView,Dt=dt.arrowView;return e_(K,j,{enableActiveItemFocusOnDropdownOpen:!0}),dt.set({label:LA(N,C.label),class:null,tooltip:!0}),Dt.unbind("label"),Dt.set({label:N}),dt.bind("icon").toMany(j,"isOn",(...me)=>{const Ue=me.findIndex(ku);return Ue<0?C.icon:j[Ue].icon}),dt.bind("label").toMany(j,"isOn",(...me)=>{const Ue=me.findIndex(ku);return LA(N,Ue<0?C.label:j[Ue].label)}),dt.bind("isOn").toMany(j,"isOn",(...me)=>me.some(ku)),dt.bind("class").toMany(j,"isOn",(...me)=>me.some(ku)?"ck-splitbutton_flatten":void 0),dt.on("execute",()=>{j.some(({isOn:me})=>me)?K.isOpen=!K.isOpen:C.fire("execute")}),K.bind("isEnabled").toMany(j,"isEnabled",(...me)=>me.some(ku)),this.listenTo(K,"execute",()=>{this.editor.editing.view.focus()}),K})}_createButton(r){const c=r.name;this.editor.ui.componentFactory.add(SA(c),u=>{const _=this.editor.commands.get("imageStyle"),C=new $o(u);return C.set({label:r.title,icon:r.icon,tooltip:!0,isToggleable:!0}),C.bind("isEnabled").to(_,"isEnabled"),C.bind("isOn").to(_,"value",M=>M===c),C.on("execute",this._executeCommand.bind(this,c)),C})}_executeCommand(r){this.editor.execute("imageStyle",{value:r}),this.editor.editing.view.focus()}}function PA(m,r){for(const c of m)r[c.title]&&(c.title=r[c.title]);return m}function SA(m){return`imageStyle:${m}`}function LA(m,r){return(m?m+": ":"")+r}class a6 extends lo{static get pluginName(){return"IndentEditing"}init(){const r=this.editor;r.commands.add("indent",new Qp(r)),r.commands.add("outdent",new Qp(r))}}const OA='',Sb='';class s3 extends lo{static get pluginName(){return"IndentUI"}init(){const r=this.editor,c=r.locale,u=r.t,_="ltr"==c.uiLanguageDirection?OA:Sb,C="ltr"==c.uiLanguageDirection?Sb:OA;this._defineButton("indent",u("Increase indent"),_),this._defineButton("outdent",u("Decrease indent"),C)}_defineButton(r,c,u){const _=this.editor;_.ui.componentFactory.add(r,C=>{const M=_.commands.get(r),E=new $o(C);return E.set({label:c,icon:u,tooltip:!0}),E.bind("isEnabled").to(M,"isEnabled"),this.listenTo(E,"execute",()=>{_.execute(r),_.editing.view.focus()}),E})}}class hC{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(r){Array.isArray(r)?r.forEach(c=>this._definitions.add(c)):this._definitions.add(r)}getDispatcher(){return r=>{r.on("attribute:linkHref",(c,u,_)=>{if(!_.consumable.test(u.item,"attribute:linkHref")||!u.item.is("selection")&&!_.schema.isInline(u.item))return;const C=_.writer,M=C.document.selection;for(const E of this._definitions){const N=C.createAttributeElement("a",E.attributes,{priority:5});E.classes&&C.addClass(E.classes,N);for(const j in E.styles)C.setStyle(j,E.styles[j],N);C.setCustomProperty("link",!0,N),E.callback(u.attributeNewValue)?u.item.is("selection")?C.wrap(M.getFirstRange(),N):C.wrap(_.mapper.toViewRange(u.range),N):C.unwrap(_.mapper.toViewRange(u.range),N)}},{priority:"high"})}}getDispatcherForLinkedImage(){return r=>{r.on("attribute:linkHref:imageBlock",(c,u,{writer:_,mapper:C})=>{const M=C.toViewElement(u.item),E=Array.from(M.getChildren()).find(N=>N.is("element","a"));for(const N of this._definitions){const j=Kc(N.attributes);if(N.callback(u.attributeNewValue)){for(const[K,dt]of j)"class"===K?_.addClass(dt,E):_.setAttribute(K,dt,E);N.classes&&_.addClass(N.classes,E);for(const K in N.styles)_.setStyle(K,N.styles[K],E)}else{for(const[K,dt]of j)"class"===K?_.removeClass(dt,E):_.removeAttribute(K,E);N.classes&&_.removeClass(N.classes,E);for(const K in N.styles)_.removeStyle(K,E)}}})}}}var ly=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const c3=function(m){return ly.test(m)};var vC="\\ud800-\\udfff",xC="["+vC+"]",Lb="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ob="\\ud83c[\\udffb-\\udfff]",CC="[^"+vC+"]",AC="(?:\\ud83c[\\udde6-\\uddff]){2}",l3="[\\ud800-\\udbff][\\udc00-\\udfff]",yC="(?:"+Lb+"|"+Ob+")?",TC="[\\ufe0e\\ufe0f]?",EA=TC+yC+"(?:\\u200d(?:"+[CC,AC,l3].join("|")+")"+TC+yC+")*",uy="(?:"+[CC+Lb+"?",Lb,AC,l3,xC].join("|")+")",IA=RegExp(Ob+"(?="+Ob+")|"+uy+EA,"g");const dy=function(r){r=Ug(r);var c=c3(r)?function(m){return c3(m)?function(m){return m.match(IA)||[]}(m):function(m){return m.split("")}(m)}(r):void 0,u=c?c[0]:r.charAt(0),_=c?function(m,r,c){var u=m.length;return P2(m,1,c=void 0===c?u:c)}(c).join(""):r.slice(1);return u.toUpperCase()+_},UC=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,ZC=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,MC=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,py=/^((\w+:(\/{2,})?)|(\W))/i,k1="Ctrl+K";function kC(m,{writer:r}){const c=r.createAttributeElement("a",{href:m},{priority:5});return r.setCustomProperty("link",!0,c),c}function u3(m){const r=String(m);return r.replace(UC,"").match(ZC)?r:"#"}function r6(m,r){return!!m&&r.checkAttribute(m.name,"linkHref")}function r1(m,r){const c=MC.test(m)?"mailto:":r,_=!!c&&!Eb(m);return m&&_?c+m:m}function Eb(m){return py.test(m)}function s6(m){window.open(m,"_blank","noopener")}class Ib extends Ua{constructor(){super(...arguments),this.manualDecorators=new ec,this.automaticDecorators=new hC}restoreManualDecoratorStates(){for(const r of this.manualDecorators)r.value=this._getDecoratorStateFromModel(r.id)}refresh(){const r=this.editor.model,c=r.document.selection,u=c.getSelectedElement()||os(c.getSelectedBlocks());r6(u,r.schema)?(this.value=u.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttribute(u,"linkHref")):(this.value=c.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttributeInSelection(c,"linkHref"));for(const _ of this.manualDecorators)_.value=this._getDecoratorStateFromModel(_.id)}execute(r,c={}){const u=this.editor.model,_=u.document.selection,C=[],M=[];for(const E in c)c[E]?C.push(E):M.push(E);u.change(E=>{if(_.isCollapsed){const N=_.getFirstPosition();if(_.hasAttribute("linkHref")){const j=DC(_);let K=gc(N,"linkHref",_.getAttribute("linkHref"),u);_.getAttribute("linkHref")===j&&(K=this._updateLinkContent(u,E,K,r)),E.setAttribute("linkHref",r,K),C.forEach(dt=>{E.setAttribute(dt,!0,K)}),M.forEach(dt=>{E.removeAttribute(dt,K)}),E.setSelection(E.createPositionAfter(K.end.nodeBefore))}else if(""!==r){const j=Kc(_.getAttributes());j.set("linkHref",r),C.forEach(dt=>{j.set(dt,!0)});const{end:K}=u.insertContent(E.createText(r,j),N);E.setSelection(K)}["linkHref",...C,...M].forEach(j=>{E.removeSelectionAttribute(j)})}else{const N=u.schema.getValidRanges(_.getRanges(),"linkHref"),j=[];for(const dt of _.getSelectedBlocks())u.schema.checkAttribute(dt,"linkHref")&&j.push(E.createRangeOn(dt));const K=j.slice();for(const dt of N)this._isRangeToUpdate(dt,j)&&K.push(dt);for(const dt of K){let Dt=dt;if(1===K.length){const me=DC(_);_.getAttribute("linkHref")===me&&(Dt=this._updateLinkContent(u,E,dt,r),E.setSelection(E.createSelection(Dt)))}E.setAttribute("linkHref",r,Dt),C.forEach(me=>{E.setAttribute(me,!0,Dt)}),M.forEach(me=>{E.removeAttribute(me,Dt)})}}})}_getDecoratorStateFromModel(r){const c=this.editor.model,u=c.document.selection,_=u.getSelectedElement();return r6(_,c.schema)?_.getAttribute(r):u.getAttribute(r)}_isRangeToUpdate(r,c){for(const u of c)if(u.containsRange(r))return!1;return!0}_updateLinkContent(r,c,u,_){const C=c.createText(_,{linkHref:_});return r.insertContent(C,u)}}function DC(m){if(m.isCollapsed){const r=m.getFirstPosition();return r.textNode&&r.textNode.data}{const r=Array.from(m.getFirstRange().getItems());if(r.length>1)return null;const c=r[0];return c.is("$text")||c.is("$textProxy")?c.data:null}}class Fb extends Ua{refresh(){const r=this.editor.model,c=r.document.selection,u=c.getSelectedElement();this.isEnabled=r6(u,r.schema)?r.schema.checkAttribute(u,"linkHref"):r.schema.checkAttributeInSelection(c,"linkHref")}execute(){const c=this.editor.model,u=c.document.selection,_=this.editor.commands.get("link");c.change(C=>{const M=u.isCollapsed?[gc(u.getFirstPosition(),"linkHref",u.getAttribute("linkHref"),c)]:c.schema.getValidRanges(u.getRanges(),"linkHref");for(const E of M)if(C.removeAttribute("linkHref",E),_)for(const N of _.manualDecorators)C.removeAttribute(N.id,E)})}}class PC extends(Ze()){constructor({id:r,label:c,attributes:u,classes:_,styles:C,defaultValue:M}){super(),this.id=r,this.set("value",void 0),this.defaultValue=M,this.label=c,this.attributes=u,this.classes=_,this.styles=C}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var Nb=v(9773);Fo()(Nb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var SC=Object.defineProperty,Rb=Object.getOwnPropertySymbols,LC=Object.prototype.hasOwnProperty,OC=Object.prototype.propertyIsEnumerable,EC=(m,r,c)=>r in m?SC(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,c6=(m,r)=>{for(var c in r||(r={}))LC.call(r,c)&&EC(m,c,r[c]);if(Rb)for(var c of Rb(r))OC.call(r,c)&&EC(m,c,r[c]);return m};const l_="automatic",Hb=/^(https?:)?\/\//;class zb extends lo{static get pluginName(){return"LinkEditing"}static get requires(){return[M5,Jv,Np]}constructor(r){super(r),r.config.define("link",{addTargetToExternalLinks:!1})}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"linkHref"}),r.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:kC}),r.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(u,_)=>kC(u3(u),_)}),r.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:u=>u.getAttribute("href")}}),r.commands.add("link",new Ib(r)),r.commands.add("unlink",new Fb(r));const c=function(u,_){const C={"Open in a new tab":u("Open in a new tab"),Downloadable:u("Downloadable")};return _.forEach(M=>("label"in M&&C[M.label]&&(M.label=C[M.label]),M)),_}(r.t,function(u){const _=[];if(u)for(const[C,M]of Object.entries(u)){const E=Object.assign({},M,{id:`link${dy(C)}`});_.push(E)}return _}(r.config.get("link.decorators")));this._enableAutomaticDecorators(c.filter(u=>u.mode===l_)),this._enableManualDecorators(c.filter(u=>"manual"===u.mode)),r.plugins.get(M5).registerAttribute("linkHref"),function(u,_,C,M){const E=u.editing.view,N=new Set;E.document.registerPostFixer(j=>{const K=u.model.document.selection;let dt=!1;if(K.hasAttribute(_)){const Dt=gc(K.getFirstPosition(),_,K.getAttribute(_),u.model),me=u.editing.mapper.toViewRange(Dt);for(const Ue of me.getItems())Ue.is("element","a")&&!Ue.hasClass(M)&&(j.addClass(M,Ue),N.add(Ue),dt=!0)}return dt}),u.conversion.for("editingDowncast").add(j=>{function K(){E.change(dt=>{for(const Dt of N.values())dt.removeClass(M,Dt),N.delete(Dt)})}j.on("insert",K,{priority:"highest"}),j.on("remove",K,{priority:"highest"}),j.on("attribute",K,{priority:"highest"}),j.on("selection",K,{priority:"highest"})})}(r,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink(),this._enableClipboardIntegration()}_enableAutomaticDecorators(r){const c=this.editor,u=c.commands.get("link").automaticDecorators;c.config.get("link.addTargetToExternalLinks")&&u.add({id:"linkIsExternal",mode:l_,callback:_=>!!_&&Hb.test(_),attributes:{target:"_blank",rel:"noopener noreferrer"}}),u.add(r),u.length&&c.conversion.for("downcast").add(u.getDispatcher())}_enableManualDecorators(r){if(!r.length)return;const c=this.editor,u=c.commands.get("link").manualDecorators;r.forEach(_=>{c.model.schema.extend("$text",{allowAttributes:_.id});const C=new PC(_);u.add(C),c.conversion.for("downcast").attributeToElement({model:C.id,view:(M,{writer:E,schema:N},{item:j})=>{if((j.is("selection")||N.isInline(j))&&M){const K=E.createAttributeElement("a",C.attributes,{priority:5});C.classes&&E.addClass(C.classes,K);for(const dt in C.styles)E.setStyle(dt,C.styles[dt],K);return E.setCustomProperty("link",!0,K),K}}}),c.conversion.for("upcast").elementToAttribute({view:c6({name:"a"},C._createPattern()),model:{key:C.id}})})}_enableLinkOpen(){const r=this.editor,c=r.editing.view.document;this.listenTo(c,"click",(u,_)=>{if(!(D_isMac?_.domEvent.metaKey:_.domEvent.ctrlKey))return;let C=_.domTarget;if("a"!=C.tagName.toLowerCase()&&(C=C.closest("a")),!C)return;const M=C.getAttribute("href");M&&(u.stop(),_.preventDefault(),s6(M))},{context:"$capture"}),this.listenTo(c,"keydown",(u,_)=>{const C=r.commands.get("link").value;C&&_.keyCode===Ka.enter&&_.altKey&&(u.stop(),s6(C))})}_enableInsertContentSelectionAttributesFixer(){const r=this.editor.model,c=r.document.selection;this.listenTo(r,"insertContent",()=>{const u=c.anchor.nodeBefore,_=c.anchor.nodeAfter;c.hasAttribute("linkHref")&&u&&u.hasAttribute("linkHref")&&(_&&_.hasAttribute("linkHref")||r.change(C=>{op(C,FC(r.schema))}))},{priority:"low"})}_enableClickingAfterLink(){const r=this.editor,c=r.model;r.editing.view.addObserver(A0);let u=!1;this.listenTo(r.editing.view.document,"mousedown",()=>{u=!0}),this.listenTo(r.editing.view.document,"selectionChange",()=>{if(!u)return;u=!1;const _=c.document.selection;if(!_.isCollapsed||!_.hasAttribute("linkHref"))return;const C=_.getFirstPosition(),M=gc(C,"linkHref",_.getAttribute("linkHref"),c);(C.isTouching(M.start)||C.isTouching(M.end))&&c.change(E=>{op(E,FC(c.schema))})})}_enableTypingOverLink(){const r=this.editor;let u=null,_=!1;this.listenTo(r.editing.view.document,"delete",()=>{_=!0},{priority:"high"}),this.listenTo(r.model,"deleteContent",()=>{const C=r.model.document.selection;C.isCollapsed||(_?_=!1:IC(r)&&function(M){const E=M.document.selection,N=E.getFirstPosition(),j=E.getLastPosition(),K=N.nodeAfter;return!!(K&&K.is("$text")&&K.hasAttribute("linkHref"))&&(K===(j.textNode||j.nodeBefore)||gc(N,"linkHref",K.getAttribute("linkHref"),M).containsRange(M.createRange(N,j),!0))}(r.model)&&(u=C.getAttributes()))},{priority:"high"}),this.listenTo(r.model,"insertContent",(C,[M])=>{_=!1,IC(r)&&u&&(r.model.change(E=>{for(const[N,j]of u)E.setAttribute(N,j,M)}),u=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const r=this.editor,c=r.model,u=c.document.selection;let C=!1,M=!1;this.listenTo(r.editing.view.document,"delete",(E,N)=>{M="backward"===N.direction},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{C=!1;const E=u.getFirstPosition(),N=u.getAttribute("linkHref");if(!N)return;const j=gc(E,"linkHref",N,c);C=j.containsPosition(E)||j.end.isEqual(E)},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{M&&(M=!1,C||r.model.enqueueChange(E=>{op(E,FC(c.schema))}))},{priority:"low"})}_enableClipboardIntegration(){const r=this.editor,c=r.model,u=this.editor.config.get("link.defaultProtocol");u&&this.listenTo(r.plugins.get("ClipboardPipeline"),"contentInsertion",(_,C)=>{c.change(M=>{const E=M.createRangeIn(C.content);for(const N of E.getItems())if(N.hasAttribute("linkHref")){const j=r1(N.getAttribute("linkHref"),u);M.setAttribute("linkHref",j,N)}})})}}function op(m,r){m.removeSelectionAttribute("linkHref");for(const c of r)m.removeSelectionAttribute(c)}function IC(m){return m.model.change(r=>r.batch).isTyping}function FC(m){return m.getDefinition("$text").allowAttributes.filter(r=>r.startsWith("link"))}var p3=v(7754);Fo()(p3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class NA extends oa{constructor(r,c){super(r),this.focusTracker=new as,this.keystrokes=new $c,this._focusables=new Ia;const u=r.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),hs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(u("Cancel"),hs.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(c),this.children=this._createFormChildren(c.manualDecorators),this._focusCycler=new dl({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const _=["ck","ck-link-form","ck-responsive-form"];c.manualDecorators.length&&_.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:_,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((r,c)=>(r[c.name]=c.isOn,r),{})}render(){super.render(),x({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const r=this.locale.t,c=new Sr(this.locale,uf);return c.label=r("Link URL"),c}_createButton(r,c,u,_){const C=new $o(this.locale);return C.set({label:r,icon:c,tooltip:!0}),C.extendTemplate({attributes:{class:u}}),_&&C.delegate("execute").to(this,_),C}_createManualDecoratorSwitches(r){const c=this.createCollection();for(const u of r.manualDecorators){const _=new As(this.locale);_.set({name:u.id,label:u.label,withText:!0}),_.bind("isOn").toMany([u,r],"value",(C,M)=>void 0===M&&void 0===C?!!u.defaultValue:!!C),_.on("execute",()=>{u.set("value",!_.isOn)}),c.add(_)}return c}_createFormChildren(r){const c=this.createCollection();if(c.add(this.urlInputView),r.length){const u=new oa;u.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(_=>({tag:"li",children:[_],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),c.add(u)}return c.add(this.saveButtonView),c.add(this.cancelButtonView),c}}var qC=v(2347);Fo()(qC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class my extends oa{constructor(r){super(r),this.focusTracker=new as,this.keystrokes=new $c,this._focusables=new Ia;const c=r.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(c("Unlink"),'',"unlink"),this.editButtonView=this._createButton(c("Edit link"),hs.pencil,"edit"),this.set("href",void 0),this._focusCycler=new dl({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(r,c,u){const _=new $o(this.locale);return _.set({label:r,icon:c,tooltip:!0}),_.delegate("execute").to(this,u),_}_createPreviewButton(){const r=new $o(this.locale),c=this.bindTemplate,u=this.t;return r.set({withText:!0,tooltip:u("Open link in new tab")}),r.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:c.to("href",_=>_&&u3(_)),target:"_blank",rel:"noopener noreferrer"}}),r.bind("label").to(this,"href",_=>_||u("This link has no URL")),r.bind("isEnabled").to(this,"href",_=>!!_),r.template.tag="a",r.template.eventListeners={},r}}const ap="link-ui";class qA extends lo{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[q0]}static get pluginName(){return"LinkUI"}init(){const r=this.editor;r.editing.view.addObserver(c4),this._balloon=r.plugins.get(q0),this._createToolbarLinkButton(),this._enableBalloonActivators(),r.conversion.for("editingDowncast").markerToHighlight({model:ap,view:{classes:["ck-fake-link-selection"]}}),r.conversion.for("editingDowncast").markerToElement({model:ap,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const r=this.editor,c=new my(r.locale),u=r.commands.get("link"),_=r.commands.get("unlink");return c.bind("href").to(u,"value"),c.editButtonView.bind("isEnabled").to(u),c.unlinkButtonView.bind("isEnabled").to(_),this.listenTo(c,"edit",()=>{this._addFormView()}),this.listenTo(c,"unlink",()=>{r.execute("unlink"),this._hideUI()}),c.keystrokes.set("Esc",(C,M)=>{this._hideUI(),M()}),c.keystrokes.set(k1,(C,M)=>{this._addFormView(),M()}),c}_createFormView(){const r=this.editor,c=r.commands.get("link"),u=r.config.get("link.defaultProtocol"),_=new(A(NA))(r.locale,c);return _.urlInputView.fieldView.bind("value").to(c,"value"),_.urlInputView.bind("isEnabled").to(c,"isEnabled"),_.saveButtonView.bind("isEnabled").to(c),this.listenTo(_,"submit",()=>{const{value:C}=_.urlInputView.fieldView.element,M=r1(C,u);r.execute("link",M,_.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(_,"cancel",()=>{this._closeFormView()}),_.keystrokes.set("Esc",(C,M)=>{this._closeFormView(),M()}),_}_createToolbarLinkButton(){const r=this.editor,c=r.commands.get("link"),u=r.t;r.ui.componentFactory.add("link",_=>{const C=new $o(_);return C.isEnabled=!0,C.label=u("Link"),C.icon='',C.keystroke=k1,C.tooltip=!0,C.isToggleable=!0,C.bind("isEnabled").to(c,"isEnabled"),C.bind("isOn").to(c,"value",M=>!!M),this.listenTo(C,"execute",()=>this._showUI(!0)),C})}_enableBalloonActivators(){const r=this.editor;this.listenTo(r.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),r.keystrokes.set(k1,(u,_)=>{_(),r.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(r,c)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),c())},{priority:"high"}),this.editor.keystrokes.set("Esc",(r,c)=>{this._isUIVisible&&(this._hideUI(),c())}),t({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const r=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=r.value||""}_closeFormView(){const r=this.editor.commands.get("link");r.restoreManualDecoratorStates(),void 0!==r.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(r=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),r&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),r&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const r=this.editor;this.stopListening(r.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),r.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const r=this.editor,c=r.editing.view.document;let u=this._getSelectedLinkElement(),_=M();const C=()=>{const E=this._getSelectedLinkElement(),N=M();u&&!E||!u&&N!==_?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),u=E,_=N};function M(){return c.selection.focus.getAncestors().reverse().find(E=>E.is("element"))}this.listenTo(r.ui,"update",C),this.listenTo(this._balloon,"change:visibleView",C)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return!!this.formView&&this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const r=this.editor.editing.view,u=r.document;let _;if(this.editor.model.markers.has(ap)){const C=Array.from(this.editor.editing.mapper.markerNameToElements(ap)),M=r.createRange(r.createPositionBefore(C[0]),r.createPositionAfter(C[C.length-1]));_=r.domConverter.viewRangeToDom(M)}else _=()=>{const C=this._getSelectedLinkElement();return C?r.domConverter.mapViewToDom(C):r.domConverter.viewRangeToDom(u.selection.getFirstRange())};return{target:_}}_getSelectedLinkElement(){const r=this.editor.editing.view,c=r.document.selection,u=c.getSelectedElement();if(c.isCollapsed||u&&El(u))return l6(c.getFirstPosition());{const _=c.getFirstRange().getTrimmed(),C=l6(_.start),M=l6(_.end);return C&&C==M&&r.createRangeIn(C).getTrimmed().isEqual(_)?C:null}}_showFakeVisualSelection(){const r=this.editor.model;r.change(c=>{const u=r.document.selection.getFirstRange();if(r.markers.has(ap))c.updateMarker(ap,{range:u});else if(u.start.isAtEnd){const _=u.start.getLastMatchingPosition(({item:C})=>!r.schema.isContent(C),{boundaries:u});c.addMarker(ap,{usingOperation:!1,affectsData:!1,range:c.createRange(_,u.end)})}else c.addMarker(ap,{usingOperation:!1,affectsData:!1,range:u})})}_hideFakeVisualSelection(){const r=this.editor.model;r.markers.has(ap)&&r.change(c=>{c.removeMarker(ap)})}}function l6(m){return m.getAncestors().find(r=>{return(c=r).is("attributeElement")&&!!c.getCustomProperty("link");var c})||null}const _y=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class u6 extends lo{static get requires(){return[r_]}static get pluginName(){return"AutoLink"}init(){const r=this.editor.model.document.selection;r.on("change:range",()=>{this.isEnabled=!r.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const r=this.editor,c=new Kv(r.model,u=>{if(!((C=u).length>4&&" "===C[C.length-1]&&" "!==C[C.length-2]))return;var C;const _=d6(u.substr(0,u.length-1));return _?{url:_}:void 0});c.on("matched:data",(u,_)=>{const{batch:C,range:M,url:E}=_;if(!C.isTyping)return;const N=M.end.getShiftedBy(-1),j=N.getShiftedBy(-E.length),K=r.model.createRange(j,N);this._applyAutoLink(E,K)}),c.bind("isEnabled").to(this)}_enableEnterHandling(){const r=this.editor,c=r.model,u=r.commands.get("enter");u&&u.on("execute",()=>{const _=c.document.selection.getFirstPosition();if(!_.parent.previousSibling)return;const C=c.createRangeIn(_.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(C)})}_enableShiftEnterHandling(){const r=this.editor,c=r.model,u=r.commands.get("shiftEnter");u&&u.on("execute",()=>{const _=c.document.selection.getFirstPosition(),C=c.createRange(c.createPositionAt(_.parent,0),_.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(C)})}_checkAndApplyAutoLinkOnRange(r){const c=this.editor.model,{text:u,range:_}=L4(r,c),C=d6(u);if(C){const M=c.createRange(_.end.getShiftedBy(-C.length),_.end);this._applyAutoLink(C,M)}}_applyAutoLink(r,c){const u=this.editor.model,_=r1(r,this.editor.config.get("link.defaultProtocol"));var M;this.isEnabled&&(M=u).schema.checkAttributeInSelection(M.createSelection(c),"linkHref")&&Eb(_)&&!function(C){const M=C.start.nodeAfter;return!!M&&M.hasAttribute("linkHref")}(c)&&this._persistAutoLink(_,c)}_persistAutoLink(r,c){const u=this.editor.model,_=this.editor.plugins.get("Delete");u.enqueueChange(C=>{C.setAttribute("linkHref",r,c),u.enqueueChange(()=>{_.requestUndoOnBackspace()})})}}function d6(m){const r=_y.exec(m);return r?r[2]:null}var m3=v(111);Fo()(m3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Bb=v(5730);Fo()(Bb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var _3=v(4564);function BC(m,r,c,u){const _=r.parent,C=c.mapper,M=c.writer;let E=C.toViewPosition(u.createPositionBefore(m));const N=YC(m.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:m.getAttribute("listIndent")}),j=m.previousSibling;if(N&&N.getAttribute("listIndent")==m.getAttribute("listIndent")){const K=C.toViewElement(N);E=M.breakContainer(M.createPositionAfter(K))}else if(j&&"listItem"==j.name){E=C.toViewPosition(u.createPositionAt(j,"end"));const K=C.findMappedViewAncestor(E),dt=function(Dt){for(const me of Dt.getChildren())if("ul"==me.name||"ol"==me.name)return me;return null}(K);E=dt?M.createPositionBefore(dt):M.createPositionAt(K,"end")}else E=C.toViewPosition(u.createPositionBefore(m));if(E=Vb(E),M.insert(E,_),j&&"listItem"==j.name){const K=C.toViewElement(j),dt=M.createRange(M.createPositionAt(K,0),E).getWalker({ignoreElementEnd:!0});for(const Dt of dt)if(Dt.item.is("element","li")){const me=M.breakContainer(M.createPositionBefore(Dt.item)),Ue=Dt.item.parent,qe=M.createPositionAt(r,"end");D1(M,qe.nodeBefore,qe.nodeAfter),M.move(M.createRangeOn(Ue),qe),dt._position=me}}else{const K=_.nextSibling;if(K&&(K.is("element","ul")||K.is("element","ol"))){let dt=null;for(const Dt of K.getChildren()){const me=C.toModelElement(Dt);if(!(me&&me.getAttribute("listIndent")>m.getAttribute("listIndent")))break;dt=Dt}dt&&(M.breakContainer(M.createPositionAfter(dt)),M.move(M.createRangeOn(dt.parent),M.createPositionAt(r,"end")))}}D1(M,_,_.nextSibling),D1(M,_.previousSibling,_)}function D1(m,r,c){return!r||!c||"ul"!=r.name&&"ol"!=r.name||r.name!=c.name||r.getAttribute("class")!==c.getAttribute("class")?null:m.mergeContainers(m.createPositionAfter(r))}function Vb(m){return m.getLastMatchingPosition(r=>r.item.is("uiElement"))}function YC(m,r){const c=!!r.sameIndent,u=!!r.smallerIndent,_=r.listIndent;let C=m;for(;C&&"listItem"==C.name;){const M=C.getAttribute("listIndent");if(c&&_==M||u&&_>M)return C;C="forward"===r.direction?C.nextSibling:C.previousSibling}return null}function VC(m,r,c,u){m.ui.componentFactory.add(r,_=>{const C=m.commands.get(r),M=new $o(_);return M.set({label:c,icon:u,tooltip:!0,isToggleable:!0}),M.bind("isOn","isEnabled").to(C,"value","isEnabled"),M.on("execute",()=>{m.execute(r),m.editing.view.focus()}),M})}function jC(m,r){const c=[],u=m.parent,_={ignoreElementEnd:!1,startPosition:m,shallow:!0,direction:r},C=u.getAttribute("listIndent"),M=[...new Gd(_)].filter(E=>E.item.is("element")).map(E=>E.item);for(const E of M){if(!E.is("element","listItem")||E.getAttribute("listIndent")C)){if(E.getAttribute("listType")!==u.getAttribute("listType")||E.getAttribute("listStyle")!==u.getAttribute("listStyle")||E.getAttribute("listReversed")!==u.getAttribute("listReversed")||E.getAttribute("listStart")!==u.getAttribute("listStart"))break;"backward"===r?c.unshift(E):c.push(E)}}return c}Fo()(_3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const RA=["disc","circle","square"],JC=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function GC(){const m=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||m?0:Bf.call(this)}class HA extends lo{static get pluginName(){return"ListUI"}init(){const r=this.editor.t;VC(this.editor,"numberedList",r("Numbered List"),''),VC(this.editor,"bulletedList",r("Bulleted List"),'')}}const QC={},fy={},hy={},gy=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:m,typeAttribute:r,listType:c}of gy)QC[m]=c,fy[m]=r,r&&(hy[r]=m);var zA=v(4721);Fo()(zA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var jb=v(6082);Fo()(jb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var WC=v(2417);Fo()(WC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Gb extends Ua{constructor(r,c){super(r),this._indentBy="forward"==c?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model;let u=Array.from(r.document.selection.getSelectedBlocks());r.change(_=>{const C=u[u.length-1];let M=C.nextSibling;for(;M&&"listItem"==M.name&&M.getAttribute("listIndent")>C.getAttribute("listIndent");)u.push(M),M=M.nextSibling;this._indentBy<0&&(u=u.reverse());for(const E of u){const N=E.getAttribute("listIndent")+this._indentBy;N<0?_.rename(E,"paragraph"):_.setAttribute("listIndent",N,E)}this.fire("_executeCleanup",u)})}_checkEnabled(){const r=os(this.editor.model.document.selection.getSelectedBlocks());if(!r||!r.is("element","listItem"))return!1;if(this._indentBy>0){const c=r.getAttribute("listIndent"),u=r.getAttribute("listType");let _=r.previousSibling;for(;_&&_.is("element","listItem")&&_.getAttribute("listIndent")>=c;){if(_.getAttribute("listIndent")==c)return _.getAttribute("listType")==u;_=_.previousSibling}return!1}return!0}}class g2 extends Ua{constructor(r,c){super(r),this.type=c}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const c=this.editor.model,_=Array.from(c.document.selection.getSelectedBlocks()).filter(M=>m6(M,c.schema)),C=void 0!==r.forceValue?!r.forceValue:this.value;c.change(M=>{if(C){let E=_[_.length-1].nextSibling,N=Number.POSITIVE_INFINITY,j=[];for(;E&&"listItem"==E.name&&0!==E.getAttribute("listIndent");){const K=E.getAttribute("listIndent");K=c;)C>_.getAttribute("listIndent")&&(C=_.getAttribute("listIndent")),_.getAttribute("listIndent")==C&&m[r?"unshift":"push"](_),_=_[r?"previousSibling":"nextSibling"]}}function m6(m,r){return r.checkChild(m.parent,"listItem")&&!r.isObject(m)}class Wb extends lo{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(r){return RA.includes(c=r)?"bulleted":JC.includes(c)?"numbered":null;var c}getSelectedListItems(r){return function(c){let u=[...c.document.selection.getSelectedBlocks()].filter(_=>_.is("element","listItem")).map(_=>{const C=c.change(M=>M.createPositionAt(_,0));return[...jC(C,"backward"),...jC(C,"forward")]}).flat();return u=[...new Set(u)],u}(r)}getSiblingNodes(r,c){return jC(r,c)}}function $C(m){return(r,c,u)=>{const _=u.consumable;if(!_.test(c.item,"insert")||!_.test(c.item,"attribute:listType")||!_.test(c.item,"attribute:listIndent"))return;_.consume(c.item,"insert"),_.consume(c.item,"attribute:listType"),_.consume(c.item,"attribute:listIndent");const C=c.item;BC(C,function zC(m,r){const c=r.mapper,u=r.writer,_="numbered"==m.getAttribute("listType")?"ol":"ul",C=function(E){const N=E.createContainerElement("li");return N.getFillerOffset=GC,N}(u),M=u.createContainerElement(_,null);return u.insert(u.createPositionAt(M,0),C),c.bindElements(m,C),C}(C,u),u,m)}}const $b=(m,r,c)=>{if(!c.consumable.test(r.item,m.name))return;const u=c.mapper.toViewElement(r.item),_=c.writer;_.breakContainer(_.createPositionBefore(u)),_.breakContainer(_.createPositionAfter(u)),_.rename("numbered"==r.attributeNewValue?"ol":"ul",u.parent)},Tf=(m,r,c)=>{c.consumable.consume(r.item,m.name);const u=c.mapper.toViewElement(r.item).parent,_=c.writer;D1(_,u,u.nextSibling),D1(_,u.previousSibling,u)},h3=(m,r,c)=>{if(c.consumable.test(r.item,m.name)&&"listItem"!=r.item.name){let u=c.mapper.toViewPosition(r.range.start);const _=c.writer,C=[];for(;("ul"==u.parent.name||"ol"==u.parent.name)&&(u=_.breakContainer(u),"li"==u.parent.name);){const M=u,E=_.createPositionAt(u.parent,"end");if(!M.isEqual(E)){const N=_.remove(_.createRange(M,E));C.push(N)}u=_.createPositionAfter(u.parent)}if(C.length>0){for(let M=0;M0){const N=D1(_,E,E.nextSibling);N&&N.parent==E&&u.offset--}}D1(_,u.nodeBefore,u.nodeAfter)}}},by=(m,r,c)=>{const u=c.mapper.toViewPosition(r.position);D1(c.writer,u.nodeBefore,u.nodeAfter)},vy=(m,r,c)=>{if(c.consumable.consume(r.viewItem,{name:!0})){const u=c.writer,_=u.createElement("listItem"),C=function(N){let j=0,K=N.parent;for(;K;){if(K.is("element","li"))j++;else{const dt=K.previousSibling;dt&&dt.is("element","li")&&j++}K=K.parent}return j}(r.viewItem);if(u.setAttribute("listIndent",C,_),u.setAttribute("listType",r.viewItem.parent&&"ol"==r.viewItem.parent.name?"numbered":"bulleted",_),!c.safeInsert(_,r.modelCursor))return;const E=function(N,j,K){const{writer:dt,schema:Dt}=K;let me=dt.createPositionAfter(N);for(const Ue of j)if("ul"==Ue.name||"ol"==Ue.name)me=K.convertItem(Ue,me).modelCursor;else{const qe=K.convertItem(Ue,dt.createPositionAt(N,"end")),pn=qe.modelRange.start.nodeAfter;pn&&pn.is("element")&&!Dt.checkChild(N,pn.name)&&(N=qe.modelCursor.parent.is("element","listItem")?qe.modelCursor.parent:jA(qe.modelCursor),me=dt.createPositionAfter(N))}return me}(_,r.viewItem.getChildren(),c);r.modelRange=u.createRange(r.modelCursor,E),c.updateConversionResult(_,r)}},YA=(m,r,c)=>{if(c.consumable.test(r.viewItem,{name:!0})){const u=Array.from(r.viewItem.getChildren());for(const _ of u)!_.is("element","li")&&!eg(_)&&_._remove()}},Kb=(m,r,c)=>{if(c.consumable.test(r.viewItem,{name:!0})){if(0===r.viewItem.childCount)return;const u=[...r.viewItem.getChildren()];let _=!1;for(const C of u)_&&!eg(C)&&C._remove(),eg(C)&&(_=!0)}};function Xb(m){return(r,c)=>{if(c.isPhantom)return;const u=c.modelPosition.nodeBefore;if(u&&u.is("element","listItem")){const _=c.mapper.toViewElement(u),C=_.getAncestors().find(eg),M=m.createPositionAt(_,0).getWalker();for(const E of M){if("elementStart"==E.type&&E.item.is("element","li")){c.viewPosition=E.previousPosition;break}if("elementEnd"==E.type&&E.item==C){c.viewPosition=E.nextPosition;break}}}}}const VA=function(m,[r,c]){let _,C=r.is("documentFragment")?r.getChild(0):r;if(_=c?this.createSelection(c):this.document.selection,C&&C.is("element","listItem")){const M=_.getFirstPosition();let E=null;if(M.parent.is("element","listItem")?E=M.parent:M.nodeBefore&&M.nodeBefore.is("element","listItem")&&(E=M.nodeBefore),E){const N=E.getAttribute("listIndent");if(N>0)for(;C&&C.is("element","listItem");)C._setAttribute("listIndent",C.getAttribute("listIndent")+N),C=C.nextSibling}}};function jA(m){const r=new Gd({startPosition:m});let c;do{c=r.next()}while(!c.value.item.is("element","listItem"));return c.value.item}function KC(m,r,c,u,_,C){const M=YC(r.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:m}),E=_.mapper,N=_.writer,j=M?M.getAttribute("listIndent"):null;let K;if(M)if(j==m){const dt=E.toViewElement(M).parent;K=N.createPositionAfter(dt)}else{const dt=C.createPositionAt(M,"end");K=E.toViewPosition(dt)}else K=c;K=Vb(K);for(const dt of[...u.getChildren()])eg(dt)&&(K=N.move(N.createRangeOn(dt),K).end,D1(N,dt,dt.nextSibling),D1(N,dt.previousSibling,dt))}function eg(m){return m.is("element","ol")||m.is("element","ul")}class tv extends lo{static get pluginName(){return"ListEditing"}static get requires(){return[Tm,r_,Wb]}init(){const r=this.editor;r.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const c=r.data,u=r.editing;var _;r.model.document.registerPostFixer(M=>function(E,N){const j=E.document.differ.getChanges(),K=new Map;let dt=!1;for(const qe of j)if("insert"==qe.type&&"listItem"==qe.name)Dt(qe.position);else if("insert"==qe.type&&"listItem"!=qe.name){if("$text"!=qe.name){const pn=qe.position.nodeAfter;pn.hasAttribute("listIndent")&&(N.removeAttribute("listIndent",pn),dt=!0),pn.hasAttribute("listType")&&(N.removeAttribute("listType",pn),dt=!0),pn.hasAttribute("listStyle")&&(N.removeAttribute("listStyle",pn),dt=!0),pn.hasAttribute("listReversed")&&(N.removeAttribute("listReversed",pn),dt=!0),pn.hasAttribute("listStart")&&(N.removeAttribute("listStart",pn),dt=!0);for(const Ln of Array.from(E.createRangeIn(pn)).filter(pi=>pi.item.is("element","listItem")))Dt(Ln.previousPosition)}Dt(qe.position.getShiftedBy(qe.length))}else"remove"==qe.type&&"listItem"==qe.name?Dt(qe.position):("attribute"==qe.type&&"listIndent"==qe.attributeKey||"attribute"==qe.type&&"listType"==qe.attributeKey)&&Dt(qe.range.start);for(const qe of K.values())me(qe),Ue(qe);return dt;function Dt(qe){const pn=qe.nodeBefore;if(pn&&pn.is("element","listItem")){let Ln=pn;if(K.has(Ln))return;for(let pi=Ln.previousSibling;pi&&pi.is("element","listItem");pi=Ln.previousSibling)if(Ln=pi,K.has(Ln))return;K.set(pn,Ln)}else{const Ln=qe.nodeAfter;Ln&&Ln.is("element","listItem")&&K.set(Ln,Ln)}}function me(qe){let pn=0,Ln=null;for(;qe&&qe.is("element","listItem");){const pi=qe.getAttribute("listIndent");if(pi>pn){let Ri;null===Ln?(Ln=pi-pn,Ri=pn):(Ln>pi&&(Ln=pi),Ri=pi-Ln),N.setAttribute("listIndent",Ri,qe),dt=!0}else Ln=null,pn=qe.getAttribute("listIndent")+1;qe=qe.nextSibling}}function Ue(qe){let pn=[],Ln=null;for(;qe&&qe.is("element","listItem");){const pi=qe.getAttribute("listIndent");if(Ln&&Ln.getAttribute("listIndent")>pi&&(pn=pn.slice(0,pi+1)),0!=pi)if(pn[pi]){const Ri=pn[pi];qe.getAttribute("listType")!=Ri&&(N.setAttribute("listType",Ri,qe),dt=!0)}else pn[pi]=qe.getAttribute("listType");Ln=qe,qe=qe.nextSibling}}}(r.model,M)),u.mapper.registerViewToModelLength("li",_6),c.mapper.registerViewToModelLength("li",_6),u.mapper.on("modelToViewPosition",Xb(u.view)),u.mapper.on("viewToModelPosition",(_=r.model,(M,E)=>{const N=E.viewPosition,j=N.parent,K=E.mapper;if("ul"==j.name||"ol"==j.name){if(N.isAtEnd){const dt=K.toModelElement(N.nodeBefore),Dt=K.getModelLength(N.nodeBefore);E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Dt)}else{const dt=K.toModelElement(N.nodeAfter);E.modelPosition=_.createPositionBefore(dt)}M.stop()}else if("li"==j.name&&N.nodeBefore&&("ul"==N.nodeBefore.name||"ol"==N.nodeBefore.name)){const dt=K.toModelElement(j);let Dt=1,me=N.nodeBefore;for(;me&&eg(me);)Dt+=K.getModelLength(me),me=me.previousSibling;E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Dt),M.stop()}})),c.mapper.on("modelToViewPosition",Xb(u.view)),r.conversion.for("editingDowncast").add(M=>{var E;M.on("insert",h3,{priority:"high"}),M.on("insert:listItem",$C(r.model)),M.on("attribute:listType:listItem",$b,{priority:"high"}),M.on("attribute:listType:listItem",Tf,{priority:"low"}),M.on("attribute:listIndent:listItem",(E=r.model,(N,j,K)=>{if(!K.consumable.consume(j.item,"attribute:listIndent"))return;const dt=K.mapper.toViewElement(j.item),Dt=K.writer;Dt.breakContainer(Dt.createPositionBefore(dt)),Dt.breakContainer(Dt.createPositionAfter(dt));const me=dt.parent,Ue=me.previousSibling,qe=Dt.createRangeOn(me);Dt.remove(qe),Ue&&Ue.nextSibling&&D1(Dt,Ue,Ue.nextSibling),KC(j.attributeOldValue+1,j.range.start,qe.start,dt,K,E),BC(j.item,dt,K,E);for(const pn of j.item.getChildren())K.consumable.consume(pn,"insert")})),M.on("remove:listItem",function(E){return(N,j,K)=>{const dt=K.mapper.toViewPosition(j.position).getLastMatchingPosition(Ln=>!Ln.item.is("element","li")).nodeAfter,Dt=K.writer;Dt.breakContainer(Dt.createPositionBefore(dt)),Dt.breakContainer(Dt.createPositionAfter(dt));const me=dt.parent,Ue=me.previousSibling,qe=Dt.createRangeOn(me),pn=Dt.remove(qe);Ue&&Ue.nextSibling&&D1(Dt,Ue,Ue.nextSibling),KC(K.mapper.toModelElement(dt).getAttribute("listIndent")+1,j.position,qe.start,dt,K,E);for(const Ln of Dt.createRangeIn(pn).getItems())K.mapper.unbindViewElement(Ln);N.stop()}}(r.model)),M.on("remove",by,{priority:"low"})}),r.conversion.for("dataDowncast").add(M=>{M.on("insert",h3,{priority:"high"}),M.on("insert:listItem",$C(r.model))}),r.conversion.for("upcast").add(M=>{M.on("element:ul",YA,{priority:"high"}),M.on("element:ol",YA,{priority:"high"}),M.on("element:li",Kb,{priority:"high"}),M.on("element:li",vy)}),r.model.on("insertContent",VA,{priority:"high"}),r.commands.add("numberedList",new g2(r,"numbered")),r.commands.add("bulletedList",new g2(r,"bulleted")),r.commands.add("indentList",new Gb(r,"forward")),r.commands.add("outdentList",new Gb(r,"backward"));const C=u.view.document;this.listenTo(C,"enter",(M,E)=>{const N=this.editor.model.document,j=N.selection.getLastPosition().parent;N.selection.isCollapsed&&"listItem"==j.name&&j.isEmpty&&(this.editor.execute("outdentList"),E.preventDefault(),M.stop())},{context:"li"}),this.listenTo(C,"delete",(M,E)=>{if("backward"!==E.direction)return;const N=this.editor.model.document.selection;if(!N.isCollapsed)return;const j=N.getFirstPosition();if(!j.isAtStart)return;const K=j.parent;"listItem"===K.name&&(K.previousSibling&&"listItem"===K.previousSibling.name||(this.editor.execute("outdentList"),E.preventDefault(),M.stop()))},{context:"li"}),this.listenTo(r.editing.view.document,"tab",(M,E)=>{const N=E.shiftKey?"outdentList":"indentList";this.editor.commands.get(N).isEnabled&&(r.execute(N),E.stopPropagation(),E.preventDefault(),M.stop())},{context:"li"})}afterInit(){const r=this.editor.commands,c=r.get("indent"),u=r.get("outdent");c&&c.registerChildCommand(r.get("indentList")),u&&u.registerChildCommand(r.get("outdentList"))}}function _6(m){let r=1;for(const c of m.getChildren())if("ul"==c.name||"ol"==c.name)for(const u of c.getChildren())r+=_6(u);return r}tc("Ctrl+Enter");var ev=v(1199);function XC(m,r){const c=(u,_,C)=>{if(!C.consumable.consume(_.item,u.name))return;const M=_.attributeNewValue,E=C.writer,N=C.mapper.toViewElement(_.item),j=[...N.getChildren()].find(dt=>dt.getCustomProperty("media-content"));E.remove(j);const K=m.getMediaViewElement(E,M,r);E.insert(E.createPositionAt(N,0),K)};return u=>{u.on("attribute:url:media",c)}}function f6(m,r,c,u){return m.createContainerElement("figure",{class:"media"},[r.getMediaViewElement(m,c,u),m.createSlot()])}function h6(m){const r=m.getSelectedElement();return r&&r.is("element","media")?r:null}function GA(m,r,c,u){m.change(_=>{const C=_.createElement("media",{url:r});m.insertObject(C,c,null,{setSelection:"on",findOptimalPosition:u?"auto":void 0})})}Fo()(ev.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),tc("Ctrl+Enter");class t8 extends Ua{refresh(){const r=this.editor.model,c=r.document.selection,u=h6(c);this.value=u?u.getAttribute("url"):void 0,this.isEnabled=function(_){const C=_.getSelectedElement();return!!C&&"media"===C.name}(c)||function(_,C){let E=q4(_,C).start.parent;return E.isEmpty&&!C.schema.isLimit(E)&&(E=E.parent),C.schema.checkChild(E,"media")}(c,r)}execute(r){const c=this.editor.model,u=c.document.selection,_=h6(u);_?c.change(C=>{C.setAttribute("url",r,_)}):GA(c,r,u,!0)}}class ng{constructor(r,c){const u=c.providers,_=c.extraProviders||[],C=new Set(c.removeProviders),M=u.concat(_).filter(E=>{const N=E.name;return N?!C.has(N):(Zt("media-embed-no-provider-name",{provider:E}),!1)});this.locale=r,this.providerDefinitions=M}hasMedia(r){return!!this._getMedia(r)}getMediaViewElement(r,c,u){return this._getMedia(c).getViewElement(r,u)}_getMedia(r){if(!r)return new e8(this.locale);r=r.trim();for(const c of this.providerDefinitions){const u=c.html,_=Ss(c.url);for(const C of _){const M=this._getUrlMatches(r,C);if(M)return new e8(this.locale,r,M,u)}}return null}_getUrlMatches(r,c){let u=r.match(c);if(u)return u;let _=r.replace(/^https?:\/\//,"");return u=_.match(c),u||(_=_.replace(/^www\./,""),u=_.match(c),u||null)}}class e8{constructor(r,c,u,_){this.url=this._getValidUrl(c),this._locale=r,this._match=u,this._previewRenderer=_}getViewElement(r,c){const u={};let _;if(c.renderForEditingView||c.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(u["data-oembed-url"]=this.url),c.renderForEditingView&&(u.class="ck-media__wrapper");const C=this._getPreviewHtml(c);_=r.createRawElement("div",u,(M,E)=>{E.setContentOf(M,C)})}else this.url&&(u.url=this.url),_=r.createEmptyElement(c.elementName,u);return r.setCustomProperty("media-content",!0,_),_}_getPreviewHtml(r){return this._previewRenderer?this._previewRenderer(this._match):this.url&&r.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const r=new zs,c=this._locale.t;return r.content='',r.viewBox="0 0 64 42",new Ur({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[r]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":c("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(r){return r?r.match(/^https?/)?r:"https://"+r:null}}var n8=v(7442);Fo()(n8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class nv extends lo{constructor(r){super(r),r.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:c=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:c=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:c=>{const _=c[2];return`
`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:c=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new ng(r.locale,r.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}init(){const r=this.editor,c=r.model.schema,u=r.t,_=r.conversion,C=r.config.get("mediaEmbed.previewsInData"),M=r.config.get("mediaEmbed.elementName"),E=this.registry;r.commands.add("mediaEmbed",new t8(r)),c.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),_.for("dataDowncast").elementToStructure({model:"media",view:(N,{writer:j})=>{const K=N.getAttribute("url");return f6(j,E,K,{elementName:M,renderMediaPreview:!!K&&C})}}),_.for("dataDowncast").add(XC(E,{elementName:M,renderMediaPreview:C})),_.for("editingDowncast").elementToStructure({model:"media",view:(N,{writer:j})=>{const K=N.getAttribute("url");return dt=f6(j,E,K,{elementName:M,renderForEditingView:!0}),Dt=j,me=u("media widget"),Dt.setCustomProperty("media",!0,dt),ep(dt,Dt,{label:me});var dt,Dt,me}}),_.for("editingDowncast").add(XC(E,{elementName:M,renderForEditingView:!0})),_.for("upcast").elementToElement({view:N=>["oembed",M].includes(N.name)&&N.getAttribute("url")?{name:!0}:null,model:(N,{writer:j})=>{const K=N.getAttribute("url");return E.hasMedia(K)?j.createElement("media",{url:K}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(N,{writer:j})=>{const K=N.getAttribute("data-oembed-url");return E.hasMedia(K)?j.createElement("media",{url:K}):null}}).add(N=>{N.on("element:figure",(j,K,dt)=>{if(!dt.consumable.consume(K.viewItem,{name:!0,classes:"media"}))return;const{modelRange:Dt,modelCursor:me}=dt.convertChildren(K.viewItem,K.modelCursor);K.modelRange=Dt,K.modelCursor=me,os(Dt.getItems())||dt.consumable.revert(K.viewItem,{name:!0,classes:"media"})})})}}const QA=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class WA extends lo{constructor(r){super(r),this._timeoutId=null,this._positionToInsert=null}static get requires(){return[Ax,r_,Sx]}static get pluginName(){return"AutoMediaEmbed"}init(){const r=this.editor,c=r.model.document,u=r.plugins.get("ClipboardPipeline");this.listenTo(u,"inputTransformation",()=>{const _=c.selection.getFirstRange(),C=el.fromPosition(_.start);C.stickiness="toPrevious";const M=el.fromPosition(_.end);M.stickiness="toNext",c.once("change:data",()=>{this._embedMediaBetweenPositions(C,M),C.detach(),M.detach()},{priority:"high"})}),r.commands.get("undo").on("execute",()=>{this._timeoutId&&(Lt.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(r,c){const u=this.editor,_=u.plugins.get(nv).registry,C=new Xu(r,c),M=C.getWalker({ignoreElementEnd:!0});let E="";for(const N of M)N.item.is("$textProxy")&&(E+=N.item.data);E=E.trim(),E.match(QA)&&_.hasMedia(E)&&u.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=el.fromPosition(r),this._timeoutId=Lt.window.setTimeout(()=>{u.model.change(N=>{this._timeoutId=null,N.remove(C),C.detach();let j=null;"$graveyard"!==this._positionToInsert.root.rootName&&(j=this._positionToInsert),GA(u.model,E,j,!1),this._positionToInsert.detach(),this._positionToInsert=null}),u.plugins.get(r_).requestUndoOnBackspace()},100)):C.detach()}}var i8=v(9292);Fo()(i8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ay extends oa{constructor(r,c){super(c);const u=c.t;this.focusTracker=new as,this.keystrokes=new $c,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),hs.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",_=>!!_),this.cancelButtonView=this._createButton(u("Cancel"),hs.cancel,"ck-button-cancel","cancel"),this._focusables=new Ia,this._focusCycler=new dl({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=r,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),x({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(c=>{this._focusables.add(c),this.focusTracker.add(c.element)}),this.keystrokes.listenTo(this.element);const r=c=>c.stopPropagation();this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(r){this.urlInputView.fieldView.element.value=r.trim()}isValid(){this.resetFormStatus();for(const r of this._validators){const c=r(this);if(c)return this.urlInputView.errorText=c,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const r=this.locale.t,c=new Sr(this.locale,uf),u=c.fieldView;return this._urlInputViewInfoDefault=r("Paste the media URL in the input."),this._urlInputViewInfoTip=r("Tip: Paste the URL into the content to embed faster."),c.label=r("Media URL"),c.infoText=this._urlInputViewInfoDefault,u.on("input",()=>{c.infoText=u.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=u.element.value.trim()}),c}_createButton(r,c,u,_){const C=new $o(this.locale);return C.set({label:r,icon:c,tooltip:!0}),C.extendTemplate({attributes:{class:u}}),_&&C.delegate("execute").to(this,_),C}}class $A extends lo{static get requires(){return[nv]}static get pluginName(){return"MediaEmbedUI"}init(){const r=this.editor,c=r.commands.get("mediaEmbed");r.ui.componentFactory.add("mediaEmbed",u=>{const _=Op(u);return this._setUpDropdown(_,c),_})}_setUpDropdown(r,c){const u=this.editor,_=u.t,C=r.buttonView,M=u.plugins.get(nv).registry;r.once("change:isOpen",()=>{const E=new(A(Ay))((N=u.t,j=M,[K=>{if(!K.url.length)return N("The URL must not be empty.")},K=>{if(!j.hasMedia(K.url))return N("This media URL is not supported.")}]),u.locale);var N,j;r.panelView.children.add(E),C.on("open",()=>{E.disableCssTransitions(),E.url=c.value||"",E.urlInputView.fieldView.select(),E.enableCssTransitions()},{priority:"low"}),r.on("submit",()=>{E.isValid()&&(u.execute("mediaEmbed",E.url),u.editing.view.focus())}),r.on("change:isOpen",()=>E.resetFormStatus()),r.on("cancel",()=>{u.editing.view.focus()}),E.delegate("submit","cancel").to(r),E.urlInputView.fieldView.bind("value").to(c,"value"),E.urlInputView.bind("isEnabled").to(c,"isEnabled")}),r.bind("isEnabled").to(c),C.set({label:_("Insert media"),icon:'',tooltip:!0})}}var KA=v(4652);function Ty(m){if(m.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(m){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return m;default:return null}}function XA(m,r,c){const u=r.parent,_=c.createElement(m.type),C=u.getChildIndex(r)+1;return c.insertChild(C,_,u),m.style&&c.setStyle("list-style-type",m.style,_),m.startIndex&&m.startIndex>1&&c.setAttribute("start",m.startIndex,_),_}function t7(m){const r={},c=m.getStyle("mso-list");if(c){const u=c.match(/(^|\s{1,100})l(\d+)/i),_=c.match(/\s{0,100}lfo(\d+)/i),C=c.match(/\s{0,100}level(\d+)/i);u&&_&&C&&(r.id=u[2],r.order=_[1],r.indent=parseInt(C[1]))}return r}function Uy(m){return btoa(m.match(/\w{2}/g).map(r=>String.fromCharCode(parseInt(r,16))).join(""))}Fo()(KA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Zy=//i,h=/xmlns:o="urn:schemas-microsoft-com/i;class g{constructor(r){this.document=r}isActive(r){return Zy.test(r)||h.test(r)}execute(r){const{body:c,stylesString:u}=r._parsedData;(function o8(m,r){if(!m.childCount)return;const c=new W1(m.document),u=function(M,E){const N=E.createRangeIn(M),j=new ds({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),K=[];for(const dt of N)if("elementStart"===dt.type&&j.match(dt.item)){const Dt=t7(dt.item);K.push({element:dt.item,id:Dt.id,order:Dt.order,indent:Dt.indent})}return K}(m,c);if(!u.length)return;let _=null,C=1;u.forEach((M,E)=>{const N=function(Ue,qe){if(!Ue)return!0;if(Ue.id!==qe.id)return qe.indent-Ue.indent!=1;const pn=qe.element.previousSibling;return!pn||!((Ln=pn).is("element","ol")||Ln.is("element","ul"));var Ln}(u[E-1],M),K=(Dt=M,(dt=N?null:u[E-1])?Dt.indent-dt.indent:Dt.indent-1);var dt,Dt;if(N&&(_=null,C=1),!_||0!==K){const Ue=function(qe,pn){const pi=/mso-level-number-format:([^;]{0,100});/gi,Ri=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,Go=new RegExp(`@list l${qe.id}:level${qe.indent}\\s*({[^}]*)`,"gi").exec(pn);let ka="decimal",Ts="ol",$r=null;if(Go&&Go[1]){const Il=pi.exec(Go[1]);if(Il&&Il[1]&&(ka=Il[1].trim(),Ts="bullet"!==ka&&"image"!==ka?"ol":"ul"),"bullet"===ka){const hl=function(T6){const v2=function(Uf){if(Uf.getChild(0).is("$text"))return null;for(const x2 of Uf.getChildren()){if(!x2.is("element","span"))continue;const C3=x2.getChild(0);if(C3)return C3.is("$text")?C3:C3.getChild(0)}return null}(T6);if(!v2)return null;const Rp=v2._data;return"o"===Rp?"circle":"\xb7"===Rp?"disc":"\xa7"===Rp?"square":null}(qe.element);hl&&(ka=hl)}else{const hl=Ri.exec(Go[1]);hl&&hl[1]&&($r=parseInt(hl[1]))}}return{type:Ts,startIndex:$r,style:Ty(ka)}}(M,r);if(_)if(M.indent>C){const qe=_.getChild(_.childCount-1),pn=qe.getChild(qe.childCount-1);_=XA(Ue,pn,c),C+=1}else M.indentC.indexOf(Ue)>-1)?K.push(Dt):Dt.getAttribute("src")||K.push(Dt)}for(const dt of K)E.remove(dt)})(u,m,c),function(C,M,E){const N=E.createRangeIn(M),j=[];for(const Dt of N)if("elementStart"==Dt.type&&Dt.item.is("element","v:shape")){const me=Dt.item.getAttribute("id");if(C.includes(me))continue;K(Dt.item.parent.getChildren(),me)||j.push(Dt.item)}for(const Dt of j){const me={src:dt(Dt)};Dt.hasAttribute("alt")&&(me.alt=Dt.getAttribute("alt"));const Ue=E.createElement("img",me);E.insertChild(Dt.index+1,Ue,Dt.parent)}function K(Dt,me){for(const Ue of Dt)if(Ue.is("element")&&("img"==Ue.name&&Ue.getAttribute("v:shapes")==me||K(Ue.getChildren(),me)))return!0;return!1}function dt(Dt){for(const me of Dt.getChildren())if(me.is("element")&&me.getAttribute("src"))return me.getAttribute("src")}}(u,m,c),function(C,M){const E=M.createRangeIn(C),N=new ds({name:/v:(.+)/}),j=[];for(const K of E)"elementStart"==K.type&&N.match(K.item)&&j.push(K.item);for(const K of j)M.remove(K)}(m,c);const _=function(C,M){const E=M.createRangeIn(C),N=new ds({name:"img"}),j=[];for(const K of E)K.item.is("element")&&N.match(K.item)&&K.item.getAttribute("src").startsWith("file://")&&j.push(K.item);return j}(m,c);_.length&&function(C,M,E){if(C.length===M.length)for(let N=0;NM.is("element")&&!u.includes(M.name)&&!_.includes(M.name),{direction:r}),"forward"==r?C.nodeAfter:C.nodeBefore}function O(m,r){return!!m&&m.is("element")&&r.includes(m.name)}const q=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class V{constructor(r){this.document=r}isActive(r){return q.test(r)}execute(r){const c=new W1(this.document),{body:u}=r._parsedData;(function(_,C){for(const M of _.getChildren())if(M.is("element","b")&&"normal"===M.getStyle("font-weight")){const E=_.getChildIndex(M);C.remove(M),C.insertChild(E,M.getChildren(),_)}})(u,c),function(_,C){for(const M of C.createRangeIn(_)){const E=M.item;if(E.is("element","li")){const N=E.getChild(0);N&&N.is("element","p")&&C.unwrapElement(N)}}}(u,c),function(_,C){const M=new Xp(C.document.stylesProcessor),E=new N_(M,{renderingMode:"data"}),N=E.blockElements,j=E.inlineObjectElements,K=[];for(const dt of C.createRangeIn(_)){const Dt=dt.item;if(Dt.is("element","br")){const me=U(Dt,"forward",C,{blockElements:N,inlineObjectElements:j}),Ue=U(Dt,"backward",C,{blockElements:N,inlineObjectElements:j}),qe=O(me,N);(O(Ue,N)||qe)&&K.push(Dt)}}for(const dt of K)dt.hasClass("Apple-interchange-newline")?C.remove(dt):C.replace(dt,C.createElement("p"))}(u,c),r.content=u}}const ut=/(\s+)<\/span>/g,(r,c)=>1===c.length?" ":Array(c.length+1).join("\xa0 ").substr(0,c.length))}function Qe(m,r,c,u,_=1){null!=r&&null!=_&&r>_?u.setAttribute(m,r,c):u.removeAttribute(m,c)}function An(m,r,c={}){const u=m.createElement("tableCell",c);return m.insertElement("paragraph",u),m.insert(u,r),u}function si(m,r){const u=parseInt(r.parent.parent.getAttribute("headingColumns")||"0"),{column:_}=m.getCellLocation(r);return!!u&&_{r.on(`element:${m}`,(c,u,{writer:_})=>{if(!u.modelRange)return;const C=u.modelRange.start.nodeAfter,M=_.createPositionAt(C,0);if(u.viewItem.isEmpty)return void _.insertElement("paragraph",M);const E=Array.from(C.getChildren());if(E.every(N=>N.is("element","$marker"))){const N=_.createElement("paragraph");_.insert(N,_.createPositionAt(C,0));for(const j of E)_.move(_.createRangeOn(j),_.createPositionAt(N,"end"))}},{priority:"low"})}}function Ao(m){let r=0,c=0;const u=Array.from(m.getChildren()).filter(_=>"th"===_.name||"td"===_.name);for(;c1||M>1)&&this._recordSpans(_,M,C),this._shouldSkipSlot()||(c=this._formatOutValue(_)),this._nextCellAtColumn=this._column+C}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,c||this.next()}skipRow(r){this._skipRows.add(r)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(r,c=this._row,u=this._column){return{done:!1,value:new pa(this,r,c,u)}}_shouldSkipSlot(){return this._skipRows.has(this._row)||this._rowthis._endColumn}_getSpanned(){const r=this._spannedCells.get(this._row);return r&&r.get(this._column)||null}_recordSpans(r,c,u){const _={cell:r,row:this._row,column:this._column};for(let C=this._row;C0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const r=this._getRowLength(0);for(let c=this._startRow;!this._jumpedToStartRow;c--)r===this._getRowLength(c)&&(this._row=c,this._rowIndex=c,this._jumpedToStartRow=!0)}_getRowLength(r){return[...this._table.getChild(r).getChildren()].reduce((c,u)=>c+parseInt(u.getAttribute("colspan")||"1"),0)}}class pa{constructor(r,c,u,_){this.cell=c,this.row=r._row,this.column=r._column,this.cellAnchorRow=u,this.cellAnchorColumn=_,this._cellIndex=r._cellIndex,this._rowIndex=r._rowIndex,this._table=r._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function Ta(m,r){return(c,{writer:u})=>{const _=c.getAttribute("headingRows")||0,C=u.createContainerElement("table",null,[]),M=u.createContainerElement("figure",{class:"table"},C);_>0&&u.insert(u.createPositionAt(C,"end"),u.createContainerElement("thead",null,u.createSlot(E=>E.is("element","tableRow")&&E.index<_))),_E.is("element","tableRow")&&E.index>=_)));for(const{positionOffset:E,filter:N}of r.additionalSlots)u.insert(u.createPositionAt(C,E),u.createSlot(N));return u.insert(u.createPositionAt(C,"after"),u.createSlot(E=>!E.is("element","tableRow")&&!r.additionalSlots.some(({filter:N})=>N(E)))),r.asWidget?((N=u).setCustomProperty("table",!0,E=M),ep(E,N,{hasSelectionHandle:!0})):M;var E,N}}function oo(m={}){return(r,{writer:c})=>{const u=r.parent,_=u.parent,C=_.getChildIndex(u),M=new ro(_,{row:C}),E=_.getAttribute("headingRows")||0,N=_.getAttribute("headingColumns")||0;let j=null;for(const K of M)if(K.cell==r){const dt=K.row{if(!r.parent.is("element","tableCell")||!zr(r))return null;if(m.asWidget)return c.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const u=c.createContainerElement("p");return c.setCustomProperty("dataPipeline:transparentRendering",!0,u),u}}}function zr(m){return 1==m.parent.childCount&&!!m.getAttributeKeys().next().done}class Mc extends Ua{refresh(){const r=this.editor.model;this.isEnabled=function(_,C){const M=_.getFirstPosition().parent;return C.checkChild(M===M.root?M:M.parent,"table")}(r.document.selection,r.schema)}execute(r={}){const c=this.editor,u=c.model,_=c.plugins.get("TableUtils"),C=c.config.get("table.defaultHeadings.rows"),M=c.config.get("table.defaultHeadings.columns");void 0===r.headingRows&&C&&(r.headingRows=C),void 0===r.headingColumns&&M&&(r.headingColumns=M),u.change(E=>{const N=_.createTable(E,r);u.insertObject(N,null,null,{findOptimalPosition:"auto"}),E.setSelection(E.createPositionAt(N.getNodeByPath([0,0,0]),0))})}}class b2 extends Ua{constructor(r,c={}){super(r),this.order=c.order||"below"}refresh(){const r=this.editor.model.document.selection,c=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(r).length;this.isEnabled=c}execute(){const r=this.editor,c=r.model.document.selection,u=r.plugins.get("TableUtils"),_="above"===this.order,C=u.getSelectionAffectedTableCells(c),M=u.getRowIndexes(C),E=_?M.first:M.last,N=C[0].findAncestor("table");u.insertRows(N,{at:_?E:E+1,copyStructureFromAbove:!_})}}class g6 extends Ua{constructor(r,c={}){super(r),this.order=c.order||"right"}refresh(){const r=this.editor.model.document.selection,c=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(r).length;this.isEnabled=c}execute(){const r=this.editor,c=r.model.document.selection,u=r.plugins.get("TableUtils"),_="left"===this.order,C=u.getSelectionAffectedTableCells(c),M=u.getColumnIndexes(C),E=_?M.first:M.last,N=C[0].findAncestor("table");u.insertColumns(N,{columns:1,at:_?E:E+1})}}class g3 extends Ua{constructor(r,c={}){super(r),this.direction=c.direction||"horizontally"}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===r.length}execute(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?r.splitCellHorizontally(c,2):r.splitCellVertically(c,2)}}function b6(m,r,c){const{startRow:u,startColumn:_,endRow:C,endColumn:M}=r,E=c.createElement("table"),N=C-u+1;for(let K=0;K0&&Qe("headingRows",qe-Dt,K,Ue,0);const pn=parseInt(dt.getAttribute("headingColumns")||"0");pn>0&&Qe("headingColumns",pn-me,K,Ue,0)}(E,m,u,_,c),E}function v6(m,r,c=0){const u=[],_=new ro(m,{startRow:c,endRow:r-1});for(const C of _){const{row:M,cellHeight:E}=C;M1&&(E.rowspan=N);const j=parseInt(m.getAttribute("colspan")||"1");j>1&&(E.colspan=j);const K=C+M,dt=[...new ro(_,{startRow:C,endRow:K,includeAllSlots:!0})];let Dt,me=null;for(const Ue of dt){const{row:qe,column:pn,cell:Ln}=Ue;Ln===m&&void 0===Dt&&(Dt=pn),void 0!==Dt&&Dt===pn&&qe===K&&(me=An(c,Ue.getPositionBefore(),E))}return Qe("rowspan",M,m,c),me}function C6(m,r){const c=[],u=new ro(m);for(const _ of u){const{column:C,cellWidth:M}=_;C1&&(C.colspan=M);const E=parseInt(m.getAttribute("rowspan")||"1");E>1&&(C.rowspan=E);const N=An(u,u.createPositionAfter(m),C);return Qe("colspan",_,m,u),N}function b3(m,r,c,u,_,C){const M=parseInt(m.getAttribute("colspan")||"1"),E=parseInt(m.getAttribute("rowspan")||"1");c+M-1>_&&Qe("colspan",_-c+1,m,C,1),r+E-1>u&&Qe("rowspan",u-r+1,m,C,1)}function v3(m,r){const c=r.getColumns(m),u=new Array(c).fill(0);for(const{column:C}of new ro(m))u[C]++;const _=u.reduce((C,M,E)=>M?C:[...C,E],[]);return _.length>0&&(r.removeColumns(m,{at:_[_.length-1]}),!0)}function a8(m,r){const c=[],u=r.getRows(m);for(let _=0;_0&&(r.removeRows(m,{at:c[c.length-1]}),!0)}function e7(m,r){v3(m,r)||a8(m,r)}function n7(m,r){const c=Array.from(new ro(m,{startColumn:r.firstColumn,endColumn:r.lastColumn,row:r.lastRow}));return c.every(({cellHeight:_})=>1===_)?r.lastRow:r.lastRow+(c[0].cellHeight-1)}function My(m,r){const c=Array.from(new ro(m,{startRow:r.firstRow,endRow:r.lastRow,column:r.lastColumn}));return c.every(({cellWidth:_})=>1===_)?r.lastColumn:r.lastColumn+(c[0].cellWidth-1)}class iv extends Ua{constructor(r,c){super(r),this.direction=c.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const r=this._getMergeableCell();this.value=r,this.isEnabled=!!r}execute(){const r=this.editor.model,c=r.document,u=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(c.selection)[0],_=this.value,C=this.direction;r.change(M=>{const E="right"==C||"down"==C,N=E?u:_,j=E?_:u,K=j.parent;var qe,pn,Ln;pn=N,Ln=M,ky(qe=j)||(ky(pn)&&Ln.remove(Ln.createRangeIn(pn)),Ln.move(Ln.createRangeIn(qe),Ln.createPositionAt(pn,"end"))),Ln.remove(qe);const dt=this.isHorizontal?"colspan":"rowspan",Dt=parseInt(u.getAttribute(dt)||"1"),me=parseInt(_.getAttribute(dt)||"1");M.setAttribute(dt,Dt+me,N),M.setSelection(M.createRangeIn(N));const Ue=this.editor.plugins.get("TableUtils");e7(K.findAncestor("table"),Ue)})}_getMergeableCell(){const r=this.editor.model.document,c=this.editor.plugins.get("TableUtils"),u=c.getTableCellsContainingSelection(r.selection)[0];if(!u)return;const _=this.isHorizontal?function(E,N,j){const Dt="right"==N?E.nextSibling:E.previousSibling,me=(E.parent.parent.getAttribute("headingColumns")||0)>0;if(!Dt)return;const Ue="right"==N?E:Dt,qe="right"==N?Dt:E,{column:pn}=j.getCellLocation(Ue),{column:Ln}=j.getCellLocation(qe),pi=parseInt(Ue.getAttribute("colspan")||"1"),Ri=si(j,Ue),Go=si(j,qe);return me&&Ri!=Go?void 0:pn+pi===Ln?Dt:void 0}(u,this.direction,c):function(E,N,j){const K=E.parent,dt=K.parent,Dt=dt.getChildIndex(K);if("down"==N&&Dt===j.getRows(dt)-1||"up"==N&&0===Dt)return null;const me=parseInt(E.getAttribute("rowspan")||"1"),Ue=dt.getAttribute("headingRows")||0;if(Ue&&("down"==N&&Dt+me===Ue||"up"==N&&Dt===Ue))return null;const Ln=parseInt(E.getAttribute("rowspan")||"1"),pi="down"==N?Dt+Ln:Dt,Ri=[...new ro(dt,{endRow:pi})],ka=Ri.find($r=>$r.cell===E).column,Ts=Ri.find(({row:$r,cellHeight:Il,column:hl})=>hl===ka&&("down"==N?$r===pi:pi===$r+Il));return Ts&&Ts.cell?Ts.cell:null}(u,this.direction,c);if(!_)return;const C=this.isHorizontal?"rowspan":"colspan",M=parseInt(u.getAttribute(C)||"1");return parseInt(_.getAttribute(C)||"1")===M?_:void 0}}function ky(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}class Dy extends Ua{refresh(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection),u=c[0];if(u){const _=u.findAncestor("table"),C=r.getRows(_)-1,M=r.getRowIndexes(c);this.isEnabled=!(0===M.first&&M.last===C)}else this.isEnabled=!1}execute(){const r=this.editor.model,c=this.editor.plugins.get("TableUtils"),u=c.getSelectionAffectedTableCells(r.document.selection),_=c.getRowIndexes(u),C=u[0],M=C.findAncestor("table"),E=c.getCellLocation(C).column;r.change(N=>{c.removeRows(M,{at:_.first,rows:_.last-_.first+1});const K=function(dt,Dt,me,Ue){const qe=dt.getChild(Math.min(Dt,Ue-1));let pn=qe.getChild(0),Ln=0;for(const pi of qe.getChildren()){if(Ln>me)return pn;pn=pi,Ln+=parseInt(pi.getAttribute("colspan")||"1")}return pn}(M,_.first,E,c.getRows(M));N.setSelection(N.createPositionAt(K,0))})}}class Py extends Ua{refresh(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection),u=c[0];if(u){const _=u.findAncestor("table"),C=r.getColumns(_),{first:M,last:E}=r.getColumnIndexes(c);this.isEnabled=E-MN.cell===c).column,last:C.find(N=>N.cell===u).column},E=(N=C,j=c,K=u,dt=M,parseInt(K.getAttribute("colspan")||"1")>1?K:j.previousSibling||K.nextSibling?K.nextSibling||j.previousSibling:dt.first?N.reverse().find(({column:me})=>meme>dt.last).cell);var N,j,K,dt;this.editor.model.change(N=>{r.removeColumns(_,{at:M.first,columns:M.last-M.first+1}),N.setSelection(N.createPositionAt(E,0))})}}class GT extends Ua{refresh(){const u=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection),_=u.length>0;this.isEnabled=_,this.value=_&&u.every(C=>this._isInHeading(C,C.parent.parent))}execute(r={}){if(r.forceValue===this.value)return;const c=this.editor.plugins.get("TableUtils"),u=this.editor.model,_=c.getSelectionAffectedTableCells(u.document.selection),C=_[0].findAncestor("table"),{first:M,last:E}=c.getRowIndexes(_),N=this.value?M:E+1,j=C.getAttribute("headingRows")||0;u.change(K=>{if(N){const dt=v6(C,N,N>j?j:0);for(const{cell:Dt}of dt)x6(Dt,N,K)}Qe("headingRows",N,C,K,0)})}_isInHeading(r,c){const u=parseInt(c.getAttribute("headingRows")||"0");return!!u&&r.parent.index0;this.isEnabled=_,this.value=_&&u.every(C=>si(c,C))}execute(r={}){if(r.forceValue===this.value)return;const c=this.editor.plugins.get("TableUtils"),u=this.editor.model,_=c.getSelectionAffectedTableCells(u.document.selection),C=_[0].findAncestor("table"),{first:M,last:E}=c.getColumnIndexes(_),N=this.value?M:E+1;u.change(j=>{if(N){const K=C6(C,N);for(const{cell:dt,column:Dt}of K)A6(dt,Dt,N,j)}Qe("headingColumns",N,C,j,0)})}}class s1 extends lo{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(r){const c=r.parent,u=c.parent,_=u.getChildIndex(c),C=new ro(u,{row:_});for(const{cell:M,row:E,column:N}of C)if(M===r)return{row:E,column:N}}createTable(r,c){const u=r.createElement("table"),_=c.rows||2,C=c.columns||2;return i7(r,u,0,_,C),c.headingRows&&Qe("headingRows",Math.min(c.headingRows,_),u,r,0),c.headingColumns&&Qe("headingColumns",Math.min(c.headingColumns,C),u,r,0),u}insertRows(r,c={}){const u=this.editor.model,_=c.at||0,C=c.rows||1,M=void 0!==c.copyStructureFromAbove,E=c.copyStructureFromAbove?_-1:_,N=this.getRows(r),j=this.getColumns(r);if(_>N)throw new at("tableutils-insertrows-insert-out-of-range",this,{options:c});u.change(K=>{const dt=r.getAttribute("headingRows")||0;if(dt>_&&Qe("headingRows",dt+C,r,K,0),!M&&(0===_||_===N))return void i7(K,r,_,C,j);const Dt=M?Math.max(_,E):_,me=new ro(r,{endRow:Dt}),Ue=new Array(j).fill(1);for(const{row:qe,column:pn,cellHeight:Ln,cellWidth:pi,cell:Ri}of me){const Go=qe+Ln-1,ka=qe<=E&&E<=Go;qe<_&&_<=Go?(K.setAttribute("rowspan",Ln+C,Ri),Ue[pn]=-pi):M&&ka&&(Ue[pn]=pi)}for(let qe=0;qe0&&An(K,Ri,pi>1?{colspan:pi}:void 0),Ln+=Math.abs(pi)-1}}})}insertColumns(r,c={}){const _=c.at||0,C=c.columns||1;this.editor.model.change(M=>{const E=r.getAttribute("headingColumns");_C-1)throw new at("tableutils-removerows-row-index-out-of-range",this,{table:r,options:c});u.change(N=>{const j={first:M,last:E},{cellsToMove:K,cellsToTrim:dt}=function(Dt,{first:me,last:Ue}){const qe=new Map,pn=[];for(const{row:Ln,column:pi,cellHeight:Ri,cell:Go}of new ro(Dt,{endRow:Ue})){const ka=Ln+Ri-1;if(Ln>=me&&Ln<=Ue&&ka>Ue&&qe.set(pi,{cell:Go,rowspan:Ri-(Ue-Ln+1)}),Ln=me){let Ts;Ts=ka>=Ue?Ue-me+1:ka-me+1,pn.push({cell:Go,rowspan:Ri-Ts})}}return{cellsToMove:qe,cellsToTrim:pn}}(r,j);K.size&&function(Dt,me,Ue,qe){const Ln=[...new ro(Dt,{includeAllSlots:!0,row:me})],pi=Dt.getChild(me);let Ri;for(const{column:Go,cell:ka,isAnchor:Ts}of Ln)if(Ue.has(Go)){const{cell:$r,rowspan:Il}=Ue.get(Go),hl=Ri?qe.createPositionAfter(Ri):qe.createPositionAt(pi,0);qe.move(qe.createRangeOn($r),hl),Qe("rowspan",Il,$r,qe),Ri=$r}else Ts&&(Ri=ka)}(r,E+1,K,N);for(let Dt=E;Dt>=M;Dt--)N.remove(r.getChild(Dt));for(const{rowspan:Dt,cell:me}of dt)Qe("rowspan",Dt,me,N);(function(Dt,{first:me,last:Ue},qe){const pn=Dt.getAttribute("headingRows")||0;me{!function(j,K,dt){const Dt=j.getAttribute("headingColumns")||0;if(Dt&&K.firstc.is("element","tableColumnGroup"))}(m);return r?Array.from(r.getChildren()):[]}(r);for(let j=M;j>=_;j--){for(const{cell:K,column:dt,cellWidth:Dt}of[...new ro(r)])dt<=j&&Dt>1&&dt+Dt>j?Qe("colspan",Dt-1,K,E):dt===j&&E.remove(K);if(N[j]){const K=0===j?N[1]:N[j-1],dt=parseFloat(N[j].getAttribute("columnWidth")),Dt=parseFloat(K.getAttribute("columnWidth"));E.remove(N[j]),E.setAttribute("columnWidth",dt+Dt+"%",K)}}a8(r,this)||v3(r,this)})}splitCellVertically(r,c=2){const u=this.editor.model,_=r.parent.parent,C=parseInt(r.getAttribute("rowspan")||"1"),M=parseInt(r.getAttribute("colspan")||"1");u.change(E=>{if(M>1){const{newCellsSpan:N,updatedSpan:j}=Sy(M,c);Qe("colspan",j,r,E);const K={};N>1&&(K.colspan=N),C>1&&(K.rowspan=C),y6(M>c?c-1:M-1,E,E.createPositionAfter(r),K)}if(MUe===r),dt=j.filter(({cell:Ue,cellWidth:qe,column:pn})=>Ue!==r&&pn===K||pnK);for(const{cell:Ue,cellWidth:qe}of dt)E.setAttribute("colspan",qe+N,Ue);const Dt={};C>1&&(Dt.rowspan=C),y6(N,E,E.createPositionAfter(r),Dt);const me=_.getAttribute("headingColumns")||0;me>K&&Qe("headingColumns",me+N,_,E)}})}splitCellHorizontally(r,c=2){const u=this.editor.model,_=r.parent,C=_.parent,M=C.getChildIndex(_),E=parseInt(r.getAttribute("rowspan")||"1"),N=parseInt(r.getAttribute("colspan")||"1");u.change(j=>{if(E>1){const K=[...new ro(C,{startRow:M,endRow:M+E-1,includeAllSlots:!0})],{newCellsSpan:dt,updatedSpan:Dt}=Sy(E,c);Qe("rowspan",Dt,r,j);const{column:me}=K.find(({cell:qe})=>qe===r),Ue={};dt>1&&(Ue.rowspan=dt),N>1&&(Ue.colspan=N);for(const qe of K){const{column:pn,row:Ln}=qe;Ln>=M+Dt&&pn===me&&(Ln+M+Dt)%dt==0&&y6(1,j,qe.getPositionBefore(),Ue)}}if(EM&&j.setAttribute("rowspan",qe+K,Ue);const Dt={};N>1&&(Dt.colspan=N),i7(j,C,M+1,K,1,Dt);const me=C.getAttribute("headingRows")||0;me>M&&Qe("headingRows",me+K,C,j)}})}getColumns(r){return[...r.getChild(0).getChildren()].reduce((c,u)=>c+parseInt(u.getAttribute("colspan")||"1"),0)}getRows(r){return Array.from(r.getChildren()).reduce((c,u)=>u.is("element","tableRow")?c+1:c,0)}createTableWalker(r,c={}){return new ro(r,c)}getSelectedTableCells(r){const c=[];for(const u of this.sortRanges(r.getRanges())){const _=u.getContainedElement();_&&_.is("element","tableCell")&&c.push(_)}return c}getTableCellsContainingSelection(r){const c=[];for(const u of r.getRanges()){const _=u.start.findAncestor("tableCell");_&&c.push(_)}return c}getSelectionAffectedTableCells(r){const c=this.getSelectedTableCells(r);return c.length?c:this.getTableCellsContainingSelection(r)}getRowIndexes(r){const c=r.map(u=>u.parent.index);return this._getFirstLastIndexesObject(c)}getColumnIndexes(r){const c=r[0].findAncestor("table"),u=[...new ro(c)].filter(_=>r.includes(_.cell)).map(_=>_.column);return this._getFirstLastIndexesObject(u)}isSelectionRectangular(r){if(r.length<2||!this._areCellInTheSameTableSection(r))return!1;const c=new Set,u=new Set;let _=0;for(const M of r){const{row:E,column:N}=this.getCellLocation(M),j=parseInt(M.getAttribute("rowspan"))||1,K=parseInt(M.getAttribute("colspan"))||1;c.add(E),u.add(N),j>1&&c.add(E+j-1),K>1&&u.add(N+K-1),_+=j*K}return function(M,E){const N=Array.from(M.values()),j=Array.from(E.values());return(Math.max(...N)-Math.min(...N)+1)*(Math.max(...j)-Math.min(...j)+1)}(c,u)==_}sortRanges(r){return Array.from(r).sort(Ly)}_getFirstLastIndexesObject(r){const c=r.sort((u,_)=>u-_);return{first:c[0],last:c[c.length-1]}}_areCellInTheSameTableSection(r){const c=r[0].findAncestor("table"),u=this.getRowIndexes(r),_=parseInt(c.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(u,_))return!1;const C=this.getColumnIndexes(r),M=parseInt(c.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(C,M)}_areIndexesInSameSection({first:r,last:c},u){return r{const _=c.getSelectedTableCells(r.document.selection),C=_.shift(),{mergeWidth:M,mergeHeight:E}=function(N,j,K){let dt=0,Dt=0;for(const Ln of j){const{row:pi,column:Ri}=K.getCellLocation(Ln);dt=Ey(Ln,Ri,dt,"colspan"),Dt=Ey(Ln,pi,Dt,"rowspan")}const{row:me,column:Ue}=K.getCellLocation(N);return{mergeWidth:dt-Ue,mergeHeight:Dt-me}}(C,_,c);Qe("colspan",M,C,u),Qe("rowspan",E,C,u);for(const N of _)KT(N,C,u);e7(C.findAncestor("table"),c),u.setSelection(C,"in")})}}function KT(m,r,c){Oy(m)||(Oy(r)&&c.remove(c.createRangeIn(r)),c.move(c.createRangeIn(m),c.createPositionAt(r,"end"))),c.remove(m)}function Oy(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}function Ey(m,r,c,u){const _=parseInt(m.getAttribute(u)||"1");return Math.max(c,r+_)}class Xn extends Ua{constructor(r){super(r),this.affectsData=!1}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=r.length>0}execute(){const r=this.editor.model,c=this.editor.plugins.get("TableUtils"),u=c.getSelectionAffectedTableCells(r.document.selection),_=c.getRowIndexes(u),C=u[0].findAncestor("table"),M=[];for(let E=_.first;E<=_.last;E++)for(const N of C.getChild(E).getChildren())M.push(r.createRangeOn(N));r.change(E=>{E.setSelection(M)})}}class Ya extends Ua{constructor(r){super(r),this.affectsData=!1}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=r.length>0}execute(){const r=this.editor.plugins.get("TableUtils"),c=this.editor.model,u=r.getSelectionAffectedTableCells(c.document.selection),_=u[0],C=u.pop(),M=_.findAncestor("table"),E=r.getCellLocation(_),N=r.getCellLocation(C),j=Math.min(E.column,N.column),K=Math.max(E.column,N.column),dt=[];for(const Dt of new ro(M,{startColumn:j,endColumn:K}))dt.push(c.createRangeOn(Dt.cell));c.change(Dt=>{Dt.setSelection(dt)})}}function tw(m,r){let c=!1;const u=function(_){const C=parseInt(_.getAttribute("headingRows")||"0"),M=Array.from(_.getChildren()).reduce((N,j)=>j.is("element","tableRow")?N+1:N,0),E=[];for(const{row:N,cell:j,cellHeight:K}of new ro(_)){if(K<2)continue;const dt=Ndt&&E.push({cell:j,rowspan:dt-N})}return E}(m);if(u.length){c=!0;for(const _ of u)Qe("rowspan",_.rowspan,_.cell,r,1)}return c}function o7(m,r){let c=!1;const u=function(E){const N=new Array(E.childCount).fill(0);for(const{rowIndex:j}of new ro(E,{includeAllSlots:!0}))N[j]++;return N}(m),_=[];for(const[E,N]of u.entries())!N&&m.getChild(E).is("element","tableRow")&&_.push(E);if(_.length){c=!0;for(const E of _.reverse())r.remove(m.getChild(E)),u.splice(E,1)}const C=u.filter((E,N)=>m.getChild(N).is("element","tableRow")),M=C[0];if(!C.every(E=>E===M)){const E=C.reduce((N,j)=>j>N?j:N,0);for(const[N,j]of C.entries()){const K=E-j;if(K){for(let dt=0;dtu.is("$text"));for(const u of c)r.wrap(r.createRangeOn(u),"paragraph");return!!c.length}function ow(m){return!!m.position.parent.is("element","tableCell")&&("insert"==m.type&&"$text"==m.name||"remove"==m.type)}function aw(m,r){if(!m.is("element","paragraph"))return!1;const c=r.toViewElement(m);return!!c&&zr(m)!==c.is("element","span")}var Fy=v(3881);Fo()(Fy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ny extends lo{constructor(r){super(r),this._additionalSlots=[]}static get pluginName(){return"TableEditing"}static get requires(){return[s1]}init(){const r=this.editor,c=r.model,u=c.schema,_=r.conversion,C=r.plugins.get(s1);u.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),u.register("tableRow",{allowIn:"table",isLimit:!0}),u.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),_.for("upcast").add(M=>{M.on("element:figure",(E,N,j)=>{if(!j.consumable.test(N.viewItem,{name:!0,classes:"table"}))return;const K=function(Dt){for(const me of Dt.getChildren())if(me.is("element","table"))return me}(N.viewItem);if(!K||!j.consumable.test(K,{name:!0}))return;j.consumable.consume(N.viewItem,{name:!0,classes:"table"});const dt=os(j.convertItem(K,N.modelCursor).modelRange.getItems());dt?(j.convertChildren(N.viewItem,j.writer.createPositionAt(dt,"end")),j.updateConversionResult(dt,N)):j.consumable.revert(N.viewItem,{name:!0,classes:"table"})})}),_.for("upcast").add(function Ai(){return m=>{m.on("element:table",(r,c,u)=>{const _=c.viewItem;if(!u.consumable.test(_,{name:!0}))return;const{rows:C,headingRows:M,headingColumns:E}=function(K){let dt,Dt=0;const me=[],Ue=[];let qe;for(const pn of Array.from(K.getChildren())){if("tbody"!==pn.name&&"thead"!==pn.name&&"tfoot"!==pn.name)continue;"thead"!==pn.name||qe||(qe=pn);const Ln=Array.from(pn.getChildren()).filter(pi=>pi.is("element","tr"));for(const pi of Ln)if(qe&&pn===qe||"tbody"===pn.name&&Array.from(pi.getChildren()).length&&Array.from(pi.getChildren()).every(Ri=>Ri.is("element","th")))Dt++,me.push(pi);else{Ue.push(pi);const Ri=Ao(pi);(!dt||Riu.convertItem(K,u.writer.createPositionAt(j,"end"))),u.convertChildren(_,u.writer.createPositionAt(j,"end")),j.isEmpty){const K=u.writer.createElement("tableRow");u.writer.insert(K,u.writer.createPositionAt(j,"end")),An(u.writer,u.writer.createPositionAt(K,"end"))}u.updateConversionResult(j,c)}})}}()),_.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Ta(C,{asWidget:!0,additionalSlots:this._additionalSlots})}),_.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Ta(C,{additionalSlots:this._additionalSlots})}),_.for("upcast").elementToElement({model:"tableRow",view:"tr"}),_.for("upcast").add(M=>{M.on("element:tr",(E,N)=>{N.viewItem.isEmpty&&0==N.modelCursor.index&&E.stop()},{priority:"high"})}),_.for("downcast").elementToElement({model:"tableRow",view:(M,{writer:E})=>M.isEmpty?E.createEmptyElement("tr"):E.createContainerElement("tr")}),_.for("upcast").elementToElement({model:"tableCell",view:"td"}),_.for("upcast").elementToElement({model:"tableCell",view:"th"}),_.for("upcast").add(Vi("td")),_.for("upcast").add(Vi("th")),_.for("editingDowncast").elementToElement({model:"tableCell",view:oo({asWidget:!0})}),_.for("dataDowncast").elementToElement({model:"tableCell",view:oo()}),_.for("editingDowncast").elementToElement({model:"paragraph",view:Oa({asWidget:!0}),converterPriority:"high"}),_.for("dataDowncast").elementToElement({model:"paragraph",view:Oa(),converterPriority:"high"}),_.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),_.for("upcast").attributeToAttribute({model:{key:"colspan",value:qy("colspan")},view:"colspan"}),_.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),_.for("upcast").attributeToAttribute({model:{key:"rowspan",value:qy("rowspan")},view:"rowspan"}),r.config.define("table.defaultHeadings.rows",0),r.config.define("table.defaultHeadings.columns",0),r.commands.add("insertTable",new Mc(r)),r.commands.add("insertTableRowAbove",new b2(r,{order:"above"})),r.commands.add("insertTableRowBelow",new b2(r,{order:"below"})),r.commands.add("insertTableColumnLeft",new g6(r,{order:"left"})),r.commands.add("insertTableColumnRight",new g6(r,{order:"right"})),r.commands.add("removeTableRow",new Dy(r)),r.commands.add("removeTableColumn",new Py(r)),r.commands.add("splitTableCellVertically",new g3(r,{direction:"vertically"})),r.commands.add("splitTableCellHorizontally",new g3(r,{direction:"horizontally"})),r.commands.add("mergeTableCells",new $T(r)),r.commands.add("mergeTableCellRight",new iv(r,{direction:"right"})),r.commands.add("mergeTableCellLeft",new iv(r,{direction:"left"})),r.commands.add("mergeTableCellDown",new iv(r,{direction:"down"})),r.commands.add("mergeTableCellUp",new iv(r,{direction:"up"})),r.commands.add("setTableColumnHeader",new QT(r)),r.commands.add("setTableRowHeader",new GT(r)),r.commands.add("selectTableRow",new Xn(r)),r.commands.add("selectTableColumn",new Ya(r)),function XT(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let C=!1;const M=new Set;for(const E of _){let N=null;"insert"==E.type&&"table"==E.name&&(N=E.position.nodeAfter),"insert"!=E.type&&"remove"!=E.type||"tableRow"!=E.name&&"tableCell"!=E.name||(N=E.position.findAncestor("table")),ew(E)&&(N=E.range.start.findAncestor("table")),N&&!M.has(N)&&(C=tw(N,c)||C,C=o7(N,c)||C,M.add(N))}return C}(r,m))}(c),function nw(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let C=!1;for(const M of _)"insert"==M.type&&"table"==M.name&&(C=iw(M.position.nodeAfter,c)||C),"insert"==M.type&&"tableRow"==M.name&&(C=Iy(M.position.nodeAfter,c)||C),"insert"==M.type&&"tableCell"==M.name&&(C=ov(M.position.nodeAfter,c)||C),"remove"!=M.type&&"insert"!=M.type||!ow(M)||(C=ov(M.position.parent,c)||C);return C}(r,m))}(c),this.listenTo(c.document,"change:data",()=>{(function(M,E){const N=M.document.differ;for(const j of N.getChanges()){let K,dt=!1;if("attribute"==j.type){const qe=j.range.start.nodeAfter;if(!qe||!qe.is("element","table")||"headingRows"!=j.attributeKey&&"headingColumns"!=j.attributeKey)continue;K=qe,dt="headingRows"==j.attributeKey}else"tableRow"!=j.name&&"tableCell"!=j.name||(K=j.position.findAncestor("table"),dt="tableRow"==j.name);if(!K)continue;const Dt=K.getAttribute("headingRows")||0,me=K.getAttribute("headingColumns")||0,Ue=new ro(K);for(const qe of Ue){const pn=qe.rowaw(Dt,E.mapper));for(const Dt of dt)E.reconvertItem(Dt)}}(c,r.editing)})}registerAdditionalSlot(r){this._additionalSlots.push(r)}}function qy(m){return r=>{const c=parseInt(r.getAttribute(m));return Number.isNaN(c)||c<=0?null:c}}var Ry=v(1613);Fo()(Ry.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class cw extends oa{constructor(r){super(r);const c=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new $c,this.focusTracker=new as,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(u,_)=>`${_} \xd7 ${u}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":c.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:c.to("label")}]}],on:{mousedown:c.to(u=>{u.preventDefault()}),click:c.to(()=>{this.fire("execute")})}}),this.on("boxover",(u,_)=>{const{row:C,column:M}=_.target.dataset;this.items.get(10*(parseInt(C,10)-1)+(parseInt(M,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(u,_,C)=>{if(!C)return;const{row:M,column:E}=C.dataset;this.set({rows:parseInt(M),columns:parseInt(E)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),function({keystrokeHandler:r,focusTracker:c,gridItems:u,numberOfColumns:_,uiLanguageDirection:C}){const M="number"==typeof _?()=>_:_;function E(K){return dt=>{const Dt=u.find(qe=>qe.element===c.focusedElement),me=u.getIndex(Dt),Ue=K(me,u);u.get(Ue).focus(),dt.stopPropagation(),dt.preventDefault()}}function N(K,dt){return K===dt-1?0:K+1}function j(K,dt){return 0===K?dt-1:K-1}r.set("arrowright",E((K,dt)=>"rtl"===C?j(K,dt.length):N(K,dt.length))),r.set("arrowleft",E((K,dt)=>"rtl"===C?N(K,dt.length):j(K,dt.length))),r.set("arrowup",E((K,dt)=>{let Dt=K-M();return Dt<0&&(Dt=K+M()*Math.floor(dt.length/M()),Dt>dt.length-1&&(Dt-=M())),Dt})),r.set("arrowdown",E((K,dt)=>{let Dt=K+M();return Dt>dt.length-1&&(Dt=K%M()),Dt}))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const r of this.items)this.focusTracker.add(r.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const r=this.rows,c=this.columns;this.items.map((u,_)=>{const C=Math.floor(_/10){const C=r.commands.get("insertTable"),M=Op(_);let E;return M.bind("isEnabled").to(C),M.buttonView.set({icon:'',label:c("Insert table"),tooltip:!0}),M.on("change:isOpen",()=>{E||(E=new cw(_),M.panelView.children.add(E),E.delegate("execute").to(M),M.on("execute",()=>{r.execute("insertTable",{rows:E.rows,columns:E.columns}),r.editing.view.focus()}))}),M}),r.ui.componentFactory.add("tableColumn",_=>{const C=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:c("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:u?"insertTableColumnLeft":"insertTableColumnRight",label:c("Insert column left")}},{type:"button",model:{commandName:u?"insertTableColumnRight":"insertTableColumnLeft",label:c("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:c("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:c("Select column")}}];return this._prepareDropdown(c("Column"),'',C,_)}),r.ui.componentFactory.add("tableRow",_=>{const C=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:c("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:c("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:c("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:c("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:c("Select row")}}];return this._prepareDropdown(c("Row"),'',C,_)}),r.ui.componentFactory.add("mergeTableCells",_=>{const C=[{type:"button",model:{commandName:"mergeTableCellUp",label:c("Merge cell up")}},{type:"button",model:{commandName:u?"mergeTableCellRight":"mergeTableCellLeft",label:c("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:c("Merge cell down")}},{type:"button",model:{commandName:u?"mergeTableCellLeft":"mergeTableCellRight",label:c("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:c("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:c("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(c("Merge cells"),'',C,_)})}_prepareDropdown(r,c,u,_){const C=this.editor,M=Op(_),E=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0}),M.bind("isEnabled").toMany(E,"isEnabled",(...N)=>N.some(j=>j)),this.listenTo(M,"execute",N=>{C.execute(N.source.commandName),N.source instanceof As||C.editing.view.focus()}),M}_prepareMergeSplitButtonDropdown(r,c,u,_){const C=this.editor,M=Op(_,m4),E="mergeTableCells",N=C.commands.get(E),j=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0,isEnabled:!0}),M.bind("isEnabled").toMany([N,...j],"isEnabled",(...K)=>K.some(dt=>dt)),this.listenTo(M.buttonView,"execute",()=>{C.execute(E),C.editing.view.focus()}),this.listenTo(M,"execute",K=>{C.execute(K.source.commandName),C.editing.view.focus()}),M}_fillDropdownWithListOptions(r,c){const u=this.editor,_=[],C=new ec;for(const M of c)uw(M,u,_,C);return t1(r,C),_}}function uw(m,r,c,u){if("button"===m.type||"switchbutton"===m.type){const _=m.model=new M4(m.model),{commandName:C,bindIsOn:M}=m.model,E=r.commands.get(C);c.push(E),_.set({commandName:C}),_.bind("isEnabled").to(E),M&&_.bind("isOn").to(E,"value"),_.set({withText:!0})}u.add(m)}var a7=v(6945);Fo()(a7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class x3 extends lo{static get pluginName(){return"TableSelection"}static get requires(){return[s1,s1]}init(){const r=this.editor,u=r.editing.view;this.listenTo(r.model,"deleteContent",(_,C)=>this._handleDeleteContent(_,C),{priority:"high"}),this.listenTo(u.document,"insertText",(_,C)=>this._handleInsertTextEvent(_,C),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const u=this.editor.plugins.get(s1).getSelectedTableCells(this.editor.model.document.selection);return 0==u.length?null:u}getSelectionAsFragment(){const r=this.editor.plugins.get(s1),c=this.getSelectedTableCells();return c?this.editor.model.change(u=>{const _=u.createDocumentFragment(),{first:C,last:M}=r.getColumnIndexes(c),{first:E,last:N}=r.getRowIndexes(c),j=c[0].findAncestor("table");let K=N,dt=M;if(r.isSelectionRectangular(c)){const me={firstColumn:C,lastColumn:M,firstRow:E,lastRow:N};K=n7(j,me),dt=My(j,me)}const Dt=b6(j,{startRow:E,startColumn:C,endRow:K,endColumn:dt},u);return u.insert(Dt,_,0),_}):null}setCellSelection(r,c){const u=this._getCellsToSelect(r,c);this.editor.model.change(_=>{_.setSelection(u.cells.map(C=>_.createRangeOn(C)),{backward:u.backward})})}getFocusCell(){const r=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return r&&r.is("element","tableCell")?r:null}getAnchorCell(){const r=os(this.editor.model.document.selection.getRanges()).getContainedElement();return r&&r.is("element","tableCell")?r:null}_defineSelectionConverter(){const r=this.editor,c=new Set;r.conversion.for("editingDowncast").add(u=>u.on("selection",(_,C,M)=>{const E=M.writer;!function(K){for(const dt of c)K.removeClass("ck-editor__editable_selected",dt);c.clear()}(E);const N=this.getSelectedTableCells();if(!N)return;for(const K of N){const dt=M.mapper.toViewElement(K);E.addClass("ck-editor__editable_selected",dt),c.add(dt)}const j=M.mapper.toViewElement(N[N.length-1]);E.setSelection(j,0)},{priority:"lowest"}))}_enablePluginDisabling(){const r=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const c=this.getSelectedTableCells();if(!c)return;r.model.change(u=>{const _=u.createPositionAt(c[0],0),C=r.model.schema.getNearestSelectionRange(_);u.setSelection(C)})}})}_handleDeleteContent(r,c){const u=this.editor.plugins.get(s1),_=c[0],C=c[1],M=this.editor.model,E=!C||"backward"==C.direction,N=u.getSelectedTableCells(_);N.length&&(r.stop(),M.change(j=>{const K=N[E?N.length-1:0];M.change(Dt=>{for(const me of N)M.deleteContent(Dt.createSelection(me,"in"))});const dt=M.schema.getNearestSelectionRange(j.createPositionAt(K,0));_.is("documentSelection")?j.setSelection(dt):_.setTo(dt)}))}_handleInsertTextEvent(r,c){const u=this.editor,_=this.getSelectedTableCells();if(!_)return;const C=u.editing.view,M=u.editing.mapper,E=_.map(N=>C.createRangeOn(M.toViewElement(N)));c.selection=C.createSelection(E)}_getCellsToSelect(r,c){const u=this.editor.plugins.get("TableUtils"),_=u.getCellLocation(r),C=u.getCellLocation(c),M=Math.min(_.row,C.row),E=Math.max(_.row,C.row),N=Math.min(_.column,C.column),j=Math.max(_.column,C.column),K=new Array(E-M+1).fill(null).map(()=>[]),dt={startRow:M,endRow:E,startColumn:N,endColumn:j};for(const{row:Ue,cell:qe}of new ro(r.findAncestor("table"),dt))K[Ue-M].push(qe);const Dt=C.row<_.row,me=C.column<_.column;return Dt&&K.reverse(),me&&K.forEach(Ue=>Ue.reverse()),{cells:K.flat(),backward:Dt||me}}}class r7 extends lo{static get pluginName(){return"TableClipboard"}static get requires(){return[x3,s1]}init(){const r=this.editor,c=r.editing.view.document;this.listenTo(c,"copy",(u,_)=>this._onCopyCut(u,_)),this.listenTo(c,"cut",(u,_)=>this._onCopyCut(u,_)),this.listenTo(r.model,"insertContent",(u,[_,C])=>this._onInsertContent(u,_,C),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(r,c){const u=this.editor.plugins.get(x3);if(!u.getSelectedTableCells()||"cut"==r.name&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;c.preventDefault(),r.stop();const C=this.editor.editing.view.document,M=this.editor.data.toView(u.getSelectionAsFragment());C.fire("clipboardOutput",{dataTransfer:c.dataTransfer,content:M,method:r.name})}_onInsertContent(r,c,u){if(u&&!u.is("documentSelection"))return;const _=this.editor.model,C=this.editor.plugins.get(s1);let M=this.getTableIfOnlyTableInContent(c,_);if(!M)return;const E=C.getSelectionAffectedTableCells(_.document.selection);E.length?(r.stop(),_.change(N=>{const j={width:C.getColumns(M),height:C.getRows(M)},K=function(pn,Ln,pi,Ri){const Go=pn[0].findAncestor("table"),ka=Ri.getColumnIndexes(pn),Ts=Ri.getRowIndexes(pn),$r={firstColumn:ka.first,lastColumn:ka.last,firstRow:Ts.first,lastRow:Ts.last},Il=1===pn.length;return Il&&($r.lastRow+=Ln.height-1,$r.lastColumn+=Ln.width-1,function(hl,T6,v2,Rp){const Uf=Rp.getColumns(hl),x2=Rp.getRows(hl);v2>Uf&&Rp.insertColumns(hl,{at:Uf,columns:v2-Uf}),T6>x2&&Rp.insertRows(hl,{at:x2,rows:T6-x2})}(Go,$r.lastRow+1,$r.lastColumn+1,Ri)),Il||!Ri.isSelectionRectangular(pn)?function(hl,T6,v2){const{firstRow:Rp,lastRow:Uf,firstColumn:x2,lastColumn:C3}=T6,iT={first:Rp,last:Uf},f7={first:x2,last:C3};qa(hl,x2,iT,v2),qa(hl,C3+1,iT,v2),s7(hl,Rp,f7,v2),s7(hl,Uf+1,f7,v2,Rp)}(Go,$r,pi):($r.lastRow=n7(Go,$r),$r.lastColumn=My(Go,$r)),$r}(E,j,N,C),Dt=K.lastColumn-K.firstColumn+1,me={startRow:0,startColumn:0,endRow:Math.min(K.lastRow-K.firstRow+1,j.height)-1,endColumn:Math.min(Dt,j.width)-1};M=b6(M,me,N);const Ue=E[0].findAncestor("table"),qe=this._replaceSelectedCellsWithPasted(M,j,Ue,K,N);if(this.editor.plugins.get("TableSelection").isEnabled){const pn=C.sortRanges(qe.map(Ln=>N.createRangeOn(Ln)));N.setSelection(pn)}else N.setSelection(qe[0],0)})):e7(M,C)}_replaceSelectedCellsWithPasted(r,c,u,_,C){const{width:M,height:E}=c,N=function(pn,Ln,pi){const Ri=new Array(pi).fill(null).map(()=>new Array(Ln).fill(null));for(const{column:Go,row:ka,cell:Ts}of new ro(pn))Ri[ka][Go]=Ts;return Ri}(r,M,E),j=[...new ro(u,{startRow:_.firstRow,endRow:_.lastRow,startColumn:_.firstColumn,endColumn:_.lastColumn,includeAllSlots:!0})],K=[];let dt;for(const pn of j){const{row:Ln,column:pi}=pn;pi===_.firstColumn&&(dt=pn.getPositionBefore());const ka=N[(Ln-_.firstRow)%E][(pi-_.firstColumn)%M],Ts=ka?C.cloneElement(ka):null,$r=this._replaceTableSlotCell(pn,Ts,dt,C);$r&&(b3($r,Ln,pi,_.lastRow,_.lastColumn,C),K.push($r),dt=C.createPositionAfter($r))}const Dt=parseInt(u.getAttribute("headingRows")||"0"),me=parseInt(u.getAttribute("headingColumns")||"0"),qe=_.firstColumnCa(C,M,c)).map(({cell:C})=>x6(C,r,u))}function qa(m,r,c,u){if(!(r<1))return C6(m,r).filter(({row:_,cellHeight:C})=>Ca(_,C,c)).map(({cell:_,column:C})=>A6(_,C,r,u))}function Ca(m,r,c){const u=m+r-1,{first:_,last:C}=c;return m>=_&&m<=C||m<_&&u>=_}class lr extends lo{static get pluginName(){return"TableKeyboard"}static get requires(){return[x3,s1]}init(){const r=this.editor.editing.view.document;this.listenTo(r,"arrowKey",(...c)=>this._onArrowKey(...c),{context:"table"}),this.listenTo(r,"tab",(...c)=>this._handleTabOnSelectedTable(...c),{context:"figure"}),this.listenTo(r,"tab",(...c)=>this._handleTab(...c),{context:["th","td"]})}_handleTabOnSelectedTable(r,c){const u=this.editor,_=u.model.document.selection.getSelectedElement();_&&_.is("element","table")&&(c.preventDefault(),c.stopPropagation(),r.stop(),u.model.change(C=>{C.setSelection(C.createRangeIn(_.getChild(0).getChild(0)))}))}_handleTab(r,c){const u=this.editor,_=this.editor.plugins.get(s1),C=this.editor.plugins.get("TableSelection"),E=!c.shiftKey;let N=_.getTableCellsContainingSelection(u.model.document.selection)[0];if(N||(N=C.getFocusCell()),!N)return;c.preventDefault(),c.stopPropagation(),r.stop();const j=N.parent,K=j.parent,dt=K.getChildIndex(j),Dt=j.getChildIndex(N),me=0===Dt;if(!E&&me&&0===dt)return void u.model.change(Ln=>{Ln.setSelection(Ln.createRangeOn(K))});const Ue=Dt===j.childCount-1,qe=dt===_.getRows(K)-1;if(E&&qe&&Ue&&(u.execute("insertTableRowBelow"),dt===_.getRows(K)-1))return void u.model.change(Ln=>{Ln.setSelection(Ln.createRangeOn(K))});let pn;if(E&&Ue)pn=K.getChild(dt+1).getChild(0);else if(!E&&me){const Ln=K.getChild(dt-1);pn=Ln.getChild(Ln.childCount-1)}else pn=j.getChild(Dt+(E?1:-1));u.model.change(Ln=>{Ln.setSelection(Ln.createRangeIn(pn))})}_onArrowKey(r,c){const _=b1(c.keyCode,this.editor.locale.contentLanguageDirection);this._handleArrowKeys(_,c.shiftKey)&&(c.preventDefault(),c.stopPropagation(),r.stop())}_handleArrowKeys(r,c){const u=this.editor.plugins.get(s1),_=this.editor.plugins.get("TableSelection"),C=this.editor.model,M=C.document.selection,E=["right","down"].includes(r),N=u.getSelectedTableCells(M);if(N.length){let K;return K=c?_.getFocusCell():E?N[N.length-1]:N[0],this._navigateFromCellInDirection(K,r,c),!0}const j=M.focus.findAncestor("tableCell");if(!j)return!1;if(!M.isCollapsed)if(c){if(M.isBackward==E&&!M.containsEntireContent(j))return!1}else{const K=M.getSelectedElement();if(!K||!C.schema.isObject(K))return!1}return!!this._isSelectionAtCellEdge(M,j,E)&&(this._navigateFromCellInDirection(j,r,c),!0)}_isSelectionAtCellEdge(r,c,u){const _=this.editor.model,C=this.editor.model.schema,M=u?r.getLastPosition():r.getFirstPosition();if(!C.getLimitElement(M).is("element","tableCell"))return _.createPositionAt(c,u?"end":0).isTouching(M);const E=_.createSelection(M);return _.modifySelection(E,{direction:u?"forward":"backward"}),M.isEqual(E.focus)}_navigateFromCellInDirection(r,c,u=!1){const _=this.editor.model,C=r.findAncestor("table"),M=[...new ro(C,{includeAllSlots:!0})],{row:E,column:N}=M[M.length-1],j=M.find(({cell:qe})=>qe==r);let{row:K,column:dt}=j;switch(c){case"left":dt--;break;case"up":K--;break;case"right":dt+=j.cellWidth;break;case"down":K+=j.cellHeight}if(K<0||K>E||dt<0&&K<=0||dt>N&&K>=E)return void _.change(qe=>{qe.setSelection(qe.createRangeOn(C))});dt<0?(dt=u?0:N,K--):dt>N&&(dt=u?N:0,K++);const Dt=M.find(qe=>qe.row==K&&qe.column==dt).cell,me=["right","down"].includes(c),Ue=this.editor.plugins.get("TableSelection");if(u&&Ue.isEnabled){const qe=Ue.getAnchorCell()||r;Ue.setCellSelection(qe,Dt)}else{const qe=_.createPositionAt(Dt,me?0:"end");_.change(pn=>{pn.setSelection(qe)})}}}class Hy extends Wu{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(r){this.fire(r.type,r)}}class pw extends lo{static get pluginName(){return"TableMouse"}static get requires(){return[x3,s1]}init(){this.editor.editing.view.addObserver(Hy),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const r=this.editor,c=r.plugins.get(s1);let u=!1;const _=r.plugins.get(x3);this.listenTo(r.editing.view.document,"mousedown",(C,M)=>{const E=r.model.document.selection;if(!this.isEnabled||!_.isEnabled||!M.domEvent.shiftKey)return;const N=_.getAnchorCell()||c.getTableCellsContainingSelection(E)[0];if(!N)return;const j=this._getModelTableCellFromDomEvent(M);j&&zy(N,j)&&(u=!0,_.setCellSelection(N,j),M.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{u=!1}),this.listenTo(r.editing.view.document,"selectionChange",C=>{u&&C.stop()},{priority:"highest"})}_enableMouseDragSelection(){const r=this.editor;let c,u,_=!1,C=!1;const M=r.plugins.get(x3);this.listenTo(r.editing.view.document,"mousedown",(E,N)=>{this.isEnabled&&M.isEnabled&&(N.domEvent.shiftKey||N.domEvent.ctrlKey||N.domEvent.altKey||(c=this._getModelTableCellFromDomEvent(N)))}),this.listenTo(r.editing.view.document,"mousemove",(E,N)=>{if(!N.domEvent.buttons||!c)return;const j=this._getModelTableCellFromDomEvent(N);j&&zy(c,j)&&(u=j,_||u==c||(_=!0)),_&&(C=!0,M.setCellSelection(c,u),N.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{_=!1,C=!1,c=null,u=null}),this.listenTo(r.editing.view.document,"selectionChange",E=>{C&&E.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(r){const u=this.editor.editing.view.createPositionAt(r.target,0);return this.editor.editing.mapper.toModelPosition(u).parent.findAncestor("tableCell",{includeSelf:!0})}}function zy(m,r){return m.parent.parent==r.parent.parent}var c7=v(6306);function _w(m){const r=m.getSelectedElement();return r&&l7(r)?r:null}function By(m){const r=m.getFirstPosition();if(!r)return null;let c=r.parent;for(;c;){if(c.is("element")&&l7(c))return c;c=c.parent}return null}function l7(m){return!!m.getCustomProperty("table")&&El(m)}Fo()(c7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var s8=v(7368);Fo()(s8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Yy=v(9247);Fo()(Yy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var jy=v(4070);Fo()(jy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Gy=v(6237);Fo()(Gy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Qy=v(5087);Fo()(Qy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Wy=v(7341);Fo()(Wy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var c8=v(2128);Fo()(c8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Ky=v(4101);Fo()(Ky.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var vw=Object.defineProperty,u7=Object.getOwnPropertySymbols,d7=Object.prototype.hasOwnProperty,wf=Object.prototype.propertyIsEnumerable,tT=(m,r,c)=>r in m?vw(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,av=(m,r)=>{for(var c in r||(r={}))d7.call(r,c)&&tT(m,c,r[c]);if(u7)for(var c of u7(r))wf.call(r,c)&&tT(m,c,r[c]);return m};const xw={autoRefresh:!0};class p7 extends(Ze()){constructor(r,c={}){if(super(),!r)throw new at("token-missing-token-url",this);c.initValue&&this._validateTokenValue(c.initValue),this.set("value",c.initValue),this._refresh="function"==typeof r?r:()=>{return u=r,new Promise((_,C)=>{const M=new XMLHttpRequest;M.open("GET",u),M.addEventListener("load",()=>{const E=M.status,N=M.response;return E<200||E>299?C(new at("token-cannot-download-new-token",null)):_(N)}),M.addEventListener("error",()=>C(new Error("Network Error"))),M.addEventListener("abort",()=>C(new Error("Abort"))),M.send()});var u},this._options=av(av({},xw),c)}init(){return new Promise((r,c)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),r(this)):this.refreshToken().then(r).catch(c)})}refreshToken(){return this._refresh().then(r=>(this._validateTokenValue(r),this.set("value",r),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(r){const c="string"==typeof r,u=!/^".*"$/.test(r),_=c&&3===r.split(".").length;if(!u||!_)throw new at("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const r=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},r)}_getTokenRefreshTimeoutTime(){try{const[,r]=this.value.split("."),{exp:c}=JSON.parse(atob(r));return c?Math.floor((1e3*c-Date.now())/2):36e5}catch{return 36e5}}static create(r,c={}){return new p7(r,c).init()}}const m7=/^data:(\S*?);base64,/;class Cw extends(Ne()){constructor(r,c,u){if(super(),!r)throw new at("fileuploader-missing-file",null);if(!c)throw new at("fileuploader-missing-token",null);if(!u)throw new at("fileuploader-missing-api-address",null);this.file=function(_){if("string"!=typeof _)return!1;const C=_.match(m7);return!(!C||!C.length)}(r)?function(_,C=512){try{const M=_.match(m7)[1],E=atob(_.replace(m7,"")),N=[];for(let j=0;jr(u)),this}onError(r){return this.once("error",(c,u)=>r(u)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const r=new XMLHttpRequest;r.open("POST",this._apiAddress),r.setRequestHeader("Authorization",this._token.value),r.responseType="json",this.xhr=r}_attachXHRListeners(){const r=this.xhr,c=u=>()=>this.fire("error",u);r.addEventListener("error",c("Network Error")),r.addEventListener("abort",c("Abort")),r.upload&&r.upload.addEventListener("progress",u=>{u.lengthComputable&&this.fire("progress",{total:u.total,uploaded:u.loaded})}),r.addEventListener("load",()=>{const u=r.status,_=r.response;if(u<200||u>299)return this.fire("error",_.message||_.error)})}_sendRequest(){const r=new FormData,c=this.xhr;return r.append("file",this.file),new Promise((u,_)=>{c.addEventListener("load",()=>{const C=c.status,M=c.response;return C<200||C>299?_(M.message?new at("fileuploader-uploading-data-failed",this,{message:M.message}):M.error):u(M)}),c.addEventListener("error",()=>_(new Error("Network Error"))),c.addEventListener("abort",()=>_(new Error("Abort"))),c.send(r)})}}class eT{constructor(r,c){if(!r)throw new at("uploadgateway-missing-token",null);if(!c)throw new at("uploadgateway-missing-api-address",null);this._token=r,this._apiAddress=c}upload(r){return new Cw(r,this._token,this._apiAddress)}}class Aw extends w_{static get pluginName(){return"CloudServicesCore"}createToken(r,c){return new p7(r,c)}createUploadGateway(r,c){return new eT(r,c)}}var nT=(m,r,c)=>new Promise((u,_)=>{var C=N=>{try{E(c.next(N))}catch(j){_(j)}},M=N=>{try{E(c.throw(N))}catch(j){_(j)}},E=N=>N.done?u(N.value):Promise.resolve(N.value).then(C,M);E((c=c.apply(m,r)).next())});class _7 extends Y0{}_7.builtinPlugins=[class extends lo{static get requires(){return[Ax,Tm,G8,N8,Ba,Sx]}static get pluginName(){return"Essentials"}},class extends lo{static get requires(){return[ip]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const m=this.editor.config.get("ckfinder.uploadUrl");m&&(this.editor.plugins.get(ip).createUploadAdapter=r=>new tA(r,m,this.editor.t))}},class extends lo{static get requires(){return[r_]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const m=this.editor.commands;m.get("bulletedList")&&qp(this.editor,this,/^[*-]\s$/,"bulletedList"),m.get("numberedList")&&qp(this.editor,this,/^1[.|)]\s$/,"numberedList"),m.get("todoList")&&qp(this.editor,this,/^\[\s?\]\s$/,"todoList"),m.get("checkTodoList")&&qp(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const m=this.editor.commands;if(m.get("bold")){const r=jh(this.editor,"bold");f2(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,r),f2(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,r)}if(m.get("italic")){const r=jh(this.editor,"italic");f2(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,r),f2(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,r)}if(m.get("code")){const r=jh(this.editor,"code");f2(this.editor,this,/(`)([^`]+)(`)$/g,r)}if(m.get("strikethrough")){const r=jh(this.editor,"strikethrough");f2(this.editor,this,/(~~)([^~]+)(~~)$/g,r)}}_addHeadingAutoformats(){const m=this.editor.commands.get("heading");m&&m.modelElements.filter(r=>r.match(/^heading[1-6]$/)).forEach(r=>{const u=new RegExp(`^(#{${r[7]}})\\s$`);qp(this.editor,this,u,()=>{if(!m.isEnabled||m.value===r)return!1;this.editor.execute("heading",{value:r})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&qp(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const m=this.editor,r=m.model.document.selection;m.commands.get("codeBlock")&&qp(m,this,/^```$/,()=>{if(r.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&qp(this.editor,this,/^---$/,"horizontalLine")}},class extends lo{static get requires(){return[j5,G5]}static get pluginName(){return"Bold"}},class extends lo{static get requires(){return[oy,V4]}static get pluginName(){return"Italic"}},class extends lo{static get requires(){return[W5,Fx]}static get pluginName(){return"BlockQuote"}},class extends lo{static get pluginName(){return"CKBox"}static get requires(){return[K5,Nx]}},class extends lo{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",Yx,zx]}},class extends w_{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[Aw]}init(){return nT(this,null,function*(){const m=this.context.config.get("cloudServices")||{};for(const[c,u]of Object.entries(m))this[c]=u;if(!this.tokenUrl)return void(this.token=null);const r=this.context.plugins.get("CloudServicesCore");this.token=yield r.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)})}registerTokenUrl(m){return nT(this,null,function*(){if(this._tokens.has(m))return this.getTokenFor(m);const r=this.context.plugins.get("CloudServicesCore"),c=yield r.createToken(m).init();return this._tokens.set(m,c),c})}getTokenFor(m){const r=this._tokens.get(m);if(!r)throw new at("cloudservices-token-not-registered",this);return r}destroy(){super.destroy();for(const m of this._tokens.values())m.destroy()}},class extends lo{static get pluginName(){return"EasyImage"}static get requires(){return[cA,"ImageUpload"]}init(){const m=this.editor;m.plugins.has("ImageBlockEditing")||m.plugins.has("ImageInlineEditing")||Zt("easy-image-image-feature-missing",m)}},class extends lo{static get requires(){return[ob,Jx]}static get pluginName(){return"Heading"}},class extends lo{static get requires(){return[tC,gA]}static get pluginName(){return"Image"}},class extends lo{static get requires(){return[bA,hb]}static get pluginName(){return"ImageCaption"}},class extends lo{static get requires(){return[fC,cy]}static get pluginName(){return"ImageStyle"}},class extends lo{static get requires(){return[J0,Sd]}static get pluginName(){return"ImageToolbar"}afterInit(){const m=this.editor,r=m.t,c=m.plugins.get(J0),u=m.plugins.get("ImageUtils");var _;c.register("image",{ariaLabel:r("Image toolbar"),items:(_=m.config.get("image.toolbar")||[],_.map(C=>Kt(C)?C.name:C)),getRelatedElement:C=>u.getClosestSelectedImageWidget(C)})}},class extends lo{static get pluginName(){return"ImageUpload"}static get requires(){return[yf,bb,CA]}},class extends lo{static get pluginName(){return"Indent"}static get requires(){return[a6,s3]}},class extends lo{static get requires(){return[zb,qA,u6]}static get pluginName(){return"Link"}},class extends lo{static get requires(){return[tv,HA]}static get pluginName(){return"List"}},class extends lo{static get requires(){return[nv,$A,WA,j0]}static get pluginName(){return"MediaEmbed"}},nb,class extends lo{static get pluginName(){return"PasteFromOffice"}static get requires(){return[Np]}init(){const m=this.editor,r=m.plugins.get("ClipboardPipeline"),c=m.editing.view.document,u=[];u.push(new g(c)),u.push(new V(c)),u.push(new kt(c)),r.on("inputTransformation",(_,C)=>{if(C._isTransformedWithPasteFromOffice||m.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const M=C.dataTransfer.getData("text/html"),E=u.find(N=>N.isActive(M));E&&(C._parsedData||(C._parsedData=function ye(m,r){const c=new DOMParser,u=jt(jt(function(N){const j="",dt=N.indexOf(j);if(dt<0)return N;const Dt=N.indexOf("",dt+j.length);return N.substring(0,dt+j.length)+(Dt>=0?N.substring(Dt):"")}(m=m.replace(//)>-1||t[D].search(/\]>/)>-1||t[D].search(/!DOCTYPE/)>-1)&&(x=!1)):t[D].search(/-->/)>-1||t[D].search(/\]>/)>-1?(k+=t[D],x=!1):/^<\w/.exec(t[D-1])&&/^<\/\w/.exec(t[D])&&/^<[\w:\-\.\,]+/.exec(t[D-1])==/^<\/[\w:\-\.\,]+/.exec(t[D])[0].replace("/","")?(k+=t[D],x||w--):t[D].search(/<\w/)>-1&&-1==t[D].search(/<\//)&&-1==t[D].search(/\/>/)?k=k+=x?t[D]:P[w++]+t[D]:t[D].search(/<\w/)>-1&&t[D].search(/<\//)>-1?k=k+=x?t[D]:P[w]+t[D]:t[D].search(/<\//)>-1?k=k+=x?t[D]:P[--w]+t[D]:t[D].search(/\/>/)>-1?k=k+=x?t[D]:P[w]+t[D]:t[D].search(/<\?/)>-1||t[D].search(/xmlns\:/)>-1||t[D].search(/xmlns\=/)>-1?k+=P[w]+t[D]:k+=t[D];return"\n"==k[0]?k.slice(1):k},b.prototype.json=function(v,t){return t=t||this.step,typeof JSON>"u"?v:"string"==typeof v?JSON.stringify(JSON.parse(v),null,t):"object"==typeof v?JSON.stringify(v,null,t):v},b.prototype.css=function(v,T){var t=v.replace(/\s{1,}/g," ").replace(/\{/g,"{~::~").replace(/\}/g,"~::~}~::~").replace(/\;/g,";~::~").replace(/\/\*/g,"~::~/*").replace(/\*\//g,"*/~::~").replace(/~::~\s{0,}~::~/g,"~::~").split("~::~"),A=t.length,x=0,w="",k=0,D=T?it(T):this.shift;for(k=0;k/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns")).replace(/>\s{0,}<")},b.prototype.jsonmin=function(v){return typeof JSON>"u"?v:JSON.stringify(JSON.parse(v),null,0)},b.prototype.cssmin=function(v,T){return(T?v:v.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g,"")).replace(/\s{1,}/g," ").replace(/\{\s{1,}/g,"{").replace(/\}\s{1,}/g,"}").replace(/\;\s{1,}/g,";").replace(/\/\*\s{1,}/g,"/*").replace(/\*\/\s{1,}/g,"*/")},b.prototype.sqlmin=function(v){return v.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")},rt.exports=new b},67824:(rt,it,b)=>{"use strict";function d(p){for(var v in p)it.hasOwnProperty(v)||(it[v]=p[v])}Object.defineProperty(it,"__esModule",{value:!0}),d(b(95085)),d(b(26243)),d(b(91786)),d(b(30225)),d(b(76767)),d(b(30345)),d(b(15675)),d(b(86461)),d(b(58802)),d(b(33900)),d(b(88866)),d(b(94655)),d(b(4068)),d(b(33858)),d(b(98237)),d(b(83292))},95085:function(rt,it,b){"use strict";var t,d=this&&this.__extends||(t=function(A,x){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,k){w.__proto__=k}||function(w,k){for(var D in k)k.hasOwnProperty(D)&&(w[D]=k[D])})(A,x)},function(A,x){function w(){this.constructor=A}t(A,x),A.prototype=null===x?Object.create(x):(w.prototype=x.prototype,new w)});Object.defineProperty(it,"__esModule",{value:!0});var p=b(15675),v=function(t){function A(x){var w=t.call(this)||this,D=x;return D.trigger&&(w.trigger=D.trigger),D.kick&&(w.kick=D.kick),D.drag&&(w.drag=D.drag),D.on&&(w.on=D.on),w.dragstart=w.dragStart=p.Layout.dragStart,w.dragend=w.dragEnd=p.Layout.dragEnd,w}return d(A,t),A.prototype.trigger=function(x){},A.prototype.kick=function(){},A.prototype.drag=function(){},A.prototype.on=function(x,w){return this},A}(p.Layout);it.LayoutAdaptor=v,it.adaptor=function T(t){return new v(t)}},83292:(rt,it,b)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var d=b(15675),p=b(76767);it.gridify=function v(A,x,w,k){A.cola.start(0,0,0,10,!1);var D=function T(A,x,w,k){A.forEach(function(P){P.routerNode={name:P.name,bounds:P.bounds.inflate(-w)}}),x.forEach(function(P){P.routerNode={bounds:P.bounds.inflate(-k),children:(typeof P.groups<"u"?P.groups.map(function(I){return A.length+I.id}):[]).concat(typeof P.leaves<"u"?P.leaves.map(function(I){return I.index}):[])}});var D=A.concat(x).map(function(P,I){return P.routerNode.id=I,P.routerNode});return new p.GridRouter(D,{getChildren:function(P){return P.children},getBounds:function(P){return P.bounds}},w-k)}(A.cola.nodes(),A.cola.groups(),w,k);return D.routeEdges(A.powerGraph.powerEdges,x,function(P){return P.source.routerNode.id},function(P){return P.target.routerNode.id})},it.powerGraphGridLayout=function t(A,x,w){var k;A.nodes.forEach(function(z,G){return z.index=G}),(new d.Layout).avoidOverlaps(!1).nodes(A.nodes).links(A.links).powerGraphGroups(function(z){(k=z).groups.forEach(function(G){return G.padding=w})});var D=A.nodes.length,P=[],I=A.nodes.slice(0);return I.forEach(function(z,G){return z.index=G}),k.groups.forEach(function(z){var G=z.index=z.id+D;I.push(z),typeof z.leaves<"u"&&z.leaves.forEach(function(W){return P.push({source:G,target:W.index})}),typeof z.groups<"u"&&z.groups.forEach(function(W){return P.push({source:G,target:W.id+D})})}),k.powerEdges.forEach(function(z){P.push({source:z.source.index,target:z.target.index})}),(new d.Layout).size(x).nodes(I).links(P).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new d.Layout).convergenceThreshold(.001).size(x).avoidOverlaps(!0).nodes(A.nodes).links(A.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(z){(k=z).groups.forEach(function(G){G.padding=w})}).start(50,0,100,0,!1),powerGraph:k}}},26243:(rt,it,b)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var d=b(49346),p=b(22487);it.d3adaptor=function v(t){return!t||function T(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new d.D3StyleLayoutAdaptor:new p.D3StyleLayoutAdaptor(t)}},49346:function(rt,it,b){"use strict";var t,d=this&&this.__extends||(t=function(A,x){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,k){w.__proto__=k}||function(w,k){for(var D in k)k.hasOwnProperty(D)&&(w[D]=k[D])})(A,x)},function(A,x){function w(){this.constructor=A}t(A,x),A.prototype=null===x?Object.create(x):(w.prototype=x.prototype,new w)});Object.defineProperty(it,"__esModule",{value:!0});var p=b(15675),v=function(t){function A(){var x=t.call(this)||this;x.event=d3.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var w=x;return x.drag=function(){if(!D)var D=d3.behavior.drag().origin(p.Layout.dragOrigin).on("dragstart.d3adaptor",p.Layout.dragStart).on("drag.d3adaptor",function(P){p.Layout.drag(P,d3.event),w.resume()}).on("dragend.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return D;this.call(D)},x}return d(A,t),A.prototype.trigger=function(x){var w={type:p.EventType[x.type],alpha:x.alpha,stress:x.stress};this.event[w.type](w)},A.prototype.kick=function(){var x=this;d3.timer(function(){return t.prototype.tick.call(x)})},A.prototype.on=function(x,w){return this.event.on("string"==typeof x?x:p.EventType[x],w),this},A}(p.Layout);it.D3StyleLayoutAdaptor=v,it.d3adaptor=function T(){return new v}},22487:function(rt,it,b){"use strict";var T,d=this&&this.__extends||(T=function(t,A){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,w){x.__proto__=w}||function(x,w){for(var k in w)w.hasOwnProperty(k)&&(x[k]=w[k])})(t,A)},function(t,A){function x(){this.constructor=t}T(t,A),t.prototype=null===A?Object.create(A):(x.prototype=A.prototype,new x)});Object.defineProperty(it,"__esModule",{value:!0});var p=b(15675),v=function(T){function t(A){var x=T.call(this)||this;x.d3Context=A,x.event=A.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var w=x;return x.drag=function(){if(!D)var D=A.drag().subject(p.Layout.dragOrigin).on("start.d3adaptor",p.Layout.dragStart).on("drag.d3adaptor",function(P){p.Layout.drag(P,A.event),w.resume()}).on("end.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return D;arguments[0].call(D)},x}return d(t,T),t.prototype.trigger=function(A){var x={type:p.EventType[A.type],alpha:A.alpha,stress:A.stress};this.event.call(x.type,x)},t.prototype.kick=function(){var A=this,x=this.d3Context.timer(function(){return T.prototype.tick.call(A)&&x.stop()})},t.prototype.on=function(A,x){return this.event.on("string"==typeof A?A:p.EventType[A],x),this},t}(p.Layout);it.D3StyleLayoutAdaptor=v},91786:(rt,it)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var b=function(){function v(){this.locks={}}return v.prototype.add=function(T,t){this.locks[T]=t},v.prototype.clear=function(){this.locks={}},v.prototype.isEmpty=function(){for(var T in this.locks)return!1;return!0},v.prototype.apply=function(T){for(var t in this.locks)T(Number(t),this.locks[t])},v}();it.Locks=b;var d=function(){function v(T,t,A){void 0===A&&(A=null),this.D=t,this.G=A,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new p,this.project=null,this.x=T,this.k=T.length;var x=this.n=T[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new b,this.minD=Number.MAX_VALUE;for(var k,w=x;w--;)for(k=x;--k>w;){var D=t[w][k];D>0&&D1e-9)break;var ct=this.offsetDir();for(x=0;x1&>>Pt||!isFinite(Pt)){for(x=0;x1&&(St=1);var Ht=Pt*Pt,Jt=2*St*(gt-Pt)/(Ht*gt),at=gt*gt*gt,Zt=2*-St/(Ht*at);for(isFinite(Jt)||console.log(Jt),x=0;x0?le-(Ae+1)*_t:le-(Ae-1)*_t)&&ot<=wt&&(this.scaleSnapByMaxH?(this.g[x][I]+=P*Qt*ot,this.H[x][I][I]+=P*Qt):(this.g[x][I]+=Qt*ot,this.H[x][I][I]+=Qt))}this.locks.isEmpty()||this.locks.apply(function(ze,Xe){for(x=0;x0;)for(var w=t;w-- >0;)A(x,w)},v.prototype.matrixApply=function(T){v.mApply(this.k,this.n,T)},v.prototype.computeNextPosition=function(T,t){var A=this;this.computeDerivatives(T);var x=this.computeStepSize(this.g);if(this.stepAndProject(T,t,this.g,x),this.project){this.matrixApply(function(k,D){return A.e[k][D]=T[k][D]-t[k][D]});var w=this.computeStepSize(this.e);w=Math.max(.2,Math.min(w,1)),this.stepAndProject(T,t,this.e,w)}},v.prototype.run=function(T){for(var t=Number.MAX_VALUE,A=!1;!A&&T-- >0;){var x=this.rungeKutta();A=Math.abs(t/x-1)>16)/this.range},v.prototype.getNextBetween=function(T,t){return T+this.getNext()*(t-T)},v}();it.PseudoRandom=p},30225:function(rt,it,b){"use strict";var Ce,d=this&&this.__extends||(Ce=function(Ae,Ne){return(Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Xe){ze.__proto__=Xe}||function(ze,Xe){for(var ie in Xe)Xe.hasOwnProperty(ie)&&(ze[ie]=Xe[ie])})(Ae,Ne)},function(Ae,Ne){function ze(){this.constructor=Ae}Ce(Ae,Ne),Ae.prototype=null===Ne?Object.create(Ne):(ze.prototype=Ne.prototype,new ze)});Object.defineProperty(it,"__esModule",{value:!0});var p=b(4068),v=function Ce(){};it.Point=v;var T=function Ce(Ae,Ne,ze,Xe){this.x1=Ae,this.y1=Ne,this.x2=ze,this.y2=Xe};it.LineSegment=T;var t=function(Ce){function Ae(){return null!==Ce&&Ce.apply(this,arguments)||this}return d(Ae,Ce),Ae}(v);function A(Ce,Ae,Ne){return(Ae.x-Ce.x)*(Ne.y-Ce.y)-(Ne.x-Ce.x)*(Ae.y-Ce.y)}function x(Ce,Ae,Ne){return A(Ce,Ae,Ne)>0}function w(Ce,Ae,Ne){return A(Ce,Ae,Ne)<0}function z(Ce,Ae){var Ne=Ae.slice(0);return Ne.push(Ae[0]),{rtan:G(Ce,Ne),ltan:W(Ce,Ne)}}function G(Ce,Ae){var ze,Xe,ie,re,Ne=Ae.length-1;if(w(Ce,Ae[1],Ae[0])&&!x(Ce,Ae[Ne-1],Ae[0]))return 0;for(ze=0,Xe=Ne;;){if(Xe-ze==1)return x(Ce,Ae[ze],Ae[Xe])?ze:Xe;if((re=w(Ce,Ae[(ie=Math.floor((ze+Xe)/2))+1],Ae[ie]))&&!x(Ce,Ae[ie-1],Ae[ie]))return ie;x(Ce,Ae[ze+1],Ae[ze])?re||x(Ce,Ae[ze],Ae[ie])?Xe=ie:ze=ie:re&&w(Ce,Ae[ze],Ae[ie])?Xe=ie:ze=ie}}function W(Ce,Ae){var ze,Xe,ie,re,Ne=Ae.length-1;if(x(Ce,Ae[Ne-1],Ae[0])&&!w(Ce,Ae[1],Ae[0]))return 0;for(ze=0,Xe=Ne;;){if(Xe-ze==1)return w(Ce,Ae[ze],Ae[Xe])?ze:Xe;if(re=w(Ce,Ae[(ie=Math.floor((ze+Xe)/2))+1],Ae[ie]),x(Ce,Ae[ie-1],Ae[ie])&&!re)return ie;w(Ce,Ae[ze+1],Ae[ze])?re?w(Ce,Ae[ze],Ae[ie])?Xe=ie:ze=ie:Xe=ie:re?ze=ie:x(Ce,Ae[ze],Ae[ie])?Xe=ie:ze=ie}}function ot(Ce,Ae,Ne,ze,Xe,ie){var Te,re;re=ze(Ce[Te=Ne(Ae[0],Ce)],Ae);for(var ee=!1;!ee;){for(ee=!0;Te===Ce.length-1&&(Te=0),!Xe(Ae[re],Ce[Te],Ce[Te+1]);)++Te;for(;0===re&&(re=Ae.length-1),!ie(Ce[Te],Ae[re],Ae[re-1]);)--re,ee=!1}return{t1:Te,t2:re}}function gt(Ce,Ae){return ot(Ce,Ae,G,W,x,w)}it.PolyPoint=t,it.isLeft=A,it.ConvexHull=function k(Ce){var ze,Ae=Ce.slice(0).sort(function(Le,on){return Le.x!==on.x?on.x-Le.x:on.y-Le.y}),Ne=Ce.length,ie=Ae[0].x;for(ze=1;ze=0&&Ae[ze].x===Kt;ze--);for(ee=ze+1,ze=Te;++ze<=ee;)if(!(A(Ae[0],Ae[ee],Ae[ze])>=0&&ze1&&!(A(re[re.length-2],re[re.length-1],Ae[ze])>0);)re.length-=1;0!=ze&&re.push(Ae[ze])}ue!=ee&&re.push(Ae[ue]);var ce=re.length;for(ze=ee;--ze>=Te;)if(!(A(Ae[ue],Ae[Te],Ae[ze])>=0&&ze>Te)){for(;re.length>ce&&!(A(re[re.length-2],re[re.length-1],Ae[ze])>0);)re.length-=1;0!=ze&&re.push(Ae[ze])}}return re},it.clockwiseRadialSweep=function D(Ce,Ae,Ne){Ae.slice(0).sort(function(ze,Xe){return Math.atan2(ze.y-Ce.y,ze.x-Ce.x)-Math.atan2(Xe.y-Ce.y,Xe.x-Ce.x)}).forEach(Ne)},it.tangent_PolyPolyC=ot,it.LRtangent_PolyPolyC=function ct(Ce,Ae){var Ne=gt(Ae,Ce);return{t1:Ne.t2,t2:Ne.t1}},it.RLtangent_PolyPolyC=gt,it.LLtangent_PolyPolyC=function Pt(Ce,Ae){return ot(Ce,Ae,W,W,w,w)},it.RRtangent_PolyPolyC=function St(Ce,Ae){return ot(Ce,Ae,G,G,x,x)};var Ht=function Ce(Ae,Ne){this.t1=Ae,this.t2=Ne};it.BiTangent=Ht;var Jt=function Ce(){};it.BiTangents=Jt;var at=function(Ce){function Ae(){return null!==Ce&&Ce.apply(this,arguments)||this}return d(Ae,Ce),Ae}(v);it.TVGPoint=at;var Zt=function Ce(Ae,Ne,ze,Xe){this.id=Ae,this.polyid=Ne,this.polyvertid=ze,this.p=Xe,Xe.vv=this};it.VisibilityVertex=Zt;var wt=function(){function Ce(Ae,Ne){this.source=Ae,this.target=Ne}return Ce.prototype.length=function(){var Ae=this.source.p.x-this.target.p.x,Ne=this.source.p.y-this.target.p.y;return Math.sqrt(Ae*Ae+Ne*Ne)},Ce}();it.VisibilityEdge=wt;var _t=function(){function Ce(Ae,Ne){if(this.P=Ae,this.V=[],this.E=[],Ne)this.V=Ne.V.slice(0),this.E=Ne.E.slice(0);else{for(var ze=Ae.length,Xe=0;Xe0&&this.E.push(new wt(ie[Te-1].vv,ee))}ie.length>1&&this.E.push(new wt(ie[0].vv,ie[ie.length-1].vv))}for(Xe=0;Xe0)return!0;return!1},Ce}();function Nt(Ce,Ae){for(var Ne=[],ze=1,Xe=Ae.length;ze=0&&hn>=0&&we<0&&bn>=0&&Ze>=0&&dn<0?Xe.ll=new Ht(ie,Te):on<=0&&hn<=0&&we>0&&bn<=0&&Ze<=0&&dn>0?Xe.rr=new Ht(ie,Te):on<=0&&hn>0&&we<=0&&bn>=0&&Ze<0&&dn>=0?Xe.rl=new Ht(ie,Te):on>=0&&hn<0&&we>=0&&bn<=0&&Ze>0&&dn<=0&&(Xe.lr=new Ht(ie,Te))}return Xe}function le(Ce,Ae){return!Ce.every(function(Ne){return!function qt(Ce,Ae){for(var Ne=1,ze=Ae.length;Ne0)return!0}return!1}},76767:(rt,it,b)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var d=b(4068),p=b(98237),v=b(33858),T=function w(k,D,P){this.id=k,this.rect=D,this.children=P,this.leaf=typeof P>"u"||0===P.length};it.NodeWrapper=T;var t=function w(k,D,P,I,z){void 0===I&&(I=null),void 0===z&&(z=null),this.id=k,this.x=D,this.y=P,this.node=I,this.line=z};it.Vert=t;var A=function(){function w(k,D){this.s=k,this.t=D;var P=w.findMatch(k,D),I=D.slice(0).reverse(),z=w.findMatch(k,I);P.length>=z.length?(this.length=P.length,this.si=P.si,this.ti=P.ti,this.reversed=!1):(this.length=z.length,this.si=z.si,this.ti=D.length-z.ti-z.length,this.reversed=!0)}return w.findMatch=function(k,D){for(var P=k.length,I=D.length,z={length:0,si:-1,ti:-1},G=new Array(P),W=0;Wz.length&&(z.length=ct,z.si=W-ct+1,z.ti=ot-ct+1)}else G[W][ot]=0}return z},w.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},w}();it.LongestCommonSubsequence=A;var x=function(){function w(k,D,P){var I=this;void 0===P&&(P=12),this.originalnodes=k,this.groupPadding=P,this.leaves=null,this.nodes=k.map(function(at,Zt){return new T(Zt,D.getBounds(at),D.getChildren(at))}),this.leaves=this.nodes.filter(function(at){return at.leaf}),this.groups=this.nodes.filter(function(at){return!at.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(at){return at.children.forEach(function(Zt){return I.nodes[Zt].parent=at})}),this.root={children:[]},this.nodes.forEach(function(at){typeof at.parent>"u"&&(at.parent=I.root,I.root.children.push(at.id)),at.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(at,Zt){return I.getDepth(at)-I.getDepth(Zt)}),this.backToFront.slice(0).reverse().filter(function(at){return!at.leaf}).forEach(function(at){var Zt=d.Rectangle.empty();at.children.forEach(function(wt){return Zt=Zt.union(I.nodes[wt].rect)}),at.rect=Zt.inflate(I.groupPadding)});var G=this.midPoints(this.cols.map(function(at){return at.pos})),W=this.midPoints(this.rows.map(function(at){return at.pos})),ot=G[0],ct=G[G.length-1],gt=W[0],Pt=W[W.length-1],St=this.rows.map(function(at){return{x1:ot,x2:ct,y1:at.pos,y2:at.pos}}).concat(W.map(function(at){return{x1:ot,x2:ct,y1:at,y2:at}})),Ht=this.cols.map(function(at){return{x1:at.pos,x2:at.pos,y1:gt,y2:Pt}}).concat(G.map(function(at){return{x1:at,x2:at,y1:gt,y2:Pt}})),Jt=St.concat(Ht);Jt.forEach(function(at){return at.verts=[]}),this.verts=[],this.edges=[],St.forEach(function(at){return Ht.forEach(function(Zt){var wt=new t(I.verts.length,Zt.x1,at.y1);at.verts.push(wt),Zt.verts.push(wt),I.verts.push(wt);for(var _t=I.backToFront.length;_t-- >0;){var Nt=I.backToFront[_t],Qt=Nt.rect,qt=Math.abs(wt.x-Qt.cx()),le=Math.abs(wt.y-Qt.cy());if(qt0;){var I=P.filter(function(G){return G.rect["overlap"+k.toUpperCase()](P[0].rect)}),z={nodes:I,pos:this.avg(I.map(function(G){return G.rect["c"+k]()}))};D.push(z),z.nodes.forEach(function(G){return P.splice(P.indexOf(G),1)})}return D.sort(function(G,W){return G.pos-W.pos}),D},w.prototype.getDepth=function(k){for(var D=0;k.parent!==this.root;)D++,k=k.parent;return D},w.prototype.midPoints=function(k){for(var D=k[1]-k[0],P=[k[0]-D/2],I=1;I.1)&>.push(Pt={pos:ot[0][D],segments:[]}),Pt.segments.push(ot)}return gt},w.nudgeSegs=function(k,D,P,I,z,G){var W=I.length;if(!(W<=1)){for(var ot=I.map(function(Nt){return new p.Variable(Nt[0][k])}),ct=[],gt=0;gt=0&&ct.push(new p.Constraint(ot[Zt],ot[wt],G))}new p.Solver(ot,ct).solve(),ot.forEach(function(Nt,Qt){var qt=I[Qt],le=Nt.position();qt[0][k]=qt[1][k]=le;var Wt=P[qt.edgeid];qt.i>0&&(Wt[qt.i-1][1][k]=le),qt.iMath.PI||z<-Math.PI)&&(z=I-P),z},w.isLeft=function(k,D,P){return(D.x-k.x)*(P.y-k.y)-(D.y-k.y)*(P.x-k.x)<=0},w.getOrder=function(k){for(var D={},P=0;P"u"&&(D[I.l]={}),D[I.l][I.r]=!0}return function(z,G){return typeof D[z]<"u"&&D[z][G]}},w.orderEdges=function(k){for(var D=[],P=0;P=z.length||W.ti+W.length>=G.length)){D.push({l:P,r:I});continue}W.si+W.length>=z.length||W.ti+W.length>=G.length?(ot=z[W.si+1],gt=z[W.si-1],ct=G[W.ti-1]):(ot=z[W.si+W.length-2],ct=z[W.si+W.length],gt=G[W.ti+W.length]),w.isLeft(ot,ct,gt)?D.push({l:I,r:P}):D.push({l:P,r:I})}}return w.getOrder(D)},w.makeSegments=function(k){function D(ct){return{x:ct.x,y:ct.y}}for(var I=[],z=D(k[0]),G=1;G1&&Ce>1?1e3:0}).reverse().map(function(wt){return P.verts[wt]});return Zt.push(this.nodes[z.id].ports[0]),Zt.filter(function(wt,_t){return!(_t0&&wt.node===z&&Zt[_t-1].node===z)})},w.getRoutePath=function(k,D,P,I){var W,ot,ct,Wt,Ce,z={routepath:"M "+k[0][0].x+" "+k[0][0].y+" ",arrowpath:""};if(k.length>1)for(var G=0;G0?ot-=gt/Math.abs(gt)*D:ct-=Pt/Math.abs(Pt)*D,z.routepath+="L "+ot+" "+ct+" ";var St=k[G+1],Ht=St[0].x,Jt=St[0].y;gt=St[1].x-Ht,Pt=St[1].y-Jt;var _t,Nt,wt=w.angleBetween2Lines(W,St)<0?1:0;Math.abs(gt)>0?(_t=Ht+gt/Math.abs(gt)*D,Nt=Jt):(_t=Ht,Nt=Jt+Pt/Math.abs(Pt)*D);var Qt=Math.abs(_t-ot),qt=Math.abs(Nt-ct);z.routepath+="A "+Qt+" "+qt+" 0 0 "+wt+" "+_t+" "+Nt+" "}else{var le=[ot,ct];Math.abs(gt)>0?(Wt=[ot-=gt/Math.abs(gt)*I,ct+P],Ce=[ot,ct-P]):(Wt=[ot+P,ct-=Pt/Math.abs(Pt)*I],Ce=[ot-P,ct]),z.routepath+="L "+ot+" "+ct+" ",I>0&&(z.arrowpath="M "+le[0]+" "+le[1]+" L "+Wt[0]+" "+Wt[1]+" L "+Ce[0]+" "+Ce[1])}}else gt=(ot=(W=k[0])[1].x)-W[0].x,Pt=(ct=W[1].y)-W[0].y,le=[ot,ct],Math.abs(gt)>0?(Wt=[ot-=gt/Math.abs(gt)*I,ct+P],Ce=[ot,ct-P]):(Wt=[ot+P,ct-=Pt/Math.abs(Pt)*I],Ce=[ot-P,ct]),z.routepath+="L "+ot+" "+ct+" ",I>0&&(z.arrowpath="M "+le[0]+" "+le[1]+" L "+Wt[0]+" "+Wt[1]+" L "+Ce[0]+" "+Ce[1]);return z},w}();it.GridRouter=x},30345:(rt,it)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var b_GOLDEN_SECTION=(1+Math.sqrt(5))/2;it.applyPacking=function d(v,T,t,G,z,w){void 0===z&&(z=1),void 0===w&&(w=!0);var P=T,I=t,W=(z=typeof z<"u"?z:1,G=typeof G<"u"?G:0,0),ot=0,ct=0,gt=0,Pt=[];function at(Nt,Qt){Pt=[],W=0,ot=0,gt=0;for(var qt=0;qt=Nt.height&&Pt[le].x+Pt[le].width+Nt.width+10-Qt<=1e-4){qt=Pt[le];break}Pt.push(Nt),void 0!==qt?(Nt.x=qt.x+qt.width+10,Nt.y=qt.bottom,Nt.space_left=Nt.height,Nt.bottom=Nt.y,qt.space_left-=Nt.height+10,qt.bottom+=Nt.height+10):(Nt.y=gt,gt+=Nt.height+10,Nt.x=0,Nt.bottom=Nt.y,Nt.space_left=Nt.height),Nt.y+Nt.height-ot>-1e-4&&(ot=Nt.y+Nt.height-0),Nt.x+Nt.width-W>-1e-4&&(W=Nt.x+Nt.width-0)}0!=v.length&&(function St(Nt){Nt.forEach(function(qt){!function Qt(qt){var le=Number.MAX_VALUE,Wt=Number.MAX_VALUE,Ce=0,Ae=0;qt.array.forEach(function(Ne){var ze=typeof Ne.width<"u"?Ne.width:G,Xe=typeof Ne.height<"u"?Ne.height:G;ze/=2,Xe/=2,Ce=Math.max(Ne.x+ze,Ce),le=Math.min(Ne.x-ze,le),Ae=Math.max(Ne.y+Xe,Ae),Wt=Math.min(Ne.y-Xe,Wt)}),qt.width=Ce-le,qt.height=Ae-Wt}(qt)})}(v),function Jt(Nt,Qt){var qt=Number.POSITIVE_INFINITY,le=0;Nt.sort(function(ue,Kt){return Kt.height-ue.height});for(var Wt=re=ct=Nt.reduce(function(ue,Kt){return ue.widthct||Te>1e-4;){if(1!=Xe){var re=Ce-(Ce-Wt)/b_GOLDEN_SECTION;Ne=at(Nt,re)}if(0!=Xe){var ee=Wt+(Ce-Wt)/b_GOLDEN_SECTION;ze=at(Nt,ee)}if(ie=Math.abs(re-ee),Te=Math.abs(Ne-ze),Neze?(Wt=re,re=ee,Ne=ze,Xe=1):(Ce=ee,ee=re,ze=Ne,Xe=0),Ae++>100)break}at(Nt,le)}(v),w&&function Ht(Nt){Nt.forEach(function(Qt){var qt={x:0,y:0};Qt.array.forEach(function(Ce){qt.x+=Ce.x,qt.y+=Ce.y}),qt.x/=Qt.array.length,qt.y/=Qt.array.length;var Wt_x=Qt.x-(qt.x-Qt.width/2)+P/2-W/2,Wt_y=Qt.y-(qt.y-Qt.height/2)+I/2-ot/2;Qt.array.forEach(function(Ce){Ce.x+=Wt_x,Ce.y+=Wt_y})})}(v))},it.separateGraphs=function p(v,T){for(var t={},A={},x=[],w=0,k=0;k{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var w,P,d=b(33900),p=b(58802),v=b(91786),T=b(4068),t=b(33858),A=b(30225),x=b(30345);function k(P){return typeof P.leaves<"u"||typeof P.groups<"u"}(P=w=it.EventType||(it.EventType={}))[P.start=0]="start",P[P.tick=1]="tick",P[P.end=2]="end";var D=function(){function P(){var I=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:P.getSourceIndex,getTargetIndex:P.getTargetIndex,setLength:P.setLinkLength,getType:function(z){return"function"==typeof I._linkType?I._linkType(z):0}}}return P.prototype.on=function(I,z){return this.event||(this.event={}),"string"==typeof I?this.event[w[I]]=z:this.event[I]=z,this},P.prototype.trigger=function(I){this.event&&typeof this.event[I.type]<"u"&&this.event[I.type](I)},P.prototype.kick=function(){for(;!this.tick(););},P.prototype.tick=function(){if(this._alpha"u"||typeof G.py>"u")&&(G.px=G.x,G.py=G.y),this._descent.locks.add(W,[G.px,G.py]));var ct=this._descent.rungeKutta();return 0===ct?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=ct),this._lastStress=ct,this.updateNodePositions(),this.trigger({type:w.tick,alpha:this._alpha,stress:this._lastStress}),!1},P.prototype.updateNodePositions=function(){for(var G,I=this._descent.x[0],z=this._descent.x[1],W=this._nodes.length;W--;)(G=this._nodes[W]).x=I[W],G.y=z[W]},P.prototype.nodes=function(I){if(!I){if(0===this._nodes.length&&this._links.length>0){var z=0;this._links.forEach(function(W){z=Math.max(z,W.source,W.target)}),this._nodes=new Array(++z);for(var G=0;G"u"&&(G.padding=1),typeof G.leaves<"u"&&G.leaves.forEach(function(W,ot){"number"==typeof W&&((G.leaves[ot]=z._nodes[W]).parent=G)}),typeof G.groups<"u"&&G.groups.forEach(function(W,ot){"number"==typeof W&&((G.groups[ot]=z._groups[W]).parent=G)})}),this._rootGroup.leaves=this._nodes.filter(function(G){return typeof G.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(G){return typeof G.parent>"u"}),this):this._groups},P.prototype.powerGraphGroups=function(I){var z=d.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(z.groups),I(z),this},P.prototype.avoidOverlaps=function(I){return arguments.length?(this._avoidOverlaps=I,this):this._avoidOverlaps},P.prototype.handleDisconnected=function(I){return arguments.length?(this._handleDisconnected=I,this):this._handleDisconnected},P.prototype.flowLayout=function(I,z){return arguments.length||(I="y"),this._directedLinkConstraints={axis:I,getMinSeparation:"number"==typeof z?function(){return z}:z},this},P.prototype.links=function(I){return arguments.length?(this._links=I,this):this._links},P.prototype.constraints=function(I){return arguments.length?(this._constraints=I,this):this._constraints},P.prototype.distanceMatrix=function(I){return arguments.length?(this._distanceMatrix=I,this):this._distanceMatrix},P.prototype.size=function(I){return I?(this._canvasSize=I,this):this._canvasSize},P.prototype.defaultNodeSize=function(I){return I?(this._defaultNodeSize=I,this):this._defaultNodeSize},P.prototype.groupCompactness=function(I){return I?(this._groupCompactness=I,this):this._groupCompactness},P.prototype.linkDistance=function(I){return I?(this._linkDistance="function"==typeof I?I:+I,this._linkLengthCalculator=null,this):this._linkDistance},P.prototype.linkType=function(I){return this._linkType=I,this},P.prototype.convergenceThreshold=function(I){return I?(this._threshold="function"==typeof I?I:+I,this):this._threshold},P.prototype.alpha=function(I){return arguments.length?(I=+I,this._alpha?this._alpha=I>0?I:0:I>0&&(this._running||(this._running=!0,this.trigger({type:w.start,alpha:this._alpha=I}),this.kick())),this):this._alpha},P.prototype.getLinkLength=function(I){return"function"==typeof this._linkDistance?+this._linkDistance(I):this._linkDistance},P.setLinkLength=function(I,z){I.length=z},P.prototype.getLinkType=function(I){return"function"==typeof this._linkType?this._linkType(I):0},P.prototype.symmetricDiffLinkLengths=function(I,z){var G=this;return void 0===z&&(z=1),this.linkDistance(function(W){return I*W.length}),this._linkLengthCalculator=function(){return p.symmetricDiffLinkLengths(G._links,G.linkAccessor,z)},this},P.prototype.jaccardLinkLengths=function(I,z){var G=this;return void 0===z&&(z=1),this.linkDistance(function(W){return I*W.length}),this._linkLengthCalculator=function(){return p.jaccardLinkLengths(G._links,G.linkAccessor,z)},this},P.prototype.start=function(I,z,G,W,ot,ct){var gt=this;void 0===I&&(I=0),void 0===z&&(z=0),void 0===G&&(G=0),void 0===W&&(W=0),void 0===ot&&(ot=!0),void 0===ct&&(ct=!0);var le,Ht=this.nodes().length,Jt=Ht+2*this._groups.length,Zt=this._canvasSize[0],wt=this._canvasSize[1],_t=new Array(Jt),Nt=new Array(Jt),Qt=null,qt=this._avoidOverlaps;this._nodes.forEach(function(ie,Te){ie.index=Te,typeof ie.x>"u"&&(ie.x=Zt/2,ie.y=wt/2),_t[Te]=ie.x,Nt[Te]=ie.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?le=this._distanceMatrix:(le=new t.Calculator(Jt,this._links,P.getSourceIndex,P.getTargetIndex,function(ie){return gt.getLinkLength(ie)}).DistanceMatrix(),Qt=v.Descent.createSquareMatrix(Jt,function(){return 2}),this._links.forEach(function(ie){"number"==typeof ie.source&&(ie.source=gt._nodes[ie.source]),"number"==typeof ie.target&&(ie.target=gt._nodes[ie.target])}),this._links.forEach(function(ie){var Te=P.getSourceIndex(ie),re=P.getTargetIndex(ie);Qt[Te][re]=Qt[re][Te]=ie.weight||1}));var Wt=v.Descent.createSquareMatrix(Jt,function(ie,Te){return le[ie][Te]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Pt=Ht;this._groups.forEach(function(Te){(function(Te,re,ee,ue){Qt[Te][re]=Qt[re][Te]=ee,Wt[Te][re]=Wt[re][Te]=.1})(Pt,Pt+1,gt._groupCompactness),_t[Pt]=0,Nt[Pt++]=0,_t[Pt]=0,Nt[Pt++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var Ae=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,Ae=Ae.concat(p.generateDirectedEdgeConstraints(Ht,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new v.Descent([_t,Nt],Wt),this._descent.locks.clear(),Pt=0;Pt0&&(this._descent.project=new T.Projection(this._nodes,this._groups,this._rootGroup,Ae).projectFunctions()),this._descent.run(z),this.separateOverlappingComponents(Zt,wt,ct),this.avoidOverlaps(qt),qt&&(this._nodes.forEach(function(ie,Te){ie.x=_t[Te],ie.y=Nt[Te]}),this._descent.project=new T.Projection(this._nodes,this._groups,this._rootGroup,Ae,!0).projectFunctions(),this._nodes.forEach(function(ie,Te){_t[Te]=ie.x,Nt[Te]=ie.y})),this._descent.G=Qt,this._descent.run(G),W){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=Ht,this._descent.scaleSnapByMaxH=Ht!=Jt;var Xe=v.Descent.createSquareMatrix(Jt,function(ie,Te){return ie>=Ht||Te>=Ht?Qt[ie][Te]:0});this._descent.G=Xe,this._descent.run(W)}return this.updateNodePositions(),this.separateOverlappingComponents(Zt,wt,ct),ot?this.resume():this},P.prototype.initialLayout=function(I,z,G){if(this._groups.length>0&&I>0){var W=this._nodes.length,ot=this._links.map(function(gt){return{source:gt.source.index,target:gt.target.index}}),ct=this._nodes.map(function(gt){return{index:gt.index}});this._groups.forEach(function(gt,Pt){ct.push({index:gt.index=W+Pt})}),this._groups.forEach(function(gt,Pt){typeof gt.leaves<"u"&>.leaves.forEach(function(St){return ot.push({source:gt.index,target:St.index})}),typeof gt.groups<"u"&>.groups.forEach(function(St){return ot.push({source:gt.index,target:St.index})})}),(new P).size(this.size()).nodes(ct).links(ot).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(I,0,0,0,!1),this._nodes.forEach(function(gt){z[gt.index]=ct[gt.index].x,G[gt.index]=ct[gt.index].y})}else this._descent.run(I)},P.prototype.separateOverlappingComponents=function(I,z,G){var W=this;if(void 0===G&&(G=!0),!this._distanceMatrix&&this._handleDisconnected){var ot=this._descent.x[0],ct=this._descent.x[1];this._nodes.forEach(function(Pt,St){Pt.x=ot[St],Pt.y=ct[St]});var gt=x.separateGraphs(this._nodes,this._links);x.applyPacking(gt,I,z,this._defaultNodeSize,1,G),this._nodes.forEach(function(Pt,St){W._descent.x[0][St]=Pt.x,W._descent.x[1][St]=Pt.y,Pt.bounds&&(Pt.bounds.setXCentre(Pt.x),Pt.bounds.setYCentre(Pt.y))})}},P.prototype.resume=function(){return this.alpha(.1)},P.prototype.stop=function(){return this.alpha(0)},P.prototype.prepareEdgeRouting=function(I){void 0===I&&(I=0),this._visibilityGraph=new A.TangentVisibilityGraph(this._nodes.map(function(z){return z.bounds.inflate(-I).vertices()}))},P.prototype.routeEdge=function(I,z,G){void 0===z&&(z=5);var W=[],ot=new A.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),ct={x:I.source.x,y:I.source.y},gt={x:I.target.x,y:I.target.y},Pt=ot.addPoint(ct,I.source.index),St=ot.addPoint(gt,I.target.index);ot.addEdgeIfVisible(ct,gt,I.source.index,I.target.index),typeof G<"u"&&G(ot);var wt=new t.Calculator(ot.V.length,ot.E,function(Wt){return Wt.source.id},function(Wt){return Wt.target.id},function(Wt){return Wt.length()}).PathFromNodeToNode(Pt.id,St.id);if(1===wt.length||wt.length===ot.V.length){var _t=T.makeEdgeBetween(I.source.innerBounds,I.target.innerBounds,z);W=[_t.sourceIntersection,_t.arrowStart]}else{for(var Nt=wt.length-2,Qt=ot.V[wt[Nt]].p,qt=ot.V[wt[0]].p,le=(W=[I.source.innerBounds.rayIntersection(Qt.x,Qt.y)],Nt);le>=0;--le)W.push(ot.V[wt[le]].p);W.push(T.makeEdgeTo(qt,I.target.innerBounds,z))}return W},P.getSourceIndex=function(I){return"number"==typeof I.source?I.source:I.source.index},P.getTargetIndex=function(I){return"number"==typeof I.target?I.target:I.target.index},P.linkId=function(I){return P.getSourceIndex(I)+"-"+P.getTargetIndex(I)},P.dragStart=function(I){k(I)?P.storeOffset(I,P.dragOrigin(I)):(P.stopNode(I),I.fixed|=2)},P.stopNode=function(I){I.px=I.x,I.py=I.y},P.storeOffset=function(I,z){typeof I.leaves<"u"&&I.leaves.forEach(function(G){G.fixed|=2,P.stopNode(G),G._dragGroupOffsetX=G.x-z.x,G._dragGroupOffsetY=G.y-z.y}),typeof I.groups<"u"&&I.groups.forEach(function(G){return P.storeOffset(G,z)})},P.dragOrigin=function(I){return k(I)?{x:I.bounds.cx(),y:I.bounds.cy()}:I},P.drag=function(I,z){k(I)?(typeof I.leaves<"u"&&I.leaves.forEach(function(G){I.bounds.setXCentre(z.x),I.bounds.setYCentre(z.y),G.px=G._dragGroupOffsetX+z.x,G.py=G._dragGroupOffsetY+z.y}),typeof I.groups<"u"&&I.groups.forEach(function(G){return P.drag(G,z)})):(I.px=z.x,I.py=z.y)},P.dragEnd=function(I){k(I)?(typeof I.leaves<"u"&&I.leaves.forEach(function(z){P.dragEnd(z),delete z._dragGroupOffsetX,delete z._dragGroupOffsetY}),typeof I.groups<"u"&&I.groups.forEach(P.dragEnd)):I.fixed&=-7},P.mouseOver=function(I){I.fixed|=4,I.px=I.x,I.py=I.y},P.mouseOut=function(I){I.fixed&=-5},P}();it.Layout=D},86461:(rt,it,b)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var d=b(33858),p=b(91786),v=b(4068),T=b(58802),t=function(){function k(D,P){this.source=D,this.target=P}return k.prototype.actualLength=function(D){var P=this;return Math.sqrt(D.reduce(function(I,z){var G=z[P.target]-z[P.source];return I+G*G},0))},k}();it.Link3D=t,it.Node3D=function k(D,P,I){void 0===D&&(D=0),void 0===P&&(P=0),void 0===I&&(I=0),this.x=D,this.y=P,this.z=I};var x=function(){function k(D,P,I){var z=this;void 0===I&&(I=1),this.nodes=D,this.links=P,this.idealLinkLength=I,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(k.k);for(var G=0;G"u"&&(W[Pt]=Math.random())}z.result[0][ot]=W.x,z.result[1][ot]=W.y,z.result[2][ot]=W.z})}return k.prototype.linkLength=function(D){return D.actualLength(this.result)},k.prototype.start=function(D){var P=this;void 0===D&&(D=100);var I=this.nodes.length,z=new w;this.useJaccardLinkLengths&&T.jaccardLinkLengths(this.links,z,1.5),this.links.forEach(function(Pt){return Pt.length*=P.idealLinkLength});var G=new d.Calculator(I,this.links,function(Pt){return Pt.source},function(Pt){return Pt.target},function(Pt){return Pt.length}).DistanceMatrix(),W=p.Descent.createSquareMatrix(I,function(Pt,St){return G[Pt][St]}),ot=p.Descent.createSquareMatrix(I,function(){return 2});this.links.forEach(function(Pt){var St=Pt.source,Ht=Pt.target;return ot[St][Ht]=ot[Ht][St]=1}),this.descent=new p.Descent(this.result,W),this.descent.threshold=.001,this.descent.G=ot,this.constraints&&(this.descent.project=new v.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var ct=0;ct{"use strict";function b(w,k){var D={};for(var P in w)D[P]={};for(var P in k)D[P]={};return Object.keys(D).length}function d(w,k){var D=0;for(var P in w)typeof k[P]<"u"&&++D;return D}function v(w,k,D,P){var I=function p(w,k){var D={},P=function(I,z){typeof D[I]>"u"&&(D[I]={}),D[I][z]={}};return w.forEach(function(I){var z=k.getSourceIndex(I),G=k.getTargetIndex(I);P(z,G),P(G,z)}),D}(w,P);w.forEach(function(z){var G=I[P.getSourceIndex(z)],W=I[P.getTargetIndex(z)];P.setLength(z,1+k*D(G,W))})}function x(w,k,D){var P=[],I=0,z=[],G=[];function W(wt){wt.index=wt.lowlink=I++,z.push(wt),wt.onStack=!0;for(var _t=0,Nt=wt.out;_t"u"?(W(Qt),wt.lowlink=Math.min(wt.lowlink,Qt.lowlink)):Qt.onStack&&(wt.lowlink=Math.min(wt.lowlink,Qt.index))}if(wt.lowlink===wt.index){for(var qt=[];z.length&&((Qt=z.pop()).onStack=!1,qt.push(Qt),Qt!==wt););G.push(qt.map(function(le){return le.id}))}}for(var ot=0;ot"u"&&W(Zt)}return G}Object.defineProperty(it,"__esModule",{value:!0}),it.symmetricDiffLinkLengths=function T(w,k,D){void 0===D&&(D=1),v(w,D,function(P,I){return Math.sqrt(b(P,I)-d(P,I))},k)},it.jaccardLinkLengths=function t(w,k,D){void 0===D&&(D=1),v(w,D,function(P,I){return Math.min(Object.keys(P).length,Object.keys(I).length)<1.1?0:d(P,I)/b(P,I)},k)},it.generateDirectedEdgeConstraints=function A(w,k,D,P){var I=x(w,k,P),z={};I.forEach(function(W,ot){return W.forEach(function(ct){return z[ct]=ot})});var G=[];return k.forEach(function(W){var ot=P.getSourceIndex(W),ct=P.getTargetIndex(W);z[ot]!==z[ct]&&G.push({axis:D,left:ot,right:ct,gap:P.getMinSeparation(W)})}),G},it.stronglyConnectedComponents=x},33900:(rt,it)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var b=function k(D,P,I){this.source=D,this.target=P,this.type=I};it.PowerEdge=b;var d=function(){function k(D,P,I,z){var G=this;if(this.linkAccessor=I,this.modules=new Array(D),this.roots=[],z)this.initModulesFromGroup(z);else{this.roots.push(new t);for(var W=0;W=this.R))return this.merge(I.a,I.b,D),!0}},k.prototype.nEdges=function(D,P){var I=D.incoming.intersection(P.incoming),z=D.outgoing.intersection(P.outgoing);return this.R-I.count()-z.count()},k.prototype.getGroupHierarchy=function(D){var P=this,I=[];return p(this.roots[0],{},I),this.allEdges().forEach(function(W){var ot=P.modules[W.source],ct=P.modules[W.target];D.push(new b(typeof ot.gid>"u"?W.source:I[ot.gid],typeof ct.gid>"u"?W.target:I[ct.gid],W.type))}),I},k.prototype.allEdges=function(){var D=[];return k.getEdges(this.roots[0],D),D},k.getEdges=function(D,P){D.forAll(function(I){I.getEdges(P),k.getEdges(I.children,P)})},k}();function p(k,D,P){k.forAll(function(I){if(I.isLeaf())D.leaves||(D.leaves=[]),D.leaves.push(I.id);else{var z=D;if(I.gid=P.length,!I.isIsland()||I.isPredefined()){if(z={id:I.gid},I.isPredefined())for(var G in I.definition)z[G]=I.definition[G];D.groups||(D.groups=[]),D.groups.push(I.gid),P.push(z)}p(I.children,z,P)}})}it.Configuration=d;var v=function(){function k(D,P,I,z,G){void 0===P&&(P=new A),void 0===I&&(I=new A),void 0===z&&(z=new t),this.id=D,this.outgoing=P,this.incoming=I,this.children=z,this.definition=G}return k.prototype.getEdges=function(D){var P=this;this.outgoing.forAll(function(I,z){I.forAll(function(G){D.push(new b(P.id,G.id,z))})})},k.prototype.isLeaf=function(){return 0===this.children.count()},k.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},k.prototype.isPredefined=function(){return typeof this.definition<"u"},k}();it.Module=v;var t=function(){function k(){this.table={}}return k.prototype.count=function(){return Object.keys(this.table).length},k.prototype.intersection=function(D){var P=new k;return P.table=function T(k,D){var P={};for(var I in k)I in D&&(P[I]=k[I]);return P}(this.table,D.table),P},k.prototype.intersectionCount=function(D){return this.intersection(D).count()},k.prototype.contains=function(D){return D in this.table},k.prototype.add=function(D){this.table[D.id]=D},k.prototype.remove=function(D){delete this.table[D.id]},k.prototype.forAll=function(D){for(var P in this.table)D(this.table[P])},k.prototype.modules=function(){var D=[];return this.forAll(function(P){P.isPredefined()||D.push(P)}),D},k}();it.ModuleSet=t;var A=function(){function k(){this.sets={},this.n=0}return k.prototype.count=function(){return this.n},k.prototype.contains=function(D){var P=!1;return this.forAllModules(function(I){!P&&I.id==D&&(P=!0)}),P},k.prototype.add=function(D,P){(D in this.sets?this.sets[D]:this.sets[D]=new t).add(P),++this.n},k.prototype.remove=function(D,P){var I=this.sets[D];I.remove(P),0===I.count()&&delete this.sets[D],--this.n},k.prototype.forAll=function(D){for(var P in this.sets)D(this.sets[P],Number(P))},k.prototype.forAllModules=function(D){this.forAll(function(P,I){return P.forAll(D)})},k.prototype.intersection=function(D){var P=new k;return this.forAll(function(I,z){if(z in D.sets){var G=I.intersection(D.sets[z]),W=G.count();W>0&&(P.sets[z]=G,P.n+=W)}}),P},k}();it.LinkSets=A,it.getGroups=function w(k,D,P,I){for(var G=new d(k.length,D,P,I);G.greedyMerge(););var W=[],ot=G.getGroupHierarchy(W);return W.forEach(function(ct){var gt=function(Pt){var St=ct[Pt];"number"==typeof St&&(ct[Pt]=k[St])};gt("source"),gt("target")}),{groups:ot,powerEdges:W}}},88866:(rt,it)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var b=function(){function p(v){this.elem=v,this.subheaps=[]}return p.prototype.toString=function(v){for(var T="",t=!1,A=0;A0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(A){for(var x=this._root;null!==x;){var w=this._comparator(A,x.data);if(0===w)return x.data;x=x.get_child(w>0)}return null},t.prototype.lowerBound=function(A){return this._bound(A,this._comparator)},t.prototype.upperBound=function(A){var x=this._comparator;return this._bound(A,function w(k,D){return x(D,k)})},t.prototype.min=function(){var A=this._root;if(null===A)return null;for(;null!==A.left;)A=A.left;return A.data},t.prototype.max=function(){var A=this._root;if(null===A)return null;for(;null!==A.right;)A=A.right;return A.data},t.prototype.iterator=function(){return new p(this)},t.prototype.each=function(A){for(var w,x=this.iterator();null!==(w=x.next());)A(w)},t.prototype.reach=function(A){for(var w,x=this.iterator();null!==(w=x.prev());)A(w)},t.prototype._bound=function(A,x){for(var w=this._root,k=this.iterator();null!==w;){var D=this._comparator(A,w.data);if(0===D)return k._cursor=w,k;k._ancestors.push(w),w=w.get_child(D>0)}for(var P=k._ancestors.length-1;P>=0;--P)if(x(A,(w=k._ancestors[P]).data)>0)return k._cursor=w,k._ancestors.length=P,k;return k._ancestors.length=0,k},t}();it.TreeBase=d;var p=function(){function t(A){this._tree=A,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var A=this._tree._root;null!==A&&this._minNode(A)}else if(null===this._cursor.right){var x;do{if(x=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===x)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var A=this._tree._root;null!==A&&this._maxNode(A)}else if(null===this._cursor.left){var x;do{if(x=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===x)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(A){for(;null!==A.left;)this._ancestors.push(A),A=A.left;this._cursor=A},t.prototype._maxNode=function(A){for(;null!==A.right;)this._ancestors.push(A),A=A.right;this._cursor=A},t}();it.Iterator=p;var v=function(){function t(A){this.data=A,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(A){return A?this.right:this.left},t.prototype.set_child=function(A,x){A?this.right=x:this.left=x},t}(),T=function(t){function A(x){var w=t.call(this)||this;return w._root=null,w._comparator=x,w.size=0,w}return b(A,t),A.prototype.insert=function(x){var w=!1;if(null===this._root)this._root=new v(x),w=!0,this.size++;else{var k=new v(void 0),D=!1,P=!1,I=null,z=k,G=null,W=this._root;for(z.right=this._root;;){if(null===W?(W=new v(x),G.set_child(D,W),w=!0,this.size++):A.is_red(W.left)&&A.is_red(W.right)&&(W.red=!0,W.left.red=!1,W.right.red=!1),A.is_red(W)&&A.is_red(G)){var ot=z.right===I;W===G.get_child(P)?z.set_child(ot,A.single_rotate(I,!P)):z.set_child(ot,A.double_rotate(I,!P))}var ct=this._comparator(W.data,x);if(0===ct)break;P=D,null!==I&&(z=I),I=G,G=W,W=W.get_child(D=ct<0)}this._root=k.right}return this._root.red=!1,w},A.prototype.remove=function(x){if(null===this._root)return!1;var w=new v(void 0),k=w;k.right=this._root;for(var D=null,P=null,I=null,z=!0;null!==k.get_child(z);){var G=z;P=D,D=k,k=k.get_child(z);var W=this._comparator(x,k.data);if(z=W>0,0===W&&(I=k),!A.is_red(k)&&!A.is_red(k.get_child(z)))if(A.is_red(k.get_child(!z))){var ot=A.single_rotate(k,z);D.set_child(G,ot),D=ot}else if(!A.is_red(k.get_child(!z))){var ct=D.get_child(!G);if(null!==ct)if(A.is_red(ct.get_child(!G))||A.is_red(ct.get_child(G))){var gt=P.right===D;A.is_red(ct.get_child(G))?P.set_child(gt,A.double_rotate(D,G)):A.is_red(ct.get_child(!G))&&P.set_child(gt,A.single_rotate(D,G));var Pt=P.get_child(gt);Pt.red=!0,k.red=!0,Pt.left.red=!1,Pt.right.red=!1}else D.red=!1,ct.red=!0,k.red=!0}}return null!==I&&(I.data=k.data,D.set_child(D.right===k,k.get_child(null===k.left)),this.size--),this._root=w.right,null!==this._root&&(this._root.red=!1),null!==I},A.is_red=function(x){return null!==x&&x.red},A.single_rotate=function(x,w){var k=x.get_child(!w);return x.set_child(!w,k.get_child(w)),k.set_child(w,x),x.red=!0,k.red=!1,k},A.double_rotate=function(x,w){return x.set_child(!w,A.single_rotate(x.get_child(!w),!w)),A.single_rotate(x,w)},A}(d);it.RBTree=T},4068:function(rt,it,b){"use strict";var wt,d=this&&this.__extends||(wt=function(_t,Nt){return(wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qt,qt){Qt.__proto__=qt}||function(Qt,qt){for(var le in qt)qt.hasOwnProperty(le)&&(Qt[le]=qt[le])})(_t,Nt)},function(_t,Nt){function Qt(){this.constructor=_t}wt(_t,Nt),_t.prototype=null===Nt?Object.create(Nt):(Qt.prototype=Nt.prototype,new Qt)});Object.defineProperty(it,"__esModule",{value:!0});var p=b(98237),v=b(94655);function T(wt){return wt.bounds=typeof wt.leaves<"u"?wt.leaves.reduce(function(_t,Nt){return Nt.bounds.union(_t)},t.empty()):t.empty(),typeof wt.groups<"u"&&(wt.bounds=wt.groups.reduce(function(_t,Nt){return T(Nt).union(_t)},wt.bounds)),wt.bounds=wt.bounds.inflate(wt.padding),wt.bounds}it.computeGroupBounds=T;var t=function(){function wt(_t,Nt,Qt,qt){this.x=_t,this.X=Nt,this.y=Qt,this.Y=qt}return wt.empty=function(){return new wt(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},wt.prototype.cx=function(){return(this.x+this.X)/2},wt.prototype.cy=function(){return(this.y+this.Y)/2},wt.prototype.overlapX=function(_t){var Nt=this.cx(),Qt=_t.cx();return Nt<=Qt&&_t.x0?Qt[0]:null},wt.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},wt.lineIntersection=function(_t,Nt,Qt,qt,le,Wt,Ce,Ae){var Ne=Qt-_t,ze=Ce-le,Xe=qt-Nt,ie=Ae-Wt,Te=ie*Ne-ze*Xe;if(0==Te)return null;var re=_t-le,ee=Nt-Wt,Kt=(ze*ee-ie*re)/Te,Le=(Ne*ee-Xe*re)/Te;return Kt>=0&&Kt<=1&&Le>=0&&Le<=1?{x:_t+Kt*Ne,y:Nt+Kt*Xe}:null},wt.prototype.inflate=function(_t){return new wt(this.x-_t,this.X+_t,this.y-_t,this.Y+_t)},wt}();it.Rectangle=t,it.makeEdgeBetween=function A(wt,_t,Nt){var Qt=wt.rayIntersection(_t.cx(),_t.cy())||{x:wt.cx(),y:wt.cy()},qt=_t.rayIntersection(wt.cx(),wt.cy())||{x:_t.cx(),y:_t.cy()},le=qt.x-Qt.x,Wt=qt.y-Qt.y,Ce=Math.sqrt(le*le+Wt*Wt),Ae=Ce-Nt;return{sourceIntersection:Qt,targetIntersection:qt,arrowStart:{x:Qt.x+Ae*le/Ce,y:Qt.y+Ae*Wt/Ce}}},it.makeEdgeTo=function x(wt,_t,Nt){var Qt=_t.rayIntersection(wt.x,wt.y);Qt||(Qt={x:_t.cx(),y:_t.cy()});var qt=Qt.x-wt.x,le=Qt.y-wt.y,Wt=Math.sqrt(qt*qt+le*le);return{x:Qt.x-Nt*qt/Wt,y:Qt.y-Nt*le/Wt}};var w=function wt(_t,Nt,Qt){this.v=_t,this.r=Nt,this.pos=Qt,this.prev=P(),this.next=P()},k=function wt(_t,Nt,Qt){this.isOpen=_t,this.v=Nt,this.pos=Qt};function D(wt,_t){return wt.pos>_t.pos?1:wt.pos<_t.pos||wt.isOpen?-1:_t.isOpen?1:0}function P(){return new v.RBTree(function(wt,_t){return wt.pos-_t.pos})}var I={getCentre:function(wt){return wt.cx()},getOpen:function(wt){return wt.y},getClose:function(wt){return wt.Y},getSize:function(wt){return wt.width()},makeRect:function(wt,_t,Nt,Qt){return new t(Nt-Qt/2,Nt+Qt/2,wt,_t)},findNeighbours:function ot(wt,_t){var Nt=function(Qt,qt){for(var Wt,le=_t.findIter(wt);null!==(Wt=le[Qt]());){var Ce=Wt.r.overlapX(wt.r);if((Ce<=0||Ce<=Wt.r.overlapY(wt.r))&&(wt[Qt].insert(Wt),Wt[qt].insert(wt)),Ce<=0)break}};Nt("next","prev"),Nt("prev","next")}},z={getCentre:function(wt){return wt.cy()},getOpen:function(wt){return wt.x},getClose:function(wt){return wt.X},getSize:function(wt){return wt.height()},makeRect:function(wt,_t,Nt,Qt){return new t(wt,_t,Nt-Qt/2,Nt+Qt/2)},findNeighbours:function ct(wt,_t){var Nt=function(Qt,qt){var le=_t.findIter(wt)[Qt]();null!==le&&le.r.overlapX(wt.r)>0&&(wt[Qt].insert(le),le[qt].insert(wt))};Nt("next","prev"),Nt("prev","next")}};function G(wt,_t,Nt,Qt){void 0===Qt&&(Qt=!1);var qt=wt.padding,le=typeof wt.groups<"u"?wt.groups.length:0,Wt=typeof wt.leaves<"u"?wt.leaves.length:0,Ce=le?wt.groups.reduce(function(hn,we){return hn.concat(G(we,_t,Nt,!0))},[]):[],Ae=(Qt?2:0)+Wt+le,Ne=new Array(Ae),ze=new Array(Ae),Xe=0,ie=function(hn,we){ze[Xe]=hn,Ne[Xe++]=we};if(Qt){var Te=wt.bounds,re=_t.getCentre(Te),ee=_t.getSize(Te)/2,ue=_t.getOpen(Te),Kt=_t.getClose(Te),ce=re-ee+qt/2,Le=re+ee-qt/2;wt.minVar.desiredPosition=ce,ie(_t.makeRect(ue,Kt,ce,qt),wt.minVar),wt.maxVar.desiredPosition=Le,ie(_t.makeRect(ue,Kt,Le,qt),wt.maxVar)}Wt&&wt.leaves.forEach(function(hn){return ie(hn.bounds,hn.variable)}),le&&wt.groups.forEach(function(hn){var we=hn.bounds;ie(_t.makeRect(_t.getOpen(we),_t.getClose(we),_t.getCentre(we),_t.getSize(we)),hn.minVar)});var on=W(ze,Ne,_t,Nt);return le&&(Ne.forEach(function(hn){hn.cOut=[],hn.cIn=[]}),on.forEach(function(hn){hn.left.cOut.push(hn),hn.right.cIn.push(hn)}),wt.groups.forEach(function(hn){var we=(hn.padding-_t.getSize(hn.bounds))/2;hn.minVar.cIn.forEach(function(bn){return bn.gap+=we}),hn.minVar.cOut.forEach(function(bn){bn.left=hn.maxVar,bn.gap+=we})})),Ce.concat(on)}function W(wt,_t,Nt,Qt){var qt,le=wt.length,Wt=2*le;console.assert(_t.length>=le);var Ce=new Array(Wt);for(qt=0;qtCe[Qt]&&(Ce[Qt]=Ae)}Wt=Ce})}},wt.prototype.createAlignment=function(_t){var Nt=this,Qt=this.nodes[_t.offsets[0].node].variable;this.makeFeasible(_t);var qt="x"===_t.axis?this.xConstraints:this.yConstraints;_t.offsets.slice(1).forEach(function(le){qt.push(new p.Constraint(Qt,Nt.nodes[le.node].variable,le.offset,!0))})},wt.prototype.createConstraints=function(_t){var Nt=this,Qt=function(qt){return typeof qt.type>"u"||"separation"===qt.type};this.xConstraints=_t.filter(function(qt){return"x"===qt.axis&&Qt(qt)}).map(function(qt){return Nt.createSeparation(qt)}),this.yConstraints=_t.filter(function(qt){return"y"===qt.axis&&Qt(qt)}).map(function(qt){return Nt.createSeparation(qt)}),_t.filter(function(qt){return"alignment"===qt.type}).forEach(function(qt){return Nt.createAlignment(qt)})},wt.prototype.setupVariablesAndBounds=function(_t,Nt,Qt,qt){this.nodes.forEach(function(le,Wt){le.fixed?(le.variable.weight=le.fixedWeight?le.fixedWeight:1e3,Qt[Wt]=qt(le)):le.variable.weight=1;var Ce=(le.width||0)/2,Ae=(le.height||0)/2,Ne=_t[Wt],ze=Nt[Wt];le.bounds=new t(Ne-Ce,Ne+Ce,ze-Ae,ze+Ae)})},wt.prototype.xProject=function(_t,Nt,Qt){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(_t,Nt,_t,Qt,function(qt){return qt.px},this.xConstraints,St,function(qt){return qt.bounds.setXCentre(Qt[qt.variable.index]=qt.variable.position())},function(qt){var le=Qt[qt.minVar.index]=qt.minVar.position(),Wt=Qt[qt.maxVar.index]=qt.maxVar.position(),Ce=qt.padding/2;qt.bounds.x=le-Ce,qt.bounds.X=Wt+Ce})},wt.prototype.yProject=function(_t,Nt,Qt){!this.rootGroup&&!this.yConstraints||this.project(_t,Nt,Nt,Qt,function(qt){return qt.py},this.yConstraints,Ht,function(qt){return qt.bounds.setYCentre(Qt[qt.variable.index]=qt.variable.position())},function(qt){var le=Qt[qt.minVar.index]=qt.minVar.position(),Wt=Qt[qt.maxVar.index]=qt.maxVar.position(),Ce=qt.padding/2;qt.bounds.y=le-Ce,qt.bounds.Y=Wt+Ce})},wt.prototype.projectFunctions=function(){var _t=this;return[function(Nt,Qt,qt){return _t.xProject(Nt,Qt,qt)},function(Nt,Qt,qt){return _t.yProject(Nt,Qt,qt)}]},wt.prototype.project=function(_t,Nt,Qt,qt,le,Wt,Ce,Ae,Ne){this.setupVariablesAndBounds(_t,Nt,qt,le),this.rootGroup&&this.avoidOverlaps&&(T(this.rootGroup),Wt=Wt.concat(Ce(this.rootGroup))),this.solve(this.variables,Wt,Qt,qt),this.nodes.forEach(Ae),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(Ne),T(this.rootGroup))},wt.prototype.solve=function(_t,Nt,Qt,qt){var le=new p.Solver(_t,Nt);le.setStartingPositions(Qt),le.setDesiredPositions(qt),le.solve()},wt}();it.Projection=Zt},33858:(rt,it,b)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var d=b(88866),p=function A(x,w){this.id=x,this.distance=w},v=function A(x){this.id=x,this.neighbours=[]},T=function A(x,w,k){this.node=x,this.prev=w,this.d=k},t=function(){function A(x,w,k,D,P){this.n=x,this.es=w,this.neighbours=new Array(this.n);for(var I=this.n;I--;)this.neighbours[I]=new v(I);for(I=this.es.length;I--;){var z=this.es[I],G=k(z),W=D(z),ot=P(z);this.neighbours[G].neighbours.push(new p(W,ot)),this.neighbours[W].neighbours.push(new p(G,ot))}}return A.prototype.DistanceMatrix=function(){for(var x=new Array(this.n),w=0;wct&&(W.d=ct,W.prev=z,k.reduceKey(W.q,W,function(Pt,St){return Pt.q=St}))}}return P},A}();it.Calculator=t},98237:(rt,it)=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var b=function(){function x(w){this.scale=w,this.AB=0,this.AD=0,this.A2=0}return x.prototype.addVariable=function(w){var k=this.scale/w.scale,P=w.weight;this.AB+=P*k*(w.offset/w.scale),this.AD+=P*k*w.desiredPosition,this.A2+=P*k*k},x.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},x}();it.PositionStats=b;var d=function(){function x(w,k,D,P){void 0===P&&(P=!1),this.left=w,this.right=k,this.gap=D,this.equality=P,this.active=!1,this.unsatisfiable=!1,this.left=w,this.right=k,this.gap=D,this.equality=P}return x.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},x}();it.Constraint=d;var p=function(){function x(w,k,D){void 0===k&&(k=1),void 0===D&&(D=1),this.desiredPosition=w,this.weight=k,this.scale=D,this.offset=0}return x.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},x.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},x.prototype.visitNeighbours=function(w,k){var D=function(P,I){return P.active&&w!==I&&k(P,I)};this.cOut.forEach(function(P){return D(P,P.right)}),this.cIn.forEach(function(P){return D(P,P.left)})},x}();it.Variable=p;var v=function(){function x(w){this.vars=[],w.offset=0,this.ps=new b(w.scale),this.addVariable(w)}return x.prototype.addVariable=function(w){w.block=this,this.vars.push(w),this.ps.addVariable(w),this.posn=this.ps.getPosn()},x.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var w=0,k=this.vars.length;w=0?this.inactive.push(w):this.bs.merge(w)}}},x.prototype.solve=function(){this.satisfy();for(var w=Number.MAX_VALUE,k=this.bs.cost();Math.abs(w-k)>1e-4;)this.satisfy(),w=k,k=this.bs.cost();return k},x.LAGRANGIAN_TOLERANCE=-1e-4,x.ZERO_UPPERBOUND=-1e-10,x}();it.Solver=t,it.removeOverlapInOneDimension=function A(x,w,k){for(var D=x.map(function(at){return new p(at.desiredCenter)}),P=[],I=x.length,z=0;z{var d={"./af":27088,"./af.js":27088,"./ar":17038,"./ar-dz":52502,"./ar-dz.js":52502,"./ar-kw":30128,"./ar-kw.js":30128,"./ar-ly":84519,"./ar-ly.js":84519,"./ar-ma":65443,"./ar-ma.js":65443,"./ar-ps":14523,"./ar-ps.js":14523,"./ar-sa":17642,"./ar-sa.js":17642,"./ar-tn":68592,"./ar-tn.js":68592,"./ar.js":17038,"./az":51213,"./az.js":51213,"./be":69191,"./be.js":69191,"./bg":90322,"./bg.js":90322,"./bm":28042,"./bm.js":28042,"./bn":59620,"./bn-bd":65903,"./bn-bd.js":65903,"./bn.js":59620,"./bo":69645,"./bo.js":69645,"./br":45020,"./br.js":45020,"./bs":64792,"./bs.js":64792,"./ca":47980,"./ca.js":47980,"./cs":47322,"./cs.js":47322,"./cv":90365,"./cv.js":90365,"./cy":32092,"./cy.js":32092,"./da":77387,"./da.js":77387,"./de":54307,"./de-at":29459,"./de-at.js":29459,"./de-ch":73694,"./de-ch.js":73694,"./de.js":54307,"./dv":39659,"./dv.js":39659,"./el":3460,"./el.js":3460,"./en-au":94369,"./en-au.js":94369,"./en-ca":60530,"./en-ca.js":60530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":13391,"./en-ie.js":13391,"./en-il":75414,"./en-il.js":75414,"./en-in":19615,"./en-in.js":19615,"./en-nz":21248,"./en-nz.js":21248,"./en-sg":13767,"./en-sg.js":13767,"./eo":84530,"./eo.js":84530,"./es":86866,"./es-do":18944,"./es-do.js":18944,"./es-mx":29116,"./es-mx.js":29116,"./es-us":83609,"./es-us.js":83609,"./es.js":86866,"./et":96725,"./et.js":96725,"./eu":67931,"./eu.js":67931,"./fa":56417,"./fa.js":56417,"./fi":20944,"./fi.js":20944,"./fil":61766,"./fil.js":61766,"./fo":95867,"./fo.js":95867,"./fr":1636,"./fr-ca":16848,"./fr-ca.js":16848,"./fr-ch":77773,"./fr-ch.js":77773,"./fr.js":1636,"./fy":14940,"./fy.js":14940,"./ga":91402,"./ga.js":91402,"./gd":46924,"./gd.js":46924,"./gl":16398,"./gl.js":16398,"./gom-deva":72457,"./gom-deva.js":72457,"./gom-latn":52545,"./gom-latn.js":52545,"./gu":42641,"./gu.js":42641,"./he":7536,"./he.js":7536,"./hi":96335,"./hi.js":96335,"./hr":7458,"./hr.js":7458,"./hu":56540,"./hu.js":56540,"./hy-am":65283,"./hy-am.js":65283,"./id":98780,"./id.js":98780,"./is":14205,"./is.js":14205,"./it":34211,"./it-ch":29985,"./it-ch.js":29985,"./it.js":34211,"./ja":31003,"./ja.js":31003,"./jv":60420,"./jv.js":60420,"./ka":40851,"./ka.js":40851,"./kk":16074,"./kk.js":16074,"./km":53343,"./km.js":53343,"./kn":44799,"./kn.js":44799,"./ko":13549,"./ko.js":13549,"./ku":91037,"./ku-kmr":63775,"./ku-kmr.js":63775,"./ku.js":91037,"./ky":93125,"./ky.js":93125,"./lb":69586,"./lb.js":69586,"./lo":32349,"./lo.js":32349,"./lt":92400,"./lt.js":92400,"./lv":39991,"./lv.js":39991,"./me":28477,"./me.js":28477,"./mi":55118,"./mi.js":55118,"./mk":15943,"./mk.js":15943,"./ml":13849,"./ml.js":13849,"./mn":31977,"./mn.js":31977,"./mr":66184,"./mr.js":66184,"./ms":70485,"./ms-my":64524,"./ms-my.js":64524,"./ms.js":70485,"./mt":36681,"./mt.js":36681,"./my":52024,"./my.js":52024,"./nb":42688,"./nb.js":42688,"./ne":68914,"./ne.js":68914,"./nl":11758,"./nl-be":52272,"./nl-be.js":52272,"./nl.js":11758,"./nn":41510,"./nn.js":41510,"./oc-lnc":52797,"./oc-lnc.js":52797,"./pa-in":37944,"./pa-in.js":37944,"./pl":1605,"./pl.js":1605,"./pt":54225,"./pt-br":73840,"./pt-br.js":73840,"./pt.js":54225,"./ro":45128,"./ro.js":45128,"./ru":35127,"./ru.js":35127,"./sd":32525,"./sd.js":32525,"./se":59893,"./se.js":59893,"./si":33123,"./si.js":33123,"./sk":59635,"./sk.js":59635,"./sl":78106,"./sl.js":78106,"./sq":88799,"./sq.js":88799,"./sr":97949,"./sr-cyrl":52872,"./sr-cyrl.js":52872,"./sr.js":97949,"./ss":86167,"./ss.js":86167,"./sv":39713,"./sv.js":39713,"./sw":41982,"./sw.js":41982,"./ta":22732,"./ta.js":22732,"./te":43636,"./te.js":43636,"./tet":2115,"./tet.js":2115,"./tg":69801,"./tg.js":69801,"./th":2868,"./th.js":2868,"./tk":31310,"./tk.js":31310,"./tl-ph":22360,"./tl-ph.js":22360,"./tlh":66645,"./tlh.js":66645,"./tr":98374,"./tr.js":98374,"./tzl":256,"./tzl.js":256,"./tzm":61595,"./tzm-latn":61631,"./tzm-latn.js":61631,"./tzm.js":61595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":65610,"./uk.js":65610,"./ur":86077,"./ur.js":86077,"./uz":22862,"./uz-latn":12207,"./uz-latn.js":12207,"./uz.js":22862,"./vi":48093,"./vi.js":48093,"./x-pseudo":25590,"./x-pseudo.js":25590,"./yo":9058,"./yo.js":9058,"./zh-cn":77908,"./zh-cn.js":77908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":31133,"./zh-mo.js":31133,"./zh-tw":83291,"./zh-tw.js":83291};function p(T){var t=v(T);return b(t)}function v(T){if(!b.o(d,T)){var t=new Error("Cannot find module '"+T+"'");throw t.code="MODULE_NOT_FOUND",t}return d[T]}p.keys=function(){return Object.keys(d)},p.resolve=v,rt.exports=p,p.id=46700},7100:(rt,it,b)=>{"use strict";b.d(it,{AB:()=>bi,EC:()=>ii,K:()=>mn,g2:()=>wn});var d=b(84080),p=b(94650),v=b(42654),T=b(8929),t=b(36787),A=b(29521),x=b(72986),w=b(1059),k=b(7625),D=b(80013),P=b(92198),I=b(99602),z=b(36895),G=b(3238),W=b(40445),ot=b(4859),ct=b(21281),gt=b(98184),Pt=b(24006),St=b(59549),Ht=b(284),Jt=b(97392),at=b(65412),Zt=b(83353);const wt=["ngx-mat-calendar-body",""];function _t(nt,Vt){if(1&nt&&(p.TgZ(0,"tr",2)(1,"td",3),p._uU(2),p.qZA()()),2&nt){const Q=p.oxw();p.xp6(1),p.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),p.uIk("colspan",Q.numCols),p.xp6(1),p.hij(" ",Q.label," ")}}function Nt(nt,Vt){if(1&nt&&(p.TgZ(0,"td",7),p._uU(1),p.qZA()),2&nt){const Q=p.oxw(2);p.Udp("padding-top",Q._cellPadding)("padding-bottom",Q._cellPadding),p.uIk("colspan",Q._firstRowOffset),p.xp6(1),p.hij(" ",Q._firstRowOffset>=Q.labelMinRequiredCells?Q.label:""," ")}}function Qt(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"td",8),p.NdJ("click",function(Je){const Gi=p.CHM(Q).$implicit,Co=p.oxw(2);return p.KtG(Co._cellClicked(Gi,Je))}),p.TgZ(1,"div",9),p._uU(2),p.qZA(),p._UZ(3,"div",10),p.qZA()}if(2&nt){const Q=Vt.$implicit,zt=Vt.index,Je=p.oxw().index,zn=p.oxw();p.Udp("width",zn._cellWidth)("padding-top",zn._cellPadding)("padding-bottom",zn._cellPadding),p.ekj("mat-calendar-body-disabled",!Q.enabled)("mat-calendar-body-active",zn._isActiveCell(Je,zt))("mat-calendar-body-range-start",zn._isRangeStart(Q.compareValue))("mat-calendar-body-range-end",zn._isRangeEnd(Q.compareValue))("mat-calendar-body-in-range",zn._isInRange(Q.compareValue))("mat-calendar-body-comparison-bridge-start",zn._isComparisonBridgeStart(Q.compareValue,Je,zt))("mat-calendar-body-comparison-bridge-end",zn._isComparisonBridgeEnd(Q.compareValue,Je,zt))("mat-calendar-body-comparison-start",zn._isComparisonStart(Q.compareValue))("mat-calendar-body-comparison-end",zn._isComparisonEnd(Q.compareValue))("mat-calendar-body-in-comparison-range",zn._isInComparisonRange(Q.compareValue))("mat-calendar-body-preview-start",zn._isPreviewStart(Q.compareValue))("mat-calendar-body-preview-end",zn._isPreviewEnd(Q.compareValue))("mat-calendar-body-in-preview",zn._isInPreview(Q.compareValue)),p.Q6J("ngClass",Q.cssClasses)("tabindex",zn._isActiveCell(Je,zt)?0:-1),p.uIk("data-mat-row",Je)("data-mat-col",zt)("aria-label",Q.ariaLabel)("aria-disabled",!Q.enabled||null)("aria-selected",zn._isSelected(Q)),p.xp6(1),p.ekj("mat-calendar-body-selected",zn._isSelected(Q))("mat-calendar-body-today",zn.todayValue===Q.compareValue),p.xp6(1),p.hij(" ",Q.displayValue," ")}}function qt(nt,Vt){if(1&nt&&(p.TgZ(0,"tr",4),p.YNc(1,Nt,2,6,"td",5),p.YNc(2,Qt,4,44,"td",6),p.qZA()),2&nt){const Q=Vt.$implicit,zt=Vt.index,Je=p.oxw();p.xp6(1),p.Q6J("ngIf",0===zt&&Je._firstRowOffset),p.xp6(1),p.Q6J("ngForOf",Q)}}function le(nt,Vt){if(1&nt&&(p.TgZ(0,"th",5),p._uU(1),p.qZA()),2&nt){const Q=Vt.$implicit;p.uIk("aria-label",Q.long),p.xp6(1),p.Oqu(Q.narrow)}}const Wt=["*"];function Ce(nt,Vt){}function Ae(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"ngx-mat-month-view",5),p.NdJ("activeDateChange",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn.activeDate=Je)})("selectedChange",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn._dateSelected(Je))})("_userSelection",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je._userSelected())}),p.qZA()}if(2&nt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)("dateClass",Q.dateClass)}}function Ne(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"ngx-mat-year-view",6),p.NdJ("activeDateChange",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn.activeDate=Je)})("monthSelected",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn._monthSelectedInYearView(Je))})("selectedChange",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn._goToDateInView(Je,"month"))}),p.qZA()}if(2&nt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)}}function ze(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"ngx-mat-multi-year-view",7),p.NdJ("activeDateChange",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn.activeDate=Je)})("yearSelected",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn._yearSelectedInMultiYearView(Je))})("selectedChange",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn._goToDateInView(Je,"year"))}),p.qZA()}if(2&nt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)}}function Xe(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"td")(1,"button",10),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw(2);return p.KtG(Je.change("second",!0))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_less"),p.qZA()()()}if(2&nt){const Q=p.oxw(2);p.xp6(1),p.Q6J("disabled",Q.disabled||Q.disableMinute)}}function ie(nt,Vt){1&nt&&p._UZ(0,"td",6)}function Te(nt,Vt){1&nt&&p._UZ(0,"td")}function re(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",10),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.change("hour",!0))}),p.TgZ(3,"mat-icon"),p._uU(4,"expand_less"),p.qZA()()(),p._UZ(5,"td"),p.TgZ(6,"td")(7,"button",10),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.change("minute",!0))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_less"),p.qZA()()(),p._UZ(10,"td"),p.YNc(11,Xe,4,1,"td",3),p.YNc(12,ie,1,0,"td",8),p.YNc(13,Te,1,0,"td",3),p.qZA()}if(2&nt){const Q=p.oxw();p.xp6(2),p.Q6J("disabled",Q.disabled),p.xp6(5),p.Q6J("disabled",Q.disabled||Q.disableMinute),p.xp6(4),p.Q6J("ngIf",Q.showSeconds),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian)}}function ee(nt,Vt){1&nt&&(p.TgZ(0,"td",6),p._uU(1,":"),p.qZA())}function ue(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"td")(1,"mat-form-field",4)(2,"input",11),p.NdJ("input",function(Je){p.CHM(Q);const zn=p.oxw();return p.KtG(zn.formatInput(Je.target))})("keydown.ArrowUp",function(Je){return p.CHM(Q),p.oxw().change("second",!0),p.KtG(Je.preventDefault())})("keydown.ArrowDown",function(Je){return p.CHM(Q),p.oxw().change("second",!1),p.KtG(Je.preventDefault())})("blur",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.change("second"))}),p.qZA()()()}}function Kt(nt,Vt){1&nt&&p._UZ(0,"td",6)}function ce(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"td",12)(1,"button",13),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.toggleMeridian())}),p._uU(2),p.qZA()()}if(2&nt){const Q=p.oxw();p.xp6(1),p.Q6J("color",Q.color)("disabled",Q.disabled),p.xp6(1),p.hij(" ",Q.meridian," ")}}function Le(nt,Vt){1&nt&&p._UZ(0,"td")}function on(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"td")(1,"button",14),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw(2);return p.KtG(Je.change("second",!1))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_more"),p.qZA()()()}if(2&nt){const Q=p.oxw(2);p.xp6(1),p.Q6J("disabled",Q.disabled||Q.disableMinute)}}function hn(nt,Vt){1&nt&&p._UZ(0,"td",6)}function we(nt,Vt){1&nt&&p._UZ(0,"td")}function bn(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",14),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.change("hour",!1))}),p.TgZ(3,"mat-icon"),p._uU(4,"expand_more"),p.qZA()()(),p._UZ(5,"td"),p.TgZ(6,"td")(7,"button",14),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.change("minute",!1))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_more"),p.qZA()()(),p.YNc(10,Le,1,0,"td",3),p.YNc(11,on,4,1,"td",3),p.YNc(12,hn,1,0,"td",8),p.YNc(13,we,1,0,"td",3),p.qZA()}if(2&nt){const Q=p.oxw();p.xp6(2),p.Q6J("disabled",Q.disabled),p.xp6(5),p.Q6J("disabled",Q.disabled||Q.disableMinute),p.xp6(3),p.Q6J("ngIf",Q.showSeconds),p.xp6(1),p.Q6J("ngIf",Q.showSeconds),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian),p.xp6(1),p.Q6J("ngIf",Q.enableMeridian)}}function Ze(nt,Vt){if(1&nt){const Q=p.EpF();p.TgZ(0,"div",6)(1,"ngx-mat-timepicker",7),p.NdJ("ngModelChange",function(Je){p.CHM(Q);const zn=p.oxw(2);return p.KtG(zn.datepicker._selected=Je)}),p.qZA()()}if(2&nt){const Q=p.oxw(2);p.ekj("disable-seconds",!Q.datepicker._showSeconds),p.xp6(1),p.Q6J("showSpinners",Q.datepicker._showSpinners)("showSeconds",Q.datepicker._showSeconds)("disabled",Q.datepicker._disabled)("stepHour",Q.datepicker._stepHour)("stepMinute",Q.datepicker._stepMinute)("stepSecond",Q.datepicker._stepSecond)("ngModel",Q.datepicker._selected)("color",Q.datepicker._color)("enableMeridian",Q.datepicker._enableMeridian)("disableMinute",Q.datepicker._disableMinute)}}function dn(nt,Vt){1&nt&&(p.TgZ(0,"mat-icon"),p._uU(1,"done"),p.qZA())}function kn(nt,Vt){}function ri(nt,Vt){if(1&nt){const Q=p.EpF();p.ynx(0),p.YNc(1,Ze,2,12,"div",2),p.TgZ(2,"div",3)(3,"button",4),p.NdJ("click",function(){p.CHM(Q);const Je=p.oxw();return p.KtG(Je.datepicker.ok())}),p.YNc(4,dn,2,0,"mat-icon",1),p.YNc(5,kn,0,0,"ng-template",5),p.qZA()(),p.BQk()}if(2&nt){const Q=p.oxw();p.xp6(1),p.Q6J("ngIf",!Q.datepicker._hideTime),p.xp6(2),p.Q6J("color",Q.datepicker._color)("disabled",!Q.valid),p.xp6(1),p.Q6J("ngIf",!Q.datepicker._customIcon),p.xp6(1),p.Q6J("cdkPortalOutlet",Q._templateCustomIconPortal)}}const Ee=new p.OlP("ngx-mat-date-formats");class Ft{constructor(Vt,Q,zt,Je,zn={},Gi=Vt,Co){this.value=Vt,this.displayValue=Q,this.ariaLabel=zt,this.enabled=Je,this.cssClasses=zn,this.compareValue=Gi,this.rawValue=Co}}let vt=(()=>{class nt{constructor(Q,zt){this._elementRef=Q,this._ngZone=zt,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new p.vpe,this.previewChange=new p.vpe,this._enterHandler=Je=>{if(this._skipNextFocus&&"focus"===Je.type)this._skipNextFocus=!1;else if(Je.target&&this.isRange){const zn=this._getCellFromElement(Je.target);zn&&this._ngZone.run(()=>this.previewChange.emit({value:zn.enabled?zn:null,event:Je}))}},this._leaveHandler=Je=>{null!==this.previewEnd&&this.isRange&&Je.target&&xt(Je.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Je}))},zt.runOutsideAngular(()=>{const Je=Q.nativeElement;Je.addEventListener("mouseenter",this._enterHandler,!0),Je.addEventListener("focus",this._enterHandler,!0),Je.addEventListener("mouseleave",this._leaveHandler,!0),Je.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(Q,zt){Q.enabled&&this.selectedValueChange.emit({value:Q.value,event:zt})}_isSelected(Q){return this.startValue===Q.compareValue||this.endValue===Q.compareValue}ngOnChanges(Q){const zt=Q.numCols,{rows:Je,numCols:zn}=this;(Q.rows||zt)&&(this._firstRowOffset=Je&&Je.length&&Je[0].length?zn-Je[0].length:0),(Q.cellAspectRatio||zt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/zn+"%"),(zt||!this._cellWidth)&&(this._cellWidth=100/zn+"%")}ngOnDestroy(){const Q=this._elementRef.nativeElement;Q.removeEventListener("mouseenter",this._enterHandler,!0),Q.removeEventListener("focus",this._enterHandler,!0),Q.removeEventListener("mouseleave",this._leaveHandler,!0),Q.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(Q,zt){let Je=Q*this.numCols+zt;return Q&&(Je-=this._firstRowOffset),Je==this.activeCell}_focusActiveCell(Q=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe((0,x.q)(1)).subscribe(()=>{const zt=this._elementRef.nativeElement.querySelector(".ngx-mat-calendar-body-active");zt&&(Q||(this._skipNextFocus=!0),zt.focus())})})}_isRangeStart(Q){return tt(Q,this.startValue,this.endValue)}_isRangeEnd(Q){return et(Q,this.startValue,this.endValue)}_isInRange(Q){return Ct(Q,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Q){return tt(Q,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Q,zt,Je){if(!this._isComparisonStart(Q)||this._isRangeStart(Q)||!this._isInRange(Q))return!1;let zn=this.rows[zt][Je-1];if(!zn){const Gi=this.rows[zt-1];zn=Gi&&Gi[Gi.length-1]}return zn&&!this._isRangeEnd(zn.compareValue)}_isComparisonBridgeEnd(Q,zt,Je){if(!this._isComparisonEnd(Q)||this._isRangeEnd(Q)||!this._isInRange(Q))return!1;let zn=this.rows[zt][Je+1];if(!zn){const Gi=this.rows[zt+1];zn=Gi&&Gi[0]}return zn&&!this._isRangeStart(zn.compareValue)}_isComparisonEnd(Q){return et(Q,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Q){return Ct(Q,this.comparisonStart,this.comparisonEnd,this.isRange)}_isPreviewStart(Q){return tt(Q,this.previewStart,this.previewEnd)}_isPreviewEnd(Q){return et(Q,this.previewStart,this.previewEnd)}_isInPreview(Q){return Ct(Q,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(Q){let zt;if(xt(Q)?zt=Q:xt(Q.parentNode)&&(zt=Q.parentNode),zt){const Je=zt.getAttribute("data-ngx-mat-row"),zn=zt.getAttribute("data-ngx-mat-col");if(Je&&zn)return this.rows[parseInt(Je)][parseInt(zn)]}return null}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(p.SBq),p.Y36(p.R0b))},nt.\u0275cmp=p.Xpm({type:nt,selectors:[["","ngx-mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"ngx-mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["NgxMatCalendarBody"],features:[p.TTD],attrs:wt,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(Q,zt){1&Q&&(p.YNc(0,_t,3,6,"tr",0),p.YNc(1,qt,3,2,"tr",1)),2&Q&&(p.Q6J("ngIf",zt._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media (hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),nt})();function xt(nt){return"TD"===nt.nodeName}function tt(nt,Vt,Q){return null!==Q&&Vt!==Q&&nt=Vt&&nt===Q}function Ct(nt,Vt,Q,zt){return zt&&null!==Vt&&null!==Q&&Vt!==Q&&nt>=Vt&&nt<=Q}class Bt extends G._A{isSameTime(Vt,Q){return null==Vt||null==Q||this.getHour(Vt)===this.getHour(Q)&&this.getMinute(Vt)===this.getMinute(Q)&&this.getSecond(Vt)===this.getSecond(Q)}copyTime(Vt,Q){this.setHour(Vt,this.getHour(Q)),this.setMinute(Vt,this.getMinute(Q)),this.setSecond(Vt,this.getSecond(Q))}compareDateWithTime(Vt,Q,zt){let Je=super.compareDate(Vt,Q)||this.getHour(Vt)-this.getHour(Q)||this.getMinute(Vt)-this.getMinute(Q);return zt&&(Je=Je||this.getSecond(Vt)-this.getSecond(Q)),Je}setTimeByDefaultValues(Vt,Q){if(!Array.isArray(Q))throw Error("@Input DefaultTime should be an array");this.setHour(Vt,Q[0]||0),this.setMinute(Vt,Q[1]||0),this.setSecond(Vt,Q[2]||0)}}const ne=new p.OlP("NGX_MAT_DATE_RANGE_SELECTION_STRATEGY");let he=(()=>{class nt{constructor(Q){this._dateAdapter=Q}selectionFinished(Q,zt){let{start:Je,end:zn}=zt;return null==Je?Je=Q:null==zn&&Q&&this._dateAdapter.compareDate(Q,Je)>=0?zn=Q:(Je=Q,zn=null),new I.C0(Je,zn)}createPreview(Q,zt){let Je=null,zn=null;return zt.start&&!zt.end&&Q&&(Je=zt.start,zn=Q),new I.C0(Je,zn)}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.LFG(Bt))},nt.\u0275prov=p.Yz7({token:nt,factory:nt.\u0275fac}),nt})();const Oe={minHour:0,maxHour:24,minMinute:0,maxMinute:60,minSecond:0,maxSecond:60,meridian:12},_i=/[^0-9]/g,Si=/^(2[0-3]|[0-1][0-9]|[0-9])$/,ho=/^([0-5][0-9]|[0-9])$/,hi=/^([0-5][0-9]|[0-9])$/;function Vn(nt){const Vt=nt.toString();return Vt.length>1?Vt:`0${Vt}`}function Gn(nt){return Error(`NgxMatDatepicker: No provider found for ${nt}. You must import one of the following modules at your application root: NgxMatNativeDateModule, NgxMatMomentModule, or provide a custom implementation.`)}let Ve=(()=>{class nt{constructor(Q,zt,Je,zn,Gi){if(this._changeDetectorRef=Q,this._dateFormats=zt,this._dateAdapter=Je,this._dir=zn,this._rangeStrategy=Gi,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new p.vpe,this._userSelection=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Gn("NgxMatDateAdapter");if(!this._dateFormats)throw Gn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){const zt=this._activeDate,Je=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Je,this.minDate,this.maxDate),this._hasSameMonthAndYear(zt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof I.C0?Q:this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Q){const zt=Q.value,Je=this._dateAdapter.getYear(this.activeDate),zn=this._dateAdapter.getMonth(this.activeDate),Gi=this._dateAdapter.createDate(Je,zn,zt);let Co,gr;this._selected instanceof I.C0?(Co=this._getDateInCurrentMonth(this._selected.start),gr=this._getDateInCurrentMonth(this._selected.end)):Co=gr=this._getDateInCurrentMonth(this._selected),(Co!==zt||gr!==zt)&&this.selectedChange.emit(Gi),this._userSelection.emit({value:Gi,event:Q.event})}_handleCalendarBodyKeydown(Q){const zt=this._activeDate,Je=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Je?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Je?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case A.Ku:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case A.VM:this.activeDate=Q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case A.K5:case A.L_:return void((!this.dateFilter||this.dateFilter(this._activeDate))&&(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Q}),Q.preventDefault()));case A.hY:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Q}),Q.preventDefault(),Q.stopPropagation()));default:return}this._dateAdapter.compareDate(zt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(Q)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Q){this._matCalendarBody._focusActiveCell(Q)}_previewChanged({event:Q,value:zt}){if(this._rangeStrategy){const zn=this._rangeStrategy.createPreview(zt?zt.rawValue:null,this.selected,Q);this._previewStart=this._getCellCompareValue(zn.start),this._previewEnd=this._getCellCompareValue(zn.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const Q=this._dateAdapter.getFirstDayOfWeek(),zt=this._dateAdapter.getDayOfWeekNames("narrow");let zn=this._dateAdapter.getDayOfWeekNames("long").map((Gi,Co)=>({long:Gi,narrow:zt[Co]}));this._weekdays=zn.slice(Q).concat(zn.slice(0,Q))}_createWeekCells(){const Q=this._dateAdapter.getNumDaysInMonth(this.activeDate),zt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Je=0,zn=this._firstWeekOffset;Je=0)&&(!this.maxDate||this._dateAdapter.compareDate(Q,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Q))}_getDateInCurrentMonth(Q){return Q&&this._hasSameMonthAndYear(Q,this.activeDate)?this._dateAdapter.getDate(Q):null}_hasSameMonthAndYear(Q,zt){return!(!Q||!zt||this._dateAdapter.getMonth(Q)!=this._dateAdapter.getMonth(zt)||this._dateAdapter.getYear(Q)!=this._dateAdapter.getYear(zt))}_getCellCompareValue(Q){if(Q){const zt=this._dateAdapter.getYear(Q),Je=this._dateAdapter.getMonth(Q),zn=this._dateAdapter.getDate(Q);return new Date(zt,Je,zn).getTime()}return null}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Q){Q instanceof I.C0?(this._rangeStart=this._getCellCompareValue(Q.start),this._rangeEnd=this._getCellCompareValue(Q.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(Q),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(p.sBO),p.Y36(Ee,8),p.Y36(Bt,8),p.Y36(W.Is,8),p.Y36(ne,8))},nt.\u0275cmp=p.Xpm({type:nt,selectors:[["ngx-mat-month-view"]],viewQuery:function(Q,zt){if(1&Q&&p.Gf(vt,5),2&Q){let Je;p.iGM(Je=p.CRH())&&(zt._matCalendarBody=Je.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["ngxMatMonthView"],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["ngx-mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(Q,zt){1&Q&&(p.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),p.YNc(3,le,2,2,"th",2),p.qZA(),p.TgZ(4,"tr"),p._UZ(5,"th",3),p.qZA()(),p.TgZ(6,"tbody",4),p.NdJ("selectedValueChange",function(zn){return zt._dateSelected(zn)})("previewChange",function(zn){return zt._previewChanged(zn)})("keydown",function(zn){return zt._handleCalendarBodyKeydown(zn)}),p.qZA()()),2&Q&&(p.xp6(3),p.Q6J("ngForOf",zt._weekdays),p.xp6(3),p.Q6J("label",zt._monthLabel)("rows",zt._weeks)("todayValue",zt._todayDate)("startValue",zt._rangeStart)("endValue",zt._rangeEnd)("comparisonStart",zt._comparisonRangeStart)("comparisonEnd",zt._comparisonRangeEnd)("previewStart",zt._previewStart)("previewEnd",zt._previewEnd)("isRange",zt._isRange)("labelMinRequiredCells",3)("activeCell",zt._dateAdapter.getDate(zt.activeDate)-1))},dependencies:[z.sg,vt],encapsulation:2,changeDetection:0}),nt})(),pe=(()=>{class nt{constructor(Q,zt,Je){if(this._changeDetectorRef=Q,this._dateAdapter=zt,this._dir=Je,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Gn("NgxMatDateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let zt=this._activeDate;const Je=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Je,this.minDate,this.maxDate),We(this._dateAdapter,zt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof I.C0?Q:this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedYear(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const zt=this._dateAdapter.getYear(this._activeDate)-Et(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Je=0,zn=[];Je<24;Je++)zn.push(zt+Je),4==zn.length&&(this._years.push(zn.map(Gi=>this._createCellForYear(Gi))),zn=[]);this._changeDetectorRef.markForCheck()}_yearSelected(Q){const zt=Q.value;this.yearSelected.emit(this._dateAdapter.createDate(zt,0,1));let Je=this._dateAdapter.getMonth(this.activeDate),zn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(zt,Je,1));this.selectedChange.emit(this._dateAdapter.createDate(zt,Je,Math.min(this._dateAdapter.getDate(this.activeDate),zn)))}_handleCalendarBodyKeydown(Q){const zt=this._activeDate,Je=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Je?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Je?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Et(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Et(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case A.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?-240:-24);break;case A.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?240:24);break;case A.K5:case A.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Q});break;default:return}this._dateAdapter.compareDate(zt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_getActiveCell(){return Et(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(Q){let zt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Q,0,1));return new Ft(Q,zt,zt,this._shouldEnableYear(Q))}_shouldEnableYear(Q){if(null==Q||this.maxDate&&Q>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Q{class nt{constructor(Q,zt,Je,zn){if(this._changeDetectorRef=Q,this._dateFormats=zt,this._dateAdapter=Je,this._dir=zn,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new p.vpe,this.monthSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw Gn("NgxMatDateAdapter");if(!this._dateFormats)throw Gn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let zt=this._activeDate;const Je=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Je,this.minDate,this.maxDate),this._dateAdapter.getYear(zt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(Q){this._selected=Q instanceof I.C0?Q:this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._setSelectedMonth(Q)}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Q){const zt=Q.value,Je=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),zt,1);this.monthSelected.emit(Je);const zn=this._dateAdapter.getNumDaysInMonth(Je);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),zt,Math.min(this._dateAdapter.getDate(this.activeDate),zn)))}_handleCalendarBodyKeydown(Q){const zt=this._activeDate,Je=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Je?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Je?-1:1);break;case A.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case A.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case A.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case A.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?-10:-1);break;case A.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q.altKey?10:1);break;case A.K5:case A.L_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Q});break;default:return}this._dateAdapter.compareDate(zt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let Q=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(zt=>zt.map(Je=>this._createCellForMonth(Je,Q[Je]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(Q){return Q&&this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Q):null}_createCellForMonth(Q,zt){let Je=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,1),this._dateFormats.display.monthYearA11yLabel);return new Ft(Q,zt.toLocaleUpperCase(),Je,this._shouldEnableMonth(Q))}_shouldEnableMonth(Q){const zt=this._dateAdapter.getYear(this.activeDate);if(null==Q||this._isYearAndMonthAfterMaxDate(zt,Q)||this._isYearAndMonthBeforeMinDate(zt,Q))return!1;if(!this.dateFilter)return!0;for(let zn=this._dateAdapter.createDate(zt,Q,1);this._dateAdapter.getMonth(zn)==Q;zn=this._dateAdapter.addCalendarDays(zn,1))if(this.dateFilter(zn))return!0;return!1}_isYearAndMonthAfterMaxDate(Q,zt){if(this.maxDate){const Je=this._dateAdapter.getYear(this.maxDate),zn=this._dateAdapter.getMonth(this.maxDate);return Q>Je||Q===Je&&zt>zn}return!1}_isYearAndMonthBeforeMinDate(Q,zt){if(this.minDate){const Je=this._dateAdapter.getYear(this.minDate),zn=this._dateAdapter.getMonth(this.minDate);return Q{class nt{constructor(Q,zt,Je,zn,Gi){this._intl=Q,this.calendar=zt,this._dateAdapter=Je,this._dateFormats=zn,this.calendar.stateChanges.subscribe(()=>Gi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const zt=this._dateAdapter.getYear(this.calendar.activeDate)-Et(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Je=zt+24-1;return function je(nt,Vt){return`${nt} \u2013 ${Vt}`}(this._dateAdapter.getYearName(this._dateAdapter.createDate(zt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Je,0,1)))}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(Q,zt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(zt)&&this._dateAdapter.getMonth(Q)==this._dateAdapter.getMonth(zt):"year"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(zt):We(this._dateAdapter,Q,zt,this.calendar.minDate,this.calendar.maxDate)}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(I.S8),p.Y36((0,p.Gpc)(()=>He)),p.Y36(Bt,8),p.Y36(Ee,8),p.Y36(p.sBO))},nt.\u0275cmp=p.Xpm({type:nt,selectors:[["ngx-mat-calendar-header"]],exportAs:["ngxMatCalendarHeader"],ngContentSelectors:Wt,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(Q,zt){1&Q&&(p.F$t(),p.TgZ(0,"div",0)(1,"div",1)(2,"button",2),p.NdJ("click",function(){return zt.currentPeriodClicked()}),p._uU(3),p._UZ(4,"div",3),p.qZA(),p._UZ(5,"div",4),p.Hsn(6),p.TgZ(7,"button",5),p.NdJ("click",function(){return zt.previousClicked()}),p.qZA(),p.TgZ(8,"button",6),p.NdJ("click",function(){return zt.nextClicked()}),p.qZA()()()),2&Q&&(p.xp6(2),p.uIk("aria-label",zt.periodButtonLabel),p.xp6(1),p.hij(" ",zt.periodButtonText," "),p.xp6(1),p.ekj("mat-calendar-invert","month"!=zt.calendar.currentView),p.xp6(3),p.Q6J("disabled",!zt.previousEnabled()),p.uIk("aria-label",zt.prevButtonLabel),p.xp6(1),p.Q6J("disabled",!zt.nextEnabled()),p.uIk("aria-label",zt.nextButtonLabel))},dependencies:[ot.lW],encapsulation:2,changeDetection:0}),nt})(),He=(()=>{class nt{constructor(Q,zt,Je,zn){if(this._dateAdapter=zt,this._dateFormats=Je,this._changeDetectorRef=zn,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this._userSelection=new p.vpe,this.stateChanges=new T.xQ,!this._dateAdapter)throw Gn("NgxDateAdapter");if(!this._dateFormats)throw Gn("NGX_MAT_DATE_FORMATS");this._intlChanges=Q.changes.subscribe(()=>{zn.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(Q){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get selected(){return this._selected}set selected(Q){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get minDate(){return this._minDate}set minDate(Q){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get maxDate(){return this._maxDate}set maxDate(Q){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get activeDate(){return this._clampedActiveDate}set activeDate(Q){this._clampedActiveDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(Q){this._currentView=Q,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new d.C5(this.headerComponent||en),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(Q){const zt=Q.minDate||Q.maxDate||Q.dateFilter;if(zt&&!zt.firstChange){const Je=this._getCurrentViewComponent();Je&&(this._changeDetectorRef.detectChanges(),Je._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){("month"==this.currentView?this.monthView:"year"==this.currentView?this.yearView:this.multiYearView).ngAfterContentInit()}_dateSelected(Q){Q&&!this._dateAdapter.sameDate(Q,this.selected)&&this.selectedChange.emit(Q)}_yearSelectedInMultiYearView(Q){this.yearSelected.emit(Q)}_monthSelectedInYearView(Q){this.monthSelected.emit(Q)}_userSelected(){this._userSelection.emit()}_goToDateInView(Q,zt){this.activeDate=Q,this.currentView=zt}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(I.S8),p.Y36(Bt,8),p.Y36(Ee,8),p.Y36(p.sBO))},nt.\u0275cmp=p.Xpm({type:nt,selectors:[["ngx-mat-calendar"]],viewQuery:function(Q,zt){if(1&Q&&(p.Gf(Ve,5),p.Gf(Me,5),p.Gf(pe,5)),2&Q){let Je;p.iGM(Je=p.CRH())&&(zt.monthView=Je.first),p.iGM(Je=p.CRH())&&(zt.yearView=Je.first),p.iGM(Je=p.CRH())&&(zt.multiYearView=Je.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["ngxMatCalendar"],features:[p.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(Q,zt){1&Q&&(p.YNc(0,Ce,0,0,"ng-template",0),p.TgZ(1,"div",1),p.YNc(2,Ae,1,6,"ngx-mat-month-view",2),p.YNc(3,Ne,1,5,"ngx-mat-year-view",3),p.YNc(4,ze,1,5,"ngx-mat-multi-year-view",4),p.qZA()),2&Q&&(p.Q6J("cdkPortalOutlet",zt._calendarHeaderPortal),p.xp6(1),p.Q6J("ngSwitch",zt.currentView),p.xp6(1),p.Q6J("ngSwitchCase","month"),p.xp6(1),p.Q6J("ngSwitchCase","year"),p.xp6(1),p.Q6J("ngSwitchCase","multi-year"))},dependencies:[z.RF,z.n9,d.Pl,Ve,Me,pe],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0}.mat-calendar-content{padding:0 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.71429% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button:after,.mat-calendar-next-button:after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button:after{border-left-width:2px;transform:translate(2px) rotate(-45deg)}.mat-calendar-next-button:after{border-right-width:2px;transform:translate(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider:after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),nt})(),Zn=(()=>{class nt{constructor(Q,zt,Je){if(this._dateAdapter=Q,this.cd=zt,this.formBuilder=Je,this.disabled=!1,this.showSpinners=!0,this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.disableMinute=!1,this.enableMeridian=!1,this.color="primary",this.meridian="AM",this._onChange=()=>{},this._onTouched=()=>{},this._destroyed=new T.xQ,this.pattern=Si,!this._dateAdapter)throw Gn("NgxMatDateAdapter");this.form=this.formBuilder.group({hour:[{value:null,disabled:this.disabled},[Pt.kI.required,Pt.kI.pattern(Si)]],minute:[{value:null,disabled:this.disabled},[Pt.kI.required,Pt.kI.pattern(ho)]],second:[{value:null,disabled:this.disabled},[Pt.kI.required,Pt.kI.pattern(hi)]]})}get hour(){let Q=Number(this.form.controls.hour.value);return isNaN(Q)?0:Q}get minute(){let Q=Number(this.form.controls.minute.value);return isNaN(Q)?0:Q}get second(){let Q=Number(this.form.controls.second.value);return isNaN(Q)?0:Q}get valid(){return this.form.valid}ngOnInit(){this.form.valueChanges.pipe((0,k.R)(this._destroyed),(0,D.b)(400)).subscribe(Q=>{this._updateModel()})}ngOnChanges(Q){(Q.disabled||Q.disableMinute)&&this._setDisableStates()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}writeValue(Q){null!=Q?this._model=Q:(this._model=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._model,this.defaultTime)),this._updateHourMinuteSecond()}registerOnChange(Q){this._onChange=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this._disabled=Q,this.cd.markForCheck()}formatInput(Q){Q.value=Q.value.replace(_i,"")}toggleMeridian(){this.meridian="AM"===this.meridian?"PM":"AM",this.change("hour")}change(Q,zt){const Je=this._getNextValueByProp(Q,zt);this.form.controls[Q].setValue(Vn(Je),{onlySelf:!1,emitEvent:!1}),this._updateModel()}_updateHourMinuteSecond(){let Q=this._dateAdapter.getHour(this._model);const zt=this._dateAdapter.getMinute(this._model),Je=this._dateAdapter.getSecond(this._model);this.enableMeridian&&(Q>=Oe.meridian?(Q-=Oe.meridian,this.meridian="PM"):this.meridian="AM",0===Q&&(Q=Oe.meridian)),this.form.controls.hour.setValue(Vn(Q)),this.form.controls.minute.setValue(Vn(zt)),this.form.controls.second.setValue(Vn(Je))}_updateModel(){let Q=this.hour;this.enableMeridian&&("AM"===this.meridian&&Q===Oe.meridian?Q=0:"PM"===this.meridian&&Q!==Oe.meridian&&(Q+=Oe.meridian)),this._dateAdapter.setHour(this._model,Q),this._dateAdapter.setMinute(this._model,this.minute),this._dateAdapter.setSecond(this._model,this.second),this._onChange(this._model)}_getNextValueByProp(Q,zt){const Je=Q[0].toUpperCase()+Q.slice(1),zn=Oe[`min${Je}`];let Co,Gi=Oe[`max${Je}`];return"hour"===Q&&this.enableMeridian&&(Gi=Oe.meridian),null==zt?(Co=this[Q]%Gi,"hour"===Q&&this.enableMeridian&&0===Co&&(Co=Gi)):(Co=zt?this[Q]+this[`step${Je}`]:this[Q]-this[`step${Je}`],"hour"===Q&&this.enableMeridian?(Co%=Gi+1,0===Co&&(Co=zt?1:Gi)):Co%=Gi,Co=zt?Co>Gi?Co-Gi+zn:Co:Cont),multi:!0}]),p.TTD],decls:18,vars:7,consts:[[3,"formGroup"],[1,"ngx-mat-timepicker-table"],[1,"ngx-mat-timepicker-tbody"],[4,"ngIf"],["appearance","legacy"],["type","text","matInput","","maxlength","2","formControlName","hour",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-spacer"],["type","text","matInput","","maxlength","2","formControlName","minute",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],["class","ngx-mat-timepicker-spacer",4,"ngIf"],["class","ngx-mat-timepicker-meridian",4,"ngIf"],["type","button","mat-icon-button","","aria-label","expand_less icon",3,"disabled","click"],["type","text","matInput","","maxlength","2","formControlName","second",3,"input","keydown.ArrowUp","keydown.ArrowDown","blur"],[1,"ngx-mat-timepicker-meridian"],["mat-button","","mat-stroked-button","",3,"color","disabled","click"],["type","button","mat-icon-button","","aria-label","expand_more icon",3,"disabled","click"]],template:function(Q,zt){1&Q&&(p.TgZ(0,"form",0)(1,"table",1)(2,"tbody",2),p.YNc(3,re,14,5,"tr",3),p.TgZ(4,"tr")(5,"td")(6,"mat-form-field",4)(7,"input",5),p.NdJ("input",function(zn){return zt.formatInput(zn.target)})("keydown.ArrowUp",function(zn){return zt.change("hour",!0),zn.preventDefault()})("keydown.ArrowDown",function(zn){return zt.change("hour",!1),zn.preventDefault()})("blur",function(){return zt.change("hour")}),p.qZA()()(),p.TgZ(8,"td",6),p._uU(9,":"),p.qZA(),p.TgZ(10,"td")(11,"mat-form-field",4)(12,"input",7),p.NdJ("input",function(zn){return zt.formatInput(zn.target)})("keydown.ArrowUp",function(zn){return zt.change("minute",!0),zn.preventDefault()})("keydown.ArrowDown",function(zn){return zt.change("minute",!1),zn.preventDefault()})("blur",function(){return zt.change("minute")}),p.qZA()()(),p.YNc(13,ee,2,0,"td",8),p.YNc(14,ue,3,0,"td",3),p.YNc(15,Kt,1,0,"td",8),p.YNc(16,ce,3,3,"td",9),p.qZA(),p.YNc(17,bn,14,6,"tr",3),p.qZA()()()),2&Q&&(p.Q6J("formGroup",zt.form),p.xp6(3),p.Q6J("ngIf",zt.showSpinners),p.xp6(10),p.Q6J("ngIf",zt.showSeconds),p.xp6(1),p.Q6J("ngIf",zt.showSeconds),p.xp6(1),p.Q6J("ngIf",zt.enableMeridian),p.xp6(1),p.Q6J("ngIf",zt.enableMeridian),p.xp6(1),p.Q6J("ngIf",zt.showSpinners))},dependencies:[z.O5,St.KE,Ht.Nt,Pt._Y,Pt.Fj,Pt.JJ,Pt.JL,Pt.nD,Pt.sg,Pt.u,Jt.Hw,ot.lW],styles:[".ngx-mat-timepicker{font-size:13px}.ngx-mat-timepicker form{min-width:90px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td{text-align:center}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-spacer{font-weight:bold}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-meridian .mat-button{min-width:64px;line-height:36px;min-width:0;border-radius:50%;width:36px;height:36px;padding:0;flex-shrink:0}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button{height:24px;width:24px;line-height:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button .mat-icon{font-size:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-form-field{width:20px;max-width:20px;text-align:center}\n"],encapsulation:2}),nt})(),ve=0;const Be=(0,G.pj)(class{constructor(nt){this._elementRef=nt}});let Fn=(()=>{class nt extends Be{constructor(Q,zt,Je){super(Q),this.cd=zt,this._viewContainerRef=Je}get valid(){return(this.datepicker.hideTime||this._timePicker&&this._timePicker.valid)&&this.datepicker.valid}get isViewMonth(){return!this._calendar||null==this._calendar.currentView||"month"==this._calendar.currentView}ngAfterViewInit(){this._calendar.focusActiveCell(),this.datepicker._customIcon&&(this._templateCustomIconPortal=new d.UE(this.datepicker._customIcon,this._viewContainerRef),this.cd.detectChanges())}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(p.s_b))},nt.\u0275cmp=p.Xpm({type:nt,selectors:[["ngx-mat-datetime-content"]],viewQuery:function(Q,zt){if(1&Q&&(p.Gf(He,5),p.Gf(Zn,5)),2&Q){let Je;p.iGM(Je=p.CRH())&&(zt._calendar=Je.first),p.iGM(Je=p.CRH())&&(zt._timePicker=Je.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Q,zt){2&Q&&(p.d8E("@transformPanel","enter"),p.ekj("mat-datepicker-content-touch",zt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["ngxMatDatetimeContent"],features:[p.qOj],decls:2,vars:12,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected"],[4,"ngIf"],["class","time-container",3,"disable-seconds",4,"ngIf"],[1,"actions"],["mat-button","","mat-stroked-button","","cdkFocusInitial","",3,"color","disabled","click"],[3,"cdkPortalOutlet"],[1,"time-container"],[3,"showSpinners","showSeconds","disabled","stepHour","stepMinute","stepSecond","ngModel","color","enableMeridian","disableMinute","ngModelChange"]],template:function(Q,zt){1&Q&&(p.TgZ(0,"ngx-mat-calendar",0),p.NdJ("selectedChange",function(zn){return zt.datepicker.select(zn)})("yearSelected",function(zn){return zt.datepicker._selectYear(zn)})("monthSelected",function(zn){return zt.datepicker._selectMonth(zn)}),p.qZA(),p.YNc(1,ri,6,5,"ng-container",1)),2&Q&&(p.Q6J("id",zt.datepicker.id)("ngClass",zt.datepicker.panelClass)("startAt",zt.datepicker.startAt)("startView",zt.datepicker.startView)("minDate",zt.datepicker._minDate)("maxDate",zt.datepicker._maxDate)("dateFilter",zt.datepicker._dateFilter)("headerComponent",zt.datepicker.calendarHeaderComponent)("selected",zt.datepicker._selected)("dateClass",zt.datepicker.dateClass)("@fadeInCalendar","enter"),p.xp6(1),p.Q6J("ngIf",zt.isViewMonth))},dependencies:[z.mk,z.O5,d.Pl,Pt.JJ,Pt.On,Jt.Hw,ot.lW,Zn,He],styles:['.mat-datepicker-content{display:block;border-radius:4px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-datepicker-content .mat-calendar{width:296px}.mat-datepicker-content .time-container{display:flex;position:relative;padding-top:5px;justify-content:center}.mat-datepicker-content .time-container.disable-seconds .ngx-mat-timepicker .table{margin-left:9px}.mat-datepicker-content .time-container:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#0000001f}.mat-datepicker-content .actions{display:flex;padding:5px 15px 10px;justify-content:flex-end}\n'],encapsulation:2,data:{animation:[I.E2.transformPanel,I.E2.fadeInCalendar]},changeDetection:0}),nt})(),bi=(()=>{class nt{constructor(Q,zt,Je,zn,Gi,Co,gr,br){if(this._dialog=Q,this._overlay=zt,this._ngZone=Je,this._viewContainerRef=zn,this._dateAdapter=Co,this._dir=gr,this._document=br,this.startView="month",this._defaultColor="primary",this._touchUi=!1,this._hideTime=!1,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this.openedStream=new p.vpe,this.closedStream=new p.vpe,this._opened=!1,this._showSpinners=!0,this._showSeconds=!1,this._stepHour=1,this._stepMinute=1,this._stepSecond=1,this._enableMeridian=!1,this._hasBackdrop=!0,this.id="mat-datepicker-"+ve++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=v.w.EMPTY,this.stateChanges=new T.xQ,this._selectedChanged=new T.xQ,this._minValidator=()=>!this._minDate||!this._selected||this._dateAdapter.compareDateWithTime(this._minDate,this._selected,this.showSeconds)<=0?null:{matDatetimePickerMin:{min:this._minDate,actual:this._selected}},this._maxValidator=()=>!this._maxDate||!this._selected||this._dateAdapter.compareDateWithTime(this._maxDate,this._selected,this.showSeconds)>=0?null:{matDatetimePickerMax:{max:this._maxDate,actual:this._selected}},!this._dateAdapter)throw Gn("NgxMatDateAdapter");this._scrollStrategy=Gi}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.value:null)}set startAt(Q){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))}get defaultColor(){return this._defaultColor}set defaultColor(Q){this._defaultColor=Q}get color(){return this._color||(this.datepickerInput?this.datepickerInput._getThemePalette():"primary")}set color(Q){this._color=Q}get touchUi(){return this._touchUi}set touchUi(Q){this._touchUi=(0,ct.Ig)(Q)}get hideTime(){return this._hideTime}set hideTime(Q){this._hideTime=(0,ct.Ig)(Q)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Q){const zt=(0,ct.Ig)(Q);zt!==this._disabled&&(this._disabled=zt,this.stateChanges.next(zt))}get opened(){return this._opened}set opened(Q){Q?this.open():this.close()}get showSpinners(){return this._showSpinners}set showSpinners(Q){this._showSpinners=Q}get showSeconds(){return this._showSeconds}set showSeconds(Q){this._showSeconds=Q}get stepHour(){return this._stepHour}set stepHour(Q){this._stepHour=Q}get stepMinute(){return this._stepMinute}set stepMinute(Q){this._stepMinute=Q}get stepSecond(){return this._stepSecond}set stepSecond(Q){this._stepSecond=Q}get enableMeridian(){return this._enableMeridian}set enableMeridian(Q){this._enableMeridian=Q}get disableMinute(){return this._disableMinute}set disableMinute(Q){this._disableMinute=Q}get defaultTime(){return this._defaultTime}set defaultTime(Q){this._defaultTime=Q}get _selected(){return this._validSelected}set _selected(Q){this._validSelected=Q}get _minDate(){return this.datepickerInput&&this.datepickerInput.min}get _maxDate(){return this.datepickerInput&&this.datepickerInput.max}get valid(){const Q=this._minValidator(),zt=this._maxValidator();return null==Q&&null==zt}get _dateFilter(){return this.datepickerInput&&this.datepickerInput._dateFilter}ngOnDestroy(){this.close(),this._popupRef&&(this._popupRef.dispose(),this._popupComponentRef=null),this._inputSubscription.unsubscribe(),this.stateChanges.complete()}select(Q){this._dateAdapter.copyTime(Q,this._selected),this._selected=Q}_selectYear(Q){this.yearSelected.emit(Q)}_selectMonth(Q){this.monthSelected.emit(Q)}ok(){const Q=this._dateAdapter.clone(this._selected);this._selectedChanged.next(Q),this.close()}cancel(){this._selected=this._rawValue,this.close()}_registerInput(Q){if(this.datepickerInput)throw Error("A NgxMatDatepicker can only be associated with a single input.");this.datepickerInput=Q,this._inputSubscription=this.datepickerInput._valueChange.subscribe(zt=>this._selected=zt)}open(){if(this._rawValue=null!=this._selected?this._dateAdapter.clone(this._selected):null,null==this._selected&&(this._selected=this._dateAdapter.today(),null!=this.defaultTime&&this._dateAdapter.setTimeByDefaultValues(this._selected,this.defaultTime)),!this._opened&&!this.disabled){if(!this.datepickerInput)throw Error("Attempted to open an NgxMatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();const Q=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(Q)):Q()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(Fn,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:this._hasBackdrop}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datepicker=this,this._setColor()}_openAsPopup(){this._calendarPortal||(this._calendarPortal=new d.C5(Fn,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupComponentRef=this._popupRef.attach(this._calendarPortal),this._popupComponentRef.instance.datepicker=this,this._setColor(),this._ngZone.onStable.asObservable().pipe((0,x.q)(1)).subscribe(()=>{this._popupRef.updatePosition()}))}_createPopup(){const Q=new gt.X_({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:this._hasBackdrop,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(Q),this._popupRef.overlayElement.setAttribute("role","dialog"),(0,t.T)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe((0,P.h)(zt=>zt.keyCode===A.hY||this.datepickerInput&&zt.altKey&&zt.keyCode===A.LH))).subscribe(zt=>{zt&&zt.preventDefault(),this._hasBackdrop&&zt?this.cancel():this.close()})}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_setColor(){const Q=this.color;this._popupComponentRef&&(this._popupComponentRef.instance.color=Q),this._dialogRef&&(this._dialogRef.componentInstance.color=Q)}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(at.uw),p.Y36(gt.aV),p.Y36(p.R0b),p.Y36(p.s_b),p.Y36(I.Uu),p.Y36(Bt,8),p.Y36(W.Is,8),p.Y36(z.K0,8))},nt.\u0275cmp=p.Xpm({type:nt,selectors:[["ngx-mat-datetime-picker"]],contentQueries:function(Q,zt,Je){if(1&Q&&p.Suo(Je,p.Rgc,5),2&Q){let zn;p.iGM(zn=p.CRH())&&(zt._customIcon=zn.first)}},inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",defaultColor:"defaultColor",color:"color",touchUi:"touchUi",hideTime:"hideTime",disabled:"disabled",panelClass:"panelClass",dateClass:"dateClass",opened:"opened",showSpinners:"showSpinners",showSeconds:"showSeconds",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",enableMeridian:"enableMeridian",disableMinute:"disableMinute",defaultTime:"defaultTime"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["ngxMatDatetimePicker"],decls:0,vars:0,template:function(Q,zt){},encapsulation:2,changeDetection:0}),nt})();const go={provide:Pt.JU,useExisting:(0,p.Gpc)(()=>wn),multi:!0},_o={provide:Pt.Cf,useExisting:(0,p.Gpc)(()=>wn),multi:!0};class fn{constructor(Vt,Q){this.target=Vt,this.targetElement=Q,this.value=this.target.value}}let Zi,wn=(()=>{class nt{constructor(Q,zt,Je,zn){if(this._elementRef=Q,this._dateAdapter=zt,this._dateFormats=Je,this._formField=zn,this.dateChange=new p.vpe,this.dateInput=new p.vpe,this._valueChange=new p.vpe,this.stateChanges=new p.vpe,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=v.w.EMPTY,this._localeSubscription=v.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatetimePickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=Gi=>{const Co=this._getValidDateOrNull(this._dateAdapter.deserialize(Gi.value));return!this.min||!Co||this._dateAdapter.compareDateWithTime(this.min,Co,this._datepicker.showSeconds)<=0?null:{matDatetimePickerMin:{min:this.min,actual:Co}}},this._maxValidator=Gi=>{const Co=this._getValidDateOrNull(this._dateAdapter.deserialize(Gi.value));return!this.max||!Co||this._dateAdapter.compareDateWithTime(this.max,Co,this._datepicker.showSeconds)>=0?null:{matDatetimePickerMax:{max:this.max,actual:Co}}},this._filterValidator=Gi=>{const Co=this._getValidDateOrNull(this._dateAdapter.deserialize(Gi.value));return this._dateFilter&&Co&&!this._dateFilter(Co)?{matDatetimePickerFilter:!0}:null},this._validator=Pt.kI.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw Gn("NgxMatDateAdapter");if(!this._dateFormats)throw Gn("NGX_MAT_DATE_FORMATS");this._localeSubscription=zt.localeChanges.subscribe(()=>{this.value=this.value})}set ngxMatDatetimePicker(Q){!Q||(this._datepicker=Q,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe(zt=>{this.value=zt,this._cvaOnChange(zt),this._onTouched(),this.dateInput.emit(new fn(this,this._elementRef.nativeElement)),this.dateChange.emit(new fn(this,this._elementRef.nativeElement))}))}set ngxMatDatetimePickerFilter(Q){this._dateFilter=Q,this._validatorOnChange()}get value(){return this._value}set value(Q){Q=this._dateAdapter.deserialize(Q),this._lastValueValid=!Q||this._dateAdapter.isValid(Q),Q=this._getValidDateOrNull(Q);const zt=this.value;this._value=Q,this._formatValue(Q),this._dateAdapter.sameDate(zt,Q)||this._valueChange.emit(Q)}get min(){return this._min}set min(Q){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._validatorOnChange()}get max(){return this._max}set max(Q){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(Q)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(Q){const zt=null!=Q&&"false"!=`${Q}`,Je=this._elementRef.nativeElement;this._disabled!==zt&&(this._disabled=zt,this.stateChanges.emit(void 0)),zt&&Je.blur&&Je.blur()}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this.stateChanges.complete()}registerOnValidatorChange(Q){this._validatorOnChange=Q}validate(Q){return this._validator?this._validator(Q):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(Q){this.value=Q}registerOnChange(Q){this._cvaOnChange=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this.disabled=Q}_onKeydown(Q){this._datepicker&&Q.altKey&&Q.keyCode===A.JH&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),Q.preventDefault())}_onInput(Q){const zt=this._lastValueValid;let Je=this._dateAdapter.parse(Q,this._dateFormats.parse.dateInput);this._lastValueValid=!Je||this._dateAdapter.isValid(Je),Je=this._getValidDateOrNull(Je);const zn=this._dateAdapter.isSameTime(Je,this._value);null!=Je&&(!zn||!this._dateAdapter.sameDate(Je,this._value))||null==Je&&null!=this._value?(this._value=Je,this._cvaOnChange(Je),this._valueChange.emit(Je),this.dateInput.emit(new fn(this,this._elementRef.nativeElement))):zt!==this._lastValueValid&&this._validatorOnChange()}_onChange(){this.dateChange.emit(new fn(this,this._elementRef.nativeElement))}_getThemePalette(){return this._formField?this._formField.color:void 0}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_onFocus(){this._datepicker&&this._datepicker.opened&&this._datepicker.cancel()}_formatValue(Q){this._elementRef.nativeElement.value=Q?this._dateAdapter.format(Q,this._dateFormats.display.dateInput):""}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.Y36(p.SBq),p.Y36(Bt,8),p.Y36(Ee,8),p.Y36(St.KE,8))},nt.\u0275dir=p.lG2({type:nt,selectors:[["input","ngxMatDatetimePicker",""]],hostVars:5,hostBindings:function(Q,zt){1&Q&&p.NdJ("input",function(zn){return zt._onInput(zn.target.value)})("change",function(){return zt._onChange()})("blur",function(){return zt._onBlur()})("focus",function(){return zt._onFocus()})("keydown",function(zn){return zt._onKeydown(zn)}),2&Q&&(p.Ikx("disabled",zt.disabled),p.uIk("aria-haspopup",zt._datepicker?"dialog":null)("aria-owns",(null==zt._datepicker?null:zt._datepicker.opened)&&zt._datepicker.id||null)("min",zt.min?zt._dateAdapter.toIso8601(zt.min):null)("max",zt.max?zt._dateAdapter.toIso8601(zt.max):null))},inputs:{ngxMatDatetimePicker:"ngxMatDatetimePicker",ngxMatDatetimePickerFilter:"ngxMatDatetimePickerFilter",value:"value",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["ngxMatDatetimePickerInput"],features:[p._Bn([go,_o,{provide:Ht.Jk,useExisting:nt}])]}),nt})(),ln=(()=>{class nt{}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275mod=p.oAB({type:nt}),nt.\u0275inj=p.cJS({imports:[z.ez,Ht.c,Pt.UX,Pt.u5,Jt.Ps,ot.ot]}),nt})(),ii=(()=>{class nt{}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275mod=p.oAB({type:nt}),nt.\u0275inj=p.cJS({providers:[I.Lv,{provide:ne,useClass:he}],imports:[z.ez,I.FA,at.Is,d.eL,Pt.u5,Jt.Ps,ot.ot,Ht.c,ln]}),nt})();try{Zi=typeof Intl<"u"}catch{Zi=!1}const vo={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},No=fr(31,nt=>String(nt+1)),la={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Ea=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function fr(nt,Vt){const Q=Array(nt);for(let zt=0;zt{class nt extends Bt{constructor(Q,zt){super(),this.useUtcForDisplay=!0,super.setLocale(Q),this.useUtcForDisplay=!zt.TRIDENT,this._clampDate=zt.TRIDENT||zt.EDGE}getYear(Q){return Q.getFullYear()}getMonth(Q){return Q.getMonth()}getDate(Q){return Q.getDate()}getDayOfWeek(Q){return Q.getDay()}getMonthNames(Q){if(Zi){const zt=new Intl.DateTimeFormat(this.locale,{month:Q,timeZone:"utc"});return fr(12,Je=>this._stripDirectionalityCharacters(this._format(zt,new Date(2017,Je,1))))}return vo[Q]}getDateNames(){if(Zi){const Q=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return fr(31,zt=>this._stripDirectionalityCharacters(this._format(Q,new Date(2017,0,zt+1))))}return No}getDayOfWeekNames(Q){if(Zi){const zt=new Intl.DateTimeFormat(this.locale,{weekday:Q,timeZone:"utc"});return fr(7,Je=>this._stripDirectionalityCharacters(this._format(zt,new Date(2017,0,Je+1))))}return la[Q]}getYearName(Q){if(Zi){const zt=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(zt,Q))}return String(this.getYear(Q))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Q){return this.getDate(this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q)+1,0))}clone(Q){return new Date(Q.getTime())}createDate(Q,zt,Je){if(zt<0||zt>11)throw Error(`Invalid month index "${zt}". Month index has to be between 0 and 11.`);if(Je<1)throw Error(`Invalid date "${Je}". Date has to be greater than 0.`);let zn=this._createDateWithOverflow(Q,zt,Je);if(zn.getMonth()!=zt)throw Error(`Invalid date "${Je}" for month with index "${zt}".`);return zn}today(){return new Date}parse(Q){return"number"==typeof Q?new Date(Q):Q?new Date(Date.parse(Q)):null}format(Q,zt){if(!this.isValid(Q))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Zi){this._clampDate&&(Q.getFullYear()<1||Q.getFullYear()>9999)&&(Q=this.clone(Q)).setFullYear(Math.max(1,Math.min(9999,Q.getFullYear()))),zt={...zt,timeZone:"utc"};const Je=new Intl.DateTimeFormat(this.locale,zt);return this._stripDirectionalityCharacters(this._format(Je,Q))}return this._stripDirectionalityCharacters(Q.toDateString())}addCalendarYears(Q,zt){return this.addCalendarMonths(Q,12*zt)}addCalendarMonths(Q,zt){let Je=this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q)+zt,this.getDate(Q));return this.getMonth(Je)!=((this.getMonth(Q)+zt)%12+12)%12&&(Je=this._createDateWithOverflow(this.getYear(Je),this.getMonth(Je),0)),Je}addCalendarDays(Q,zt){return this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q),this.getDate(Q)+zt)}toIso8601(Q){return[Q.getUTCFullYear(),this._2digit(Q.getUTCMonth()+1),this._2digit(Q.getUTCDate())].join("-")}deserialize(Q){if("string"==typeof Q){if(!Q)return null;if(Ea.test(Q)){let zt=new Date(Q);if(this.isValid(zt))return zt}}return super.deserialize(Q)}isDateInstance(Q){return Q instanceof Date}isValid(Q){return!isNaN(Q.getTime())}invalid(){return new Date(NaN)}getHour(Q){return Q.getHours()}getMinute(Q){return Q.getMinutes()}getSecond(Q){return Q.getSeconds()}setHour(Q,zt){Q.setHours(zt)}setMinute(Q,zt){Q.setMinutes(zt)}setSecond(Q,zt){Q.setSeconds(zt)}_createDateWithOverflow(Q,zt,Je){const zn=new Date(Q,zt,Je);return Q>=0&&Q<100&&zn.setFullYear(this.getYear(zn)-1900),zn}_2digit(Q){return("00"+Q).slice(-2)}_stripDirectionalityCharacters(Q){return Q.replace(/[\u200e\u200f]/g,"")}_format(Q,zt){const Je=new Date;return Je.setUTCFullYear(zt.getFullYear(),zt.getMonth(),zt.getDate()),Je.setUTCHours(zt.getHours(),zt.getMinutes(),zt.getSeconds(),zt.getMilliseconds()),Q.format(Je)}}return nt.\u0275fac=function(Q){return new(Q||nt)(p.LFG(G.Ad,8),p.LFG(Zt.t4))},nt.\u0275prov=p.Yz7({token:nt,factory:nt.\u0275fac}),nt})();const Nn={year:"numeric",month:"numeric",day:"numeric",hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"},Ye={parse:{dateInput:Nn},display:{dateInput:Nn,monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Pe=(()=>{class nt{}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275mod=p.oAB({type:nt}),nt.\u0275inj=p.cJS({providers:[{provide:Bt,useClass:$e}],imports:[Zt.ud]}),nt})(),mn=(()=>{class nt{}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275mod=p.oAB({type:nt}),nt.\u0275inj=p.cJS({providers:[{provide:Ee,useValue:Ye}],imports:[Pe]}),nt})()},37340:(rt,it,b)=>{"use strict";b.d(it,{F4:()=>D,IO:()=>W,LC:()=>p,SB:()=>k,X$:()=>T,ZE:()=>Pt,ZN:()=>gt,_j:()=>d,eR:()=>P,jt:()=>t,k1:()=>St,l3:()=>v,oB:()=>w,pV:()=>z,ru:()=>A,vP:()=>x});class d{}class p{}const v="*";function T(Ht,Jt){return{type:7,name:Ht,definitions:Jt,options:{}}}function t(Ht,Jt=null){return{type:4,styles:Jt,timings:Ht}}function A(Ht,Jt=null){return{type:3,steps:Ht,options:Jt}}function x(Ht,Jt=null){return{type:2,steps:Ht,options:Jt}}function w(Ht){return{type:6,styles:Ht,offset:null}}function k(Ht,Jt,at){return{type:0,name:Ht,styles:Jt,options:at}}function D(Ht){return{type:5,steps:Ht}}function P(Ht,Jt,at=null){return{type:1,expr:Ht,animation:Jt,options:at}}function z(Ht=null){return{type:9,options:Ht}}function W(Ht,Jt,at=null){return{type:11,selector:Ht,animation:Jt,options:at}}function ct(Ht){Promise.resolve().then(Ht)}class gt{constructor(Jt=0,at=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Jt+at}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Jt=>Jt()),this._onDoneFns=[])}onStart(Jt){this._originalOnStartFns.push(Jt),this._onStartFns.push(Jt)}onDone(Jt){this._originalOnDoneFns.push(Jt),this._onDoneFns.push(Jt)}onDestroy(Jt){this._onDestroyFns.push(Jt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ct(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Jt=>Jt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Jt=>Jt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Jt){this._position=this.totalTime?Jt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Jt){const at="start"==Jt?this._onStartFns:this._onDoneFns;at.forEach(Zt=>Zt()),at.length=0}}class Pt{constructor(Jt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Jt;let at=0,Zt=0,wt=0;const _t=this.players.length;0==_t?ct(()=>this._onFinish()):this.players.forEach(Nt=>{Nt.onDone(()=>{++at==_t&&this._onFinish()}),Nt.onDestroy(()=>{++Zt==_t&&this._onDestroy()}),Nt.onStart(()=>{++wt==_t&&this._onStart()})}),this.totalTime=this.players.reduce((Nt,Qt)=>Math.max(Nt,Qt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Jt=>Jt()),this._onDoneFns=[])}init(){this.players.forEach(Jt=>Jt.init())}onStart(Jt){this._onStartFns.push(Jt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Jt=>Jt()),this._onStartFns=[])}onDone(Jt){this._onDoneFns.push(Jt)}onDestroy(Jt){this._onDestroyFns.push(Jt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Jt=>Jt.play())}pause(){this.players.forEach(Jt=>Jt.pause())}restart(){this.players.forEach(Jt=>Jt.restart())}finish(){this._onFinish(),this.players.forEach(Jt=>Jt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Jt=>Jt.destroy()),this._onDestroyFns.forEach(Jt=>Jt()),this._onDestroyFns=[])}reset(){this.players.forEach(Jt=>Jt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Jt){const at=Jt*this.totalTime;this.players.forEach(Zt=>{const wt=Zt.totalTime?Math.min(1,at/Zt.totalTime):1;Zt.setPosition(wt)})}getPosition(){const Jt=this.players.reduce((at,Zt)=>null===at||Zt.totalTime>at.totalTime?Zt:at,null);return null!=Jt?Jt.getPosition():0}beforeDestroy(){this.players.forEach(Jt=>{Jt.beforeDestroy&&Jt.beforeDestroy()})}triggerCallback(Jt){const at="start"==Jt?this._onStartFns:this._onDoneFns;at.forEach(Zt=>Zt()),at.length=0}}const St="!"},12687:(rt,it,b)=>{"use strict";b.d(it,{$s:()=>Qt,Em:()=>Ae,Kd:()=>_i,X6:()=>xt,ic:()=>ze,kH:()=>Gn,mK:()=>dn,qV:()=>Ze,qm:()=>tn,rt:()=>an,s1:()=>Ce,tE:()=>Vn,yG:()=>tt});var d=b(36895),p=b(94650),v=b(83353),T=b(8929),t=b(42654),A=b(591),x=b(21086),w=b(29521),k=b(22868),D=b(80013),P=b(92198),I=b(24850),z=b(72986),G=b(31307),W=b(75778),ot=b(7625),ct=b(21281),gt=b(49643),Pt=b(62289);function at(pe,We){return(pe.getAttribute(We)||"").match(/\S+/g)||[]}const wt="cdk-describedby-message",_t="cdk-describedby-host";let Nt=0,Qt=(()=>{class pe{constructor(Et,Mt){this._platform=Mt,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Nt++,this._document=Et,this._id=(0,p.f3M)(p.AFp)+"-"+Nt++}describe(Et,Mt,It){if(!this._canBeDescribed(Et,Mt))return;const Me=qt(Mt,It);"string"!=typeof Mt?(le(Mt,this._id),this._messageRegistry.set(Me,{messageElement:Mt,referenceCount:0})):this._messageRegistry.has(Me)||this._createMessageElement(Mt,It),this._isElementDescribedByMessage(Et,Me)||this._addMessageReference(Et,Me)}removeDescription(Et,Mt,It){if(!Mt||!this._isElementNode(Et))return;const Me=qt(Mt,It);if(this._isElementDescribedByMessage(Et,Me)&&this._removeMessageReference(Et,Me),"string"==typeof Mt){const en=this._messageRegistry.get(Me);en&&0===en.referenceCount&&this._deleteMessageElement(Me)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Et=this._document.querySelectorAll(`[${_t}="${this._id}"]`);for(let Mt=0;Mt0!=It.indexOf(wt));Et.setAttribute("aria-describedby",Mt.join(" "))}_addMessageReference(Et,Mt){const It=this._messageRegistry.get(Mt);(function Ht(pe,We,Et){const Mt=at(pe,We);Mt.some(It=>It.trim()==Et.trim())||(Mt.push(Et.trim()),pe.setAttribute(We,Mt.join(" ")))})(Et,"aria-describedby",It.messageElement.id),Et.setAttribute(_t,this._id),It.referenceCount++}_removeMessageReference(Et,Mt){const It=this._messageRegistry.get(Mt);It.referenceCount--,function Jt(pe,We,Et){const It=at(pe,We).filter(Me=>Me!=Et.trim());It.length?pe.setAttribute(We,It.join(" ")):pe.removeAttribute(We)}(Et,"aria-describedby",It.messageElement.id),Et.removeAttribute(_t)}_isElementDescribedByMessage(Et,Mt){const It=at(Et,"aria-describedby"),Me=this._messageRegistry.get(Mt),en=Me&&Me.messageElement.id;return!!en&&-1!=It.indexOf(en)}_canBeDescribed(Et,Mt){if(!this._isElementNode(Et))return!1;if(Mt&&"object"==typeof Mt)return!0;const It=null==Mt?"":`${Mt}`.trim(),Me=Et.getAttribute("aria-label");return!(!It||Me&&Me.trim()===It)}_isElementNode(Et){return Et.nodeType===this._document.ELEMENT_NODE}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.LFG(d.K0),p.LFG(v.t4))},pe.\u0275prov=p.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();function qt(pe,We){return"string"==typeof pe?`${We||""}/${pe}`:pe}function le(pe,We){pe.id||(pe.id=`${wt}-${We}-${Nt++}`)}class Wt{constructor(We){this._items=We,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new T.xQ,this._typeaheadSubscription=t.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Et=>Et.disabled,this._pressedLetters=[],this.tabOut=new T.xQ,this.change=new T.xQ,We instanceof p.n_E&&We.changes.subscribe(Et=>{if(this._activeItem){const It=Et.toArray().indexOf(this._activeItem);It>-1&&It!==this._activeItemIndex&&(this._activeItemIndex=It)}})}skipPredicate(We){return this._skipPredicateFn=We,this}withWrap(We=!0){return this._wrap=We,this}withVerticalOrientation(We=!0){return this._vertical=We,this}withHorizontalOrientation(We){return this._horizontal=We,this}withAllowedModifierKeys(We){return this._allowedModifierKeys=We,this}withTypeAhead(We=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,k.b)(Et=>this._pressedLetters.push(Et)),(0,D.b)(We),(0,P.h)(()=>this._pressedLetters.length>0),(0,I.U)(()=>this._pressedLetters.join(""))).subscribe(Et=>{const Mt=this._getItemsArray();for(let It=1;It!We[Me]||this._allowedModifierKeys.indexOf(Me)>-1);switch(Et){case w.Mf:return void this.tabOut.next();case w.JH:if(this._vertical&&It){this.setNextItemActive();break}return;case w.LH:if(this._vertical&&It){this.setPreviousItemActive();break}return;case w.SV:if(this._horizontal&&It){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.oh:if(this._horizontal&&It){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.Sd:if(this._homeAndEnd&&It){this.setFirstItemActive();break}return;case w.uR:if(this._homeAndEnd&&It){this.setLastItemActive();break}return;default:return void((It||(0,w.Vb)(We,"shiftKey"))&&(We.key&&1===We.key.length?this._letterKeyStream.next(We.key.toLocaleUpperCase()):(Et>=w.A&&Et<=w.Z||Et>=w.xE&&Et<=w.aO)&&this._letterKeyStream.next(String.fromCharCode(Et))))}this._pressedLetters=[],We.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(We){const Et=this._getItemsArray(),Mt="number"==typeof We?We:Et.indexOf(We);this._activeItem=Et[Mt]??null,this._activeItemIndex=Mt}_setActiveItemByDelta(We){this._wrap?this._setActiveInWrapMode(We):this._setActiveInDefaultMode(We)}_setActiveInWrapMode(We){const Et=this._getItemsArray();for(let Mt=1;Mt<=Et.length;Mt++){const It=(this._activeItemIndex+We*Mt+Et.length)%Et.length;if(!this._skipPredicateFn(Et[It]))return void this.setActiveItem(It)}}_setActiveInDefaultMode(We){this._setActiveItemByIndex(this._activeItemIndex+We,We)}_setActiveItemByIndex(We,Et){const Mt=this._getItemsArray();if(Mt[We]){for(;this._skipPredicateFn(Mt[We]);)if(!Mt[We+=Et])return;this.setActiveItem(We)}}_getItemsArray(){return this._items instanceof p.n_E?this._items.toArray():this._items}}class Ce extends Wt{setActiveItem(We){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(We),this.activeItem&&this.activeItem.setActiveStyles()}}class Ae extends Wt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(We){return this._origin=We,this}setActiveItem(We){super.setActiveItem(We),this.activeItem&&this.activeItem.focus(this._origin)}}let ze=(()=>{class pe{constructor(Et){this._platform=Et}isDisabled(Et){return Et.hasAttribute("disabled")}isVisible(Et){return function ie(pe){return!!(pe.offsetWidth||pe.offsetHeight||"function"==typeof pe.getClientRects&&pe.getClientRects().length)}(Et)&&"visible"===getComputedStyle(Et).visibility}isTabbable(Et){if(!this._platform.isBrowser)return!1;const Mt=function Xe(pe){try{return pe.frameElement}catch{return null}}(function we(pe){return pe.ownerDocument&&pe.ownerDocument.defaultView||window}(Et));if(Mt&&(-1===Le(Mt)||!this.isVisible(Mt)))return!1;let It=Et.nodeName.toLowerCase(),Me=Le(Et);return Et.hasAttribute("contenteditable")?-1!==Me:!("iframe"===It||"object"===It||this._platform.WEBKIT&&this._platform.IOS&&!function on(pe){let We=pe.nodeName.toLowerCase(),Et="input"===We&&pe.type;return"text"===Et||"password"===Et||"select"===We||"textarea"===We}(Et))&&("audio"===It?!!Et.hasAttribute("controls")&&-1!==Me:"video"===It?-1!==Me&&(null!==Me||this._platform.FIREFOX||Et.hasAttribute("controls")):Et.tabIndex>=0)}isFocusable(Et,Mt){return function hn(pe){return!function re(pe){return function ue(pe){return"input"==pe.nodeName.toLowerCase()}(pe)&&"hidden"==pe.type}(pe)&&(function Te(pe){let We=pe.nodeName.toLowerCase();return"input"===We||"select"===We||"button"===We||"textarea"===We}(pe)||function ee(pe){return function Kt(pe){return"a"==pe.nodeName.toLowerCase()}(pe)&&pe.hasAttribute("href")}(pe)||pe.hasAttribute("contenteditable")||ce(pe))}(Et)&&!this.isDisabled(Et)&&(Mt?.ignoreVisibility||this.isVisible(Et))}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.LFG(v.t4))},pe.\u0275prov=p.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();function ce(pe){if(!pe.hasAttribute("tabindex")||void 0===pe.tabIndex)return!1;let We=pe.getAttribute("tabindex");return!(!We||isNaN(parseInt(We,10)))}function Le(pe){if(!ce(pe))return null;const We=parseInt(pe.getAttribute("tabindex")||"",10);return isNaN(We)?-1:We}class bn{constructor(We,Et,Mt,It,Me=!1){this._element=We,this._checker=Et,this._ngZone=Mt,this._document=It,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Me||this.attachAnchors()}get enabled(){return this._enabled}set enabled(We){this._enabled=We,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(We,this._startAnchor),this._toggleAnchorTabIndex(We,this._endAnchor))}destroy(){const We=this._startAnchor,Et=this._endAnchor;We&&(We.removeEventListener("focus",this.startAnchorListener),We.remove()),Et&&(Et.removeEventListener("focus",this.endAnchorListener),Et.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(We){return new Promise(Et=>{this._executeOnStable(()=>Et(this.focusInitialElement(We)))})}focusFirstTabbableElementWhenReady(We){return new Promise(Et=>{this._executeOnStable(()=>Et(this.focusFirstTabbableElement(We)))})}focusLastTabbableElementWhenReady(We){return new Promise(Et=>{this._executeOnStable(()=>Et(this.focusLastTabbableElement(We)))})}_getRegionBoundary(We){const Et=this._element.querySelectorAll(`[cdk-focus-region-${We}], [cdkFocusRegion${We}], [cdk-focus-${We}]`);return"start"==We?Et.length?Et[0]:this._getFirstTabbableElement(this._element):Et.length?Et[Et.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(We){const Et=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Et){if(!this._checker.isFocusable(Et)){const Mt=this._getFirstTabbableElement(Et);return Mt?.focus(We),!!Mt}return Et.focus(We),!0}return this.focusFirstTabbableElement(We)}focusFirstTabbableElement(We){const Et=this._getRegionBoundary("start");return Et&&Et.focus(We),!!Et}focusLastTabbableElement(We){const Et=this._getRegionBoundary("end");return Et&&Et.focus(We),!!Et}hasAttached(){return this._hasAttached}_getFirstTabbableElement(We){if(this._checker.isFocusable(We)&&this._checker.isTabbable(We))return We;const Et=We.children;for(let Mt=0;Mt=0;Mt--){const It=Et[Mt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Et[Mt]):null;if(It)return It}return null}_createAnchor(){const We=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,We),We.classList.add("cdk-visually-hidden"),We.classList.add("cdk-focus-trap-anchor"),We.setAttribute("aria-hidden","true"),We}_toggleAnchorTabIndex(We,Et){We?Et.setAttribute("tabindex","0"):Et.removeAttribute("tabindex")}toggleAnchors(We){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(We,this._startAnchor),this._toggleAnchorTabIndex(We,this._endAnchor))}_executeOnStable(We){this._ngZone.isStable?We():this._ngZone.onStable.pipe((0,z.q)(1)).subscribe(We)}}let Ze=(()=>{class pe{constructor(Et,Mt,It){this._checker=Et,this._ngZone=Mt,this._document=It}create(Et,Mt=!1){return new bn(Et,this._checker,this._ngZone,this._document,Mt)}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.LFG(ze),p.LFG(p.R0b),p.LFG(d.K0))},pe.\u0275prov=p.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})(),dn=(()=>{class pe{constructor(Et,Mt,It){this._elementRef=Et,this._focusTrapFactory=Mt,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(Et){this.focusTrap.enabled=(0,ct.Ig)(Et)}get autoCapture(){return this._autoCapture}set autoCapture(Et){this._autoCapture=(0,ct.Ig)(Et)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(Et){const Mt=Et.autoCapture;Mt&&!Mt.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,v.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.Y36(p.SBq),p.Y36(Ze),p.Y36(d.K0))},pe.\u0275dir=p.lG2({type:pe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[p.TTD]}),pe})();function xt(pe){return 0===pe.buttons||0===pe.offsetX&&0===pe.offsetY}function tt(pe){const We=pe.touches&&pe.touches[0]||pe.changedTouches&&pe.changedTouches[0];return!(!We||-1!==We.identifier||null!=We.radiusX&&1!==We.radiusX||null!=We.radiusY&&1!==We.radiusY)}const et=new p.OlP("cdk-input-modality-detector-options"),Ct={ignoreKeys:[w.zL,w.jx,w.b2,w.MW,w.JU]},ne=(0,v.i$)({passive:!0,capture:!0});let he=(()=>{class pe{constructor(Et,Mt,It,Me){this._platform=Et,this._mostRecentTarget=null,this._modality=new A.X(null),this._lastTouchMs=0,this._onKeydown=en=>{this._options?.ignoreKeys?.some(He=>He===en.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,v.sA)(en))},this._onMousedown=en=>{Date.now()-this._lastTouchMs<650||(this._modality.next(xt(en)?"keyboard":"mouse"),this._mostRecentTarget=(0,v.sA)(en))},this._onTouchstart=en=>{tt(en)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,v.sA)(en))},this._options={...Ct,...Me},this.modalityDetected=this._modality.pipe((0,G.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,W.x)()),Et.isBrowser&&Mt.runOutsideAngular(()=>{It.addEventListener("keydown",this._onKeydown,ne),It.addEventListener("mousedown",this._onMousedown,ne),It.addEventListener("touchstart",this._onTouchstart,ne)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ne),document.removeEventListener("mousedown",this._onMousedown,ne),document.removeEventListener("touchstart",this._onTouchstart,ne))}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.LFG(v.t4),p.LFG(p.R0b),p.LFG(d.K0),p.LFG(et,8))},pe.\u0275prov=p.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const Oe=new p.OlP("liveAnnouncerElement",{providedIn:"root",factory:function yn(){return null}}),On=new p.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let _i=(()=>{class pe{constructor(Et,Mt,It,Me){this._ngZone=Mt,this._defaultOptions=Me,this._document=It,this._liveElement=Et||this._createLiveElement()}announce(Et,...Mt){const It=this._defaultOptions;let Me,en;return 1===Mt.length&&"number"==typeof Mt[0]?en=Mt[0]:[Me,en]=Mt,this.clear(),clearTimeout(this._previousTimeout),Me||(Me=It&&It.politeness?It.politeness:"polite"),null==en&&It&&(en=It.duration),this._liveElement.setAttribute("aria-live",Me),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(He=>this._currentResolve=He)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Et,"number"==typeof en&&(this._previousTimeout=setTimeout(()=>this.clear(),en)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Et="cdk-live-announcer-element",Mt=this._document.getElementsByClassName(Et),It=this._document.createElement("div");for(let Me=0;Me{class pe{constructor(Et,Mt,It,Me,en){this._ngZone=Et,this._platform=Mt,this._inputModalityDetector=It,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new T.xQ,this._rootNodeFocusAndBlurListener=He=>{for(let ve=(0,v.sA)(He);ve;ve=ve.parentElement)"focus"===He.type?this._onFocus(He,ve):this._onBlur(He,ve)},this._document=Me,this._detectionMode=en?.detectionMode||0}monitor(Et,Mt=!1){const It=(0,ct.fI)(Et);if(!this._platform.isBrowser||1!==It.nodeType)return(0,x.of)(null);const Me=(0,v.kV)(It)||this._getDocument(),en=this._elementInfo.get(It);if(en)return Mt&&(en.checkChildren=!0),en.subject;const He={checkChildren:Mt,subject:new T.xQ,rootNode:Me};return this._elementInfo.set(It,He),this._registerGlobalListeners(He),He.subject}stopMonitoring(Et){const Mt=(0,ct.fI)(Et),It=this._elementInfo.get(Mt);It&&(It.subject.complete(),this._setClasses(Mt),this._elementInfo.delete(Mt),this._removeGlobalListeners(It))}focusVia(Et,Mt,It){const Me=(0,ct.fI)(Et);Me===this._getDocument().activeElement?this._getClosestElementsInfo(Me).forEach(([He,Zn])=>this._originChanged(He,Mt,Zn)):(this._setOrigin(Mt),"function"==typeof Me.focus&&Me.focus(It))}ngOnDestroy(){this._elementInfo.forEach((Et,Mt)=>this.stopMonitoring(Mt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Et){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Et)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Et&&this._isLastInteractionFromInputLabel(Et)?"mouse":"program"}_shouldBeAttributedToTouch(Et){return 1===this._detectionMode||!!Et?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Et,Mt){Et.classList.toggle("cdk-focused",!!Mt),Et.classList.toggle("cdk-touch-focused","touch"===Mt),Et.classList.toggle("cdk-keyboard-focused","keyboard"===Mt),Et.classList.toggle("cdk-mouse-focused","mouse"===Mt),Et.classList.toggle("cdk-program-focused","program"===Mt)}_setOrigin(Et,Mt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Et,this._originFromTouchInteraction="touch"===Et&&Mt,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Et,Mt){const It=this._elementInfo.get(Mt),Me=(0,v.sA)(Et);!It||!It.checkChildren&&Mt!==Me||this._originChanged(Mt,this._getFocusOrigin(Me),It)}_onBlur(Et,Mt){const It=this._elementInfo.get(Mt);!It||It.checkChildren&&Et.relatedTarget instanceof Node&&Mt.contains(Et.relatedTarget)||(this._setClasses(Mt),this._emitOrigin(It,null))}_emitOrigin(Et,Mt){Et.subject.observers.length&&this._ngZone.run(()=>Et.subject.next(Mt))}_registerGlobalListeners(Et){if(!this._platform.isBrowser)return;const Mt=Et.rootNode,It=this._rootNodeFocusListenerCount.get(Mt)||0;It||this._ngZone.runOutsideAngular(()=>{Mt.addEventListener("focus",this._rootNodeFocusAndBlurListener,hi),Mt.addEventListener("blur",this._rootNodeFocusAndBlurListener,hi)}),this._rootNodeFocusListenerCount.set(Mt,It+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ot.R)(this._stopInputModalityDetector)).subscribe(Me=>{this._setOrigin(Me,!0)}))}_removeGlobalListeners(Et){const Mt=Et.rootNode;if(this._rootNodeFocusListenerCount.has(Mt)){const It=this._rootNodeFocusListenerCount.get(Mt);It>1?this._rootNodeFocusListenerCount.set(Mt,It-1):(Mt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,hi),Mt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,hi),this._rootNodeFocusListenerCount.delete(Mt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Et,Mt,It){this._setClasses(Et,Mt),this._emitOrigin(It,Mt),this._lastFocusOrigin=Mt}_getClosestElementsInfo(Et){const Mt=[];return this._elementInfo.forEach((It,Me)=>{(Me===Et||It.checkChildren&&Me.contains(Et))&&Mt.push([Me,It])}),Mt}_isLastInteractionFromInputLabel(Et){const{_mostRecentTarget:Mt,mostRecentModality:It}=this._inputModalityDetector;if("mouse"!==It||!Mt||Mt===Et||"INPUT"!==Et.nodeName&&"TEXTAREA"!==Et.nodeName||Et.disabled)return!1;const Me=Et.labels;if(Me)for(let en=0;en{class pe{constructor(Et,Mt){this._elementRef=Et,this._focusMonitor=Mt,this._focusOrigin=null,this.cdkFocusChange=new p.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const Et=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Et,1===Et.nodeType&&Et.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Mt=>{this._focusOrigin=Mt,this.cdkFocusChange.emit(Mt)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.Y36(p.SBq),p.Y36(Vn))},pe.\u0275dir=p.lG2({type:pe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),pe})();const je="cdk-high-contrast-black-on-white",gn="cdk-high-contrast-white-on-black",Ve="cdk-high-contrast-active";let tn=(()=>{class pe{constructor(Et,Mt){this._platform=Et,this._document=Mt,this._breakpointSubscription=(0,p.f3M)(Pt.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Et=this._document.createElement("div");Et.style.backgroundColor="rgb(1,2,3)",Et.style.position="absolute",this._document.body.appendChild(Et);const Mt=this._document.defaultView||window,It=Mt&&Mt.getComputedStyle?Mt.getComputedStyle(Et):null,Me=(It&&It.backgroundColor||"").replace(/ /g,"");switch(Et.remove(),Me){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Et=this._document.body.classList;Et.remove(Ve,je,gn),this._hasCheckedHighContrastMode=!0;const Mt=this.getHighContrastMode();1===Mt?Et.add(Ve,je):2===Mt&&Et.add(Ve,gn)}}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.LFG(v.t4),p.LFG(d.K0))},pe.\u0275prov=p.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})(),an=(()=>{class pe{constructor(Et){Et._applyBodyHighContrastModeCssClasses()}}return pe.\u0275fac=function(Et){return new(Et||pe)(p.LFG(tn))},pe.\u0275mod=p.oAB({type:pe}),pe.\u0275inj=p.cJS({imports:[gt.Q8]}),pe})()},40445:(rt,it,b)=>{"use strict";b.d(it,{Is:()=>x,vT:()=>k});var d=b(94650),p=b(36895);const v=new d.OlP("cdk-dir-doc",{providedIn:"root",factory:function T(){return(0,d.f3M)(p.K0)}}),t=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let x=(()=>{class D{constructor(I){if(this.value="ltr",this.change=new d.vpe,I){const G=I.documentElement?I.documentElement.dir:null;this.value=function A(D){const P=D?.toLowerCase()||"";return"auto"===P&&typeof navigator<"u"&&navigator?.language?t.test(navigator.language)?"rtl":"ltr":"rtl"===P?"rtl":"ltr"}((I.body?I.body.dir:null)||G||"ltr")}}ngOnDestroy(){this.change.complete()}}return D.\u0275fac=function(I){return new(I||D)(d.LFG(v,8))},D.\u0275prov=d.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),k=(()=>{class D{}return D.\u0275fac=function(I){return new(I||D)},D.\u0275mod=d.oAB({type:D}),D.\u0275inj=d.cJS({}),D})()},64425:(rt,it,b)=>{"use strict";b.d(it,{TU:()=>T});var d=b(36895),p=b(94650);class v{constructor(k,D){this._document=D;const P=this._textarea=this._document.createElement("textarea"),I=P.style;I.position="fixed",I.top=I.opacity="0",I.left="-999em",P.setAttribute("aria-hidden","true"),P.value=k,P.readOnly=!0,this._document.body.appendChild(P)}copy(){const k=this._textarea;let D=!1;try{if(k){const P=this._document.activeElement;k.select(),k.setSelectionRange(0,k.value.length),D=this._document.execCommand("copy"),P&&P.focus()}}catch{}return D}destroy(){const k=this._textarea;k&&(k.remove(),this._textarea=void 0)}}let T=(()=>{class w{constructor(D){this._document=D}copy(D){const P=this.beginCopy(D),I=P.copy();return P.destroy(),I}beginCopy(D){return new v(D,this._document)}}return w.\u0275fac=function(D){return new(D||w)(p.LFG(d.K0))},w.\u0275prov=p.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},21281:(rt,it,b)=>{"use strict";b.d(it,{Eq:()=>t,HM:()=>A,Ig:()=>p,du:()=>w,fI:()=>x,su:()=>v,t6:()=>T});var d=b(94650);function p(k){return null!=k&&"false"!=`${k}`}function v(k,D=0){return T(k)?Number(k):D}function T(k){return!isNaN(parseFloat(k))&&!isNaN(Number(k))}function t(k){return Array.isArray(k)?k:[k]}function A(k){return null==k?"":"string"==typeof k?k:`${k}px`}function x(k){return k instanceof d.SBq?k.nativeElement:k}function w(k,D=/\s+/){const P=[];if(null!=k){const I=Array.isArray(k)?k:`${k}`.split(D);for(const z of I){const G=`${z}`.trim();G&&P.push(G)}}return P}},95017:(rt,it,b)=>{"use strict";b.d(it,{A8:()=>P,Ov:()=>k,Z9:()=>t,eX:()=>w,k:()=>I,o2:()=>T,yy:()=>x});var d=b(71762),p=b(8929),v=b(94650);class T{}function t(z){return z&&"function"==typeof z.connect&&!(z instanceof d.c)}class x{applyChanges(G,W,ot,ct,gt){G.forEachOperation((Pt,St,Ht)=>{let Jt,at;if(null==Pt.previousIndex){const Zt=ot(Pt,St,Ht);Jt=W.createEmbeddedView(Zt.templateRef,Zt.context,Zt.index),at=1}else null==Ht?(W.remove(St),at=3):(Jt=W.get(St),W.move(Jt,Ht),at=2);gt&>({context:Jt?.context,operation:at,record:Pt})})}detach(){}}class w{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(G,W,ot,ct,gt){G.forEachOperation((Pt,St,Ht)=>{let Jt,at;null==Pt.previousIndex?(Jt=this._insertView(()=>ot(Pt,St,Ht),Ht,W,ct(Pt)),at=Jt?1:0):null==Ht?(this._detachAndCacheView(St,W),at=3):(Jt=this._moveView(St,Ht,W,ct(Pt)),at=2),gt&>({context:Jt?.context,operation:at,record:Pt})})}detach(){for(const G of this._viewCache)G.destroy();this._viewCache=[]}_insertView(G,W,ot,ct){const gt=this._insertViewFromCache(W,ot);if(gt)return void(gt.context.$implicit=ct);const Pt=G();return ot.createEmbeddedView(Pt.templateRef,Pt.context,Pt.index)}_detachAndCacheView(G,W){const ot=W.detach(G);this._maybeCacheView(ot,W)}_moveView(G,W,ot,ct){const gt=ot.get(G);return ot.move(gt,W),gt.context.$implicit=ct,gt}_maybeCacheView(G,W){if(this._viewCache.lengththis._markSelected(gt)):this._markSelected(W[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...G){this._verifyValueAssignment(G),G.forEach(ot=>this._markSelected(ot));const W=this._hasQueuedChanges();return this._emitChangeEvent(),W}deselect(...G){this._verifyValueAssignment(G),G.forEach(ot=>this._unmarkSelected(ot));const W=this._hasQueuedChanges();return this._emitChangeEvent(),W}setSelection(...G){this._verifyValueAssignment(G);const W=this.selected,ot=new Set(G);G.forEach(gt=>this._markSelected(gt)),W.filter(gt=>!ot.has(gt)).forEach(gt=>this._unmarkSelected(gt));const ct=this._hasQueuedChanges();return this._emitChangeEvent(),ct}toggle(G){return this.isSelected(G)?this.deselect(G):this.select(G)}clear(G=!0){this._unmarkAll();const W=this._hasQueuedChanges();return G&&this._emitChangeEvent(),W}isSelected(G){if(this.compareWith){for(const W of this._selection)if(this.compareWith(W,G))return!0;return!1}return this._selection.has(G)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(G){this._multiple&&this.selected&&this._selected.sort(G)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(G){this.isSelected(G)||(this._multiple||this._unmarkAll(),this.isSelected(G)||this._selection.add(G),this._emitChanges&&this._selectedToEmit.push(G))}_unmarkSelected(G){this.isSelected(G)&&(this._selection.delete(G),this._emitChanges&&this._deselectedToEmit.push(G))}_unmarkAll(){this.isEmpty()||this._selection.forEach(G=>this._unmarkSelected(G))}_verifyValueAssignment(G){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let P=(()=>{class z{constructor(){this._listeners=[]}notify(W,ot){for(let ct of this._listeners)ct(W,ot)}listen(W){return this._listeners.push(W),()=>{this._listeners=this._listeners.filter(ot=>W!==ot)}}ngOnDestroy(){this._listeners=[]}}return z.\u0275fac=function(W){return new(W||z)},z.\u0275prov=v.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();const I=new v.OlP("_ViewRepeater")},73555:(rt,it,b)=>{"use strict";b.d(it,{Wj:()=>hi,Zt:()=>pe,_t:()=>We,bA:()=>we});var d=b(94650),p=b(36895),v=b(67376),T=b(83353),t=b(21281),A=b(12687),x=b(8929),w=b(42654),k=b(61715),D=b(90352),P=b(56498),I=b(36787),z=b(7625),G=b(1059),W=b(24850),ot=b(72986),ct=b(22868),gt=b(87545),Pt=b(40445);function St(Et,Mt,It){for(let Me in Mt)if(Mt.hasOwnProperty(Me)){const en=Mt[Me];en?Et.setProperty(Me,en,It?.has(Me)?"important":""):Et.removeProperty(Me)}return Et}function Ht(Et,Mt){const It=Mt?"":"none";St(Et.style,{"touch-action":Mt?"":"none","-webkit-user-drag":Mt?"":"none","-webkit-tap-highlight-color":Mt?"":"transparent","user-select":It,"-ms-user-select":It,"-webkit-user-select":It,"-moz-user-select":It})}function Jt(Et,Mt,It){St(Et.style,{position:Mt?"":"fixed",top:Mt?"":"0",opacity:Mt?"":"0",left:Mt?"":"-999em"},It)}function at(Et,Mt){return Mt&&"none"!=Mt?Et+" "+Mt:Et}function Zt(Et){const Mt=Et.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Et)*Mt}function _t(Et,Mt){return Et.getPropertyValue(Mt).split(",").map(Me=>Me.trim())}function Nt(Et){const Mt=Et.getBoundingClientRect();return{top:Mt.top,right:Mt.right,bottom:Mt.bottom,left:Mt.left,width:Mt.width,height:Mt.height,x:Mt.x,y:Mt.y}}function Qt(Et,Mt,It){const{top:Me,bottom:en,left:He,right:Zn}=Et;return It>=Me&&It<=en&&Mt>=He&&Mt<=Zn}function qt(Et,Mt,It){Et.top+=Mt,Et.bottom=Et.top+Et.height,Et.left+=It,Et.right=Et.left+Et.width}function le(Et,Mt,It,Me){const{top:en,right:He,bottom:Zn,left:ve,width:Be,height:Fn}=Et,bi=Be*Mt,go=Fn*Mt;return Me>en-go&&Meve-bi&&It{this.positions.set(It,{scrollPosition:{top:It.scrollTop,left:It.scrollLeft},clientRect:Nt(It)})})}handleScroll(Mt){const It=(0,T.sA)(Mt),Me=this.positions.get(It);if(!Me)return null;const en=Me.scrollPosition;let He,Zn;if(It===this._document){const Fn=this.getViewportScrollPosition();He=Fn.top,Zn=Fn.left}else He=It.scrollTop,Zn=It.scrollLeft;const ve=en.top-He,Be=en.left-Zn;return this.positions.forEach((Fn,bi)=>{Fn.clientRect&&It!==bi&&It.contains(bi)&&qt(Fn.clientRect,ve,Be)}),en.top=He,en.left=Zn,{top:ve,left:Be}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Ce(Et){const Mt=Et.cloneNode(!0),It=Mt.querySelectorAll("[id]"),Me=Et.nodeName.toLowerCase();Mt.removeAttribute("id");for(let en=0;en{if(this.beforeStarted.next(),this._handles.length){const Be=this._getTargetHandle(ve);Be&&!this._disabledHandles.has(Be)&&!this.disabled&&this._initializeDragSequence(Be,ve)}else this.disabled||this._initializeDragSequence(this._rootElement,ve)},this._pointerMove=ve=>{const Be=this._getPointerPositionOnPage(ve);if(!this._hasStartedDragging){if(Math.abs(Be.x-this._pickupPositionOnPage.x)+Math.abs(Be.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const fn=Date.now()>=this._dragStartTime+this._getDragStartDelay(ve),wn=this._dropContainer;if(!fn)return void this._endDragSequence(ve);(!wn||!wn.isDragging()&&!wn.isReceiving())&&(ve.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(ve)))}return}ve.preventDefault();const Fn=this._getConstrainedPointerPosition(Be);if(this._hasMoved=!0,this._lastKnownPointerPosition=Be,this._updatePointerDirectionDelta(Fn),this._dropContainer)this._updateActiveDropContainer(Fn,Be);else{const bi=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,go=this._activeTransform;go.x=Fn.x-bi.x+this._passiveTransform.x,go.y=Fn.y-bi.y+this._passiveTransform.y,this._applyRootElementTransform(go.x,go.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Fn,event:ve,distance:this._getDragDistance(Fn),delta:this._pointerDirectionDelta})})},this._pointerUp=ve=>{this._endDragSequence(ve)},this._nativeDragStart=ve=>{if(this._handles.length){const Be=this._getTargetHandle(ve);Be&&!this._disabledHandles.has(Be)&&!this.disabled&&ve.preventDefault()}else this.disabled||ve.preventDefault()},this.withRootElement(Mt).withParent(It.parentDragRef||null),this._parentPositions=new Wt(Me),Zn.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(Mt){const It=(0,t.Ig)(Mt);It!==this._disabled&&(this._disabled=It,this._toggleNativeDragInteractions(),this._handles.forEach(Me=>Ht(Me,It)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(Mt){this._handles=Mt.map(Me=>(0,t.fI)(Me)),this._handles.forEach(Me=>Ht(Me,this.disabled)),this._toggleNativeDragInteractions();const It=new Set;return this._disabledHandles.forEach(Me=>{this._handles.indexOf(Me)>-1&&It.add(Me)}),this._disabledHandles=It,this}withPreviewTemplate(Mt){return this._previewTemplate=Mt,this}withPlaceholderTemplate(Mt){return this._placeholderTemplate=Mt,this}withRootElement(Mt){const It=(0,t.fI)(Mt);return It!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{It.addEventListener("mousedown",this._pointerDown,Te),It.addEventListener("touchstart",this._pointerDown,ie),It.addEventListener("dragstart",this._nativeDragStart,Te)}),this._initialTransform=void 0,this._rootElement=It),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(Mt){return this._boundaryElement=Mt?(0,t.fI)(Mt):null,this._resizeSubscription.unsubscribe(),Mt&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(Mt){return this._parentDragRef=Mt,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(Mt){!this._disabledHandles.has(Mt)&&this._handles.indexOf(Mt)>-1&&(this._disabledHandles.add(Mt),Ht(Mt,!0))}enableHandle(Mt){this._disabledHandles.has(Mt)&&(this._disabledHandles.delete(Mt),Ht(Mt,this.disabled))}withDirection(Mt){return this._direction=Mt,this}_withDropContainer(Mt){this._dropContainer=Mt}getFreeDragPosition(){const Mt=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:Mt.x,y:Mt.y}}setFreeDragPosition(Mt){return this._activeTransform={x:0,y:0},this._passiveTransform.x=Mt.x,this._passiveTransform.y=Mt.y,this._dropContainer||this._applyRootElementTransform(Mt.x,Mt.y),this}withPreviewContainer(Mt){return this._previewContainer=Mt,this}_sortFromLastPointerPosition(){const Mt=this._lastKnownPointerPosition;Mt&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(Mt),Mt)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(Mt){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:Mt}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(Mt),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const It=this._getPointerPositionOnPage(Mt);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(It),dropPoint:It,event:Mt})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(Mt){Le(Mt)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const It=this._dropContainer;if(It){const Me=this._rootElement,en=Me.parentNode,He=this._placeholder=this._createPlaceholderElement(),Zn=this._anchor=this._anchor||this._document.createComment(""),ve=this._getShadowRoot();en.insertBefore(Zn,Me),this._initialTransform=Me.style.transform||"",this._preview=this._createPreviewElement(),Jt(Me,!1,ee),this._document.body.appendChild(en.replaceChild(He,Me)),this._getPreviewInsertionPoint(en,ve).appendChild(this._preview),this.started.next({source:this,event:Mt}),It.start(),this._initialContainer=It,this._initialIndex=It.getItemIndex(this)}else this.started.next({source:this,event:Mt}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(It?It.getScrollableParents():[])}_initializeDragSequence(Mt,It){this._parentDragRef&&It.stopPropagation();const Me=this.isDragging(),en=Le(It),He=!en&&0!==It.button,Zn=this._rootElement,ve=(0,T.sA)(It),Be=!en&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Fn=en?(0,A.yG)(It):(0,A.X6)(It);if(ve&&ve.draggable&&"mousedown"===It.type&&It.preventDefault(),Me||He||Be||Fn)return;if(this._handles.length){const _o=Zn.style;this._rootElementTapHighlight=_o.webkitTapHighlightColor||"",_o.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(_o=>this._updateOnScroll(_o)),this._boundaryElement&&(this._boundaryRect=Nt(this._boundaryElement));const bi=this._previewTemplate;this._pickupPositionInElement=bi&&bi.template&&!bi.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,Mt,It);const go=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(It);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:go.x,y:go.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,It)}_cleanupDragArtifacts(Mt){Jt(this._rootElement,!0,ee),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const It=this._dropContainer,Me=It.getItemIndex(this),en=this._getPointerPositionOnPage(Mt),He=this._getDragDistance(en),Zn=It._isOverContainer(en.x,en.y);this.ended.next({source:this,distance:He,dropPoint:en,event:Mt}),this.dropped.next({item:this,currentIndex:Me,previousIndex:this._initialIndex,container:It,previousContainer:this._initialContainer,isPointerOverContainer:Zn,distance:He,dropPoint:en,event:Mt}),It.drop(this,Me,this._initialIndex,this._initialContainer,Zn,He,en,Mt),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:Mt,y:It},{x:Me,y:en}){let He=this._initialContainer._getSiblingContainerFromPosition(this,Mt,It);!He&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(Mt,It)&&(He=this._initialContainer),He&&He!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=He,this._dropContainer.enter(this,Mt,It,He===this._initialContainer&&He.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:He,currentIndex:He.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Me,en),this._dropContainer._sortItem(this,Mt,It,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(Mt,It):this._applyPreviewTransform(Mt-this._pickupPositionInElement.x,It-this._pickupPositionInElement.y))}_createPreviewElement(){const Mt=this._previewTemplate,It=this.previewClass,Me=Mt?Mt.template:null;let en;if(Me&&Mt){const He=Mt.matchSize?this._initialClientRect:null,Zn=Mt.viewContainer.createEmbeddedView(Me,Mt.context);Zn.detectChanges(),en=on(Zn,this._document),this._previewRef=Zn,Mt.matchSize?hn(en,He):en.style.transform=Kt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else en=Ce(this._rootElement),hn(en,this._initialClientRect),this._initialTransform&&(en.style.transform=this._initialTransform);return St(en.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ee),Ht(en,!1),en.classList.add("cdk-drag-preview"),en.setAttribute("dir",this._direction),It&&(Array.isArray(It)?It.forEach(He=>en.classList.add(He)):en.classList.add(It)),en}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const Mt=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(Mt.left,Mt.top);const It=function wt(Et){const Mt=getComputedStyle(Et),It=_t(Mt,"transition-property"),Me=It.find(ve=>"transform"===ve||"all"===ve);if(!Me)return 0;const en=It.indexOf(Me),He=_t(Mt,"transition-duration"),Zn=_t(Mt,"transition-delay");return Zt(He[en])+Zt(Zn[en])}(this._preview);return 0===It?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Me=>{const en=Zn=>{(!Zn||(0,T.sA)(Zn)===this._preview&&"transform"===Zn.propertyName)&&(this._preview?.removeEventListener("transitionend",en),Me(),clearTimeout(He))},He=setTimeout(en,1.5*It);this._preview.addEventListener("transitionend",en)}))}_createPlaceholderElement(){const Mt=this._placeholderTemplate,It=Mt?Mt.template:null;let Me;return It?(this._placeholderRef=Mt.viewContainer.createEmbeddedView(It,Mt.context),this._placeholderRef.detectChanges(),Me=on(this._placeholderRef,this._document)):Me=Ce(this._rootElement),Me.style.pointerEvents="none",Me.classList.add("cdk-drag-placeholder"),Me}_getPointerPositionInElement(Mt,It,Me){const en=It===this._rootElement?null:It,He=en?en.getBoundingClientRect():Mt,Zn=Le(Me)?Me.targetTouches[0]:Me,ve=this._getViewportScrollPosition();return{x:He.left-Mt.left+(Zn.pageX-He.left-ve.left),y:He.top-Mt.top+(Zn.pageY-He.top-ve.top)}}_getPointerPositionOnPage(Mt){const It=this._getViewportScrollPosition(),Me=Le(Mt)?Mt.touches[0]||Mt.changedTouches[0]||{pageX:0,pageY:0}:Mt,en=Me.pageX-It.left,He=Me.pageY-It.top;if(this._ownerSVGElement){const Zn=this._ownerSVGElement.getScreenCTM();if(Zn){const ve=this._ownerSVGElement.createSVGPoint();return ve.x=en,ve.y=He,ve.matrixTransform(Zn.inverse())}}return{x:en,y:He}}_getConstrainedPointerPosition(Mt){const It=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Me,y:en}=this.constrainPosition?this.constrainPosition(Mt,this,this._initialClientRect,this._pickupPositionInElement):Mt;if("x"===this.lockAxis||"x"===It?en=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===It)&&(Me=this._pickupPositionOnPage.x),this._boundaryRect){const{x:He,y:Zn}=this._pickupPositionInElement,ve=this._boundaryRect,{width:Be,height:Fn}=this._getPreviewRect(),bi=ve.top+Zn,go=ve.bottom-(Fn-Zn);Me=ce(Me,ve.left+He,ve.right-(Be-He)),en=ce(en,bi,go)}return{x:Me,y:en}}_updatePointerDirectionDelta(Mt){const{x:It,y:Me}=Mt,en=this._pointerDirectionDelta,He=this._pointerPositionAtLastDirectionChange,Zn=Math.abs(It-He.x),ve=Math.abs(Me-He.y);return Zn>this._config.pointerDirectionChangeThreshold&&(en.x=It>He.x?1:-1,He.x=It),ve>this._config.pointerDirectionChangeThreshold&&(en.y=Me>He.y?1:-1,He.y=Me),en}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const Mt=this._handles.length>0||!this.isDragging();Mt!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=Mt,Ht(this._rootElement,Mt))}_removeRootElementListeners(Mt){Mt.removeEventListener("mousedown",this._pointerDown,Te),Mt.removeEventListener("touchstart",this._pointerDown,ie),Mt.removeEventListener("dragstart",this._nativeDragStart,Te)}_applyRootElementTransform(Mt,It){const Me=Kt(Mt,It),en=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=en.transform&&"none"!=en.transform?en.transform:""),en.transform=at(Me,this._initialTransform)}_applyPreviewTransform(Mt,It){const Me=this._previewTemplate?.template?void 0:this._initialTransform,en=Kt(Mt,It);this._preview.style.transform=at(en,Me)}_getDragDistance(Mt){const It=this._pickupPositionOnPage;return It?{x:Mt.x-It.x,y:Mt.y-It.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:Mt,y:It}=this._passiveTransform;if(0===Mt&&0===It||this.isDragging()||!this._boundaryElement)return;const Me=this._rootElement.getBoundingClientRect(),en=this._boundaryElement.getBoundingClientRect();if(0===en.width&&0===en.height||0===Me.width&&0===Me.height)return;const He=en.left-Me.left,Zn=Me.right-en.right,ve=en.top-Me.top,Be=Me.bottom-en.bottom;en.width>Me.width?(He>0&&(Mt+=He),Zn>0&&(Mt-=Zn)):Mt=0,en.height>Me.height?(ve>0&&(It+=ve),Be>0&&(It-=Be)):It=0,(Mt!==this._passiveTransform.x||It!==this._passiveTransform.y)&&this.setFreeDragPosition({y:It,x:Mt})}_getDragStartDelay(Mt){const It=this.dragStartDelay;return"number"==typeof It?It:Le(Mt)?It.touch:It?It.mouse:0}_updateOnScroll(Mt){const It=this._parentPositions.handleScroll(Mt);if(It){const Me=(0,T.sA)(Mt);this._boundaryRect&&Me!==this._boundaryElement&&Me.contains(this._boundaryElement)&&qt(this._boundaryRect,It.top,It.left),this._pickupPositionOnPage.x+=It.left,this._pickupPositionOnPage.y+=It.top,this._dropContainer||(this._activeTransform.x-=It.left,this._activeTransform.y-=It.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,T.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(Mt,It){const Me=this._previewContainer||"global";if("parent"===Me)return Mt;if("global"===Me){const en=this._document;return It||en.fullscreenElement||en.webkitFullscreenElement||en.mozFullScreenElement||en.msFullscreenElement||en.body}return(0,t.fI)(Me)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(Mt){return this._handles.find(It=>Mt.target&&(Mt.target===It||It.contains(Mt.target)))}}function Kt(Et,Mt){return`translate3d(${Math.round(Et)}px, ${Math.round(Mt)}px, 0)`}function ce(Et,Mt,It){return Math.max(Mt,Math.min(It,Et))}function Le(Et){return"t"===Et.type[0]}function on(Et,Mt){const It=Et.rootNodes;if(1===It.length&&It[0].nodeType===Mt.ELEMENT_NODE)return It[0];const Me=Mt.createElement("div");return It.forEach(en=>Me.appendChild(en)),Me}function hn(Et,Mt){Et.style.width=`${Mt.width}px`,Et.style.height=`${Mt.height}px`,Et.style.transform=Kt(Mt.left,Mt.top)}function we(Et,Mt,It){const Me=dn(Mt,Et.length-1),en=dn(It,Et.length-1);if(Me===en)return;const He=Et[Me],Zn=en0)return null;const ve="horizontal"===this.orientation,Be=He.findIndex(ii=>ii.drag===Mt),Fn=He[Zn],go=Fn.clientRect,_o=Be>Zn?1:-1,fn=this._getItemOffsetPx(He[Be].clientRect,go,_o),wn=this._getSiblingOffsetPx(Be,He,_o),ln=He.slice();return we(He,Be,Zn),He.forEach((ii,Zi)=>{if(ln[Zi]===ii)return;const vo=ii.drag===Mt,No=vo?fn:wn,la=vo?Mt.getPlaceholderElement():ii.drag.getRootElement();ii.offset+=No,ve?(la.style.transform=at(`translate3d(${Math.round(ii.offset)}px, 0, 0)`,ii.initialTransform),qt(ii.clientRect,0,No)):(la.style.transform=at(`translate3d(0, ${Math.round(ii.offset)}px, 0)`,ii.initialTransform),qt(ii.clientRect,No,0))}),this._previousSwap.overlaps=Qt(go,It,Me),this._previousSwap.drag=Fn.drag,this._previousSwap.delta=ve?en.x:en.y,{previousIndex:Be,currentIndex:Zn}}enter(Mt,It,Me,en){const He=null==en||en<0?this._getItemIndexFromPointerPosition(Mt,It,Me):en,Zn=this._activeDraggables,ve=Zn.indexOf(Mt),Be=Mt.getPlaceholderElement();let Fn=Zn[He];if(Fn===Mt&&(Fn=Zn[He+1]),!Fn&&(null==He||-1===He||He-1&&Zn.splice(ve,1),Fn&&!this._dragDropRegistry.isDragging(Fn)){const bi=Fn.getRootElement();bi.parentElement.insertBefore(Be,bi),Zn.splice(He,0,Mt)}else(0,t.fI)(this._element).appendChild(Be),Zn.push(Mt);Be.style.transform="",this._cacheItemPositions()}withItems(Mt){this._activeDraggables=Mt.slice(),this._cacheItemPositions()}withSortPredicate(Mt){this._sortPredicate=Mt}reset(){this._activeDraggables.forEach(Mt=>{const It=Mt.getRootElement();if(It){const Me=this._itemPositions.find(en=>en.drag===Mt)?.initialTransform;It.style.transform=Me||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(Mt){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Me=>Me.drag===Mt)}updateOnScroll(Mt,It){this._itemPositions.forEach(({clientRect:Me})=>{qt(Me,Mt,It)}),this._itemPositions.forEach(({drag:Me})=>{this._dragDropRegistry.isDragging(Me)&&Me._sortFromLastPointerPosition()})}_cacheItemPositions(){const Mt="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(It=>{const Me=It.getVisibleElement();return{drag:It,offset:0,initialTransform:Me.style.transform||"",clientRect:Nt(Me)}}).sort((It,Me)=>Mt?It.clientRect.left-Me.clientRect.left:It.clientRect.top-Me.clientRect.top)}_getItemOffsetPx(Mt,It,Me){const en="horizontal"===this.orientation;let He=en?It.left-Mt.left:It.top-Mt.top;return-1===Me&&(He+=en?It.width-Mt.width:It.height-Mt.height),He}_getSiblingOffsetPx(Mt,It,Me){const en="horizontal"===this.orientation,He=It[Mt].clientRect,Zn=It[Mt+-1*Me];let ve=He[en?"width":"height"]*Me;if(Zn){const Be=en?"left":"top",Fn=en?"right":"bottom";-1===Me?ve-=Zn.clientRect[Be]-He[Fn]:ve+=He[Be]-Zn.clientRect[Fn]}return ve}_shouldEnterAsFirstChild(Mt,It){if(!this._activeDraggables.length)return!1;const Me=this._itemPositions,en="horizontal"===this.orientation;if(Me[0].drag!==this._activeDraggables[0]){const Zn=Me[Me.length-1].clientRect;return en?Mt>=Zn.right:It>=Zn.bottom}{const Zn=Me[0].clientRect;return en?Mt<=Zn.left:It<=Zn.top}}_getItemIndexFromPointerPosition(Mt,It,Me,en){const He="horizontal"===this.orientation,Zn=this._itemPositions.findIndex(({drag:ve,clientRect:Be})=>{if(ve===Mt)return!1;if(en){const Fn=He?en.x:en.y;if(ve===this._previousSwap.drag&&this._previousSwap.overlaps&&Fn===this._previousSwap.delta)return!1}return He?It>=Math.floor(Be.left)&&It=Math.floor(Be.top)&&Me!0,this.sortPredicate=()=>!0,this.beforeStarted=new x.xQ,this.entered=new x.xQ,this.exited=new x.xQ,this.dropped=new x.xQ,this.sorted=new x.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=w.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new x.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,k.F)(0,D.Z).pipe((0,z.R)(this._stopScrollTimers)).subscribe(()=>{const Zn=this._scrollNode,ve=this.autoScrollStep;1===this._verticalScrollDirection?Zn.scrollBy(0,-ve):2===this._verticalScrollDirection&&Zn.scrollBy(0,ve),1===this._horizontalScrollDirection?Zn.scrollBy(-ve,0):2===this._horizontalScrollDirection&&Zn.scrollBy(ve,0)})},this.element=(0,t.fI)(Mt),this._document=Me,this.withScrollableParents([this.element]),It.registerDropContainer(this),this._parentPositions=new Wt(Me),this._sortStrategy=new kn(this.element,It),this._sortStrategy.withSortPredicate((Zn,ve)=>this.sortPredicate(Zn,ve,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(Mt,It,Me,en){this._draggingStarted(),null==en&&this.sortingDisabled&&(en=this._draggables.indexOf(Mt)),this._sortStrategy.enter(Mt,It,Me,en),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:Mt,container:this,currentIndex:this.getItemIndex(Mt)})}exit(Mt){this._reset(),this.exited.next({item:Mt,container:this})}drop(Mt,It,Me,en,He,Zn,ve,Be={}){this._reset(),this.dropped.next({item:Mt,currentIndex:It,previousIndex:Me,container:this,previousContainer:en,isPointerOverContainer:He,distance:Zn,dropPoint:ve,event:Be})}withItems(Mt){const It=this._draggables;return this._draggables=Mt,Mt.forEach(Me=>Me._withDropContainer(this)),this.isDragging()&&(It.filter(en=>en.isDragging()).every(en=>-1===Mt.indexOf(en))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(Mt){return this._sortStrategy.direction=Mt,this}connectedTo(Mt){return this._siblings=Mt.slice(),this}withOrientation(Mt){return this._sortStrategy.orientation=Mt,this}withScrollableParents(Mt){const It=(0,t.fI)(this.element);return this._scrollableElements=-1===Mt.indexOf(It)?[It,...Mt]:Mt.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(Mt){return this._isDragging?this._sortStrategy.getItemIndex(Mt):this._draggables.indexOf(Mt)}isReceiving(){return this._activeSiblings.size>0}_sortItem(Mt,It,Me,en){if(this.sortingDisabled||!this._clientRect||!le(this._clientRect,.05,It,Me))return;const He=this._sortStrategy.sort(Mt,It,Me,en);He&&this.sorted.next({previousIndex:He.previousIndex,currentIndex:He.currentIndex,container:this,item:Mt})}_startScrollingIfNecessary(Mt,It){if(this.autoScrollDisabled)return;let Me,en=0,He=0;if(this._parentPositions.positions.forEach((Zn,ve)=>{ve===this._document||!Zn.clientRect||Me||le(Zn.clientRect,.05,Mt,It)&&([en,He]=function tt(Et,Mt,It,Me){const en=vt(Mt,Me),He=xt(Mt,It);let Zn=0,ve=0;if(en){const Be=Et.scrollTop;1===en?Be>0&&(Zn=1):Et.scrollHeight-Be>Et.clientHeight&&(Zn=2)}if(He){const Be=Et.scrollLeft;1===He?Be>0&&(ve=1):Et.scrollWidth-Be>Et.clientWidth&&(ve=2)}return[Zn,ve]}(ve,Zn.clientRect,Mt,It),(en||He)&&(Me=ve))}),!en&&!He){const{width:Zn,height:ve}=this._viewportRuler.getViewportSize(),Be={width:Zn,height:ve,top:0,right:Zn,bottom:ve,left:0};en=vt(Be,It),He=xt(Be,Mt),Me=window}Me&&(en!==this._verticalScrollDirection||He!==this._horizontalScrollDirection||Me!==this._scrollNode)&&(this._verticalScrollDirection=en,this._horizontalScrollDirection=He,this._scrollNode=Me,(en||He)&&Me?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const Mt=(0,t.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=Mt.msScrollSnapType||Mt.scrollSnapType||"",Mt.scrollSnapType=Mt.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const Mt=(0,t.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(Mt).clientRect}_reset(){this._isDragging=!1;const Mt=(0,t.fI)(this.element).style;Mt.scrollSnapType=Mt.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(It=>It._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(Mt,It){return null!=this._clientRect&&Qt(this._clientRect,Mt,It)}_getSiblingContainerFromPosition(Mt,It,Me){return this._siblings.find(en=>en._canReceive(Mt,It,Me))}_canReceive(Mt,It,Me){if(!this._clientRect||!Qt(this._clientRect,It,Me)||!this.enterPredicate(Mt,this))return!1;const en=this._getShadowRoot().elementFromPoint(It,Me);if(!en)return!1;const He=(0,t.fI)(this.element);return en===He||He.contains(en)}_startReceiving(Mt,It){const Me=this._activeSiblings;!Me.has(Mt)&&It.every(en=>this.enterPredicate(en,this)||this._draggables.indexOf(en)>-1)&&(Me.add(Mt),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(Mt){this._activeSiblings.delete(Mt),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Mt=>{if(this.isDragging()){const It=this._parentPositions.handleScroll(Mt);It&&this._sortStrategy.updateOnScroll(It.top,It.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const Mt=(0,T.kV)((0,t.fI)(this.element));this._cachedShadowRoot=Mt||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const Mt=this._sortStrategy.getActiveItemsSnapshot().filter(It=>It.isDragging());this._siblings.forEach(It=>It._startReceiving(this,Mt))}}function vt(Et,Mt){const{top:It,bottom:Me,height:en}=Et,He=.05*en;return Mt>=It-He&&Mt<=It+He?1:Mt>=Me-He&&Mt<=Me+He?2:0}function xt(Et,Mt){const{left:It,right:Me,width:en}=Et,He=.05*en;return Mt>=It-He&&Mt<=It+He?1:Mt>=Me-He&&Mt<=Me+He?2:0}const et=(0,T.i$)({passive:!1,capture:!0});let Ct=(()=>{class Et{constructor(It,Me){this._ngZone=It,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=en=>en.isDragging(),this.pointerMove=new x.xQ,this.pointerUp=new x.xQ,this.scroll=new x.xQ,this._preventDefaultWhileDragging=en=>{this._activeDragInstances.length>0&&en.preventDefault()},this._persistentTouchmoveListener=en=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&en.preventDefault(),this.pointerMove.next(en))},this._document=Me}registerDropContainer(It){this._dropInstances.has(It)||this._dropInstances.add(It)}registerDragItem(It){this._dragInstances.add(It),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,et)})}removeDropContainer(It){this._dropInstances.delete(It)}removeDragItem(It){this._dragInstances.delete(It),this.stopDragging(It),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,et)}startDragging(It,Me){if(!(this._activeDragInstances.indexOf(It)>-1)&&(this._activeDragInstances.push(It),1===this._activeDragInstances.length)){const en=Me.type.startsWith("touch");this._globalListeners.set(en?"touchend":"mouseup",{handler:He=>this.pointerUp.next(He),options:!0}).set("scroll",{handler:He=>this.scroll.next(He),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:et}),en||this._globalListeners.set("mousemove",{handler:He=>this.pointerMove.next(He),options:et}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((He,Zn)=>{this._document.addEventListener(Zn,He.handler,He.options)})})}}stopDragging(It){const Me=this._activeDragInstances.indexOf(It);Me>-1&&(this._activeDragInstances.splice(Me,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(It){return this._activeDragInstances.indexOf(It)>-1}scrolled(It){const Me=[this.scroll];return It&&It!==this._document&&Me.push(new P.y(en=>this._ngZone.runOutsideAngular(()=>{const Zn=ve=>{this._activeDragInstances.length&&en.next(ve)};return It.addEventListener("scroll",Zn,!0),()=>{It.removeEventListener("scroll",Zn,!0)}}))),(0,I.T)(...Me)}ngOnDestroy(){this._dragInstances.forEach(It=>this.removeDragItem(It)),this._dropInstances.forEach(It=>this.removeDropContainer(It)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((It,Me)=>{this._document.removeEventListener(Me,It.handler,It.options)}),this._globalListeners.clear()}}return Et.\u0275fac=function(It){return new(It||Et)(d.LFG(d.R0b),d.LFG(p.K0))},Et.\u0275prov=d.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"}),Et})();const Bt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let ne=(()=>{class Et{constructor(It,Me,en,He){this._document=It,this._ngZone=Me,this._viewportRuler=en,this._dragDropRegistry=He}createDrag(It,Me=Bt){return new ue(It,Me,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(It){return new Ft(It,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Et.\u0275fac=function(It){return new(It||Et)(d.LFG(p.K0),d.LFG(d.R0b),d.LFG(v.rL),d.LFG(Ct))},Et.\u0275prov=d.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"}),Et})();const he=new d.OlP("CDK_DRAG_PARENT"),Oe=new d.OlP("CdkDropListGroup"),On=new d.OlP("CDK_DRAG_CONFIG");let Si=0;const ho=new d.OlP("CdkDropList");let hi=(()=>{class Et{constructor(It,Me,en,He,Zn,ve,Be){this.element=It,this._changeDetectorRef=en,this._scrollDispatcher=He,this._dir=Zn,this._group=ve,this._destroyed=new x.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Si++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new d.vpe,this.entered=new d.vpe,this.exited=new d.vpe,this.sorted=new d.vpe,this._unsortedItems=new Set,this._dropListRef=Me.createDropList(It),this._dropListRef.data=this,Be&&this._assignDefaults(Be),this._dropListRef.enterPredicate=(Fn,bi)=>this.enterPredicate(Fn.data,bi.data),this._dropListRef.sortPredicate=(Fn,bi,go)=>this.sortPredicate(Fn,bi.data,go.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Et._dropLists.push(this),ve&&ve._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(It){this._dropListRef.disabled=this._disabled=(0,t.Ig)(It)}addItem(It){this._unsortedItems.add(It),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(It){this._unsortedItems.delete(It),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((It,Me)=>It._dragRef.getVisibleElement().compareDocumentPosition(Me._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const It=Et._dropLists.indexOf(this);It>-1&&Et._dropLists.splice(It,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(It){this._dir&&this._dir.change.pipe((0,G.O)(this._dir.value),(0,z.R)(this._destroyed)).subscribe(Me=>It.withDirection(Me)),It.beforeStarted.subscribe(()=>{const Me=(0,t.Eq)(this.connectedTo).map(en=>"string"==typeof en?Et._dropLists.find(Zn=>Zn.id===en):en);if(this._group&&this._group._items.forEach(en=>{-1===Me.indexOf(en)&&Me.push(en)}),!this._scrollableParentsResolved){const en=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(He=>He.getElementRef().nativeElement);this._dropListRef.withScrollableParents(en),this._scrollableParentsResolved=!0}It.disabled=this.disabled,It.lockAxis=this.lockAxis,It.sortingDisabled=(0,t.Ig)(this.sortingDisabled),It.autoScrollDisabled=(0,t.Ig)(this.autoScrollDisabled),It.autoScrollStep=(0,t.su)(this.autoScrollStep,2),It.connectedTo(Me.filter(en=>en&&en!==this).map(en=>en._dropListRef)).withOrientation(this.orientation)})}_handleEvents(It){It.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),It.entered.subscribe(Me=>{this.entered.emit({container:this,item:Me.item.data,currentIndex:Me.currentIndex})}),It.exited.subscribe(Me=>{this.exited.emit({container:this,item:Me.item.data}),this._changeDetectorRef.markForCheck()}),It.sorted.subscribe(Me=>{this.sorted.emit({previousIndex:Me.previousIndex,currentIndex:Me.currentIndex,container:this,item:Me.item.data})}),It.dropped.subscribe(Me=>{this.dropped.emit({previousIndex:Me.previousIndex,currentIndex:Me.currentIndex,previousContainer:Me.previousContainer.data,container:Me.container.data,item:Me.item.data,isPointerOverContainer:Me.isPointerOverContainer,distance:Me.distance,dropPoint:Me.dropPoint,event:Me.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(It){const{lockAxis:Me,draggingDisabled:en,sortingDisabled:He,listAutoScrollDisabled:Zn,listOrientation:ve}=It;this.disabled=en??!1,this.sortingDisabled=He??!1,this.autoScrollDisabled=Zn??!1,this.orientation=ve||"vertical",Me&&(this.lockAxis=Me)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(It=>It._dragRef))}}return Et._dropLists=[],Et.\u0275fac=function(It){return new(It||Et)(d.Y36(d.SBq),d.Y36(ne),d.Y36(d.sBO),d.Y36(v.mF),d.Y36(Pt.Is,8),d.Y36(Oe,12),d.Y36(On,8))},Et.\u0275dir=d.lG2({type:Et,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(It,Me){2&It&&(d.uIk("id",Me.id),d.ekj("cdk-drop-list-disabled",Me.disabled)("cdk-drop-list-dragging",Me._dropListRef.isDragging())("cdk-drop-list-receiving",Me._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[d._Bn([{provide:Oe,useValue:void 0},{provide:ho,useExisting:Et}])]}),Et})();const Vn=new d.OlP("CdkDragHandle"),je=new d.OlP("CdkDragPlaceholder"),Ve=new d.OlP("CdkDragPreview");let pe=(()=>{class Et{constructor(It,Me,en,He,Zn,ve,Be,Fn,bi,go,_o){this.element=It,this.dropContainer=Me,this._ngZone=He,this._viewContainerRef=Zn,this._dir=Be,this._changeDetectorRef=bi,this._selfHandle=go,this._parentDrag=_o,this._destroyed=new x.xQ,this.started=new d.vpe,this.released=new d.vpe,this.ended=new d.vpe,this.entered=new d.vpe,this.exited=new d.vpe,this.dropped=new d.vpe,this.moved=new P.y(fn=>{const wn=this._dragRef.moved.pipe((0,W.U)(ln=>({source:this,pointerPosition:ln.pointerPosition,event:ln.event,delta:ln.delta,distance:ln.distance}))).subscribe(fn);return()=>{wn.unsubscribe()}}),this._dragRef=Fn.createDrag(It,{dragStartThreshold:ve&&null!=ve.dragStartThreshold?ve.dragStartThreshold:5,pointerDirectionChangeThreshold:ve&&null!=ve.pointerDirectionChangeThreshold?ve.pointerDirectionChangeThreshold:5,zIndex:ve?.zIndex}),this._dragRef.data=this,Et._dragInstances.push(this),ve&&this._assignDefaults(ve),Me&&(this._dragRef._withDropContainer(Me._dropListRef),Me.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(It){this._disabled=(0,t.Ig)(It),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(It){this._dragRef.setFreeDragPosition(It)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ot.q)(1),(0,z.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(It){const Me=It.rootElementSelector,en=It.freeDragPosition;Me&&!Me.firstChange&&this._updateRootElement(),en&&!en.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const It=Et._dragInstances.indexOf(this);It>-1&&Et._dragInstances.splice(It,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const It=this.element.nativeElement;let Me=It;this.rootElementSelector&&(Me=void 0!==It.closest?It.closest(this.rootElementSelector):It.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(Me||It)}_getBoundaryElement(){const It=this.boundaryElement;return It?"string"==typeof It?this.element.nativeElement.closest(It):(0,t.fI)(It):null}_syncInputs(It){It.beforeStarted.subscribe(()=>{if(!It.isDragging()){const Me=this._dir,en=this.dragStartDelay,He=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Zn=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;It.disabled=this.disabled,It.lockAxis=this.lockAxis,It.dragStartDelay="object"==typeof en&&en?en:(0,t.su)(en),It.constrainPosition=this.constrainPosition,It.previewClass=this.previewClass,It.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(He).withPreviewTemplate(Zn).withPreviewContainer(this.previewContainer||"global"),Me&&It.withDirection(Me.value)}}),It.beforeStarted.pipe((0,ot.q)(1)).subscribe(()=>{if(this._parentDrag)return void It.withParent(this._parentDrag._dragRef);let Me=this.element.nativeElement.parentElement;for(;Me;){if(Me.classList.contains("cdk-drag")){It.withParent(Et._dragInstances.find(en=>en.element.nativeElement===Me)?._dragRef||null);break}Me=Me.parentElement}})}_handleEvents(It){It.started.subscribe(Me=>{this.started.emit({source:this,event:Me.event}),this._changeDetectorRef.markForCheck()}),It.released.subscribe(Me=>{this.released.emit({source:this,event:Me.event})}),It.ended.subscribe(Me=>{this.ended.emit({source:this,distance:Me.distance,dropPoint:Me.dropPoint,event:Me.event}),this._changeDetectorRef.markForCheck()}),It.entered.subscribe(Me=>{this.entered.emit({container:Me.container.data,item:this,currentIndex:Me.currentIndex})}),It.exited.subscribe(Me=>{this.exited.emit({container:Me.container.data,item:this})}),It.dropped.subscribe(Me=>{this.dropped.emit({previousIndex:Me.previousIndex,currentIndex:Me.currentIndex,previousContainer:Me.previousContainer.data,container:Me.container.data,isPointerOverContainer:Me.isPointerOverContainer,item:this,distance:Me.distance,dropPoint:Me.dropPoint,event:Me.event})})}_assignDefaults(It){const{lockAxis:Me,dragStartDelay:en,constrainPosition:He,previewClass:Zn,boundaryElement:ve,draggingDisabled:Be,rootElementSelector:Fn,previewContainer:bi}=It;this.disabled=Be??!1,this.dragStartDelay=en||0,Me&&(this.lockAxis=Me),He&&(this.constrainPosition=He),Zn&&(this.previewClass=Zn),ve&&(this.boundaryElement=ve),Fn&&(this.rootElementSelector=Fn),bi&&(this.previewContainer=bi)}_setupHandlesListener(){this._handles.changes.pipe((0,G.O)(this._handles),(0,ct.b)(It=>{const Me=It.filter(en=>en._parentDrag===this).map(en=>en.element);this._selfHandle&&this.rootElementSelector&&Me.push(this.element),this._dragRef.withHandles(Me)}),(0,gt.w)(It=>(0,I.T)(...It.map(Me=>Me._stateChanges.pipe((0,G.O)(Me))))),(0,z.R)(this._destroyed)).subscribe(It=>{const Me=this._dragRef,en=It.element.nativeElement;It.disabled?Me.disableHandle(en):Me.enableHandle(en)})}}return Et._dragInstances=[],Et.\u0275fac=function(It){return new(It||Et)(d.Y36(d.SBq),d.Y36(ho,12),d.Y36(p.K0),d.Y36(d.R0b),d.Y36(d.s_b),d.Y36(On,8),d.Y36(Pt.Is,8),d.Y36(ne),d.Y36(d.sBO),d.Y36(Vn,10),d.Y36(he,12))},Et.\u0275dir=d.lG2({type:Et,selectors:[["","cdkDrag",""]],contentQueries:function(It,Me,en){if(1&It&&(d.Suo(en,Ve,5),d.Suo(en,je,5),d.Suo(en,Vn,5)),2&It){let He;d.iGM(He=d.CRH())&&(Me._previewTemplate=He.first),d.iGM(He=d.CRH())&&(Me._placeholderTemplate=He.first),d.iGM(He=d.CRH())&&(Me._handles=He)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(It,Me){2&It&&d.ekj("cdk-drag-disabled",Me.disabled)("cdk-drag-dragging",Me._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[d._Bn([{provide:he,useExisting:Et}]),d.TTD]}),Et})(),We=(()=>{class Et{}return Et.\u0275fac=function(It){return new(It||Et)},Et.\u0275mod=d.oAB({type:Et}),Et.\u0275inj=d.cJS({providers:[ne],imports:[v.ZD]}),Et})()},29521:(rt,it,b)=>{"use strict";b.d(it,{A:()=>re,JH:()=>St,JU:()=>A,K5:()=>t,Ku:()=>z,LH:()=>gt,L_:()=>I,MW:()=>On,Mf:()=>v,SV:()=>Pt,Sd:()=>ot,VM:()=>G,Vb:()=>bc,Z:()=>yn,ZH:()=>p,aO:()=>Ne,b2:()=>Er,hY:()=>P,jx:()=>x,oh:()=>ct,uR:()=>W,xE:()=>wt,yY:()=>Zt,zL:()=>w});const p=8,v=9,t=13,A=16,x=17,w=18,P=27,I=32,z=33,G=34,W=35,ot=36,ct=37,gt=38,Pt=39,St=40,Zt=46,wt=48,Ne=57,re=65,yn=90,On=91,Er=224;function bc(dr,...Yr){return Yr.length?Yr.some(Gr=>dr[Gr]):dr.altKey||dr.shiftKey||dr.ctrlKey||dr.metaKey}},62289:(rt,it,b)=>{"use strict";b.d(it,{Yg:()=>St,u3:()=>Jt,xu:()=>G});var d=b(94650),p=b(21281),v=b(8929),T=b(23426),t=b(61221),A=b(56498),x=b(72986),w=b(31307),k=b(80013),D=b(24850),P=b(1059),I=b(7625),z=b(83353);let G=(()=>{class at{}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275mod=d.oAB({type:at}),at.\u0275inj=d.cJS({}),at})();const W=new Set;let ot,ct=(()=>{class at{constructor(wt){this._platform=wt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Pt}matchMedia(wt){return(this._platform.WEBKIT||this._platform.BLINK)&&function gt(at){if(!W.has(at))try{ot||(ot=document.createElement("style"),ot.setAttribute("type","text/css"),document.head.appendChild(ot)),ot.sheet&&(ot.sheet.insertRule(`@media ${at} {body{ }}`,0),W.add(at))}catch(Zt){console.error(Zt)}}(wt),this._matchMedia(wt)}}return at.\u0275fac=function(wt){return new(wt||at)(d.LFG(z.t4))},at.\u0275prov=d.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"}),at})();function Pt(at){return{matches:"all"===at||""===at,media:at,addListener:()=>{},removeListener:()=>{}}}let St=(()=>{class at{constructor(wt,_t){this._mediaMatcher=wt,this._zone=_t,this._queries=new Map,this._destroySubject=new v.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(wt){return Ht((0,p.Eq)(wt)).some(Nt=>this._registerQuery(Nt).mql.matches)}observe(wt){const Nt=Ht((0,p.Eq)(wt)).map(qt=>this._registerQuery(qt).observable);let Qt=(0,T.aj)(Nt);return Qt=(0,t.z)(Qt.pipe((0,x.q)(1)),Qt.pipe((0,w.T)(1),(0,k.b)(0))),Qt.pipe((0,D.U)(qt=>{const le={matches:!1,breakpoints:{}};return qt.forEach(({matches:Wt,query:Ce})=>{le.matches=le.matches||Wt,le.breakpoints[Ce]=Wt}),le}))}_registerQuery(wt){if(this._queries.has(wt))return this._queries.get(wt);const _t=this._mediaMatcher.matchMedia(wt),Qt={observable:new A.y(qt=>{const le=Wt=>this._zone.run(()=>qt.next(Wt));return _t.addListener(le),()=>{_t.removeListener(le)}}).pipe((0,P.O)(_t),(0,D.U)(({matches:qt})=>({query:wt,matches:qt})),(0,I.R)(this._destroySubject)),mql:_t};return this._queries.set(wt,Qt),Qt}}return at.\u0275fac=function(wt){return new(wt||at)(d.LFG(ct),d.LFG(d.R0b))},at.\u0275prov=d.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"}),at})();function Ht(at){return at.map(Zt=>Zt.split(",")).reduce((Zt,wt)=>Zt.concat(wt)).map(Zt=>Zt.trim())}const Jt={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},49643:(rt,it,b)=>{"use strict";b.d(it,{Q8:()=>k,wD:()=>w});var d=b(21281),p=b(94650),v=b(56498),T=b(8929),t=b(80013);let A=(()=>{class D{create(I){return typeof MutationObserver>"u"?null:new MutationObserver(I)}}return D.\u0275fac=function(I){return new(I||D)},D.\u0275prov=p.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),x=(()=>{class D{constructor(I){this._mutationObserverFactory=I,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((I,z)=>this._cleanupObserver(z))}observe(I){const z=(0,d.fI)(I);return new v.y(G=>{const ot=this._observeElement(z).subscribe(G);return()=>{ot.unsubscribe(),this._unobserveElement(z)}})}_observeElement(I){if(this._observedElements.has(I))this._observedElements.get(I).count++;else{const z=new T.xQ,G=this._mutationObserverFactory.create(W=>z.next(W));G&&G.observe(I,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(I,{observer:G,stream:z,count:1})}return this._observedElements.get(I).stream}_unobserveElement(I){this._observedElements.has(I)&&(this._observedElements.get(I).count--,this._observedElements.get(I).count||this._cleanupObserver(I))}_cleanupObserver(I){if(this._observedElements.has(I)){const{observer:z,stream:G}=this._observedElements.get(I);z&&z.disconnect(),G.complete(),this._observedElements.delete(I)}}}return D.\u0275fac=function(I){return new(I||D)(p.LFG(A))},D.\u0275prov=p.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),w=(()=>{class D{constructor(I,z,G){this._contentObserver=I,this._elementRef=z,this._ngZone=G,this.event=new p.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(I){this._disabled=(0,d.Ig)(I),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(I){this._debounce=(0,d.su)(I),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const I=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?I.pipe((0,t.b)(this.debounce)):I).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return D.\u0275fac=function(I){return new(I||D)(p.Y36(x),p.Y36(p.SBq),p.Y36(p.R0b))},D.\u0275dir=p.lG2({type:D,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),D})(),k=(()=>{class D{}return D.\u0275fac=function(I){return new(I||D)},D.\u0275mod=p.oAB({type:D}),D.\u0275inj=p.cJS({providers:[A]}),D})()},98184:(rt,it,b)=>{"use strict";b.d(it,{Iu:()=>Ne,U8:()=>Ft,X_:()=>Zt,Xj:()=>Ae,_G:()=>ie,aV:()=>we,pI:()=>kn,xu:()=>dn});var d=b(67376),p=b(36895),v=b(94650),T=b(21281),t=b(83353),A=b(40445),x=b(84080),w=b(8929),k=b(42654),D=b(36787),P=b(72986),I=b(7625),z=b(44290),G=b(29521);const W=(0,t.Mq)();class ot{constructor(tt,et){this._viewportRuler=tt,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=et}attach(){}enable(){if(this._canBeEnabled()){const tt=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=tt.style.left||"",this._previousHTMLStyles.top=tt.style.top||"",tt.style.left=(0,T.HM)(-this._previousScrollPosition.left),tt.style.top=(0,T.HM)(-this._previousScrollPosition.top),tt.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const tt=this._document.documentElement,Ct=tt.style,Bt=this._document.body.style,ne=Ct.scrollBehavior||"",he=Bt.scrollBehavior||"";this._isEnabled=!1,Ct.left=this._previousHTMLStyles.left,Ct.top=this._previousHTMLStyles.top,tt.classList.remove("cdk-global-scrollblock"),W&&(Ct.scrollBehavior=Bt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),W&&(Ct.scrollBehavior=ne,Bt.scrollBehavior=he)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const et=this._document.body,Ct=this._viewportRuler.getViewportSize();return et.scrollHeight>Ct.height||et.scrollWidth>Ct.width}}class gt{constructor(tt,et,Ct,Bt){this._scrollDispatcher=tt,this._ngZone=et,this._viewportRuler=Ct,this._config=Bt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(tt){this._overlayRef=tt}enable(){if(this._scrollSubscription)return;const tt=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=tt.subscribe(()=>{const et=this._viewportRuler.getViewportScrollPosition().top;Math.abs(et-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=tt.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Pt{enable(){}disable(){}attach(){}}function St(xt,tt){return tt.some(et=>xt.bottomet.bottom||xt.rightet.right)}function Ht(xt,tt){return tt.some(et=>xt.topet.bottom||xt.leftet.right)}class Jt{constructor(tt,et,Ct,Bt){this._scrollDispatcher=tt,this._viewportRuler=et,this._ngZone=Ct,this._config=Bt,this._scrollSubscription=null}attach(tt){this._overlayRef=tt}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const et=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ct,height:Bt}=this._viewportRuler.getViewportSize();St(et,[{width:Ct,height:Bt,bottom:Bt,right:Ct,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let at=(()=>{class xt{constructor(et,Ct,Bt,ne){this._scrollDispatcher=et,this._viewportRuler=Ct,this._ngZone=Bt,this.noop=()=>new Pt,this.close=he=>new gt(this._scrollDispatcher,this._ngZone,this._viewportRuler,he),this.block=()=>new ot(this._viewportRuler,this._document),this.reposition=he=>new Jt(this._scrollDispatcher,this._viewportRuler,this._ngZone,he),this._document=ne}}return xt.\u0275fac=function(et){return new(et||xt)(v.LFG(d.mF),v.LFG(d.rL),v.LFG(v.R0b),v.LFG(p.K0))},xt.\u0275prov=v.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();class Zt{constructor(tt){if(this.scrollStrategy=new Pt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,tt){const et=Object.keys(tt);for(const Ct of et)void 0!==tt[Ct]&&(this[Ct]=tt[Ct])}}}class Nt{constructor(tt,et){this.connectionPair=tt,this.scrollableViewProperties=et}}let le=(()=>{class xt{constructor(et){this._attachedOverlays=[],this._document=et}ngOnDestroy(){this.detach()}add(et){this.remove(et),this._attachedOverlays.push(et)}remove(et){const Ct=this._attachedOverlays.indexOf(et);Ct>-1&&this._attachedOverlays.splice(Ct,1),0===this._attachedOverlays.length&&this.detach()}}return xt.\u0275fac=function(et){return new(et||xt)(v.LFG(p.K0))},xt.\u0275prov=v.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})(),Wt=(()=>{class xt extends le{constructor(et,Ct){super(et),this._ngZone=Ct,this._keydownListener=Bt=>{const ne=this._attachedOverlays;for(let he=ne.length-1;he>-1;he--)if(ne[he]._keydownEvents.observers.length>0){const Oe=ne[he]._keydownEvents;this._ngZone?this._ngZone.run(()=>Oe.next(Bt)):Oe.next(Bt);break}}}add(et){super.add(et),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return xt.\u0275fac=function(et){return new(et||xt)(v.LFG(p.K0),v.LFG(v.R0b,8))},xt.\u0275prov=v.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})(),Ce=(()=>{class xt extends le{constructor(et,Ct,Bt){super(et),this._platform=Ct,this._ngZone=Bt,this._cursorStyleIsSet=!1,this._pointerDownListener=ne=>{this._pointerDownEventTarget=(0,t.sA)(ne)},this._clickListener=ne=>{const he=(0,t.sA)(ne),Oe="click"===ne.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:he;this._pointerDownEventTarget=null;const yn=this._attachedOverlays.slice();for(let On=yn.length-1;On>-1;On--){const _i=yn[On];if(_i._outsidePointerEvents.observers.length<1||!_i.hasAttached())continue;if(_i.overlayElement.contains(he)||_i.overlayElement.contains(Oe))break;const Si=_i._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Si.next(ne)):Si.next(ne)}}}add(et){if(super.add(et),!this._isAttached){const Ct=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Ct)):this._addEventListeners(Ct),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ct.style.cursor,Ct.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const et=this._document.body;et.removeEventListener("pointerdown",this._pointerDownListener,!0),et.removeEventListener("click",this._clickListener,!0),et.removeEventListener("auxclick",this._clickListener,!0),et.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(et.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(et){et.addEventListener("pointerdown",this._pointerDownListener,!0),et.addEventListener("click",this._clickListener,!0),et.addEventListener("auxclick",this._clickListener,!0),et.addEventListener("contextmenu",this._clickListener,!0)}}return xt.\u0275fac=function(et){return new(et||xt)(v.LFG(p.K0),v.LFG(t.t4),v.LFG(v.R0b,8))},xt.\u0275prov=v.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})(),Ae=(()=>{class xt{constructor(et,Ct){this._platform=Ct,this._document=et}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const et="cdk-overlay-container";if(this._platform.isBrowser||(0,t.Oy)()){const Bt=this._document.querySelectorAll(`.${et}[platform="server"], .${et}[platform="test"]`);for(let ne=0;nethis._backdropClick.next(Si),this._backdropTransitionendHandler=Si=>{this._disposeBackdrop(Si.target)},this._keydownEvents=new w.xQ,this._outsidePointerEvents=new w.xQ,Bt.scrollStrategy&&(this._scrollStrategy=Bt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Bt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(tt){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const et=this._portalOutlet.attach(tt);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof et?.onDestroy&&et.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),et}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const tt=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),tt}dispose(){const tt=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,tt&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(tt){tt!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=tt,this.hasAttached()&&(tt.attach(this),this.updatePosition()))}updateSize(tt){this._config={...this._config,...tt},this._updateElementSize()}setDirection(tt){this._config={...this._config,direction:tt},this._updateElementDirection()}addPanelClass(tt){this._pane&&this._toggleClasses(this._pane,tt,!0)}removePanelClass(tt){this._pane&&this._toggleClasses(this._pane,tt,!1)}getDirection(){const tt=this._config.direction;return tt?"string"==typeof tt?tt:tt.value:"ltr"}updateScrollStrategy(tt){tt!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=tt,this.hasAttached()&&(tt.attach(this),tt.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const tt=this._pane.style;tt.width=(0,T.HM)(this._config.width),tt.height=(0,T.HM)(this._config.height),tt.minWidth=(0,T.HM)(this._config.minWidth),tt.minHeight=(0,T.HM)(this._config.minHeight),tt.maxWidth=(0,T.HM)(this._config.maxWidth),tt.maxHeight=(0,T.HM)(this._config.maxHeight)}_togglePointerEvents(tt){this._pane.style.pointerEvents=tt?"":"none"}_attachBackdrop(){const tt="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(tt)})}):this._backdropElement.classList.add(tt)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const tt=this._backdropElement;if(tt){if(this._animationsDisabled)return void this._disposeBackdrop(tt);tt.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{tt.addEventListener("transitionend",this._backdropTransitionendHandler)}),tt.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(tt)},500))}}_toggleClasses(tt,et,Ct){const Bt=(0,T.Eq)(et||[]).filter(ne=>!!ne);Bt.length&&(Ct?tt.classList.add(...Bt):tt.classList.remove(...Bt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const tt=this._ngZone.onStable.pipe((0,I.R)((0,D.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),tt.unsubscribe())})})}_disposeScrollStrategy(){const tt=this._scrollStrategy;tt&&(tt.disable(),tt.detach&&tt.detach())}_disposeBackdrop(tt){tt&&(tt.removeEventListener("click",this._backdropClickHandler),tt.removeEventListener("transitionend",this._backdropTransitionendHandler),tt.remove(),this._backdropElement===tt&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const ze="cdk-overlay-connected-position-bounding-box",Xe=/([A-Za-z%]+)$/;class ie{constructor(tt,et,Ct,Bt,ne){this._viewportRuler=et,this._document=Ct,this._platform=Bt,this._overlayContainer=ne,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new w.xQ,this._resizeSubscription=k.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(tt)}get positions(){return this._preferredPositions}attach(tt){this._validatePositions(),tt.hostElement.classList.add(ze),this._overlayRef=tt,this._boundingBox=tt.hostElement,this._pane=tt.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const tt=this._originRect,et=this._overlayRect,Ct=this._viewportRect,Bt=this._containerRect,ne=[];let he;for(let Oe of this._preferredPositions){let yn=this._getOriginPoint(tt,Bt,Oe),On=this._getOverlayPoint(yn,et,Oe),_i=this._getOverlayFit(On,et,Ct,Oe);if(_i.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Oe,yn);this._canFitWithFlexibleDimensions(_i,On,Ct)?ne.push({position:Oe,origin:yn,overlayRect:et,boundingBoxRect:this._calculateBoundingBoxRect(yn,Oe)}):(!he||he.overlayFit.visibleArea<_i.visibleArea)&&(he={overlayFit:_i,overlayPoint:On,originPoint:yn,position:Oe,overlayRect:et})}if(ne.length){let Oe=null,yn=-1;for(const On of ne){const _i=On.boundingBoxRect.width*On.boundingBoxRect.height*(On.position.weight||1);_i>yn&&(yn=_i,Oe=On)}return this._isPushed=!1,void this._applyPosition(Oe.position,Oe.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(he.position,he.originPoint);this._applyPosition(he.position,he.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Te(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ze),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const tt=this._lastPosition;if(tt){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const et=this._getOriginPoint(this._originRect,this._containerRect,tt);this._applyPosition(tt,et)}else this.apply()}withScrollableContainers(tt){return this._scrollables=tt,this}withPositions(tt){return this._preferredPositions=tt,-1===tt.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(tt){return this._viewportMargin=tt,this}withFlexibleDimensions(tt=!0){return this._hasFlexibleDimensions=tt,this}withGrowAfterOpen(tt=!0){return this._growAfterOpen=tt,this}withPush(tt=!0){return this._canPush=tt,this}withLockedPosition(tt=!0){return this._positionLocked=tt,this}setOrigin(tt){return this._origin=tt,this}withDefaultOffsetX(tt){return this._offsetX=tt,this}withDefaultOffsetY(tt){return this._offsetY=tt,this}withTransformOriginOn(tt){return this._transformOriginSelector=tt,this}_getOriginPoint(tt,et,Ct){let Bt,ne;if("center"==Ct.originX)Bt=tt.left+tt.width/2;else{const he=this._isRtl()?tt.right:tt.left,Oe=this._isRtl()?tt.left:tt.right;Bt="start"==Ct.originX?he:Oe}return et.left<0&&(Bt-=et.left),ne="center"==Ct.originY?tt.top+tt.height/2:"top"==Ct.originY?tt.top:tt.bottom,et.top<0&&(ne-=et.top),{x:Bt,y:ne}}_getOverlayPoint(tt,et,Ct){let Bt,ne;return Bt="center"==Ct.overlayX?-et.width/2:"start"===Ct.overlayX?this._isRtl()?-et.width:0:this._isRtl()?0:-et.width,ne="center"==Ct.overlayY?-et.height/2:"top"==Ct.overlayY?0:-et.height,{x:tt.x+Bt,y:tt.y+ne}}_getOverlayFit(tt,et,Ct,Bt){const ne=ee(et);let{x:he,y:Oe}=tt,yn=this._getOffset(Bt,"x"),On=this._getOffset(Bt,"y");yn&&(he+=yn),On&&(Oe+=On);let ho=0-Oe,hi=Oe+ne.height-Ct.height,Vn=this._subtractOverflows(ne.width,0-he,he+ne.width-Ct.width),Gn=this._subtractOverflows(ne.height,ho,hi),je=Vn*Gn;return{visibleArea:je,isCompletelyWithinViewport:ne.width*ne.height===je,fitsInViewportVertically:Gn===ne.height,fitsInViewportHorizontally:Vn==ne.width}}_canFitWithFlexibleDimensions(tt,et,Ct){if(this._hasFlexibleDimensions){const Bt=Ct.bottom-et.y,ne=Ct.right-et.x,he=re(this._overlayRef.getConfig().minHeight),Oe=re(this._overlayRef.getConfig().minWidth),On=tt.fitsInViewportHorizontally||null!=Oe&&Oe<=ne;return(tt.fitsInViewportVertically||null!=he&&he<=Bt)&&On}return!1}_pushOverlayOnScreen(tt,et,Ct){if(this._previousPushAmount&&this._positionLocked)return{x:tt.x+this._previousPushAmount.x,y:tt.y+this._previousPushAmount.y};const Bt=ee(et),ne=this._viewportRect,he=Math.max(tt.x+Bt.width-ne.width,0),Oe=Math.max(tt.y+Bt.height-ne.height,0),yn=Math.max(ne.top-Ct.top-tt.y,0),On=Math.max(ne.left-Ct.left-tt.x,0);let _i=0,Si=0;return _i=Bt.width<=ne.width?On||-he:tt.xVn&&!this._isInitialRender&&!this._growAfterOpen&&(he=tt.y-Vn/2)}if("end"===et.overlayX&&!Bt||"start"===et.overlayX&&Bt)ho=Ct.width-tt.x+this._viewportMargin,_i=tt.x-this._viewportMargin;else if("start"===et.overlayX&&!Bt||"end"===et.overlayX&&Bt)Si=tt.x,_i=Ct.right-tt.x;else{const hi=Math.min(Ct.right-tt.x+Ct.left,tt.x),Vn=this._lastBoundingBoxSize.width;_i=2*hi,Si=tt.x-hi,_i>Vn&&!this._isInitialRender&&!this._growAfterOpen&&(Si=tt.x-Vn/2)}return{top:he,left:Si,bottom:Oe,right:ho,width:_i,height:ne}}_setBoundingBoxStyles(tt,et){const Ct=this._calculateBoundingBoxRect(tt,et);!this._isInitialRender&&!this._growAfterOpen&&(Ct.height=Math.min(Ct.height,this._lastBoundingBoxSize.height),Ct.width=Math.min(Ct.width,this._lastBoundingBoxSize.width));const Bt={};if(this._hasExactPosition())Bt.top=Bt.left="0",Bt.bottom=Bt.right=Bt.maxHeight=Bt.maxWidth="",Bt.width=Bt.height="100%";else{const ne=this._overlayRef.getConfig().maxHeight,he=this._overlayRef.getConfig().maxWidth;Bt.height=(0,T.HM)(Ct.height),Bt.top=(0,T.HM)(Ct.top),Bt.bottom=(0,T.HM)(Ct.bottom),Bt.width=(0,T.HM)(Ct.width),Bt.left=(0,T.HM)(Ct.left),Bt.right=(0,T.HM)(Ct.right),Bt.alignItems="center"===et.overlayX?"center":"end"===et.overlayX?"flex-end":"flex-start",Bt.justifyContent="center"===et.overlayY?"center":"bottom"===et.overlayY?"flex-end":"flex-start",ne&&(Bt.maxHeight=(0,T.HM)(ne)),he&&(Bt.maxWidth=(0,T.HM)(he))}this._lastBoundingBoxSize=Ct,Te(this._boundingBox.style,Bt)}_resetBoundingBoxStyles(){Te(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Te(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(tt,et){const Ct={},Bt=this._hasExactPosition(),ne=this._hasFlexibleDimensions,he=this._overlayRef.getConfig();if(Bt){const _i=this._viewportRuler.getViewportScrollPosition();Te(Ct,this._getExactOverlayY(et,tt,_i)),Te(Ct,this._getExactOverlayX(et,tt,_i))}else Ct.position="static";let Oe="",yn=this._getOffset(et,"x"),On=this._getOffset(et,"y");yn&&(Oe+=`translateX(${yn}px) `),On&&(Oe+=`translateY(${On}px)`),Ct.transform=Oe.trim(),he.maxHeight&&(Bt?Ct.maxHeight=(0,T.HM)(he.maxHeight):ne&&(Ct.maxHeight="")),he.maxWidth&&(Bt?Ct.maxWidth=(0,T.HM)(he.maxWidth):ne&&(Ct.maxWidth="")),Te(this._pane.style,Ct)}_getExactOverlayY(tt,et,Ct){let Bt={top:"",bottom:""},ne=this._getOverlayPoint(et,this._overlayRect,tt);return this._isPushed&&(ne=this._pushOverlayOnScreen(ne,this._overlayRect,Ct)),"bottom"===tt.overlayY?Bt.bottom=this._document.documentElement.clientHeight-(ne.y+this._overlayRect.height)+"px":Bt.top=(0,T.HM)(ne.y),Bt}_getExactOverlayX(tt,et,Ct){let he,Bt={left:"",right:""},ne=this._getOverlayPoint(et,this._overlayRect,tt);return this._isPushed&&(ne=this._pushOverlayOnScreen(ne,this._overlayRect,Ct)),he=this._isRtl()?"end"===tt.overlayX?"left":"right":"end"===tt.overlayX?"right":"left","right"===he?Bt.right=this._document.documentElement.clientWidth-(ne.x+this._overlayRect.width)+"px":Bt.left=(0,T.HM)(ne.x),Bt}_getScrollVisibility(){const tt=this._getOriginRect(),et=this._pane.getBoundingClientRect(),Ct=this._scrollables.map(Bt=>Bt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ht(tt,Ct),isOriginOutsideView:St(tt,Ct),isOverlayClipped:Ht(et,Ct),isOverlayOutsideView:St(et,Ct)}}_subtractOverflows(tt,...et){return et.reduce((Ct,Bt)=>Ct-Math.max(Bt,0),tt)}_getNarrowedViewportRect(){const tt=this._document.documentElement.clientWidth,et=this._document.documentElement.clientHeight,Ct=this._viewportRuler.getViewportScrollPosition();return{top:Ct.top+this._viewportMargin,left:Ct.left+this._viewportMargin,right:Ct.left+tt-this._viewportMargin,bottom:Ct.top+et-this._viewportMargin,width:tt-2*this._viewportMargin,height:et-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(tt,et){return"x"===et?tt.offsetX??this._offsetX:tt.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(tt){this._pane&&(0,T.Eq)(tt).forEach(et=>{""!==et&&-1===this._appliedPanelClasses.indexOf(et)&&(this._appliedPanelClasses.push(et),this._pane.classList.add(et))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(tt=>{this._pane.classList.remove(tt)}),this._appliedPanelClasses=[])}_getOriginRect(){const tt=this._origin;if(tt instanceof v.SBq)return tt.nativeElement.getBoundingClientRect();if(tt instanceof Element)return tt.getBoundingClientRect();const et=tt.width||0,Ct=tt.height||0;return{top:tt.y,bottom:tt.y+Ct,left:tt.x,right:tt.x+et,height:Ct,width:et}}}function Te(xt,tt){for(let et in tt)tt.hasOwnProperty(et)&&(xt[et]=tt[et]);return xt}function re(xt){if("number"!=typeof xt&&null!=xt){const[tt,et]=xt.split(Xe);return et&&"px"!==et?null:parseFloat(tt)}return xt||null}function ee(xt){return{top:Math.floor(xt.top),right:Math.floor(xt.right),bottom:Math.floor(xt.bottom),left:Math.floor(xt.left),width:Math.floor(xt.width),height:Math.floor(xt.height)}}const ce="cdk-global-overlay-wrapper";class Le{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(tt){const et=tt.getConfig();this._overlayRef=tt,this._width&&!et.width&&tt.updateSize({width:this._width}),this._height&&!et.height&&tt.updateSize({height:this._height}),tt.hostElement.classList.add(ce),this._isDisposed=!1}top(tt=""){return this._bottomOffset="",this._topOffset=tt,this._alignItems="flex-start",this}left(tt=""){return this._xOffset=tt,this._xPosition="left",this}bottom(tt=""){return this._topOffset="",this._bottomOffset=tt,this._alignItems="flex-end",this}right(tt=""){return this._xOffset=tt,this._xPosition="right",this}start(tt=""){return this._xOffset=tt,this._xPosition="start",this}end(tt=""){return this._xOffset=tt,this._xPosition="end",this}width(tt=""){return this._overlayRef?this._overlayRef.updateSize({width:tt}):this._width=tt,this}height(tt=""){return this._overlayRef?this._overlayRef.updateSize({height:tt}):this._height=tt,this}centerHorizontally(tt=""){return this.left(tt),this._xPosition="center",this}centerVertically(tt=""){return this.top(tt),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const tt=this._overlayRef.overlayElement.style,et=this._overlayRef.hostElement.style,Ct=this._overlayRef.getConfig(),{width:Bt,height:ne,maxWidth:he,maxHeight:Oe}=Ct,yn=!("100%"!==Bt&&"100vw"!==Bt||he&&"100%"!==he&&"100vw"!==he),On=!("100%"!==ne&&"100vh"!==ne||Oe&&"100%"!==Oe&&"100vh"!==Oe),_i=this._xPosition,Si=this._xOffset,ho="rtl"===this._overlayRef.getConfig().direction;let hi="",Vn="",Gn="";yn?Gn="flex-start":"center"===_i?(Gn="center",ho?Vn=Si:hi=Si):ho?"left"===_i||"end"===_i?(Gn="flex-end",hi=Si):("right"===_i||"start"===_i)&&(Gn="flex-start",Vn=Si):"left"===_i||"start"===_i?(Gn="flex-start",hi=Si):("right"===_i||"end"===_i)&&(Gn="flex-end",Vn=Si),tt.position=this._cssPosition,tt.marginLeft=yn?"0":hi,tt.marginTop=On?"0":this._topOffset,tt.marginBottom=this._bottomOffset,tt.marginRight=yn?"0":Vn,et.justifyContent=Gn,et.alignItems=On?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const tt=this._overlayRef.overlayElement.style,et=this._overlayRef.hostElement,Ct=et.style;et.classList.remove(ce),Ct.justifyContent=Ct.alignItems=tt.marginTop=tt.marginBottom=tt.marginLeft=tt.marginRight=tt.position="",this._overlayRef=null,this._isDisposed=!0}}let on=(()=>{class xt{constructor(et,Ct,Bt,ne){this._viewportRuler=et,this._document=Ct,this._platform=Bt,this._overlayContainer=ne}global(){return new Le}flexibleConnectedTo(et){return new ie(et,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return xt.\u0275fac=function(et){return new(et||xt)(v.LFG(d.rL),v.LFG(p.K0),v.LFG(t.t4),v.LFG(Ae))},xt.\u0275prov=v.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})(),hn=0,we=(()=>{class xt{constructor(et,Ct,Bt,ne,he,Oe,yn,On,_i,Si,ho,hi){this.scrollStrategies=et,this._overlayContainer=Ct,this._componentFactoryResolver=Bt,this._positionBuilder=ne,this._keyboardDispatcher=he,this._injector=Oe,this._ngZone=yn,this._document=On,this._directionality=_i,this._location=Si,this._outsideClickDispatcher=ho,this._animationsModuleType=hi}create(et){const Ct=this._createHostElement(),Bt=this._createPaneElement(Ct),ne=this._createPortalOutlet(Bt),he=new Zt(et);return he.direction=he.direction||this._directionality.value,new Ne(ne,Ct,Bt,he,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(et){const Ct=this._document.createElement("div");return Ct.id="cdk-overlay-"+hn++,Ct.classList.add("cdk-overlay-pane"),et.appendChild(Ct),Ct}_createHostElement(){const et=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(et),et}_createPortalOutlet(et){return this._appRef||(this._appRef=this._injector.get(v.z2F)),new x.u0(et,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return xt.\u0275fac=function(et){return new(et||xt)(v.LFG(at),v.LFG(Ae),v.LFG(v._Vd),v.LFG(on),v.LFG(Wt),v.LFG(v.zs3),v.LFG(v.R0b),v.LFG(p.K0),v.LFG(A.Is),v.LFG(p.Ye),v.LFG(Ce),v.LFG(v.QbO,8))},xt.\u0275prov=v.Yz7({token:xt,factory:xt.\u0275fac}),xt})();const bn=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ze=new v.OlP("cdk-connected-overlay-scroll-strategy");let dn=(()=>{class xt{constructor(et){this.elementRef=et}}return xt.\u0275fac=function(et){return new(et||xt)(v.Y36(v.SBq))},xt.\u0275dir=v.lG2({type:xt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),xt})(),kn=(()=>{class xt{constructor(et,Ct,Bt,ne,he){this._overlay=et,this._dir=he,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=k.w.EMPTY,this._attachSubscription=k.w.EMPTY,this._detachSubscription=k.w.EMPTY,this._positionSubscription=k.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new v.vpe,this.positionChange=new v.vpe,this.attach=new v.vpe,this.detach=new v.vpe,this.overlayKeydown=new v.vpe,this.overlayOutsideClick=new v.vpe,this._templatePortal=new x.UE(Ct,Bt),this._scrollStrategyFactory=ne,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(et){this._offsetX=et,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(et){this._offsetY=et,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(et){this._hasBackdrop=(0,T.Ig)(et)}get lockPosition(){return this._lockPosition}set lockPosition(et){this._lockPosition=(0,T.Ig)(et)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(et){this._flexibleDimensions=(0,T.Ig)(et)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(et){this._growAfterOpen=(0,T.Ig)(et)}get push(){return this._push}set push(et){this._push=(0,T.Ig)(et)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(et){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),et.origin&&this.open&&this._position.apply()),et.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=bn);const et=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=et.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=et.detachments().subscribe(()=>this.detach.emit()),et.keydownEvents().subscribe(Ct=>{this.overlayKeydown.next(Ct),Ct.keyCode===G.hY&&!this.disableClose&&!(0,G.Vb)(Ct)&&(Ct.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ct=>{this.overlayOutsideClick.next(Ct)})}_buildConfig(){const et=this._position=this.positionStrategy||this._createPositionStrategy(),Ct=new Zt({direction:this._dir,positionStrategy:et,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Ct.width=this.width),(this.height||0===this.height)&&(Ct.height=this.height),(this.minWidth||0===this.minWidth)&&(Ct.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ct.minHeight=this.minHeight),this.backdropClass&&(Ct.backdropClass=this.backdropClass),this.panelClass&&(Ct.panelClass=this.panelClass),Ct}_updatePositionStrategy(et){const Ct=this.positions.map(Bt=>({originX:Bt.originX,originY:Bt.originY,overlayX:Bt.overlayX,overlayY:Bt.overlayY,offsetX:Bt.offsetX||this.offsetX,offsetY:Bt.offsetY||this.offsetY,panelClass:Bt.panelClass||void 0}));return et.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Ct).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const et=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(et),et}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof dn?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(et=>{this.backdropClick.emit(et)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,z.o)(()=>this.positionChange.observers.length>0)).subscribe(et=>{this.positionChange.emit(et),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return xt.\u0275fac=function(et){return new(et||xt)(v.Y36(we),v.Y36(v.Rgc),v.Y36(v.s_b),v.Y36(Ze),v.Y36(A.Is,8))},xt.\u0275dir=v.lG2({type:xt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[v.TTD]}),xt})();const Ee={provide:Ze,deps:[we],useFactory:function ri(xt){return()=>xt.scrollStrategies.reposition()}};let Ft=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275mod=v.oAB({type:xt}),xt.\u0275inj=v.cJS({providers:[we,Ee],imports:[A.vT,x.eL,d.Cl,d.Cl]}),xt})()},83353:(rt,it,b)=>{"use strict";b.d(it,{Mq:()=>G,Oy:()=>Ht,_i:()=>W,ht:()=>Pt,i$:()=>P,kV:()=>gt,qK:()=>w,sA:()=>St,t4:()=>T,ud:()=>t});var d=b(94650),p=b(36895);let v;try{v=typeof Intl<"u"&&Intl.v8BreakIterator}catch{v=!1}let A,T=(()=>{class Jt{constructor(Zt){this._platformId=Zt,this.isBrowser=this._platformId?(0,p.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!v)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Jt.\u0275fac=function(Zt){return new(Zt||Jt)(d.LFG(d.Lbi))},Jt.\u0275prov=d.Yz7({token:Jt,factory:Jt.\u0275fac,providedIn:"root"}),Jt})(),t=(()=>{class Jt{}return Jt.\u0275fac=function(Zt){return new(Zt||Jt)},Jt.\u0275mod=d.oAB({type:Jt}),Jt.\u0275inj=d.cJS({}),Jt})();const x=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function w(){if(A)return A;if("object"!=typeof document||!document)return A=new Set(x),A;let Jt=document.createElement("input");return A=new Set(x.filter(at=>(Jt.setAttribute("type",at),Jt.type===at))),A}let k,I,z,ot;function P(Jt){return function D(){if(null==k&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>k=!0}))}finally{k=k||!1}return k}()?Jt:!!Jt.capture}function G(){if(null==z){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return z=!1,z;if("scrollBehavior"in document.documentElement.style)z=!0;else{const Jt=Element.prototype.scrollTo;z=!!Jt&&!/\{\s*\[native code\]\s*\}/.test(Jt.toString())}}return z}function W(){if("object"!=typeof document||!document)return 0;if(null==I){const Jt=document.createElement("div"),at=Jt.style;Jt.dir="rtl",at.width="1px",at.overflow="auto",at.visibility="hidden",at.pointerEvents="none",at.position="absolute";const Zt=document.createElement("div"),wt=Zt.style;wt.width="2px",wt.height="1px",Jt.appendChild(Zt),document.body.appendChild(Jt),I=0,0===Jt.scrollLeft&&(Jt.scrollLeft=1,I=0===Jt.scrollLeft?1:2),Jt.remove()}return I}function gt(Jt){if(function ct(){if(null==ot){const Jt=typeof document<"u"?document.head:null;ot=!(!Jt||!Jt.createShadowRoot&&!Jt.attachShadow)}return ot}()){const at=Jt.getRootNode?Jt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&at instanceof ShadowRoot)return at}return null}function Pt(){let Jt=typeof document<"u"&&document?document.activeElement:null;for(;Jt&&Jt.shadowRoot;){const at=Jt.shadowRoot.activeElement;if(at===Jt)break;Jt=at}return Jt}function St(Jt){return Jt.composedPath?Jt.composedPath()[0]:Jt.target}function Ht(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(rt,it,b)=>{"use strict";b.d(it,{C5:()=>D,Pl:()=>Pt,UE:()=>P,eL:()=>Ht,en:()=>z,ig:()=>ct,u0:()=>W});var d=b(94650),p=b(36895);class k{attach(Zt){return this._attachedHost=Zt,Zt.attach(this)}detach(){let Zt=this._attachedHost;null!=Zt&&(this._attachedHost=null,Zt.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Zt){this._attachedHost=Zt}}class D extends k{constructor(Zt,wt,_t,Nt){super(),this.component=Zt,this.viewContainerRef=wt,this.injector=_t,this.componentFactoryResolver=Nt}}class P extends k{constructor(Zt,wt,_t,Nt){super(),this.templateRef=Zt,this.viewContainerRef=wt,this.context=_t,this.injector=Nt}get origin(){return this.templateRef.elementRef}attach(Zt,wt=this.context){return this.context=wt,super.attach(Zt)}detach(){return this.context=void 0,super.detach()}}class I extends k{constructor(Zt){super(),this.element=Zt instanceof d.SBq?Zt.nativeElement:Zt}}class z{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Zt){return Zt instanceof D?(this._attachedPortal=Zt,this.attachComponentPortal(Zt)):Zt instanceof P?(this._attachedPortal=Zt,this.attachTemplatePortal(Zt)):this.attachDomPortal&&Zt instanceof I?(this._attachedPortal=Zt,this.attachDomPortal(Zt)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Zt){this._disposeFn=Zt}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class W extends z{constructor(Zt,wt,_t,Nt,Qt){super(),this.outletElement=Zt,this._componentFactoryResolver=wt,this._appRef=_t,this._defaultInjector=Nt,this.attachDomPortal=qt=>{const le=qt.element,Wt=this._document.createComment("dom-portal");le.parentNode.insertBefore(Wt,le),this.outletElement.appendChild(le),this._attachedPortal=qt,super.setDisposeFn(()=>{Wt.parentNode&&Wt.parentNode.replaceChild(le,Wt)})},this._document=Qt}attachComponentPortal(Zt){const _t=(Zt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Zt.component);let Nt;return Zt.viewContainerRef?(Nt=Zt.viewContainerRef.createComponent(_t,Zt.viewContainerRef.length,Zt.injector||Zt.viewContainerRef.injector),this.setDisposeFn(()=>Nt.destroy())):(Nt=_t.create(Zt.injector||this._defaultInjector||d.zs3.NULL),this._appRef.attachView(Nt.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Nt.hostView),Nt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Nt)),this._attachedPortal=Zt,Nt}attachTemplatePortal(Zt){let wt=Zt.viewContainerRef,_t=wt.createEmbeddedView(Zt.templateRef,Zt.context,{injector:Zt.injector});return _t.rootNodes.forEach(Nt=>this.outletElement.appendChild(Nt)),_t.detectChanges(),this.setDisposeFn(()=>{let Nt=wt.indexOf(_t);-1!==Nt&&wt.remove(Nt)}),this._attachedPortal=Zt,_t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Zt){return Zt.hostView.rootNodes[0]}}let ct=(()=>{class at extends P{constructor(wt,_t){super(wt,_t)}}return at.\u0275fac=function(wt){return new(wt||at)(d.Y36(d.Rgc),d.Y36(d.s_b))},at.\u0275dir=d.lG2({type:at,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[d.qOj]}),at})(),Pt=(()=>{class at extends z{constructor(wt,_t,Nt){super(),this._componentFactoryResolver=wt,this._viewContainerRef=_t,this._isInitialized=!1,this.attached=new d.vpe,this.attachDomPortal=Qt=>{const qt=Qt.element,le=this._document.createComment("dom-portal");Qt.setAttachedHost(this),qt.parentNode.insertBefore(le,qt),this._getRootNode().appendChild(qt),this._attachedPortal=Qt,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(qt,le)})},this._document=Nt}get portal(){return this._attachedPortal}set portal(wt){this.hasAttached()&&!wt&&!this._isInitialized||(this.hasAttached()&&super.detach(),wt&&super.attach(wt),this._attachedPortal=wt||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(wt){wt.setAttachedHost(this);const _t=null!=wt.viewContainerRef?wt.viewContainerRef:this._viewContainerRef,Qt=(wt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(wt.component),qt=_t.createComponent(Qt,_t.length,wt.injector||_t.injector);return _t!==this._viewContainerRef&&this._getRootNode().appendChild(qt.hostView.rootNodes[0]),super.setDisposeFn(()=>qt.destroy()),this._attachedPortal=wt,this._attachedRef=qt,this.attached.emit(qt),qt}attachTemplatePortal(wt){wt.setAttachedHost(this);const _t=this._viewContainerRef.createEmbeddedView(wt.templateRef,wt.context,{injector:wt.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=wt,this._attachedRef=_t,this.attached.emit(_t),_t}_getRootNode(){const wt=this._viewContainerRef.element.nativeElement;return wt.nodeType===wt.ELEMENT_NODE?wt:wt.parentNode}}return at.\u0275fac=function(wt){return new(wt||at)(d.Y36(d._Vd),d.Y36(d.s_b),d.Y36(p.K0))},at.\u0275dir=d.lG2({type:at,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[d.qOj]}),at})(),Ht=(()=>{class at{}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275mod=d.oAB({type:at}),at.\u0275inj=d.cJS({}),at})()},67376:(rt,it,b)=>{"use strict";b.d(it,{Cl:()=>Xe,PQ:()=>at,ZD:()=>ze,mF:()=>Jt,rL:()=>wt});var d=b(21281),p=b(94650),v=b(8929),T=b(21086),t=b(56498),A=b(23753),k=(b(90352),b(8139),b(57138)),D=b(92198),P=b(7625),I=b(83353),z=b(36895),G=b(40445);let Jt=(()=>{class ie{constructor(re,ee,ue){this._ngZone=re,this._platform=ee,this._scrolled=new v.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ue}register(re){this.scrollContainers.has(re)||this.scrollContainers.set(re,re.elementScrolled().subscribe(()=>this._scrolled.next(re)))}deregister(re){const ee=this.scrollContainers.get(re);ee&&(ee.unsubscribe(),this.scrollContainers.delete(re))}scrolled(re=20){return this._platform.isBrowser?new t.y(ee=>{this._globalSubscription||this._addGlobalListener();const ue=re>0?this._scrolled.pipe((0,k.e)(re)).subscribe(ee):this._scrolled.subscribe(ee);return this._scrolledCount++,()=>{ue.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,T.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((re,ee)=>this.deregister(ee)),this._scrolled.complete()}ancestorScrolled(re,ee){const ue=this.getAncestorScrollContainers(re);return this.scrolled(ee).pipe((0,D.h)(Kt=>!Kt||ue.indexOf(Kt)>-1))}getAncestorScrollContainers(re){const ee=[];return this.scrollContainers.forEach((ue,Kt)=>{this._scrollableContainsElement(Kt,re)&&ee.push(Kt)}),ee}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(re,ee){let ue=(0,d.fI)(ee),Kt=re.getElementRef().nativeElement;do{if(ue==Kt)return!0}while(ue=ue.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const re=this._getWindow();return(0,A.R)(re.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ie.\u0275fac=function(re){return new(re||ie)(p.LFG(p.R0b),p.LFG(I.t4),p.LFG(z.K0,8))},ie.\u0275prov=p.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),at=(()=>{class ie{constructor(re,ee,ue,Kt){this.elementRef=re,this.scrollDispatcher=ee,this.ngZone=ue,this.dir=Kt,this._destroyed=new v.xQ,this._elementScrolled=new t.y(ce=>this.ngZone.runOutsideAngular(()=>(0,A.R)(this.elementRef.nativeElement,"scroll").pipe((0,P.R)(this._destroyed)).subscribe(ce)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(re){const ee=this.elementRef.nativeElement,ue=this.dir&&"rtl"==this.dir.value;null==re.left&&(re.left=ue?re.end:re.start),null==re.right&&(re.right=ue?re.start:re.end),null!=re.bottom&&(re.top=ee.scrollHeight-ee.clientHeight-re.bottom),ue&&0!=(0,I._i)()?(null!=re.left&&(re.right=ee.scrollWidth-ee.clientWidth-re.left),2==(0,I._i)()?re.left=re.right:1==(0,I._i)()&&(re.left=re.right?-re.right:re.right)):null!=re.right&&(re.left=ee.scrollWidth-ee.clientWidth-re.right),this._applyScrollToOptions(re)}_applyScrollToOptions(re){const ee=this.elementRef.nativeElement;(0,I.Mq)()?ee.scrollTo(re):(null!=re.top&&(ee.scrollTop=re.top),null!=re.left&&(ee.scrollLeft=re.left))}measureScrollOffset(re){const ee="left",Kt=this.elementRef.nativeElement;if("top"==re)return Kt.scrollTop;if("bottom"==re)return Kt.scrollHeight-Kt.clientHeight-Kt.scrollTop;const ce=this.dir&&"rtl"==this.dir.value;return"start"==re?re=ce?"right":ee:"end"==re&&(re=ce?ee:"right"),ce&&2==(0,I._i)()?re==ee?Kt.scrollWidth-Kt.clientWidth-Kt.scrollLeft:Kt.scrollLeft:ce&&1==(0,I._i)()?re==ee?Kt.scrollLeft+Kt.scrollWidth-Kt.clientWidth:-Kt.scrollLeft:re==ee?Kt.scrollLeft:Kt.scrollWidth-Kt.clientWidth-Kt.scrollLeft}}return ie.\u0275fac=function(re){return new(re||ie)(p.Y36(p.SBq),p.Y36(Jt),p.Y36(p.R0b),p.Y36(G.Is,8))},ie.\u0275dir=p.lG2({type:ie,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),ie})(),wt=(()=>{class ie{constructor(re,ee,ue){this._platform=re,this._change=new v.xQ,this._changeListener=Kt=>{this._change.next(Kt)},this._document=ue,ee.runOutsideAngular(()=>{if(re.isBrowser){const Kt=this._getWindow();Kt.addEventListener("resize",this._changeListener),Kt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const re=this._getWindow();re.removeEventListener("resize",this._changeListener),re.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const re={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),re}getViewportRect(){const re=this.getViewportScrollPosition(),{width:ee,height:ue}=this.getViewportSize();return{top:re.top,left:re.left,bottom:re.top+ue,right:re.left+ee,height:ue,width:ee}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const re=this._document,ee=this._getWindow(),ue=re.documentElement,Kt=ue.getBoundingClientRect();return{top:-Kt.top||re.body.scrollTop||ee.scrollY||ue.scrollTop||0,left:-Kt.left||re.body.scrollLeft||ee.scrollX||ue.scrollLeft||0}}change(re=20){return re>0?this._change.pipe((0,k.e)(re)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const re=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:re.innerWidth,height:re.innerHeight}:{width:0,height:0}}}return ie.\u0275fac=function(re){return new(re||ie)(p.LFG(I.t4),p.LFG(p.R0b),p.LFG(z.K0,8))},ie.\u0275prov=p.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),ze=(()=>{class ie{}return ie.\u0275fac=function(re){return new(re||ie)},ie.\u0275mod=p.oAB({type:ie}),ie.\u0275inj=p.cJS({}),ie})(),Xe=(()=>{class ie{}return ie.\u0275fac=function(re){return new(re||ie)},ie.\u0275mod=p.oAB({type:ie}),ie.\u0275inj=p.cJS({imports:[G.vT,ze,G.vT,ze]}),ie})()},12138:(rt,it,b)=>{"use strict";b.d(it,{B8:()=>St,KL:()=>z,U5:()=>at,be:()=>Pt,gx:()=>gt,po:()=>Jt,st:()=>Ht,u6:()=>G});var d=b(12687),p=b(40445),v=b(21281),T=b(29521),t=b(94650),A=b(83353),x=b(8929),w=b(21086),k=b(1059),D=b(7625);function P(Zt,wt){1&Zt&&t.Hsn(0)}const I=["*"];let z=(()=>{class Zt{constructor(_t){this._elementRef=_t}focus(){this._elementRef.nativeElement.focus()}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(t.Y36(t.SBq))},Zt.\u0275dir=t.lG2({type:Zt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Zt})(),G=(()=>{class Zt{constructor(_t){this.template=_t}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(t.Y36(t.Rgc))},Zt.\u0275dir=t.lG2({type:Zt,selectors:[["","cdkStepLabel",""]]}),Zt})(),W=0;const gt=new t.OlP("STEPPER_GLOBAL_OPTIONS");let Pt=(()=>{class Zt{constructor(_t,Nt){this._stepper=_t,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Nt||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(_t){this._editable=(0,v.Ig)(_t)}get optional(){return this._optional}set optional(_t){this._optional=(0,v.Ig)(_t)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(_t){this._completedOverride=(0,v.Ig)(_t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(_t){this._customError=(0,v.Ig)(_t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(t.Y36((0,t.Gpc)(()=>St)),t.Y36(gt,8))},Zt.\u0275cmp=t.Xpm({type:Zt,selectors:[["cdk-step"]],contentQueries:function(_t,Nt,Qt){if(1&_t&&t.Suo(Qt,G,5),2&_t){let qt;t.iGM(qt=t.CRH())&&(Nt.stepLabel=qt.first)}},viewQuery:function(_t,Nt){if(1&_t&&t.Gf(t.Rgc,7),2&_t){let Qt;t.iGM(Qt=t.CRH())&&(Nt.content=Qt.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[t.TTD],ngContentSelectors:I,decls:1,vars:0,template:function(_t,Nt){1&_t&&(t.F$t(),t.YNc(0,P,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Zt})(),St=(()=>{class Zt{constructor(_t,Nt,Qt){this._dir=_t,this._changeDetectorRef=Nt,this._elementRef=Qt,this._destroyed=new x.xQ,this.steps=new t.n_E,this._sortedHeaders=new t.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new t.vpe,this._orientation="horizontal",this._groupId=W++}get linear(){return this._linear}set linear(_t){this._linear=(0,v.Ig)(_t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(_t){const Nt=(0,v.su)(_t);this.steps&&this._steps?(this._isValidIndex(Nt),this.selected?._markAsInteracted(),this._selectedIndex!==Nt&&!this._anyControlsInvalidOrPending(Nt)&&(Nt>=this._selectedIndex||this.steps.toArray()[Nt].editable)&&this._updateSelectedItemIndex(Nt)):this._selectedIndex=Nt}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(_t){this.selectedIndex=_t&&this.steps?this.steps.toArray().indexOf(_t):-1}get orientation(){return this._orientation}set orientation(_t){this._orientation=_t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===_t)}ngAfterContentInit(){this._steps.changes.pipe((0,k.O)(this._steps),(0,D.R)(this._destroyed)).subscribe(_t=>{this.steps.reset(_t.filter(Nt=>Nt._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,k.O)(this._stepHeader),(0,D.R)(this._destroyed)).subscribe(_t=>{this._sortedHeaders.reset(_t.toArray().sort((Nt,Qt)=>Nt._elementRef.nativeElement.compareDocumentPosition(Qt._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new d.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,w.of)()).pipe((0,k.O)(this._layoutDirection()),(0,D.R)(this._destroyed)).subscribe(_t=>this._keyManager.withHorizontalOrientation(_t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(_t=>_t.reset()),this._stateChanged()}_getStepLabelId(_t){return`cdk-step-label-${this._groupId}-${_t}`}_getStepContentId(_t){return`cdk-step-content-${this._groupId}-${_t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(_t){const Nt=_t-this._selectedIndex;return Nt<0?"rtl"===this._layoutDirection()?"next":"previous":Nt>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(_t,Nt="number"){const Qt=this.steps.toArray()[_t],qt=this._isCurrentStep(_t);return Qt._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Qt,qt):this._getGuidelineLogic(Qt,qt,Nt)}_getDefaultIndicatorLogic(_t,Nt){return _t._showError()&&_t.hasError&&!Nt?"error":!_t.completed||Nt?"number":_t.editable?"edit":"done"}_getGuidelineLogic(_t,Nt,Qt="number"){return _t._showError()&&_t.hasError&&!Nt?"error":_t.completed&&!Nt?"done":_t.completed&&Nt?Qt:_t.editable&&Nt?"edit":Qt}_isCurrentStep(_t){return this._selectedIndex===_t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(_t){const Nt=this.steps.toArray();this.selectionChange.emit({selectedIndex:_t,previouslySelectedIndex:this._selectedIndex,selectedStep:Nt[_t],previouslySelectedStep:Nt[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(_t):this._keyManager.updateActiveItem(_t),this._selectedIndex=_t,this._stateChanged()}_onKeydown(_t){const Nt=(0,T.Vb)(_t),Qt=_t.keyCode,qt=this._keyManager;null==qt.activeItemIndex||Nt||Qt!==T.L_&&Qt!==T.K5?qt.onKeydown(_t):(this.selectedIndex=qt.activeItemIndex,_t.preventDefault())}_anyControlsInvalidOrPending(_t){return!!(this._linear&&_t>=0)&&this.steps.toArray().slice(0,_t).some(Nt=>{const Qt=Nt.stepControl;return(Qt?Qt.invalid||Qt.pending||!Nt.interacted:!Nt.completed)&&!Nt.optional&&!Nt._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const _t=this._elementRef.nativeElement,Nt=(0,A.ht)();return _t===Nt||_t.contains(Nt)}_isValidIndex(_t){return _t>-1&&(!this.steps||_t{class Zt{constructor(_t){this._stepper=_t,this.type="submit"}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(t.Y36(St))},Zt.\u0275dir=t.lG2({type:Zt,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(_t,Nt){1&_t&&t.NdJ("click",function(){return Nt._stepper.next()}),2&_t&&t.Ikx("type",Nt.type)},inputs:{type:"type"}}),Zt})(),Jt=(()=>{class Zt{constructor(_t){this._stepper=_t,this.type="button"}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(t.Y36(St))},Zt.\u0275dir=t.lG2({type:Zt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(_t,Nt){1&_t&&t.NdJ("click",function(){return Nt._stepper.previous()}),2&_t&&t.Ikx("type",Nt.type)},inputs:{type:"type"}}),Zt})(),at=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275mod=t.oAB({type:Zt}),Zt.\u0275inj=t.cJS({imports:[p.vT]}),Zt})()},39349:(rt,it,b)=>{"use strict";b.d(it,{IC:()=>z,Ky:()=>G,Lq:()=>P});var d=b(83353),p=b(94650),v=b(21281),T=b(68896),t=b(8929),A=b(23753),x=b(57138),w=b(7625),k=b(36895);const D=(0,d.i$)({passive:!0});let P=(()=>{class W{constructor(ct,gt){this._platform=ct,this._ngZone=gt,this._monitoredElements=new Map}monitor(ct){if(!this._platform.isBrowser)return T.E;const gt=(0,v.fI)(ct),Pt=this._monitoredElements.get(gt);if(Pt)return Pt.subject;const St=new t.xQ,Ht="cdk-text-field-autofilled",Jt=at=>{"cdk-text-field-autofill-start"!==at.animationName||gt.classList.contains(Ht)?"cdk-text-field-autofill-end"===at.animationName&>.classList.contains(Ht)&&(gt.classList.remove(Ht),this._ngZone.run(()=>St.next({target:at.target,isAutofilled:!1}))):(gt.classList.add(Ht),this._ngZone.run(()=>St.next({target:at.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{gt.addEventListener("animationstart",Jt,D),gt.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(gt,{subject:St,unlisten:()=>{gt.removeEventListener("animationstart",Jt,D)}}),St}stopMonitoring(ct){const gt=(0,v.fI)(ct),Pt=this._monitoredElements.get(gt);Pt&&(Pt.unlisten(),Pt.subject.complete(),gt.classList.remove("cdk-text-field-autofill-monitored"),gt.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(gt))}ngOnDestroy(){this._monitoredElements.forEach((ct,gt)=>this.stopMonitoring(gt))}}return W.\u0275fac=function(ct){return new(ct||W)(p.LFG(d.t4),p.LFG(p.R0b))},W.\u0275prov=p.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})(),z=(()=>{class W{constructor(ct,gt,Pt,St){this._elementRef=ct,this._platform=gt,this._ngZone=Pt,this._destroyed=new t.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=Ht=>{this._hasFocus="focus"===Ht.type},this._document=St,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(ct){this._minRows=(0,v.su)(ct),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(ct){this._maxRows=(0,v.su)(ct),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(ct){ct=(0,v.Ig)(ct),this._enabled!==ct&&((this._enabled=ct)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(ct){this._cachedPlaceholderHeight=void 0,ct?this._textareaElement.setAttribute("placeholder",ct):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const ct=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;ct&&(this._textareaElement.style.minHeight=ct)}_setMaxHeight(){const ct=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;ct&&(this._textareaElement.style.maxHeight=ct)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const ct=this._getWindow();(0,A.R)(ct,"resize").pipe((0,x.e)(16),(0,w.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let ct=this._textareaElement.cloneNode(!1);ct.rows=1,ct.style.position="absolute",ct.style.visibility="hidden",ct.style.border="none",ct.style.padding="0",ct.style.height="",ct.style.minHeight="",ct.style.maxHeight="",ct.style.overflow="hidden",this._textareaElement.parentNode.appendChild(ct),this._cachedLineHeight=ct.clientHeight,ct.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const ct=this._textareaElement,gt=ct.style.marginBottom||"",Pt=this._platform.FIREFOX,St=Pt&&this._hasFocus,Ht=Pt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";St&&(ct.style.marginBottom=`${ct.clientHeight}px`),ct.classList.add(Ht);const Jt=ct.scrollHeight-4;return ct.classList.remove(Ht),St&&(ct.style.marginBottom=gt),Jt}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const ct=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=ct}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(ct=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const gt=this._elementRef.nativeElement,Pt=gt.value;if(!ct&&this._minRows===this._previousMinRows&&Pt===this._previousValue)return;const St=this._measureScrollHeight(),Ht=Math.max(St,this._cachedPlaceholderHeight||0);gt.style.height=`${Ht}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(gt)):setTimeout(()=>this._scrollToCaretPosition(gt))}),this._previousValue=Pt,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(ct){const{selectionStart:gt,selectionEnd:Pt}=ct;!this._destroyed.isStopped&&this._hasFocus&&ct.setSelectionRange(gt,Pt)}}return W.\u0275fac=function(ct){return new(ct||W)(p.Y36(p.SBq),p.Y36(d.t4),p.Y36(p.R0b),p.Y36(k.K0,8))},W.\u0275dir=p.lG2({type:W,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(ct,gt){1&ct&&p.NdJ("input",function(){return gt._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),W})(),G=(()=>{class W{}return W.\u0275fac=function(ct){return new(ct||W)},W.\u0275mod=p.oAB({type:W}),W.\u0275inj=p.cJS({}),W})()},57851:(rt,it,b)=>{"use strict";b.d(it,{C2:()=>z,HI:()=>W,Hs:()=>wt,Ud:()=>Wt,VY:()=>G,XJ:()=>le,Xx:()=>Qt,_0:()=>Zt,cu:()=>ot,nZ:()=>Ae,rO:()=>gt});var d=b(95017),p=b(54715),v=b(8929),T=b(591),t=b(21086),A=b(72986),x=b(92198),w=b(7625),k=b(94650),D=b(21281),P=b(40445);class I{constructor(){this.expansionModel=new d.Ov(!0)}toggle(ze){this.expansionModel.toggle(this._trackByValue(ze))}expand(ze){this.expansionModel.select(this._trackByValue(ze))}collapse(ze){this.expansionModel.deselect(this._trackByValue(ze))}isExpanded(ze){return this.expansionModel.isSelected(this._trackByValue(ze))}toggleDescendants(ze){this.expansionModel.isSelected(this._trackByValue(ze))?this.collapseDescendants(ze):this.expandDescendants(ze)}collapseAll(){this.expansionModel.clear()}expandDescendants(ze){let Xe=[ze];Xe.push(...this.getDescendants(ze)),this.expansionModel.select(...Xe.map(ie=>this._trackByValue(ie)))}collapseDescendants(ze){let Xe=[ze];Xe.push(...this.getDescendants(ze)),this.expansionModel.deselect(...Xe.map(ie=>this._trackByValue(ie)))}_trackByValue(ze){return this.trackBy?this.trackBy(ze):ze}}class z extends I{constructor(ze,Xe,ie){super(),this.getLevel=ze,this.isExpandable=Xe,this.options=ie,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(ze){const ie=[];for(let Te=this.dataNodes.indexOf(ze)+1;Tethis._trackByValue(ze)))}}class G extends I{constructor(ze,Xe){super(),this.getChildren=ze,this.options=Xe,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const ze=this.dataNodes.reduce((Xe,ie)=>[...Xe,...this.getDescendants(ie),ie],[]);this.expansionModel.select(...ze.map(Xe=>this._trackByValue(Xe)))}getDescendants(ze){const Xe=[];return this._getDescendants(Xe,ze),Xe.splice(1)}_getDescendants(ze,Xe){ze.push(Xe);const ie=this.getChildren(Xe);Array.isArray(ie)?ie.forEach(Te=>this._getDescendants(ze,Te)):(0,p.b)(ie)&&ie.pipe((0,A.q)(1),(0,x.h)(Boolean)).subscribe(Te=>{for(const re of Te)this._getDescendants(ze,re)})}}const W=new k.OlP("CDK_TREE_NODE_OUTLET_NODE");let ot=(()=>{class Ne{constructor(Xe,ie){this.viewContainer=Xe,this._node=ie}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(k.s_b),k.Y36(W,8))},Ne.\u0275dir=k.lG2({type:Ne,selectors:[["","cdkTreeNodeOutlet",""]]}),Ne})();class ct{constructor(ze){this.$implicit=ze}}let gt=(()=>{class Ne{constructor(Xe){this.template=Xe}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(k.Rgc))},Ne.\u0275dir=k.lG2({type:Ne,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Ne})(),Zt=(()=>{class Ne{constructor(Xe,ie){this._differs=Xe,this._changeDetectorRef=ie,this._onDestroy=new v.xQ,this._levels=new Map,this.viewChange=new T.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(Xe){this._dataSource!==Xe&&this._switchDataSource(Xe)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const Xe=this._nodeDefs.filter(ie=>!ie.when);this._defaultNodeDef=Xe[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(Xe){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),Xe||this._nodeOutlet.viewContainer.clear(),this._dataSource=Xe,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let Xe;(0,d.Z9)(this._dataSource)?Xe=this._dataSource.connect(this):(0,p.b)(this._dataSource)?Xe=this._dataSource:Array.isArray(this._dataSource)&&(Xe=(0,t.of)(this._dataSource)),Xe&&(this._dataSubscription=Xe.pipe((0,w.R)(this._onDestroy)).subscribe(ie=>this.renderNodeChanges(ie)))}renderNodeChanges(Xe,ie=this._dataDiffer,Te=this._nodeOutlet.viewContainer,re){const ee=ie.diff(Xe);!ee||(ee.forEachOperation((ue,Kt,ce)=>{if(null==ue.previousIndex)this.insertNode(Xe[ce],ce,Te,re);else if(null==ce)Te.remove(Kt),this._levels.delete(ue.item);else{const Le=Te.get(Kt);Te.move(Le,ce)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(Xe,ie){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(re=>re.when&&re.when(ie,Xe))||this._defaultNodeDef}insertNode(Xe,ie,Te,re){const ee=this._getNodeDef(Xe,ie),ue=new ct(Xe);ue.level=this.treeControl.getLevel?this.treeControl.getLevel(Xe):typeof re<"u"&&this._levels.has(re)?this._levels.get(re)+1:0,this._levels.set(Xe,ue.level),(Te||this._nodeOutlet.viewContainer).createEmbeddedView(ee.template,ue,ie),wt.mostRecentTreeNode&&(wt.mostRecentTreeNode.data=Xe)}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(k.ZZ4),k.Y36(k.sBO))},Ne.\u0275cmp=k.Xpm({type:Ne,selectors:[["cdk-tree"]],contentQueries:function(Xe,ie,Te){if(1&Xe&&k.Suo(Te,gt,5),2&Xe){let re;k.iGM(re=k.CRH())&&(ie._nodeDefs=re)}},viewQuery:function(Xe,ie){if(1&Xe&&k.Gf(ot,7),2&Xe){let Te;k.iGM(Te=k.CRH())&&(ie._nodeOutlet=Te.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(Xe,ie){1&Xe&&k.GkF(0,0)},dependencies:[ot],encapsulation:2}),Ne})(),wt=(()=>{class Ne{constructor(Xe,ie){this._elementRef=Xe,this._tree=ie,this._destroyed=new v.xQ,this._dataChanges=new v.xQ,Ne.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(Xe){this._elementRef.nativeElement.setAttribute("role",Xe)}get data(){return this._data}set data(Xe){Xe!==this._data&&(this._data=Xe,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function _t(Ne){let ze=Ne.parentElement;for(;ze&&!Nt(ze);)ze=ze.parentElement;return ze?ze.classList.contains("cdk-nested-tree-node")?(0,D.su)(ze.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Ne.mostRecentTreeNode===this&&(Ne.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Ne.mostRecentTreeNode=null,Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(k.SBq),k.Y36(Zt))},Ne.\u0275dir=k.lG2({type:Ne,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(Xe,ie){2&Xe&&k.uIk("aria-expanded",ie.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Ne})();function Nt(Ne){const ze=Ne.classList;return!(!ze?.contains("cdk-nested-tree-node")&&!ze?.contains("cdk-tree"))}let Qt=(()=>{class Ne extends wt{constructor(Xe,ie,Te){super(Xe,ie),this._differs=Te}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const Xe=this._tree.treeControl.getChildren(this.data);Array.isArray(Xe)?this.updateChildrenNodes(Xe):(0,p.b)(Xe)&&Xe.pipe((0,w.R)(this._destroyed)).subscribe(ie=>this.updateChildrenNodes(ie)),this.nodeOutlet.changes.pipe((0,w.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(Xe){const ie=this._getNodeOutlet();Xe&&(this._children=Xe),ie&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,ie.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const Xe=this._getNodeOutlet();Xe&&(Xe.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const Xe=this.nodeOutlet;return Xe&&Xe.find(ie=>!ie._node||ie._node===this)}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(k.SBq),k.Y36(Zt),k.Y36(k.ZZ4))},Ne.\u0275dir=k.lG2({type:Ne,selectors:[["cdk-nested-tree-node"]],contentQueries:function(Xe,ie,Te){if(1&Xe&&k.Suo(Te,ot,5),2&Xe){let re;k.iGM(re=k.CRH())&&(ie.nodeOutlet=re)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[k._Bn([{provide:wt,useExisting:Ne},{provide:W,useExisting:Ne}]),k.qOj]}),Ne})();const qt=/([A-Za-z%]+)$/;let le=(()=>{class Ne{constructor(Xe,ie,Te,re){this._treeNode=Xe,this._tree=ie,this._element=Te,this._dir=re,this._destroyed=new v.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),re&&re.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),Xe._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(Xe){this._setLevelInput(Xe)}get indent(){return this._indent}set indent(Xe){this._setIndentInput(Xe)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const Xe=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,ie=this._level??Xe;return"number"==typeof ie?`${ie*this._indent}${this.indentUnits}`:null}_setPadding(Xe=!1){const ie=this._paddingIndent();if(ie!==this._currentPadding||Xe){const Te=this._element.nativeElement,re=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",ee="paddingLeft"===re?"paddingRight":"paddingLeft";Te.style[re]=ie||"",Te.style[ee]="",this._currentPadding=ie}}_setLevelInput(Xe){this._level=(0,D.su)(Xe,null),this._setPadding()}_setIndentInput(Xe){let ie=Xe,Te="px";if("string"==typeof Xe){const re=Xe.split(qt);ie=re[0],Te=re[1]||Te}this.indentUnits=Te,this._indent=(0,D.su)(ie),this._setPadding()}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(wt),k.Y36(Zt),k.Y36(k.SBq),k.Y36(P.Is,8))},Ne.\u0275dir=k.lG2({type:Ne,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Ne})(),Wt=(()=>{class Ne{constructor(Xe,ie){this._tree=Xe,this._treeNode=ie,this._recursive=!1}get recursive(){return this._recursive}set recursive(Xe){this._recursive=(0,D.Ig)(Xe)}_toggle(Xe){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),Xe.stopPropagation()}}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)(k.Y36(Zt),k.Y36(wt))},Ne.\u0275dir=k.lG2({type:Ne,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(Xe,ie){1&Xe&&k.NdJ("click",function(re){return ie._toggle(re)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Ne})(),Ae=(()=>{class Ne{}return Ne.\u0275fac=function(Xe){return new(Xe||Ne)},Ne.\u0275mod=k.oAB({type:Ne}),Ne.\u0275inj=k.cJS({}),Ne})()},36895:(rt,it,b)=>{"use strict";b.d(it,{Do:()=>St,ED:()=>Sc,EM:()=>Gc,H9:()=>Bl,HT:()=>t,JF:()=>Ps,JJ:()=>zl,K0:()=>x,Mx:()=>zn,NF:()=>bu,Nd:()=>jc,O5:()=>dr,Ov:()=>Al,PC:()=>Qr,PM:()=>Dr,RF:()=>Pc,S$:()=>ct,V_:()=>D,Ye:()=>Ht,b0:()=>Pt,bD:()=>xc,ez:()=>Yl,i8:()=>Oc,mk:()=>Gi,n9:()=>rl,q:()=>v,qS:()=>Je,rS:()=>Yc,sg:()=>or,tP:()=>Ns,uU:()=>yl,w_:()=>A,xG:()=>Ea});var d=b(94650);let p=null;function v(){return p}function t(Lt){p||(p=Lt)}class A{}const x=new d.OlP("DocumentToken");let w=(()=>{class Lt{historyGo($t){throw new Error("Not implemented")}}return Lt.\u0275fac=function($t){return new($t||Lt)},Lt.\u0275prov=d.Yz7({token:Lt,factory:function(){return function k(){return(0,d.LFG)(P)}()},providedIn:"platform"}),Lt})();const D=new d.OlP("Location Initialized");let P=(()=>{class Lt extends w{constructor($t){super(),this._doc=$t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState($t){const Ke=v().getGlobalEventTarget(this._doc,"window");return Ke.addEventListener("popstate",$t,!1),()=>Ke.removeEventListener("popstate",$t)}onHashChange($t){const Ke=v().getGlobalEventTarget(this._doc,"window");return Ke.addEventListener("hashchange",$t,!1),()=>Ke.removeEventListener("hashchange",$t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname($t){this.location.pathname=$t}pushState($t,Ke,In){I()?this._history.pushState($t,Ke,In):this.location.hash=In}replaceState($t,Ke,In){I()?this._history.replaceState($t,Ke,In):this.location.hash=In}forward(){this._history.forward()}back(){this._history.back()}historyGo($t=0){this._history.go($t)}getState(){return this._history.state}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.LFG(x))},Lt.\u0275prov=d.Yz7({token:Lt,factory:function(){return function z(){return new P((0,d.LFG)(x))}()},providedIn:"platform"}),Lt})();function I(){return!!window.history.pushState}function G(Lt,fe){if(0==Lt.length)return fe;if(0==fe.length)return Lt;let $t=0;return Lt.endsWith("/")&&$t++,fe.startsWith("/")&&$t++,2==$t?Lt+fe.substring(1):1==$t?Lt+fe:Lt+"/"+fe}function W(Lt){const fe=Lt.match(/#|\?|$/),$t=fe&&fe.index||Lt.length;return Lt.slice(0,$t-("/"===Lt[$t-1]?1:0))+Lt.slice($t)}function ot(Lt){return Lt&&"?"!==Lt[0]?"?"+Lt:Lt}let ct=(()=>{class Lt{historyGo($t){throw new Error("Not implemented")}}return Lt.\u0275fac=function($t){return new($t||Lt)},Lt.\u0275prov=d.Yz7({token:Lt,factory:function(){return(0,d.f3M)(Pt)},providedIn:"root"}),Lt})();const gt=new d.OlP("appBaseHref");let Pt=(()=>{class Lt extends ct{constructor($t,Ke){super(),this._platformLocation=$t,this._removeListenerFns=[],this._baseHref=Ke??this._platformLocation.getBaseHrefFromDOM()??(0,d.f3M)(x).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState($t){this._removeListenerFns.push(this._platformLocation.onPopState($t),this._platformLocation.onHashChange($t))}getBaseHref(){return this._baseHref}prepareExternalUrl($t){return G(this._baseHref,$t)}path($t=!1){const Ke=this._platformLocation.pathname+ot(this._platformLocation.search),In=this._platformLocation.hash;return In&&$t?`${Ke}${In}`:Ke}pushState($t,Ke,In,Rt){const de=this.prepareExternalUrl(In+ot(Rt));this._platformLocation.pushState($t,Ke,de)}replaceState($t,Ke,In,Rt){const de=this.prepareExternalUrl(In+ot(Rt));this._platformLocation.replaceState($t,Ke,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo($t=0){this._platformLocation.historyGo?.($t)}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.LFG(w),d.LFG(gt,8))},Lt.\u0275prov=d.Yz7({token:Lt,factory:Lt.\u0275fac,providedIn:"root"}),Lt})(),St=(()=>{class Lt extends ct{constructor($t,Ke){super(),this._platformLocation=$t,this._baseHref="",this._removeListenerFns=[],null!=Ke&&(this._baseHref=Ke)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState($t){this._removeListenerFns.push(this._platformLocation.onPopState($t),this._platformLocation.onHashChange($t))}getBaseHref(){return this._baseHref}path($t=!1){let Ke=this._platformLocation.hash;return null==Ke&&(Ke="#"),Ke.length>0?Ke.substring(1):Ke}prepareExternalUrl($t){const Ke=G(this._baseHref,$t);return Ke.length>0?"#"+Ke:Ke}pushState($t,Ke,In,Rt){let de=this.prepareExternalUrl(In+ot(Rt));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.pushState($t,Ke,de)}replaceState($t,Ke,In,Rt){let de=this.prepareExternalUrl(In+ot(Rt));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.replaceState($t,Ke,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo($t=0){this._platformLocation.historyGo?.($t)}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.LFG(w),d.LFG(gt,8))},Lt.\u0275prov=d.Yz7({token:Lt,factory:Lt.\u0275fac}),Lt})(),Ht=(()=>{class Lt{constructor($t){this._subject=new d.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=$t;const Ke=this._locationStrategy.getBaseHref();this._baseHref=W(Zt(Ke)),this._locationStrategy.onPopState(In=>{this._subject.emit({url:this.path(!0),pop:!0,state:In.state,type:In.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path($t=!1){return this.normalize(this._locationStrategy.path($t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo($t,Ke=""){return this.path()==this.normalize($t+ot(Ke))}normalize($t){return Lt.stripTrailingSlash(function at(Lt,fe){return Lt&&fe.startsWith(Lt)?fe.substring(Lt.length):fe}(this._baseHref,Zt($t)))}prepareExternalUrl($t){return $t&&"/"!==$t[0]&&($t="/"+$t),this._locationStrategy.prepareExternalUrl($t)}go($t,Ke="",In=null){this._locationStrategy.pushState(In,"",$t,Ke),this._notifyUrlChangeListeners(this.prepareExternalUrl($t+ot(Ke)),In)}replaceState($t,Ke="",In=null){this._locationStrategy.replaceState(In,"",$t,Ke),this._notifyUrlChangeListeners(this.prepareExternalUrl($t+ot(Ke)),In)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo($t=0){this._locationStrategy.historyGo?.($t)}onUrlChange($t){return this._urlChangeListeners.push($t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ke=>{this._notifyUrlChangeListeners(Ke.url,Ke.state)})),()=>{const Ke=this._urlChangeListeners.indexOf($t);this._urlChangeListeners.splice(Ke,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners($t="",Ke){this._urlChangeListeners.forEach(In=>In($t,Ke))}subscribe($t,Ke,In){return this._subject.subscribe({next:$t,error:Ke,complete:In})}}return Lt.normalizeQueryParams=ot,Lt.joinWithSlash=G,Lt.stripTrailingSlash=W,Lt.\u0275fac=function($t){return new($t||Lt)(d.LFG(ct))},Lt.\u0275prov=d.Yz7({token:Lt,factory:function(){return function Jt(){return new Ht((0,d.LFG)(ct))}()},providedIn:"root"}),Lt})();function Zt(Lt){return Lt.replace(/\/index.html$/,"")}const wt={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var _t=(()=>((_t=_t||{})[_t.Decimal=0]="Decimal",_t[_t.Percent=1]="Percent",_t[_t.Currency=2]="Currency",_t[_t.Scientific=3]="Scientific",_t))(),Qt=(()=>((Qt=Qt||{})[Qt.Format=0]="Format",Qt[Qt.Standalone=1]="Standalone",Qt))(),qt=(()=>((qt=qt||{})[qt.Narrow=0]="Narrow",qt[qt.Abbreviated=1]="Abbreviated",qt[qt.Wide=2]="Wide",qt[qt.Short=3]="Short",qt))(),le=(()=>((le=le||{})[le.Short=0]="Short",le[le.Medium=1]="Medium",le[le.Long=2]="Long",le[le.Full=3]="Full",le))(),Wt=(()=>((Wt=Wt||{})[Wt.Decimal=0]="Decimal",Wt[Wt.Group=1]="Group",Wt[Wt.List=2]="List",Wt[Wt.PercentSign=3]="PercentSign",Wt[Wt.PlusSign=4]="PlusSign",Wt[Wt.MinusSign=5]="MinusSign",Wt[Wt.Exponential=6]="Exponential",Wt[Wt.SuperscriptingExponent=7]="SuperscriptingExponent",Wt[Wt.PerMille=8]="PerMille",Wt[Wt.Infinity=9]="Infinity",Wt[Wt.NaN=10]="NaN",Wt[Wt.TimeSeparator=11]="TimeSeparator",Wt[Wt.CurrencyDecimal=12]="CurrencyDecimal",Wt[Wt.CurrencyGroup=13]="CurrencyGroup",Wt))();function ee(Lt,fe){return Ft((0,d.cg1)(Lt)[d.wAp.DateFormat],fe)}function ue(Lt,fe){return Ft((0,d.cg1)(Lt)[d.wAp.TimeFormat],fe)}function Kt(Lt,fe){return Ft((0,d.cg1)(Lt)[d.wAp.DateTimeFormat],fe)}function ce(Lt,fe){const $t=(0,d.cg1)(Lt),Ke=$t[d.wAp.NumberSymbols][fe];if(typeof Ke>"u"){if(fe===Wt.CurrencyDecimal)return $t[d.wAp.NumberSymbols][Wt.Decimal];if(fe===Wt.CurrencyGroup)return $t[d.wAp.NumberSymbols][Wt.Group]}return Ke}function Le(Lt,fe){return(0,d.cg1)(Lt)[d.wAp.NumberFormats][fe]}function dn(Lt){if(!Lt[d.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Lt[d.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ft(Lt,fe){for(let $t=fe;$t>-1;$t--)if(typeof Lt[$t]<"u")return Lt[$t];throw new Error("Locale data API: locale data undefined")}function vt(Lt){const[fe,$t]=Lt.split(":");return{hours:+fe,minutes:+$t}}const Ct=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Bt={},ne=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var he=(()=>((he=he||{})[he.Short=0]="Short",he[he.ShortGMT=1]="ShortGMT",he[he.Long=2]="Long",he[he.Extended=3]="Extended",he))(),Oe=(()=>((Oe=Oe||{})[Oe.FullYear=0]="FullYear",Oe[Oe.Month=1]="Month",Oe[Oe.Date=2]="Date",Oe[Oe.Hours=3]="Hours",Oe[Oe.Minutes=4]="Minutes",Oe[Oe.Seconds=5]="Seconds",Oe[Oe.FractionalSeconds=6]="FractionalSeconds",Oe[Oe.Day=7]="Day",Oe))(),yn=(()=>((yn=yn||{})[yn.DayPeriods=0]="DayPeriods",yn[yn.Days=1]="Days",yn[yn.Months=2]="Months",yn[yn.Eras=3]="Eras",yn))();function On(Lt,fe,$t,Ke){let In=function Be(Lt){if(bi(Lt))return Lt;if("number"==typeof Lt&&!isNaN(Lt))return new Date(Lt);if("string"==typeof Lt){if(Lt=Lt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Lt)){const[In,Rt=1,de=1]=Lt.split("-").map(De=>+De);return _i(In,Rt-1,de)}const $t=parseFloat(Lt);if(!isNaN(Lt-$t))return new Date($t);let Ke;if(Ke=Lt.match(Ct))return function Fn(Lt){const fe=new Date(0);let $t=0,Ke=0;const In=Lt[8]?fe.setUTCFullYear:fe.setFullYear,Rt=Lt[8]?fe.setUTCHours:fe.setHours;Lt[9]&&($t=Number(Lt[9]+Lt[10]),Ke=Number(Lt[9]+Lt[11])),In.call(fe,Number(Lt[1]),Number(Lt[2])-1,Number(Lt[3]));const de=Number(Lt[4]||0)-$t,De=Number(Lt[5]||0)-Ke,nn=Number(Lt[6]||0),Cn=Math.floor(1e3*parseFloat("0."+(Lt[7]||0)));return Rt.call(fe,de,De,nn,Cn),fe}(Ke)}const fe=new Date(Lt);if(!bi(fe))throw new Error(`Unable to convert "${Lt}" into a date`);return fe}(Lt);fe=Si($t,fe)||fe;let De,de=[];for(;fe;){if(De=ne.exec(fe),!De){de.push(fe);break}{de=de.concat(De.slice(1));const Wn=de.pop();if(!Wn)break;fe=Wn}}let nn=In.getTimezoneOffset();Ke&&(nn=He(Ke,nn),In=function ve(Lt,fe,$t){const Ke=$t?-1:1,In=Lt.getTimezoneOffset();return function Zn(Lt,fe){return(Lt=new Date(Lt.getTime())).setMinutes(Lt.getMinutes()+fe),Lt}(Lt,Ke*(He(fe,In)-In))}(In,Ke,!0));let Cn="";return de.forEach(Wn=>{const $n=function en(Lt){if(Me[Lt])return Me[Lt];let fe;switch(Lt){case"G":case"GG":case"GGG":fe=gn(yn.Eras,qt.Abbreviated);break;case"GGGG":fe=gn(yn.Eras,qt.Wide);break;case"GGGGG":fe=gn(yn.Eras,qt.Narrow);break;case"y":fe=Gn(Oe.FullYear,1,0,!1,!0);break;case"yy":fe=Gn(Oe.FullYear,2,0,!0,!0);break;case"yyy":fe=Gn(Oe.FullYear,3,0,!1,!0);break;case"yyyy":fe=Gn(Oe.FullYear,4,0,!1,!0);break;case"Y":fe=It(1);break;case"YY":fe=It(2,!0);break;case"YYY":fe=It(3);break;case"YYYY":fe=It(4);break;case"M":case"L":fe=Gn(Oe.Month,1,1);break;case"MM":case"LL":fe=Gn(Oe.Month,2,1);break;case"MMM":fe=gn(yn.Months,qt.Abbreviated);break;case"MMMM":fe=gn(yn.Months,qt.Wide);break;case"MMMMM":fe=gn(yn.Months,qt.Narrow);break;case"LLL":fe=gn(yn.Months,qt.Abbreviated,Qt.Standalone);break;case"LLLL":fe=gn(yn.Months,qt.Wide,Qt.Standalone);break;case"LLLLL":fe=gn(yn.Months,qt.Narrow,Qt.Standalone);break;case"w":fe=Mt(1);break;case"ww":fe=Mt(2);break;case"W":fe=Mt(1,!0);break;case"d":fe=Gn(Oe.Date,1);break;case"dd":fe=Gn(Oe.Date,2);break;case"c":case"cc":fe=Gn(Oe.Day,1);break;case"ccc":fe=gn(yn.Days,qt.Abbreviated,Qt.Standalone);break;case"cccc":fe=gn(yn.Days,qt.Wide,Qt.Standalone);break;case"ccccc":fe=gn(yn.Days,qt.Narrow,Qt.Standalone);break;case"cccccc":fe=gn(yn.Days,qt.Short,Qt.Standalone);break;case"E":case"EE":case"EEE":fe=gn(yn.Days,qt.Abbreviated);break;case"EEEE":fe=gn(yn.Days,qt.Wide);break;case"EEEEE":fe=gn(yn.Days,qt.Narrow);break;case"EEEEEE":fe=gn(yn.Days,qt.Short);break;case"a":case"aa":case"aaa":fe=gn(yn.DayPeriods,qt.Abbreviated);break;case"aaaa":fe=gn(yn.DayPeriods,qt.Wide);break;case"aaaaa":fe=gn(yn.DayPeriods,qt.Narrow);break;case"b":case"bb":case"bbb":fe=gn(yn.DayPeriods,qt.Abbreviated,Qt.Standalone,!0);break;case"bbbb":fe=gn(yn.DayPeriods,qt.Wide,Qt.Standalone,!0);break;case"bbbbb":fe=gn(yn.DayPeriods,qt.Narrow,Qt.Standalone,!0);break;case"B":case"BB":case"BBB":fe=gn(yn.DayPeriods,qt.Abbreviated,Qt.Format,!0);break;case"BBBB":fe=gn(yn.DayPeriods,qt.Wide,Qt.Format,!0);break;case"BBBBB":fe=gn(yn.DayPeriods,qt.Narrow,Qt.Format,!0);break;case"h":fe=Gn(Oe.Hours,1,-12);break;case"hh":fe=Gn(Oe.Hours,2,-12);break;case"H":fe=Gn(Oe.Hours,1);break;case"HH":fe=Gn(Oe.Hours,2);break;case"m":fe=Gn(Oe.Minutes,1);break;case"mm":fe=Gn(Oe.Minutes,2);break;case"s":fe=Gn(Oe.Seconds,1);break;case"ss":fe=Gn(Oe.Seconds,2);break;case"S":fe=Gn(Oe.FractionalSeconds,1);break;case"SS":fe=Gn(Oe.FractionalSeconds,2);break;case"SSS":fe=Gn(Oe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":fe=tn(he.Short);break;case"ZZZZZ":fe=tn(he.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":fe=tn(he.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":fe=tn(he.Long);break;default:return null}return Me[Lt]=fe,fe}(Wn);Cn+=$n?$n(In,$t,nn):"''"===Wn?"'":Wn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Cn}function _i(Lt,fe,$t){const Ke=new Date(0);return Ke.setFullYear(Lt,fe,$t),Ke.setHours(0,0,0),Ke}function Si(Lt,fe){const $t=function Ae(Lt){return(0,d.cg1)(Lt)[d.wAp.LocaleId]}(Lt);if(Bt[$t]=Bt[$t]||{},Bt[$t][fe])return Bt[$t][fe];let Ke="";switch(fe){case"shortDate":Ke=ee(Lt,le.Short);break;case"mediumDate":Ke=ee(Lt,le.Medium);break;case"longDate":Ke=ee(Lt,le.Long);break;case"fullDate":Ke=ee(Lt,le.Full);break;case"shortTime":Ke=ue(Lt,le.Short);break;case"mediumTime":Ke=ue(Lt,le.Medium);break;case"longTime":Ke=ue(Lt,le.Long);break;case"fullTime":Ke=ue(Lt,le.Full);break;case"short":const In=Si(Lt,"shortTime"),Rt=Si(Lt,"shortDate");Ke=ho(Kt(Lt,le.Short),[In,Rt]);break;case"medium":const de=Si(Lt,"mediumTime"),De=Si(Lt,"mediumDate");Ke=ho(Kt(Lt,le.Medium),[de,De]);break;case"long":const nn=Si(Lt,"longTime"),Cn=Si(Lt,"longDate");Ke=ho(Kt(Lt,le.Long),[nn,Cn]);break;case"full":const Wn=Si(Lt,"fullTime"),$n=Si(Lt,"fullDate");Ke=ho(Kt(Lt,le.Full),[Wn,$n])}return Ke&&(Bt[$t][fe]=Ke),Ke}function ho(Lt,fe){return fe&&(Lt=Lt.replace(/\{([^}]+)}/g,function($t,Ke){return null!=fe&&Ke in fe?fe[Ke]:$t})),Lt}function hi(Lt,fe,$t="-",Ke,In){let Rt="";(Lt<0||In&&Lt<=0)&&(In?Lt=1-Lt:(Lt=-Lt,Rt=$t));let de=String(Lt);for(;de.length0||De>-$t)&&(De+=$t),Lt===Oe.Hours)0===De&&-12===$t&&(De=12);else if(Lt===Oe.FractionalSeconds)return function Vn(Lt,fe){return hi(Lt,3).substring(0,fe)}(De,fe);const nn=ce(de,Wt.MinusSign);return hi(De,fe,nn,Ke,In)}}function gn(Lt,fe,$t=Qt.Format,Ke=!1){return function(In,Rt){return function Ve(Lt,fe,$t,Ke,In,Rt){switch($t){case yn.Months:return function Xe(Lt,fe,$t){const Ke=(0,d.cg1)(Lt),Rt=Ft([Ke[d.wAp.MonthsFormat],Ke[d.wAp.MonthsStandalone]],fe);return Ft(Rt,$t)}(fe,In,Ke)[Lt.getMonth()];case yn.Days:return function ze(Lt,fe,$t){const Ke=(0,d.cg1)(Lt),Rt=Ft([Ke[d.wAp.DaysFormat],Ke[d.wAp.DaysStandalone]],fe);return Ft(Rt,$t)}(fe,In,Ke)[Lt.getDay()];case yn.DayPeriods:const de=Lt.getHours(),De=Lt.getMinutes();if(Rt){const Cn=function kn(Lt){const fe=(0,d.cg1)(Lt);return dn(fe),(fe[d.wAp.ExtraData][2]||[]).map(Ke=>"string"==typeof Ke?vt(Ke):[vt(Ke[0]),vt(Ke[1])])}(fe),Wn=function ri(Lt,fe,$t){const Ke=(0,d.cg1)(Lt);dn(Ke);const Rt=Ft([Ke[d.wAp.ExtraData][0],Ke[d.wAp.ExtraData][1]],fe)||[];return Ft(Rt,$t)||[]}(fe,In,Ke),$n=Cn.findIndex(yi=>{if(Array.isArray(yi)){const[Ti,bo]=yi,xo=de>=Ti.hours&&De>=Ti.minutes,yo=de0?Math.floor(In/60):Math.ceil(In/60);switch(Lt){case he.Short:return(In>=0?"+":"")+hi(de,2,Rt)+hi(Math.abs(In%60),2,Rt);case he.ShortGMT:return"GMT"+(In>=0?"+":"")+hi(de,1,Rt);case he.Long:return"GMT"+(In>=0?"+":"")+hi(de,2,Rt)+":"+hi(Math.abs(In%60),2,Rt);case he.Extended:return 0===Ke?"Z":(In>=0?"+":"")+hi(de,2,Rt)+":"+hi(Math.abs(In%60),2,Rt);default:throw new Error(`Unknown zone width "${Lt}"`)}}}function Et(Lt){return _i(Lt.getFullYear(),Lt.getMonth(),Lt.getDate()+(4-Lt.getDay()))}function Mt(Lt,fe=!1){return function($t,Ke){let In;if(fe){const Rt=new Date($t.getFullYear(),$t.getMonth(),1).getDay()-1,de=$t.getDate();In=1+Math.floor((de+Rt)/7)}else{const Rt=Et($t),de=function We(Lt){const fe=_i(Lt,0,1).getDay();return _i(Lt,0,1+(fe<=4?4:11)-fe)}(Rt.getFullYear()),De=Rt.getTime()-de.getTime();In=1+Math.round(De/6048e5)}return hi(In,Lt,ce(Ke,Wt.MinusSign))}}function It(Lt,fe=!1){return function($t,Ke){return hi(Et($t).getFullYear(),Lt,ce(Ke,Wt.MinusSign),fe)}}const Me={};function He(Lt,fe){Lt=Lt.replace(/:/g,"");const $t=Date.parse("Jan 01, 1970 00:00:00 "+Lt)/6e4;return isNaN($t)?fe:$t}function bi(Lt){return Lt instanceof Date&&!isNaN(Lt.valueOf())}const go=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function la(Lt,fe,$t,Ke,In,Rt,de=!1){let De="",nn=!1;if(isFinite(Lt)){let Cn=function Pe(Lt){let Ke,In,Rt,de,De,fe=Math.abs(Lt)+"",$t=0;for((In=fe.indexOf("."))>-1&&(fe=fe.replace(".","")),(Rt=fe.search(/e/i))>0?(In<0&&(In=Rt),In+=+fe.slice(Rt+1),fe=fe.substring(0,Rt)):In<0&&(In=fe.length),Rt=0;"0"===fe.charAt(Rt);Rt++);if(Rt===(De=fe.length))Ke=[0],In=1;else{for(De--;"0"===fe.charAt(De);)De--;for(In-=Rt,Ke=[],de=0;Rt<=De;Rt++,de++)Ke[de]=Number(fe.charAt(Rt))}return In>22&&(Ke=Ke.splice(0,21),$t=In-1,In=1),{digits:Ke,exponent:$t,integerLen:In}}(Lt);de&&(Cn=function Ye(Lt){if(0===Lt.digits[0])return Lt;const fe=Lt.digits.length-Lt.integerLen;return Lt.exponent?Lt.exponent+=2:(0===fe?Lt.digits.push(0,0):1===fe&&Lt.digits.push(0),Lt.integerLen+=2),Lt}(Cn));let Wn=fe.minInt,$n=fe.minFrac,yi=fe.maxFrac;if(Rt){const ra=Rt.match(go);if(null===ra)throw new Error(`${Rt} is not a valid digit info`);const fa=ra[1],ts=ra[3],Hs=ra[5];null!=fa&&(Wn=nt(fa)),null!=ts&&($n=nt(ts)),null!=Hs?yi=nt(Hs):null!=ts&&$n>yi&&(yi=$n)}!function mn(Lt,fe,$t){if(fe>$t)throw new Error(`The minimum number of digits after fraction (${fe}) is higher than the maximum (${$t}).`);let Ke=Lt.digits,In=Ke.length-Lt.integerLen;const Rt=Math.min(Math.max(fe,In),$t);let de=Rt+Lt.integerLen,De=Ke[de];if(de>0){Ke.splice(Math.max(Lt.integerLen,de));for(let $n=de;$n=5)if(de-1<0){for(let $n=0;$n>de;$n--)Ke.unshift(0),Lt.integerLen++;Ke.unshift(1),Lt.integerLen++}else Ke[de-1]++;for(;In=Cn?bo.pop():nn=!1),yi>=10?1:0},0);Wn&&(Ke.unshift(Wn),Lt.integerLen++)}(Cn,$n,yi);let Ti=Cn.digits,bo=Cn.integerLen;const xo=Cn.exponent;let yo=[];for(nn=Ti.every(ra=>!ra);bo0?yo=Ti.splice(bo,Ti.length):(yo=Ti,Ti=[0]);const ga=[];for(Ti.length>=fe.lgSize&&ga.unshift(Ti.splice(-fe.lgSize,Ti.length).join(""));Ti.length>fe.gSize;)ga.unshift(Ti.splice(-fe.gSize,Ti.length).join(""));Ti.length&&ga.unshift(Ti.join("")),De=ga.join(ce($t,Ke)),yo.length&&(De+=ce($t,In)+yo.join("")),xo&&(De+=ce($t,Wt.Exponential)+"+"+xo)}else De=ce($t,Wt.Infinity);return De=Lt<0&&!nn?fe.negPre+De+fe.negSuf:fe.posPre+De+fe.posSuf,De}function Ea(Lt,fe,$t,Ke,In){const de=Nn(Le(fe,_t.Currency),ce(fe,Wt.MinusSign));return de.minFrac=function et(Lt){let fe;const $t=wt[Lt];return $t&&(fe=$t[2]),"number"==typeof fe?fe:2}(Ke),de.maxFrac=de.minFrac,la(Lt,de,fe,Wt.CurrencyGroup,Wt.CurrencyDecimal,In).replace("\xa4",$t).replace("\xa4","").trim()}function Nn(Lt,fe="-"){const $t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ke=Lt.split(";"),In=Ke[0],Rt=Ke[1],de=-1!==In.indexOf(".")?In.split("."):[In.substring(0,In.lastIndexOf("0")+1),In.substring(In.lastIndexOf("0")+1)],De=de[0],nn=de[1]||"";$t.posPre=De.substring(0,De.indexOf("#"));for(let Wn=0;Wn{class Lt{constructor($t,Ke,In,Rt){this._iterableDiffers=$t,this._keyValueDiffers=Ke,this._ngEl=In,this._renderer=Rt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass($t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof $t?$t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass($t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof $t?$t.split(/\s+/):$t,this._rawClass&&((0,d.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const $t=this._iterableDiffer.diff(this._rawClass);$t&&this._applyIterableChanges($t)}else if(this._keyValueDiffer){const $t=this._keyValueDiffer.diff(this._rawClass);$t&&this._applyKeyValueChanges($t)}}_applyKeyValueChanges($t){$t.forEachAddedItem(Ke=>this._toggleClass(Ke.key,Ke.currentValue)),$t.forEachChangedItem(Ke=>this._toggleClass(Ke.key,Ke.currentValue)),$t.forEachRemovedItem(Ke=>{Ke.previousValue&&this._toggleClass(Ke.key,!1)})}_applyIterableChanges($t){$t.forEachAddedItem(Ke=>{if("string"!=typeof Ke.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,d.AaK)(Ke.item)}`);this._toggleClass(Ke.item,!0)}),$t.forEachRemovedItem(Ke=>this._toggleClass(Ke.item,!1))}_applyClasses($t){$t&&(Array.isArray($t)||$t instanceof Set?$t.forEach(Ke=>this._toggleClass(Ke,!0)):Object.keys($t).forEach(Ke=>this._toggleClass(Ke,!!$t[Ke])))}_removeClasses($t){$t&&(Array.isArray($t)||$t instanceof Set?$t.forEach(Ke=>this._toggleClass(Ke,!1)):Object.keys($t).forEach(Ke=>this._toggleClass(Ke,!1)))}_toggleClass($t,Ke){($t=$t.trim())&&$t.split(/\s+/g).forEach(In=>{Ke?this._renderer.addClass(this._ngEl.nativeElement,In):this._renderer.removeClass(this._ngEl.nativeElement,In)})}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.ZZ4),d.Y36(d.aQg),d.Y36(d.SBq),d.Y36(d.Qsj))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Lt})();class cs{constructor(fe,$t,Ke,In){this.$implicit=fe,this.ngForOf=$t,this.index=Ke,this.count=In}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let or=(()=>{class Lt{constructor($t,Ke,In){this._viewContainer=$t,this._template=Ke,this._differs=In,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf($t){this._ngForOf=$t,this._ngForOfDirty=!0}set ngForTrackBy($t){this._trackByFn=$t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate($t){$t&&(this._template=$t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const $t=this._ngForOf;!this._differ&&$t&&(this._differ=this._differs.find($t).create(this.ngForTrackBy))}if(this._differ){const $t=this._differ.diff(this._ngForOf);$t&&this._applyChanges($t)}}_applyChanges($t){const Ke=this._viewContainer;$t.forEachOperation((In,Rt,de)=>{if(null==In.previousIndex)Ke.createEmbeddedView(this._template,new cs(In.item,this._ngForOf,-1,-1),null===de?void 0:de);else if(null==de)Ke.remove(null===Rt?void 0:Rt);else if(null!==Rt){const De=Ke.get(Rt);Ke.move(De,de),Er(De,In)}});for(let In=0,Rt=Ke.length;In{Er(Ke.get(In.currentIndex),In)})}static ngTemplateContextGuard($t,Ke){return!0}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(d.ZZ4))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Lt})();function Er(Lt,fe){Lt.context.$implicit=fe.item}let dr=(()=>{class Lt{constructor($t,Ke){this._viewContainer=$t,this._context=new Yr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ke}set ngIf($t){this._context.$implicit=this._context.ngIf=$t,this._updateView()}set ngIfThen($t){Gr("ngIfThen",$t),this._thenTemplateRef=$t,this._thenViewRef=null,this._updateView()}set ngIfElse($t){Gr("ngIfElse",$t),this._elseTemplateRef=$t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard($t,Ke){return!0}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.s_b),d.Y36(d.Rgc))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Lt})();class Yr{constructor(){this.$implicit=null,this.ngIf=null}}function Gr(Lt,fe){if(fe&&!fe.createEmbeddedView)throw new Error(`${Lt} must be a TemplateRef, but received '${(0,d.AaK)(fe)}'.`)}class Ir{constructor(fe,$t){this._viewContainerRef=fe,this._templateRef=$t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(fe){fe&&!this._created?this.create():!fe&&this._created&&this.destroy()}}let Pc=(()=>{class Lt{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch($t){this._ngSwitch=$t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault($t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push($t)}_matchCase($t){const Ke=$t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ke,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ke}_updateDefaultCases($t){if(this._defaultViews&&$t!==this._defaultUsed){this._defaultUsed=$t;for(let Ke=0;Ke{class Lt{constructor($t,Ke,In){this.ngSwitch=In,In._addCase(),this._view=new Ir($t,Ke)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Pc,9))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Lt})(),Sc=(()=>{class Lt{constructor($t,Ke,In){In._addDefault(new Ir($t,Ke))}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Pc,9))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Lt})(),Qr=(()=>{class Lt{constructor($t,Ke,In){this._ngEl=$t,this._differs=Ke,this._renderer=In,this._ngStyle=null,this._differ=null}set ngStyle($t){this._ngStyle=$t,!this._differ&&$t&&(this._differ=this._differs.find($t).create())}ngDoCheck(){if(this._differ){const $t=this._differ.diff(this._ngStyle);$t&&this._applyChanges($t)}}_setStyle($t,Ke){const[In,Rt]=$t.split("."),de=-1===In.indexOf("-")?void 0:d.JOm.DashCase;null!=Ke?this._renderer.setStyle(this._ngEl.nativeElement,In,Rt?`${Ke}${Rt}`:Ke,de):this._renderer.removeStyle(this._ngEl.nativeElement,In,de)}_applyChanges($t){$t.forEachRemovedItem(Ke=>this._setStyle(Ke.key,null)),$t.forEachAddedItem(Ke=>this._setStyle(Ke.key,Ke.currentValue)),$t.forEachChangedItem(Ke=>this._setStyle(Ke.key,Ke.currentValue))}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.SBq),d.Y36(d.aQg),d.Y36(d.Qsj))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Lt})(),Ns=(()=>{class Lt{constructor($t){this._viewContainerRef=$t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges($t){if($t.ngTemplateOutlet||$t.ngTemplateOutletInjector){const Ke=this._viewContainerRef;if(this._viewRef&&Ke.remove(Ke.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:In,ngTemplateOutletContext:Rt,ngTemplateOutletInjector:de}=this;this._viewRef=Ke.createEmbeddedView(In,Rt,de?{injector:de}:void 0)}else this._viewRef=null}else this._viewRef&&$t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.s_b))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[d.TTD]}),Lt})();function hr(Lt,fe){return new d.vHH(2100,!1)}class iu{createSubscription(fe,$t){return fe.subscribe({next:$t,error:Ke=>{throw Ke}})}dispose(fe){fe.unsubscribe()}}class f1{createSubscription(fe,$t){return fe.then($t,Ke=>{throw Ke})}dispose(fe){}}const vc=new f1,Cl=new iu;let Al=(()=>{class Lt{constructor($t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=$t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform($t){return this._obj?$t!==this._obj?(this._dispose(),this.transform($t)):this._latestValue:($t&&this._subscribe($t),this._latestValue)}_subscribe($t){this._obj=$t,this._strategy=this._selectStrategy($t),this._subscription=this._strategy.createSubscription($t,Ke=>this._updateLatestValue($t,Ke))}_selectStrategy($t){if((0,d.QGY)($t))return vc;if((0,d.F4k)($t))return Cl;throw hr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue($t,Ke){$t===this._obj&&(this._latestValue=Ke,this._ref.markForCheck())}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.sBO,16))},Lt.\u0275pipe=d.Yjl({name:"async",type:Lt,pure:!1,standalone:!0}),Lt})(),Oc=(()=>{class Lt{transform($t){if(null==$t)return null;if("string"!=typeof $t)throw hr();return $t.toLowerCase()}}return Lt.\u0275fac=function($t){return new($t||Lt)},Lt.\u0275pipe=d.Yjl({name:"lowercase",type:Lt,pure:!0,standalone:!0}),Lt})();const Vs=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Yc=(()=>{class Lt{transform($t){if(null==$t)return null;if("string"!=typeof $t)throw hr();return $t.replace(Vs,Ke=>Ke[0].toUpperCase()+Ke.slice(1).toLowerCase())}}return Lt.\u0275fac=function($t){return new($t||Lt)},Lt.\u0275pipe=d.Yjl({name:"titlecase",type:Lt,pure:!0,standalone:!0}),Lt})();const js=new d.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let yl=(()=>{class Lt{constructor($t,Ke){this.locale=$t,this.defaultTimezone=Ke}transform($t,Ke="mediumDate",In,Rt){if(null==$t||""===$t||$t!=$t)return null;try{return On($t,Ke,Rt||this.locale,In??this.defaultTimezone??void 0)}catch(de){throw hr()}}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.soG,16),d.Y36(js,24))},Lt.\u0275pipe=d.Yjl({name:"date",type:Lt,pure:!0,standalone:!0}),Lt})(),jc=(()=>{class Lt{constructor($t){this.differs=$t,this.keyValues=[],this.compareFn=ks}transform($t,Ke=ks){if(!$t||!($t instanceof Map)&&"object"!=typeof $t)return null;this.differ||(this.differ=this.differs.find($t).create());const In=this.differ.diff($t),Rt=Ke!==this.compareFn;return In&&(this.keyValues=[],In.forEachItem(de=>{this.keyValues.push(function Gs(Lt,fe){return{key:Lt,value:fe}}(de.key,de.currentValue))})),(In||Rt)&&(this.keyValues.sort(Ke),this.compareFn=Ke),this.keyValues}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.aQg,16))},Lt.\u0275pipe=d.Yjl({name:"keyvalue",type:Lt,pure:!1,standalone:!0}),Lt})();function ks(Lt,fe){const $t=Lt.key,Ke=fe.key;if($t===Ke)return 0;if(void 0===$t)return 1;if(void 0===Ke)return-1;if(null===$t)return 1;if(null===Ke)return-1;if("string"==typeof $t&&"string"==typeof Ke)return $t{class Lt{constructor($t){this._locale=$t}transform($t,Ke,In){if(!qo($t))return null;In=In||this._locale;try{return function $e(Lt,fe,$t){return la(Lt,Nn(Le(fe,_t.Decimal),ce(fe,Wt.MinusSign)),fe,Wt.Group,Wt.Decimal,$t)}(ar($t),In,Ke)}catch(Rt){throw hr()}}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.soG,16))},Lt.\u0275pipe=d.Yjl({name:"number",type:Lt,pure:!0,standalone:!0}),Lt})(),Bl=(()=>{class Lt{constructor($t,Ke="USD"){this._locale=$t,this._defaultCurrencyCode=Ke}transform($t,Ke=this._defaultCurrencyCode,In="symbol",Rt,de){if(!qo($t))return null;de=de||this._locale,"boolean"==typeof In&&(In=In?"symbol":"code");let De=Ke||this._defaultCurrencyCode;"code"!==In&&(De="symbol"===In||"symbol-narrow"===In?function xt(Lt,fe,$t="en"){const Ke=function bn(Lt){return(0,d.cg1)(Lt)[d.wAp.Currencies]}($t)[Lt]||wt[Lt]||[],In=Ke[1];return"narrow"===fe&&"string"==typeof In?In:Ke[0]||Lt}(De,"symbol"===In?"wide":"narrow",de):In);try{return Ea(ar($t),de,De,Ke,Rt)}catch(nn){throw hr()}}}return Lt.\u0275fac=function($t){return new($t||Lt)(d.Y36(d.soG,16),d.Y36(d.EJc,16))},Lt.\u0275pipe=d.Yjl({name:"currency",type:Lt,pure:!0,standalone:!0}),Lt})();function qo(Lt){return!(null==Lt||""===Lt||Lt!=Lt)}function ar(Lt){if("string"==typeof Lt&&!isNaN(Number(Lt)-parseFloat(Lt)))return Number(Lt);if("number"!=typeof Lt)throw new Error(`${Lt} is not a number`);return Lt}let Yl=(()=>{class Lt{}return Lt.\u0275fac=function($t){return new($t||Lt)},Lt.\u0275mod=d.oAB({type:Lt}),Lt.\u0275inj=d.cJS({}),Lt})();const xc="browser";function bu(Lt){return Lt===xc}function Dr(Lt){return"server"===Lt}let Gc=(()=>{class Lt{}return Lt.\u0275prov=(0,d.Yz7)({token:Lt,providedIn:"root",factory:()=>new vs((0,d.LFG)(x),window)}),Lt})();class vs{constructor(fe,$t){this.document=fe,this.window=$t,this.offset=()=>[0,0]}setOffset(fe){this.offset=Array.isArray(fe)?()=>fe:fe}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(fe){this.supportsScrolling()&&this.window.scrollTo(fe[0],fe[1])}scrollToAnchor(fe){if(!this.supportsScrolling())return;const $t=function rr(Lt,fe){const $t=Lt.getElementById(fe)||Lt.getElementsByName(fe)[0];if($t)return $t;if("function"==typeof Lt.createTreeWalker&&Lt.body&&(Lt.body.createShadowRoot||Lt.body.attachShadow)){const Ke=Lt.createTreeWalker(Lt.body,NodeFilter.SHOW_ELEMENT);let In=Ke.currentNode;for(;In;){const Rt=In.shadowRoot;if(Rt){const de=Rt.getElementById(fe)||Rt.querySelector(`[name="${fe}"]`);if(de)return de}In=Ke.nextNode()}}return null}(this.document,fe);$t&&(this.scrollToElement($t),$t.focus())}setHistoryScrollRestoration(fe){if(this.supportScrollRestoration()){const $t=this.window.history;$t&&$t.scrollRestoration&&($t.scrollRestoration=fe)}}scrollToElement(fe){const $t=fe.getBoundingClientRect(),Ke=$t.left+this.window.pageXOffset,In=$t.top+this.window.pageYOffset,Rt=this.offset();this.window.scrollTo(Ke-Rt[0],In-Rt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const fe=Ac(this.window.history)||Ac(Object.getPrototypeOf(this.window.history));return!(!fe||!fe.writable&&!fe.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ac(Lt){return Object.getOwnPropertyDescriptor(Lt,"scrollRestoration")}class Ps{}},80529:(rt,it,b)=>{"use strict";b.d(it,{JF:()=>et,LE:()=>gt,PG:()=>w,TP:()=>ze,Zn:()=>le,eN:()=>Ae});var d=b(36895),p=b(94650),v=b(21086),T=b(56498),t=b(21406),A=b(92198),x=b(24850);class w{}class k{}class D{constructor(he){this.normalizedNames=new Map,this.lazyUpdate=null,he?this.lazyInit="string"==typeof he?()=>{this.headers=new Map,he.split("\n").forEach(Oe=>{const yn=Oe.indexOf(":");if(yn>0){const On=Oe.slice(0,yn),_i=On.toLowerCase(),Si=Oe.slice(yn+1).trim();this.maybeSetNormalizedName(On,_i),this.headers.has(_i)?this.headers.get(_i).push(Si):this.headers.set(_i,[Si])}})}:()=>{this.headers=new Map,Object.keys(he).forEach(Oe=>{let yn=he[Oe];const On=Oe.toLowerCase();"string"==typeof yn&&(yn=[yn]),yn.length>0&&(this.headers.set(On,yn),this.maybeSetNormalizedName(Oe,On))})}:this.headers=new Map}has(he){return this.init(),this.headers.has(he.toLowerCase())}get(he){this.init();const Oe=this.headers.get(he.toLowerCase());return Oe&&Oe.length>0?Oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(he){return this.init(),this.headers.get(he.toLowerCase())||null}append(he,Oe){return this.clone({name:he,value:Oe,op:"a"})}set(he,Oe){return this.clone({name:he,value:Oe,op:"s"})}delete(he,Oe){return this.clone({name:he,value:Oe,op:"d"})}maybeSetNormalizedName(he,Oe){this.normalizedNames.has(Oe)||this.normalizedNames.set(Oe,he)}init(){this.lazyInit&&(this.lazyInit instanceof D?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(he=>this.applyUpdate(he)),this.lazyUpdate=null))}copyFrom(he){he.init(),Array.from(he.headers.keys()).forEach(Oe=>{this.headers.set(Oe,he.headers.get(Oe)),this.normalizedNames.set(Oe,he.normalizedNames.get(Oe))})}clone(he){const Oe=new D;return Oe.lazyInit=this.lazyInit&&this.lazyInit instanceof D?this.lazyInit:this,Oe.lazyUpdate=(this.lazyUpdate||[]).concat([he]),Oe}applyUpdate(he){const Oe=he.name.toLowerCase();switch(he.op){case"a":case"s":let yn=he.value;if("string"==typeof yn&&(yn=[yn]),0===yn.length)return;this.maybeSetNormalizedName(he.name,Oe);const On=("a"===he.op?this.headers.get(Oe):void 0)||[];On.push(...yn),this.headers.set(Oe,On);break;case"d":const _i=he.value;if(_i){let Si=this.headers.get(Oe);if(!Si)return;Si=Si.filter(ho=>-1===_i.indexOf(ho)),0===Si.length?(this.headers.delete(Oe),this.normalizedNames.delete(Oe)):this.headers.set(Oe,Si)}else this.headers.delete(Oe),this.normalizedNames.delete(Oe)}}forEach(he){this.init(),Array.from(this.normalizedNames.keys()).forEach(Oe=>he(this.normalizedNames.get(Oe),this.headers.get(Oe)))}}class I{encodeKey(he){return ot(he)}encodeValue(he){return ot(he)}decodeKey(he){return decodeURIComponent(he)}decodeValue(he){return decodeURIComponent(he)}}const G=/%(\d[a-f0-9])/gi,W={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ot(ne){return encodeURIComponent(ne).replace(G,(he,Oe)=>W[Oe]??he)}function ct(ne){return`${ne}`}class gt{constructor(he={}){if(this.updates=null,this.cloneFrom=null,this.encoder=he.encoder||new I,he.fromString){if(he.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function z(ne,he){const Oe=new Map;return ne.length>0&&ne.replace(/^\?/,"").split("&").forEach(On=>{const _i=On.indexOf("="),[Si,ho]=-1==_i?[he.decodeKey(On),""]:[he.decodeKey(On.slice(0,_i)),he.decodeValue(On.slice(_i+1))],hi=Oe.get(Si)||[];hi.push(ho),Oe.set(Si,hi)}),Oe}(he.fromString,this.encoder)}else he.fromObject?(this.map=new Map,Object.keys(he.fromObject).forEach(Oe=>{const yn=he.fromObject[Oe],On=Array.isArray(yn)?yn.map(ct):[ct(yn)];this.map.set(Oe,On)})):this.map=null}has(he){return this.init(),this.map.has(he)}get(he){this.init();const Oe=this.map.get(he);return Oe?Oe[0]:null}getAll(he){return this.init(),this.map.get(he)||null}keys(){return this.init(),Array.from(this.map.keys())}append(he,Oe){return this.clone({param:he,value:Oe,op:"a"})}appendAll(he){const Oe=[];return Object.keys(he).forEach(yn=>{const On=he[yn];Array.isArray(On)?On.forEach(_i=>{Oe.push({param:yn,value:_i,op:"a"})}):Oe.push({param:yn,value:On,op:"a"})}),this.clone(Oe)}set(he,Oe){return this.clone({param:he,value:Oe,op:"s"})}delete(he,Oe){return this.clone({param:he,value:Oe,op:"d"})}toString(){return this.init(),this.keys().map(he=>{const Oe=this.encoder.encodeKey(he);return this.map.get(he).map(yn=>Oe+"="+this.encoder.encodeValue(yn)).join("&")}).filter(he=>""!==he).join("&")}clone(he){const Oe=new gt({encoder:this.encoder});return Oe.cloneFrom=this.cloneFrom||this,Oe.updates=(this.updates||[]).concat(he),Oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(he=>this.map.set(he,this.cloneFrom.map.get(he))),this.updates.forEach(he=>{switch(he.op){case"a":case"s":const Oe=("a"===he.op?this.map.get(he.param):void 0)||[];Oe.push(ct(he.value)),this.map.set(he.param,Oe);break;case"d":if(void 0===he.value){this.map.delete(he.param);break}{let yn=this.map.get(he.param)||[];const On=yn.indexOf(ct(he.value));-1!==On&&yn.splice(On,1),yn.length>0?this.map.set(he.param,yn):this.map.delete(he.param)}}}),this.cloneFrom=this.updates=null)}}class St{constructor(){this.map=new Map}set(he,Oe){return this.map.set(he,Oe),this}get(he){return this.map.has(he)||this.map.set(he,he.defaultValue()),this.map.get(he)}delete(he){return this.map.delete(he),this}has(he){return this.map.has(he)}keys(){return this.map.keys()}}function Jt(ne){return typeof ArrayBuffer<"u"&&ne instanceof ArrayBuffer}function at(ne){return typeof Blob<"u"&&ne instanceof Blob}function Zt(ne){return typeof FormData<"u"&&ne instanceof FormData}class _t{constructor(he,Oe,yn,On){let _i;if(this.url=Oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=he.toUpperCase(),function Ht(ne){switch(ne){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||On?(this.body=void 0!==yn?yn:null,_i=On):_i=yn,_i&&(this.reportProgress=!!_i.reportProgress,this.withCredentials=!!_i.withCredentials,_i.responseType&&(this.responseType=_i.responseType),_i.headers&&(this.headers=_i.headers),_i.context&&(this.context=_i.context),_i.params&&(this.params=_i.params)),this.headers||(this.headers=new D),this.context||(this.context=new St),this.params){const Si=this.params.toString();if(0===Si.length)this.urlWithParams=Oe;else{const ho=Oe.indexOf("?");this.urlWithParams=Oe+(-1===ho?"?":hoje.set(gn,he.setHeaders[gn]),hi)),he.setParams&&(Vn=Object.keys(he.setParams).reduce((je,gn)=>je.set(gn,he.setParams[gn]),Vn)),new _t(Oe,yn,_i,{params:Vn,headers:hi,context:Gn,reportProgress:ho,responseType:On,withCredentials:Si})}}var Nt=(()=>((Nt=Nt||{})[Nt.Sent=0]="Sent",Nt[Nt.UploadProgress=1]="UploadProgress",Nt[Nt.ResponseHeader=2]="ResponseHeader",Nt[Nt.DownloadProgress=3]="DownloadProgress",Nt[Nt.Response=4]="Response",Nt[Nt.User=5]="User",Nt))();class Qt{constructor(he,Oe=200,yn="OK"){this.headers=he.headers||new D,this.status=void 0!==he.status?he.status:Oe,this.statusText=he.statusText||yn,this.url=he.url||null,this.ok=this.status>=200&&this.status<300}}class qt extends Qt{constructor(he={}){super(he),this.type=Nt.ResponseHeader}clone(he={}){return new qt({headers:he.headers||this.headers,status:void 0!==he.status?he.status:this.status,statusText:he.statusText||this.statusText,url:he.url||this.url||void 0})}}class le extends Qt{constructor(he={}){super(he),this.type=Nt.Response,this.body=void 0!==he.body?he.body:null}clone(he={}){return new le({body:void 0!==he.body?he.body:this.body,headers:he.headers||this.headers,status:void 0!==he.status?he.status:this.status,statusText:he.statusText||this.statusText,url:he.url||this.url||void 0})}}class Wt extends Qt{constructor(he){super(he,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${he.url||"(unknown url)"}`:`Http failure response for ${he.url||"(unknown url)"}: ${he.status} ${he.statusText}`,this.error=he.error||null}}function Ce(ne,he){return{body:he,headers:ne.headers,context:ne.context,observe:ne.observe,params:ne.params,reportProgress:ne.reportProgress,responseType:ne.responseType,withCredentials:ne.withCredentials}}let Ae=(()=>{class ne{constructor(Oe){this.handler=Oe}request(Oe,yn,On={}){let _i;if(Oe instanceof _t)_i=Oe;else{let hi,Vn;hi=On.headers instanceof D?On.headers:new D(On.headers),On.params&&(Vn=On.params instanceof gt?On.params:new gt({fromObject:On.params})),_i=new _t(Oe,yn,void 0!==On.body?On.body:null,{headers:hi,context:On.context,params:Vn,reportProgress:On.reportProgress,responseType:On.responseType||"json",withCredentials:On.withCredentials})}const Si=(0,v.of)(_i).pipe((0,t.b)(hi=>this.handler.handle(hi)));if(Oe instanceof _t||"events"===On.observe)return Si;const ho=Si.pipe((0,A.h)(hi=>hi instanceof le));switch(On.observe||"body"){case"body":switch(_i.responseType){case"arraybuffer":return ho.pipe((0,x.U)(hi=>{if(null!==hi.body&&!(hi.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return hi.body}));case"blob":return ho.pipe((0,x.U)(hi=>{if(null!==hi.body&&!(hi.body instanceof Blob))throw new Error("Response is not a Blob.");return hi.body}));case"text":return ho.pipe((0,x.U)(hi=>{if(null!==hi.body&&"string"!=typeof hi.body)throw new Error("Response is not a string.");return hi.body}));default:return ho.pipe((0,x.U)(hi=>hi.body))}case"response":return ho;default:throw new Error(`Unreachable: unhandled observe type ${On.observe}}`)}}delete(Oe,yn={}){return this.request("DELETE",Oe,yn)}get(Oe,yn={}){return this.request("GET",Oe,yn)}head(Oe,yn={}){return this.request("HEAD",Oe,yn)}jsonp(Oe,yn){return this.request("JSONP",Oe,{params:(new gt).append(yn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Oe,yn={}){return this.request("OPTIONS",Oe,yn)}patch(Oe,yn,On={}){return this.request("PATCH",Oe,Ce(On,yn))}post(Oe,yn,On={}){return this.request("POST",Oe,Ce(On,yn))}put(Oe,yn,On={}){return this.request("PUT",Oe,Ce(On,yn))}}return ne.\u0275fac=function(Oe){return new(Oe||ne)(p.LFG(w))},ne.\u0275prov=p.Yz7({token:ne,factory:ne.\u0275fac}),ne})();class Ne{constructor(he,Oe){this.next=he,this.interceptor=Oe}handle(he){return this.interceptor.intercept(he,this.next)}}const ze=new p.OlP("HTTP_INTERCEPTORS");let Xe=(()=>{class ne{intercept(Oe,yn){return yn.handle(Oe)}}return ne.\u0275fac=function(Oe){return new(Oe||ne)},ne.\u0275prov=p.Yz7({token:ne,factory:ne.\u0275fac}),ne})();const hn=/^\)\]\}',?\n/;let bn=(()=>{class ne{constructor(Oe){this.xhrFactory=Oe}handle(Oe){if("JSONP"===Oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(yn=>{const On=this.xhrFactory.build();if(On.open(Oe.method,Oe.urlWithParams),Oe.withCredentials&&(On.withCredentials=!0),Oe.headers.forEach((Ve,tn)=>On.setRequestHeader(Ve,tn.join(","))),Oe.headers.has("Accept")||On.setRequestHeader("Accept","application/json, text/plain, */*"),!Oe.headers.has("Content-Type")){const Ve=Oe.detectContentTypeHeader();null!==Ve&&On.setRequestHeader("Content-Type",Ve)}if(Oe.responseType){const Ve=Oe.responseType.toLowerCase();On.responseType="json"!==Ve?Ve:"text"}const _i=Oe.serializeBody();let Si=null;const ho=()=>{if(null!==Si)return Si;const Ve=On.statusText||"OK",tn=new D(On.getAllResponseHeaders()),an=function we(ne){return"responseURL"in ne&&ne.responseURL?ne.responseURL:/^X-Request-URL:/m.test(ne.getAllResponseHeaders())?ne.getResponseHeader("X-Request-URL"):null}(On)||Oe.url;return Si=new qt({headers:tn,status:On.status,statusText:Ve,url:an}),Si},hi=()=>{let{headers:Ve,status:tn,statusText:an,url:pe}=ho(),We=null;204!==tn&&(We=typeof On.response>"u"?On.responseText:On.response),0===tn&&(tn=We?200:0);let Et=tn>=200&&tn<300;if("json"===Oe.responseType&&"string"==typeof We){const Mt=We;We=We.replace(hn,"");try{We=""!==We?JSON.parse(We):null}catch(It){We=Mt,Et&&(Et=!1,We={error:It,text:We})}}Et?(yn.next(new le({body:We,headers:Ve,status:tn,statusText:an,url:pe||void 0})),yn.complete()):yn.error(new Wt({error:We,headers:Ve,status:tn,statusText:an,url:pe||void 0}))},Vn=Ve=>{const{url:tn}=ho(),an=new Wt({error:Ve,status:On.status||0,statusText:On.statusText||"Unknown Error",url:tn||void 0});yn.error(an)};let Gn=!1;const je=Ve=>{Gn||(yn.next(ho()),Gn=!0);let tn={type:Nt.DownloadProgress,loaded:Ve.loaded};Ve.lengthComputable&&(tn.total=Ve.total),"text"===Oe.responseType&&!!On.responseText&&(tn.partialText=On.responseText),yn.next(tn)},gn=Ve=>{let tn={type:Nt.UploadProgress,loaded:Ve.loaded};Ve.lengthComputable&&(tn.total=Ve.total),yn.next(tn)};return On.addEventListener("load",hi),On.addEventListener("error",Vn),On.addEventListener("timeout",Vn),On.addEventListener("abort",Vn),Oe.reportProgress&&(On.addEventListener("progress",je),null!==_i&&On.upload&&On.upload.addEventListener("progress",gn)),On.send(_i),yn.next({type:Nt.Sent}),()=>{On.removeEventListener("error",Vn),On.removeEventListener("abort",Vn),On.removeEventListener("load",hi),On.removeEventListener("timeout",Vn),Oe.reportProgress&&(On.removeEventListener("progress",je),null!==_i&&On.upload&&On.upload.removeEventListener("progress",gn)),On.readyState!==On.DONE&&On.abort()}})}}return ne.\u0275fac=function(Oe){return new(Oe||ne)(p.LFG(d.JF))},ne.\u0275prov=p.Yz7({token:ne,factory:ne.\u0275fac}),ne})();const Ze=new p.OlP("XSRF_COOKIE_NAME"),dn=new p.OlP("XSRF_HEADER_NAME");class kn{}let ri=(()=>{class ne{constructor(Oe,yn,On){this.doc=Oe,this.platform=yn,this.cookieName=On,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Oe=this.doc.cookie||"";return Oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,d.Mx)(Oe,this.cookieName),this.lastCookieString=Oe),this.lastToken}}return ne.\u0275fac=function(Oe){return new(Oe||ne)(p.LFG(d.K0),p.LFG(p.Lbi),p.LFG(Ze))},ne.\u0275prov=p.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),Ee=(()=>{class ne{constructor(Oe,yn){this.tokenService=Oe,this.headerName=yn}intercept(Oe,yn){const On=Oe.url.toLowerCase();if("GET"===Oe.method||"HEAD"===Oe.method||On.startsWith("http://")||On.startsWith("https://"))return yn.handle(Oe);const _i=this.tokenService.getToken();return null!==_i&&!Oe.headers.has(this.headerName)&&(Oe=Oe.clone({headers:Oe.headers.set(this.headerName,_i)})),yn.handle(Oe)}}return ne.\u0275fac=function(Oe){return new(Oe||ne)(p.LFG(kn),p.LFG(dn))},ne.\u0275prov=p.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),Ft=(()=>{class ne{constructor(Oe,yn){this.backend=Oe,this.injector=yn,this.chain=null}handle(Oe){if(null===this.chain){const yn=this.injector.get(ze,[]);this.chain=yn.reduceRight((On,_i)=>new Ne(On,_i),this.backend)}return this.chain.handle(Oe)}}return ne.\u0275fac=function(Oe){return new(Oe||ne)(p.LFG(k),p.LFG(p.zs3))},ne.\u0275prov=p.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),tt=(()=>{class ne{static disable(){return{ngModule:ne,providers:[{provide:Ee,useClass:Xe}]}}static withOptions(Oe={}){return{ngModule:ne,providers:[Oe.cookieName?{provide:Ze,useValue:Oe.cookieName}:[],Oe.headerName?{provide:dn,useValue:Oe.headerName}:[]]}}}return ne.\u0275fac=function(Oe){return new(Oe||ne)},ne.\u0275mod=p.oAB({type:ne}),ne.\u0275inj=p.cJS({providers:[Ee,{provide:ze,useExisting:Ee,multi:!0},{provide:kn,useClass:ri},{provide:Ze,useValue:"XSRF-TOKEN"},{provide:dn,useValue:"X-XSRF-TOKEN"}]}),ne})(),et=(()=>{class ne{}return ne.\u0275fac=function(Oe){return new(Oe||ne)},ne.\u0275mod=p.oAB({type:ne}),ne.\u0275inj=p.cJS({providers:[Ae,{provide:w,useClass:Ft},bn,{provide:k,useExisting:bn}],imports:[tt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ne})()},94650:(rt,it,b)=>{"use strict";b.d(it,{$8M:()=>Hd,$Z:()=>_s,AFp:()=>hC,ALo:()=>Jx,AaK:()=>w,AsE:()=>_f,B6R:()=>We,BQk:()=>Eh,CHM:()=>xu,CRH:()=>eC,CZH:()=>s3,CqO:()=>I0,D6c:()=>i8,DdM:()=>Bx,Dn7:()=>rb,EJc:()=>yC,EiD:()=>Rg,EpF:()=>Dv,F$t:()=>Z4,F4k:()=>w4,FYo:()=>J3,FiY:()=>nc,G48:()=>VC,Gf:()=>fb,GfV:()=>Xg,GkF:()=>l2,Gpc:()=>P,Gre:()=>Np,HOy:()=>B0,Hsn:()=>Ih,Ikx:()=>I4,JOm:()=>C1,JVY:()=>Vf,Jf7:()=>Eu,KtG:()=>$s,L6k:()=>N_,LAX:()=>q3,LFG:()=>Sr,LSH:()=>Hg,Lbi:()=>vC,Lck:()=>Gh,MAs:()=>u5,MGl:()=>u2,MMx:()=>Cf,NdJ:()=>M1,O4$:()=>Ei,OlP:()=>wr,Oqu:()=>S4,PXZ:()=>NC,Q6J:()=>A4,QGY:()=>e1,QP$:()=>bi,QbO:()=>Ob,Qsj:()=>$g,R0b:()=>r1,RDi:()=>Pu,Rgc:()=>Wh,SBq:()=>j_,Sil:()=>wC,Suo:()=>tC,TTD:()=>ou,TgZ:()=>y4,Tol:()=>Ho,Udp:()=>v5,VKq:()=>X5,W1O:()=>gb,WFA:()=>Ep,WLB:()=>Yx,XFs:()=>Ft,Xpm:()=>pe,Xts:()=>ia,Y36:()=>Ar,YKP:()=>Y4,YNc:()=>C4,Yjl:()=>Zn,Yz7:()=>ue,Z0I:()=>on,ZZ4:()=>h6,_Bn:()=>G5,_UZ:()=>E0,_Vd:()=>V_,_c5:()=>QA,_uU:()=>P4,aQg:()=>ng,c2e:()=>CC,cJS:()=>ce,cg1:()=>wi,d8E:()=>D5,dDg:()=>LC,dqk:()=>On,dwT:()=>ex,eBb:()=>jf,eFA:()=>ap,ekj:()=>R0,eoX:()=>OC,evT:()=>G2,f3M:()=>_p,g9A:()=>bC,gM2:()=>G4,h0i:()=>xf,hGG:()=>WA,hYB:()=>M4,hij:()=>rc,iGM:()=>X4,ifc:()=>yn,ip1:()=>Sb,jDz:()=>Q5,kL8:()=>H,kYT:()=>Me,kcU:()=>g1,lG2:()=>He,lcZ:()=>J4,lnq:()=>y5,lqb:()=>to,lri:()=>SC,mCW:()=>T1,n5z:()=>tc,n_E:()=>Sd,oAB:()=>It,oJD:()=>Gf,oxw:()=>Sv,pB0:()=>z1,q3G:()=>ic,qLn:()=>sm,qOj:()=>ym,qZA:()=>Oh,qzn:()=>Jd,rWj:()=>Rb,s9C:()=>F0,sBO:()=>GC,sIi:()=>fi,s_b:()=>X0,soG:()=>l3,tb:()=>xC,tp0:()=>F1,uIk:()=>Fu,uOi:()=>zg,vHH:()=>W,vpe:()=>Pd,wAp:()=>Ma,xi3:()=>$0,xp6:()=>sh,ynx:()=>T4,z2F:()=>_3,z3N:()=>y1,zSh:()=>rs,zs3:()=>pm});var d=b(8929),p=b(42654),v=b(56498),T=b(36787),t=b(12474);function A(h){for(let g in h)if(h[g]===A)return g;throw Error("Could not find renamed property on target object.")}function x(h,g){for(const U in g)g.hasOwnProperty(U)&&!h.hasOwnProperty(U)&&(h[U]=g[U])}function w(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(w).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const g=h.toString();if(null==g)return""+g;const U=g.indexOf("\n");return-1===U?g:g.substring(0,U)}function k(h,g){return null==h||""===h?null===g?"":g:null==g||""===g?h:h+" "+g}const D=A({__forward_ref__:A});function P(h){return h.__forward_ref__=P,h.toString=function(){return w(this())},h}function I(h){return z(h)?h():h}function z(h){return"function"==typeof h&&h.hasOwnProperty(D)&&h.__forward_ref__===P}class W extends Error{constructor(g,U){super(function ot(h,g){return`NG0${Math.abs(h)}${g?": "+g.trim():""}`}(g,U)),this.code=g}}function ct(h){return"string"==typeof h?h:null==h?"":String(h)}function Jt(h,g){throw new W(-201,!1)}function Xe(h,g){null==h&&function ie(h,g,U,O){throw new Error(`ASSERTION ERROR: ${h}`+(null==O?"":` [Expected=> ${U} ${O} ${g} <=Actual]`))}(g,h,null,"!=")}function ue(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function ce(h){return{providers:h.providers||[],imports:h.imports||[]}}function Le(h){return hn(h,dn)||hn(h,ri)}function on(h){return null!==Le(h)}function hn(h,g){return h.hasOwnProperty(g)?h[g]:null}function Ze(h){return h&&(h.hasOwnProperty(kn)||h.hasOwnProperty(Ee))?h[kn]:null}const dn=A({\u0275prov:A}),kn=A({\u0275inj:A}),ri=A({ngInjectableDef:A}),Ee=A({ngInjectorDef:A});var Ft=(()=>((Ft=Ft||{})[Ft.Default=0]="Default",Ft[Ft.Host=1]="Host",Ft[Ft.Self=2]="Self",Ft[Ft.SkipSelf=4]="SkipSelf",Ft[Ft.Optional=8]="Optional",Ft))();let vt;function tt(h){const g=vt;return vt=h,g}function et(h,g,U){const O=Le(h);return O&&"root"==O.providedIn?void 0===O.value?O.value=O.factory():O.value:U&Ft.Optional?null:void 0!==g?g:void Jt(w(h))}function Bt(h){return{toString:h}.toString()}var ne=(()=>((ne=ne||{})[ne.OnPush=0]="OnPush",ne[ne.Default=1]="Default",ne))(),yn=(()=>{return(h=yn||(yn={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",yn;var h})();const On=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ho={},hi=[],Vn=A({\u0275cmp:A}),Gn=A({\u0275dir:A}),je=A({\u0275pipe:A}),gn=A({\u0275mod:A}),Ve=A({\u0275fac:A}),tn=A({__NG_ELEMENT_ID__:A});let an=0;function pe(h){return Bt(()=>{const U=!0===h.standalone,O={},q={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:O,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===ne.OnPush,directiveDefs:null,pipeDefs:null,standalone:U,dependencies:U&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||hi,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||yn.Emulated,id:"c"+an++,styles:h.styles||hi,_:null,setInput:null,schemas:h.schemas||null,tView:null},V=h.dependencies,ut=h.features;return q.inputs=en(h.inputs,O),q.outputs=en(h.outputs),ut&&ut.forEach(kt=>kt(q)),q.directiveDefs=V?()=>("function"==typeof V?V():V).map(Et).filter(Mt):null,q.pipeDefs=V?()=>("function"==typeof V?V():V).map(Fn).filter(Mt):null,q})}function We(h,g,U){const O=h.\u0275cmp;O.directiveDefs=()=>("function"==typeof g?g():g).map(Et),O.pipeDefs=()=>("function"==typeof U?U():U).map(Fn)}function Et(h){return ve(h)||Be(h)}function Mt(h){return null!==h}function It(h){return Bt(()=>({type:h.type,bootstrap:h.bootstrap||hi,declarations:h.declarations||hi,imports:h.imports||hi,exports:h.exports||hi,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function Me(h,g){return Bt(()=>{const U=go(h,!0);U.declarations=g.declarations||hi,U.imports=g.imports||hi,U.exports=g.exports||hi})}function en(h,g){if(null==h)return ho;const U={};for(const O in h)if(h.hasOwnProperty(O)){let q=h[O],V=q;Array.isArray(q)&&(V=q[1],q=q[0]),U[q]=O,g&&(g[q]=V)}return U}const He=pe;function Zn(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function ve(h){return h[Vn]||null}function Be(h){return h[Gn]||null}function Fn(h){return h[je]||null}function bi(h){const g=ve(h)||Be(h)||Fn(h);return null!==g&&g.standalone}function go(h,g){const U=h[gn]||null;if(!U&&!0===g)throw new Error(`Type ${w(h)} does not have '\u0275mod' property.`);return U}const Q=18;function Gr(h){return Array.isArray(h)&&"object"==typeof h[1]}function Ir(h){return Array.isArray(h)&&!0===h[1]}function Pc(h){return 0!=(8&h.flags)}function rl(h){return 2==(2&h.flags)}function Sc(h){return 1==(1&h.flags)}function Fs(h){return null!==h.template}function Lc(h){return 0!=(256&h[2])}function ks(h,g){return h.hasOwnProperty(Ve)?h[Ve]:null}class zl{constructor(g,U,O){this.previousValue=g,this.currentValue=U,this.firstChange=O}isFirstChange(){return this.firstChange}}function ou(){return Bl}function Bl(h){return h.type.prototype.ngOnChanges&&(h.setInput=ar),qo}function qo(){const h=qu(this),g=h?.current;if(g){const U=h.previous;if(U===ho)h.previous=g;else for(let O in g)U[O]=g[O];h.current=null,this.ngOnChanges(g)}}function ar(h,g,U,O){const q=qu(h)||function Yl(h,g){return h[cc]=g}(h,{previous:ho,current:null}),V=q.current||(q.current={}),ut=q.previous,kt=this.declaredInputs[U],jt=ut[kt];V[kt]=new zl(jt&&jt.currentValue,g,ut===ho),h[O]=g}ou.ngInherit=!0;const cc="__ngSimpleChanges__";function qu(h){return h[cc]||null}function pr(h){for(;Array.isArray(h);)h=h[0];return h}function Ac(h,g){return pr(g[h])}function rr(h,g){return pr(g[h.index])}function Ps(h,g){return h.data[g]}function qs(h,g){return h[g]}function xs(h,g){const U=g[h];return Gr(U)?U:U[0]}function Rs(h){return 64==(64&h[2])}function lc(h,g){return null==g?null:h[g]}function Ws(h){h[Q]=0}function Fr(h,g){h[5]+=g;let U=h,O=h[3];for(;null!==O&&(1===g&&1===U[5]||-1===g&&0===U[5]);)O[5]+=g,U=O,O=O[3]}const aa={lFrame:ft(null),bindingsEnabled:!0};function yc(){return aa.bindingsEnabled}function Yi(){return aa.lFrame.lView}function Da(){return aa.lFrame.tView}function xu(h){return aa.lFrame.contextLView=h,h[8]}function $s(h){return aa.lFrame.contextLView=null,h}function Pr(){let h=_e();for(;null!==h&&64===h.type;)h=h.parent;return h}function _e(){return aa.lFrame.currentTNode}function Yt(h,g){const U=aa.lFrame;U.currentTNode=h,U.isParent=g}function st(){return aa.lFrame.isParent}function ki(){aa.lFrame.isParent=!1}function Nr(){const h=aa.lFrame;let g=h.bindingRootIndex;return-1===g&&(g=h.bindingRootIndex=h.tView.bindingStartIndex),g}function qr(){return aa.lFrame.bindingIndex}function er(){return aa.lFrame.bindingIndex++}function Ul(h){const g=aa.lFrame,U=g.bindingIndex;return g.bindingIndex=g.bindingIndex+h,U}function Vp(h,g){const U=aa.lFrame;U.bindingIndex=U.bindingRootIndex=h,ru(g)}function ru(h){aa.lFrame.currentDirectiveIndex=h}function Ic(h){const g=aa.lFrame.currentDirectiveIndex;return-1===g?null:h[g]}function cl(){return aa.lFrame.currentQueryIndex}function Zl(h){aa.lFrame.currentQueryIndex=h}function pp(h){const g=h[1];return 2===g.type?g.declTNode:1===g.type?h[6]:null}function Ml(h,g,U){if(U&Ft.SkipSelf){let q=g,V=h;for(;!(q=q.parent,null!==q||U&Ft.Host||(q=pp(V),null===q||(V=V[15],10&q.type))););if(null===q)return!1;g=q,h=V}const O=aa.lFrame=Bi();return O.currentTNode=g,O.lView=h,!0}function ll(h){const g=Bi(),U=h[1];aa.lFrame=g,g.currentTNode=U.firstChild,g.lView=h,g.tView=U,g.contextLView=h,g.bindingIndex=U.bindingStartIndex,g.inI18n=!1}function Bi(){const h=aa.lFrame,g=null===h?null:h.child;return null===g?ft(h):g}function ft(h){const g={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:h,child:null,inI18n:!1};return null!==h&&(h.child=g),g}function su(){const h=aa.lFrame;return aa.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const Cu=su;function wa(){const h=su();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function Rr(){return aa.lFrame.selectedIndex}function ws(h){aa.lFrame.selectedIndex=h}function Ra(){const h=aa.lFrame;return Ps(h.tView,h.selectedIndex)}function Ei(){aa.lFrame.currentNamespace="svg"}function g1(){!function jl(){aa.lFrame.currentNamespace=null}()}function Pi(h,g){for(let U=g.directiveStart,O=g.directiveEnd;U=O)break}else g[jt]<0&&(h[Q]+=65536),(kt>11>16&&(3&h[2])===g){h[2]+=2048;try{V.call(kt)}finally{}}}else try{V.call(kt)}finally{}}class Au{constructor(g,U,O){this.factory=g,this.resolving=!1,this.canSeeViewProviders=U,this.injectImpl=O}}function Ke(h,g,U){let O=0;for(;Og){ut=V-1;break}}}for(;V>16}(h),O=g;for(;U>0;)O=O[15],U--;return O}let yi=!0;function Ti(h){const g=yi;return yi=h,g}let ga=0;const ra={};function ts(h,g){const U=es(h,g);if(-1!==U)return U;const O=g[1];O.firstCreatePass&&(h.injectorIndex=g.length,Hs(O.data,h),Hs(g,null),Hs(O.blueprint,null));const q=ns(h,g),V=h.injectorIndex;if(nn(q)){const ut=Cn(q),kt=$n(q,g),jt=kt[1].data;for(let ye=0;ye<8;ye++)g[V+ye]=kt[ut+ye]|jt[ut+ye]}return g[V+8]=q,V}function Hs(h,g){h.push(0,0,0,0,0,0,0,0,g)}function es(h,g){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===g[h.injectorIndex+8]?-1:h.injectorIndex}function ns(h,g){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let U=0,O=null,q=g;for(;null!==q;){if(O=Ss(q),null===O)return-1;if(U++,q=q[15],-1!==O.injectorIndex)return O.injectorIndex|U<<16}return-1}function us(h,g,U){!function fa(h,g,U){let O;"string"==typeof U?O=U.charCodeAt(0)||0:U.hasOwnProperty(tn)&&(O=U[tn]),null==O&&(O=U[tn]=ga++);const q=255&O;g.data[h+(q>>5)]|=1<=0?255&g:Tc:g}(U);if("function"==typeof V){if(!Ml(g,h,O))return O&Ft.Host?Xs(q,0,O):Fc(g,U,O,q);try{const ut=V(O);if(null!=ut||O&Ft.Optional)return ut;Jt()}finally{Cu()}}else if("number"==typeof V){let ut=null,kt=es(h,g),jt=-1,ye=O&Ft.Host?g[16][6]:null;for((-1===kt||O&Ft.SkipSelf)&&(jt=-1===kt?ns(h,g):g[kt+8],-1!==jt&&Ka(O,!1)?(ut=g[1],kt=Cn(jt),g=$n(jt,g)):kt=-1);-1!==kt;){const Qe=g[1];if(jp(V,kt,Qe.data)){const An=sr(kt,g,U,ut,O,ye);if(An!==ra)return An}jt=g[kt+8],-1!==jt&&Ka(O,g[1].data[kt+8]===ye)&&jp(V,kt,g)?(ut=Qe,kt=Cn(jt),g=$n(jt,g)):kt=-1}}return q}function sr(h,g,U,O,q,V){const ut=g[1],kt=ut.data[h+8],Qe=cr(kt,ut,U,null==O?rl(kt)&&yi:O!=ut&&0!=(3&kt.type),q&Ft.Host&&V===kt);return null!==Qe?Cs(g,ut,Qe,kt):ra}function cr(h,g,U,O,q){const V=h.providerIndexes,ut=g.data,kt=1048575&V,jt=h.directiveStart,Qe=V>>20,si=q?kt+Qe:h.directiveEnd;for(let Ai=O?kt:kt+Qe;Ai=jt&&Vi.type===U)return Ai}if(q){const Ai=ut[jt];if(Ai&&Fs(Ai)&&Ai.type===U)return jt}return null}function Cs(h,g,U,O){let q=h[U];const V=g.data;if(function Ks(h){return h instanceof Au}(q)){const ut=q;ut.resolving&&function Pt(h,g){const U=g?`. Dependency path: ${g.join(" > ")} > ${h}`:"";throw new W(-200,`Circular dependency in DI detected for ${h}${U}`)}(function gt(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():ct(h)}(V[U]));const kt=Ti(ut.canSeeViewProviders);ut.resolving=!0;const jt=ut.injectImpl?tt(ut.injectImpl):null;Ml(h,O,Ft.Default);try{q=h[U]=ut.factory(void 0,V,h,O),g.firstCreatePass&&U>=O.directiveStart&&function Di(h,g,U){const{ngOnChanges:O,ngOnInit:q,ngDoCheck:V}=g.type.prototype;if(O){const ut=Bl(g);(U.preOrderHooks||(U.preOrderHooks=[])).push(h,ut),(U.preOrderCheckHooks||(U.preOrderCheckHooks=[])).push(h,ut)}q&&(U.preOrderHooks||(U.preOrderHooks=[])).push(0-h,q),V&&((U.preOrderHooks||(U.preOrderHooks=[])).push(h,V),(U.preOrderCheckHooks||(U.preOrderCheckHooks=[])).push(h,V))}(U,V[U],g)}finally{null!==jt&&tt(jt),Ti(kt),ut.resolving=!1,Cu()}}return q}function jp(h,g,U){return!!(U[g+(h>>5)]&1<{const g=h.prototype.constructor,U=g[Ve]||yu(g),O=Object.prototype;let q=Object.getPrototypeOf(h.prototype).constructor;for(;q&&q!==O;){const V=q[Ve]||yu(q);if(V&&V!==U)return V;q=Object.getPrototypeOf(q)}return V=>new V})}function yu(h){return z(h)?()=>{const g=yu(I(h));return g&&g()}:ks(h)}function Ss(h){const g=h[1],U=g.type;return 2===U?g.declTNode:1===U?h[6]:null}function Hd(h){return function Hr(h,g){if("class"===g)return h.classes;if("style"===g)return h.styles;const U=h.attrs;if(U){const O=U.length;let q=0;for(;q{const O=function os(h){return function(...U){if(h){const O=h(...U);for(const q in O)this[q]=O[q]}}}(g);function q(...V){if(this instanceof q)return O.apply(this,V),this;const ut=new q(...V);return kt.annotation=ut,kt;function kt(jt,ye,Qe){const An=jt.hasOwnProperty(Bu)?jt[Bu]:Object.defineProperty(jt,Bu,{value:[]})[Bu];for(;An.length<=Qe;)An.push(null);return(An[Qe]=An[Qe]||[]).push(ut),jt}}return U&&(q.prototype=Object.create(U.prototype)),q.prototype.ngMetadataName=h,q.annotationCls=q,q})}class wr{constructor(g,U){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof U?this.__NG_ELEMENT_ID__=U:void 0!==U&&(this.\u0275prov=ue({token:this,providedIn:U.providedIn||"root",factory:U.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Jo(h,g){void 0===g&&(g=h);for(let U=0;UArray.isArray(U)?bd(U,g):g(U))}function x_(h,g,U){g>=h.length?h.push(U):h.splice(g,0,U)}function mp(h,g){return g>=h.length-1?h.pop():h.splice(g,1)[0]}function zd(h,g){const U=[];for(let O=0;O=0?h[1|O]=U:(O=~O,function At(h,g,U,O){let q=h.length;if(q==g)h.push(U,O);else if(1===q)h.push(O,h[0]),h[0]=U;else{for(q--,h.push(h[q-1],h[q]);q>g;)h[q]=h[q-2],q--;h[g]=U,h[g+1]=O}}(h,O,g,U)),O}function Se(h,g){const U=Dn(h,g);if(U>=0)return h[1|U]}function Dn(h,g){return function Ii(h,g,U){let O=0,q=h.length>>U;for(;q!==O;){const V=O+(q-O>>1),ut=h[V<g?q=V:O=V+1}return~(q<((C1=C1||{})[C1.Important=1]="Important",C1[C1.DashCase=2]="DashCase",C1))();const $p=new Map;let Ff=0;const Mu="__ngContext__";function Ls(h,g){Gr(g)?(h[Mu]=g[20],function Ug(h){$p.set(h[20],h)}(g)):h[Mu]=g}function qf(h,g){return undefined(h,g)}function k_(h){const g=h[3];return Ir(g)?g[3]:g}function Rf(h){return Lg(h[13])}function O2(h){return Lg(h[4])}function Lg(h){for(;null!==h&&!Ir(h);)h=h[4];return h}function Du(h,g,U,O,q){if(null!=O){let V,ut=!1;Ir(O)?V=O:Gr(O)&&(ut=!0,O=O[0]);const kt=pr(O);0===h&&null!==U?null==q?ps(g,U,kt):Ad(g,U,kt,q||null,!0):1===h&&null!==U?Ad(g,U,kt,q||null,!0):2===h?function Td(h,g,U){const O=Xp(h,g);O&&function Eg(h,g,U,O){h.removeChild(g,U,O)}(h,O,g,U)}(g,kt,ut):3===h&&g.destroyNode(kt),null!=V&&function Zc(h,g,U,O,q){const V=U[7];V!==pr(U)&&Du(g,h,O,V,q);for(let kt=10;kt0&&(h[U-1][4]=O[4]);const V=mp(h,10+g);!function zf(h,g){ms(h,g,g[11],2,null,null),g[0]=null,g[6]=null}(O[1],O);const ut=V[19];null!==ut&&ut.detachView(V[1]),O[3]=null,O[4]=null,O[2]&=-65}return O}function Za(h,g){if(!(128&g[2])){const U=g[11];U.destroyNode&&ms(h,g,U,3,null,null),function Fm(h){let g=h[13];if(!g)return Us(h[1],h);for(;g;){let U=null;if(Gr(g))U=g[13];else{const O=g[10];O&&(U=O)}if(!U){for(;g&&!g[4]&&g!==h;)Gr(g)&&Us(g[1],g),g=g[3];null===g&&(g=h),Gr(g)&&Us(g[1],g),U=g&&g[4]}g=U}}(g)}}function Us(h,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function P_(h,g){let U;if(null!=h&&null!=(U=h.destroyHooks))for(let O=0;O=0?O[q=ye]():O[q=-ye].unsubscribe(),V+=2}else{const ut=O[q=U[V+1]];U[V].call(ut)}if(null!==O){for(let V=q+1;Vh,createScript:h=>h,createScriptURL:h=>h})}catch{}return jd}()?.createHTML(h)||h}function Pu(h){H1=h}function Pl(){if(void 0===F2&&(F2=null,On.trustedTypes))try{F2=On.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch{}return F2}function Gl(h){return Pl()?.createHTML(h)||h}function q2(h){return Pl()?.createScriptURL(h)||h}class Gu{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class F3 extends Gu{getTypeName(){return"HTML"}}class E_ extends Gu{getTypeName(){return"Style"}}class I_ extends Gu{getTypeName(){return"Script"}}class yp extends Gu{getTypeName(){return"URL"}}class N3 extends Gu{getTypeName(){return"ResourceURL"}}function y1(h){return h instanceof Gu?h.changingThisBreaksApplicationSecurity:h}function Jd(h,g){const U=function F_(h){return h instanceof Gu&&h.getTypeName()||null}(h);if(null!=U&&U!==g){if("ResourceURL"===U&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${U} (see https://g.co/ng/security#xss)`)}return U===g}function Vf(h){return new F3(h)}function N_(h){return new E_(h)}function jf(h){return new I_(h)}function q3(h){return new yp(h)}function z1(h){return new N3(h)}class Qu{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const U=(new window.DOMParser).parseFromString(dc(g),"text/html").body;return null===U?this.inertDocumentHelper.getInertBodyElement(g):(U.removeChild(U.firstChild),U)}catch{return null}}}class R2{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const U=this.inertDocument.createElement("html");this.inertDocument.appendChild(U);const O=this.inertDocument.createElement("body");U.appendChild(O)}}getInertBodyElement(g){const U=this.inertDocument.createElement("template");if("content"in U)return U.innerHTML=dc(g),U;const O=this.inertDocument.createElement("body");return O.innerHTML=dc(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(O),O}stripCustomNsAttrs(g){const U=g.attributes;for(let q=U.length-1;0"),!0}endElement(g){const U=g.nodeName.toLowerCase();Jf.hasOwnProperty(U)&&!Su.hasOwnProperty(U)&&(this.buf.push(""))}chars(g){this.buf.push(qg(g))}checkClobberedElement(g,U){if(U&&(g.compareDocumentPosition(U)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return U}}const z3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wp=/([^\#-~ |!])/g;function qg(h){return h.replace(/&/g,"&").replace(z3,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(wp,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let H_;function Rg(h,g){let U=null;try{H_=H_||function Tp(h){const g=new R2(h);return function pc(){try{return!!(new window.DOMParser).parseFromString(dc(""),"text/html")}catch{return!1}}()?new Qu(g):g}(h);let O=g?String(g):"";U=H_.getInertBodyElement(O);let q=5,V=O;do{if(0===q)throw new Error("Failed to sanitize html because the input is unstable");q--,O=V,V=U.innerHTML,U=H_.getInertBodyElement(O)}while(O!==V);return dc((new Ng).sanitizeChildren(H2(U)||U))}finally{if(U){const O=H2(U)||U;for(;O.firstChild;)O.removeChild(O.firstChild)}}}function H2(h){return"content"in h&&function im(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var ic=(()=>((ic=ic||{})[ic.NONE=0]="NONE",ic[ic.HTML=1]="HTML",ic[ic.STYLE=2]="STYLE",ic[ic.SCRIPT=3]="SCRIPT",ic[ic.URL=4]="URL",ic[ic.RESOURCE_URL=5]="RESOURCE_URL",ic))();function Gf(h){const g=B2();return g?Gl(g.sanitize(ic.HTML,h)||""):Jd(h,"HTML")?Gl(y1(h)):Rg(function zm(){return void 0!==H1?H1:typeof document<"u"?document:void 0}(),ct(h))}function Hg(h){const g=B2();return g?g.sanitize(ic.URL,h)||"":Jd(h,"URL")?y1(h):T1(ct(h))}function zg(h){const g=B2();if(g)return q2(g.sanitize(ic.RESOURCE_URL,h)||"");if(Jd(h,"ResourceURL"))return q2(y1(h));throw new W(904,!1)}function B2(){const h=Yi();return h&&h[12]}const ia=new wr("ENVIRONMENT_INITIALIZER"),Y3=new wr("INJECTOR",-1),z_=new wr("INJECTOR_DEF_TYPES");class w1{get(g,U=Pn){if(U===Pn){const O=new Error(`NullInjectorError: No provider for ${w(g)}!`);throw O.name="NullInjectorError",O}return U}}function Up(...h){return{\u0275providers:mc(0,h)}}function mc(h,...g){const U=[],O=new Set;let q;return bd(g,V=>{const ut=V;Vg(ut,U,[],O)&&(q||(q=[]),q.push(ut))}),void 0!==q&&Yg(q,U),U}function Yg(h,g){for(let U=0;U{g.push(V)})}}function Vg(h,g,U,O){if(!(h=I(h)))return!1;let q=null,V=Ze(h);const ut=!V&&ve(h);if(V||ut){if(ut&&!ut.standalone)return!1;q=h}else{const jt=h.ngModule;if(V=Ze(jt),!V)return!1;q=jt}const kt=O.has(q);if(ut){if(kt)return!1;if(O.add(q),ut.dependencies){const jt="function"==typeof ut.dependencies?ut.dependencies():ut.dependencies;for(const ye of jt)Vg(ye,g,U,O)}}else{if(!V)return!1;{if(null!=V.imports&&!kt){let ye;O.add(q);try{bd(V.imports,Qe=>{Vg(Qe,g,U,O)&&(ye||(ye=[]),ye.push(Qe))})}finally{}void 0!==ye&&Yg(ye,g)}if(!kt){const ye=ks(q)||(()=>new q);g.push({provide:q,useFactory:ye,deps:hi},{provide:z_,useValue:q,multi:!0},{provide:ia,useValue:()=>Sr(q),multi:!0})}const jt=V.providers;null==jt||kt||bd(jt,Qe=>{g.push(Qe)})}}return q!==h&&void 0!==h.providers}const Wf=A({provide:String,useValue:A});function U1(h){return null!==h&&"object"==typeof h&&Wf in h}function oc(h){return"function"==typeof h}const rs=new wr("Set Injector scope."),Ku={},Jr={};let Gd;function B1(){return void 0===Gd&&(Gd=new w1),Gd}class to{}class Y1 extends to{constructor(g,U,O,q){super(),this.parent=U,this.source=O,this.scopes=q,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Xf(g,ut=>this.processProvider(ut)),this.records.set(Y3,Li(void 0,this)),q.has("environment")&&this.records.set(to,Li(void 0,this));const V=this.records.get(rs);null!=V&&"string"==typeof V.value&&this.scopes.add(V.value),this.injectorDefTypes=new Set(this.get(z_.multi,hi,Ft.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const U=wc(this),O=tt(void 0);try{return g()}finally{wc(U),tt(O)}}get(g,U=Pn,O=Ft.Default){this.assertNotDestroyed();const q=wc(this),V=tt(void 0);try{if(!(O&Ft.SkipSelf)){let kt=this.records.get(g);if(void 0===kt){const jt=function $f(h){return"function"==typeof h||"object"==typeof h&&h instanceof wr}(g)&&Le(g);kt=jt&&this.injectableDefInScope(jt)?Li(Ym(g),Ku):null,this.records.set(g,kt)}if(null!=kt)return this.hydrate(g,kt)}return(O&Ft.Self?B1():this.parent).get(g,U=O&Ft.Optional&&U===Pn?null:U)}catch(ut){if("NullInjectorError"===ut.name){if((ut[As]=ut[As]||[]).unshift(w(g)),q)throw ut;return function I1(h,g,U,O){const q=h[As];throw g[C_]&&q.unshift(g[C_]),h.message=function Cg(h,g,U,O=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let q=w(g);if(Array.isArray(g))q=g.map(w).join(" -> ");else if("object"==typeof g){let V=[];for(let ut in g)if(g.hasOwnProperty(ut)){let kt=g[ut];V.push(ut+":"+("string"==typeof kt?JSON.stringify(kt):w(kt)))}q=`{${V.join(", ")}}`}return`${U}${O?"("+O+")":""}[${q}]: ${h.replace(Zo,"\n ")}`}("\n"+h.message,q,U,O),h.ngTokenPath=q,h[As]=null,h}(ut,g,"R3InjectorError",this.source)}throw ut}finally{tt(V),wc(q)}}resolveInjectorInitializers(){const g=wc(this),U=tt(void 0);try{const O=this.get(ia.multi,hi,Ft.Self);for(const q of O)q()}finally{wc(g),tt(U)}}toString(){const g=[],U=this.records;for(const O of U.keys())g.push(w(O));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new W(205,!1)}processProvider(g){let U=oc(g=I(g))?g:I(g&&g.provide);const O=function rm(h){return U1(h)?Li(void 0,h.useValue):Li(Vm(h),Ku)}(g);if(oc(g)||!0!==g.multi)this.records.get(U);else{let q=this.records.get(U);q||(q=Li(void 0,Ku,!0),q.factory=()=>Bd(q.multi),this.records.set(U,q)),U=g,q.multi.push(g)}this.records.set(U,O)}hydrate(g,U){return U.value===Ku&&(U.value=Jr,U.value=U.factory()),"object"==typeof U.value&&U.value&&function j3(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(U.value)&&this._ngOnDestroyHooks.add(U.value),U.value}injectableDefInScope(g){if(!g.providedIn)return!1;const U=I(g.providedIn);return"string"==typeof U?"any"===U||this.scopes.has(U):this.injectorDefTypes.has(U)}}function Ym(h){const g=Le(h),U=null!==g?g.factory:ks(h);if(null!==U)return U;if(h instanceof wr)throw new W(204,!1);if(h instanceof Function)return function B_(h){const g=h.length;if(g>0)throw zd(g,"?"),new W(204,!1);const U=function we(h){const g=h&&(h[dn]||h[ri]);if(g){const U=function bn(h){if(h.hasOwnProperty("name"))return h.name;const g=(""+h).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${U}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${U}" class.`),g}return null}(h);return null!==U?()=>U.factory(h):()=>new h}(h);throw new W(204,!1)}function Vm(h,g,U){let O;if(oc(h)){const q=I(h);return ks(q)||Ym(q)}if(U1(h))O=()=>I(h.useValue);else if(function Zp(h){return!(!h||!h.useFactory)}(h))O=()=>h.useFactory(...Bd(h.deps||[]));else if(function jg(h){return!(!h||!h.useExisting)}(h))O=()=>Sr(I(h.useExisting));else{const q=I(h&&(h.useClass||h.provide));if(!function V3(h){return!!h.deps}(h))return ks(q)||Ym(q);O=()=>new q(...Bd(h.deps))}return O}function Li(h,g,U=!1){return{factory:h,value:g,multi:U?[]:void 0}}function Kf(h){return!!h.\u0275providers}function Xf(h,g){for(const U of h)Array.isArray(U)?Xf(U,g):Kf(U)?Xf(U.\u0275providers,g):g(U)}class Jg{}class Gg{resolveComponentFactory(g){throw function Y2(h){const g=Error(`No component factory found for ${w(h)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=h,g}(g)}}let V_=(()=>{class h{}return h.NULL=new Gg,h})();function Qg(){return jm(Pr(),Yi())}function jm(h,g){return new j_(rr(h,g))}let j_=(()=>{class h{constructor(U){this.nativeElement=U}}return h.__NG_ELEMENT_ID__=Qg,h})();function Ud(h){return h instanceof j_?h.nativeElement:h}class J3{}let $g=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function Kg(){const h=Yi(),U=xs(Pr().index,h);return(Gr(U)?U:h)[11]}(),h})(),V2=(()=>{class h{}return h.\u0275prov=ue({token:h,providedIn:"root",factory:()=>null}),h})();class Xg{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const Xu=new Xg("14.3.0"),eh={};function Ou(h){return h.ngOriginalError}class sm{constructor(){this._console=console}handleError(g){const U=this._findOriginalError(g);this._console.error("ERROR",g),U&&this._console.error("ORIGINAL ERROR",U)}_findOriginalError(g){let U=g&&Ou(g);for(;U&&Ou(U);)U=Ou(U);return U||null}}function Eu(h){return h.ownerDocument.defaultView}function G2(h){return h.ownerDocument}function V1(h){return h instanceof Function?h():h}function nh(h,g,U){let O=h.length;for(;;){const q=h.indexOf(g,U);if(-1===q)return q;if(0===q||h.charCodeAt(q-1)<=32){const V=g.length;if(q+V===O||h.charCodeAt(q+V)<=32)return q}U=q+1}}const n0="ng-template";function Q3(h,g,U){let O=0;for(;OV?"":q[An+1].toLowerCase();const Ai=8&O?si:null;if(Ai&&-1!==nh(Ai,ye,0)||2&O&&ye!==si){if(Qd(O))return!1;ut=!0}}}}else{if(!ut&&!Qd(O)&&!Qd(jt))return!1;if(ut&&Qd(jt))continue;ut=!1,O=jt|1&O}}return Qd(O)||ut}function Qd(h){return 0==(1&h)}function o0(h,g,U,O){if(null===g)return-1;let q=0;if(O||!U){let V=!1;for(;q-1)for(U++;U0?'="'+kt+'"':"")+"]"}else 8&O?q+="."+ut:4&O&&(q+=" "+ut);else""!==q&&!Qd(ut)&&(g+=Sl(V,q),q=""),O=ut,V=V||!Qd(O);U++}return""!==q&&(g+=Sl(V,q)),g}const Ga={};function sh(h){Q_(Da(),Yi(),Rr()+h,!1)}function Q_(h,g,U,O){if(!O)if(3==(3&g[2])){const V=h.preOrderCheckHooks;null!==V&&So(g,V,U)}else{const V=h.preOrderHooks;null!==V&&ua(g,V,0,U)}ws(U)}function X3(h,g=null,U=null,O){const q=Zd(h,g,U,O);return q.resolveInjectorInitializers(),q}function Zd(h,g=null,U=null,O,q=new Set){const V=[U||hi,Up(h)];return O=O||("object"==typeof h?void 0:w(h)),new Y1(V,g||B1(),O||null,q)}let pm=(()=>{class h{static create(U,O){if(Array.isArray(U))return X3({name:""},O,U,"");{const q=U.name??"";return X3({name:q},U.parent,U.providers,q)}}}return h.THROW_IF_NOT_FOUND=Pn,h.NULL=new w1,h.\u0275prov=ue({token:h,providedIn:"any",factory:()=>Sr(Y3)}),h.__NG_ELEMENT_ID__=-1,h})();function Ar(h,g=Ft.Default){const U=Yi();return null===U?Sr(h,g):is(Pr(),U,I(h),g)}function _s(){throw new Error("invalid")}function Iu(h,g){return h<<17|g<<2}function Wr(h){return h>>17&32767}function $d(h){return 2|h}function _l(h){return(131068&h)>>2}function pu(h,g){return-131069&h|g<<2}function Pa(h){return 1|h}function _0(h,g){const U=h.contentQueries;if(null!==U)for(let O=0;O22&&Q_(h,g,22,!1),U(O,q)}finally{ws(V)}}function Ah(h,g,U){if(Pc(g)){const q=g.directiveEnd;for(let V=g.directiveStart;V0;){const U=h[--g];if("number"==typeof U&&U<0)return U}return 0})(kt)!=jt&&kt.push(jt),kt.push(O,q,ut)}}function W1(h,g){null!==h.hostBindings&&h.hostBindings(1,g)}function u4(h,g){g.flags|=2,(h.components||(h.components=[])).push(g.index)}function lf(h,g,U){if(U){if(g.exportAs)for(let O=0;O0&&Uh(U)}}function Uh(h){for(let O=Rf(h);null!==O;O=O2(O))for(let q=10;q0&&Uh(V)}const U=h[1].components;if(null!==U)for(let O=0;O0&&Uh(q)}}function p4(h,g){const U=xs(g,h),O=U[1];(function Zh(h,g){for(let U=g.length;U-1&&(Uo(g,O),mp(U,O))}this._attachedToViewContainer=!1}Za(this._lView[1],this._lView)}onDestroy(g){b0(this._lView[1],this._lView,null,g)}markForCheck(){bm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Mh(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new W(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Bf(h,g){ms(h,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new W(902,!1);this._appRef=g}}class uf extends Am{constructor(g){super(g),this._view=g}detectChanges(){const g=this._view;Mh(g[1],g,g[8],!1)}checkNoChanges(){}get context(){return null}}class K1 extends V_{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const U=ve(g);return new X1(U,this.ngModule)}}function Ol(h){const g=[];for(let U in h)h.hasOwnProperty(U)&&g.push({propName:h[U],templateName:U});return g}class Z0{constructor(g,U){this.injector=g,this.parentInjector=U}get(g,U,O){const q=this.injector.get(g,eh,O);return q!==eh||U===eh?q:this.parentInjector.get(g,U,O)}}class X1 extends Jg{constructor(g,U){super(),this.componentDef=g,this.ngModule=U,this.componentType=g.type,this.selector=function kp(h){return h.map(Wd).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!U}get inputs(){return Ol(this.componentDef.inputs)}get outputs(){return Ol(this.componentDef.outputs)}create(g,U,O,q){let V=(q=q||this.ngModule)instanceof to?q:q?.injector;V&&null!==this.componentDef.getStandaloneInjector&&(V=this.componentDef.getStandaloneInjector(V)||V);const ut=V?new Z0(g,V):g,kt=ut.get(J3,null);if(null===kt)throw new W(407,!1);const jt=ut.get(V2,null),ye=kt.createRenderer(null,this.componentDef),Qe=this.componentDef.selectors[0][0]||"div",An=O?function g0(h,g,U){return h.selectRootElement(g,U===yn.ShadowDom)}(ye,O,this.componentDef.encapsulation):Xc(ye,Qe,function U0(h){const g=h.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(Qe)),si=this.componentDef.onPush?288:272,Ai=yh(0,null,null,1,0,null,null,null,null,null),Vi=Q1(null,Ai,null,si,null,null,kt,ye,jt,ut,null);let Ao,ro;ll(Vi);try{const pa=function f4(h,g,U,O,q,V){const ut=U[1];U[22]=h;const jt=t2(ut,22,2,"#host",null),ye=jt.mergedAttrs=g.hostAttrs;null!==ye&&(Cm(jt,ye,!0),null!==h&&(Ke(q,h,ye),null!==jt.classes&&tl(q,h,jt.classes),null!==jt.styles&&em(q,h,jt.styles)));const Qe=O.createRenderer(h,g),An=Q1(U,h0(g),null,g.onPush?32:16,U[22],jt,O,Qe,V||null,null,null);return ut.firstCreatePass&&(us(ts(jt,U),ut,g.type),u4(ut,jt),wh(jt,U.length,1)),Lp(U,An),U[22]=An}(An,this.componentDef,Vi,kt,ye);if(An)if(O)Ke(ye,An,["ng-version",Xu.full]);else{const{attrs:Ta,classes:oo}=function rh(h){const g=[],U=[];let O=1,q=2;for(;O0&&tl(ye,An,oo.join(" "))}if(ro=Ps(Ai,22),void 0!==U){const Ta=ro.projection=[];for(let oo=0;oo=0;O--){const q=h[O];q.hostVars=g+=q.hostVars,q.hostAttrs=de(q.hostAttrs,U=de(U,q.hostAttrs))}}(O)}function df(h){return h===ho?{}:h===hi?[]:h}function h4(h,g){const U=h.viewQuery;h.viewQuery=U?(O,q)=>{g(O,q),U(O,q)}:g}function L(h,g){const U=h.contentQueries;h.contentQueries=U?(O,q,V)=>{g(O,q,V),U(O,q,V)}:g}function R(h,g){const U=h.hostBindings;h.hostBindings=U?(O,q)=>{g(O,q),U(O,q)}:g}let _n=null;function Yn(){if(!_n){const h=On.Symbol;if(h&&h.iterator)_n=h.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let U=0;Ukt(pr(zr[O.index])):O.index;let Oa=null;if(!kt&&jt&&(Oa=function Pv(h,g,U,O){const q=h.cleanup;if(null!=q)for(let V=0;Vjt?kt[jt]:null}"string"==typeof ut&&(V+=2)}return null}(h,g,q,O.index)),null!==Oa)(Oa.__ngLastListenerFn__||Oa).__ngNextListenerFn__=V,Oa.__ngLastListenerFn__=V,Ai=!1;else{V=p5(O,g,An,V,!1);const zr=U.listen(pa,q,V);si.push(V,zr),Qe&&Qe.push(q,oo,Ta,Ta+1)}}else V=p5(O,g,An,V,!1);const Vi=O.outputs;let Ao;if(Ai&&null!==Vi&&(Ao=Vi[q])){const ro=Ao.length;if(ro)for(let pa=0;pa0;)g=g[15],h--;return g}(h,aa.lFrame.contextLView))[8]}(h)}function k8(h,g){let U=null;const O=function G6(h){const g=h.attrs;if(null!=g){const U=g.indexOf(5);if(0==(1&U))return g[U+1]}return null}(h);for(let q=0;q=0}const $l={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function o_(h){return h.substring($l.key,$l.keyEnd)}function Nv(h,g){const U=$l.textEnd;return U===g?-1:(g=$l.keyEnd=function h5(h,g,U){for(;g32;)g++;return g}(h,$l.key=g,U),fu(h,g,U))}function fu(h,g,U){for(;g=0;U=Nv(g,U))se(h,o_(g),!0)}function Fp(h,g,U,O){const q=Yi(),V=Da(),ut=Ul(2);V.firstUpdatePass&&Hv(V,h,ut,O),g!==Ga&&ya(q,ut,g)&&A5(V,V.data[Rr()],q,q[11],h,q[ut+1]=function Yv(h,g){return null==h||("string"==typeof g?h+=g:"object"==typeof h&&(h=w(y1(h)))),h}(g,U),O,ut)}function tp(h,g,U,O){const q=Da(),V=Ul(2);q.firstUpdatePass&&Hv(q,null,V,O);const ut=Yi();if(U!==Ga&&ya(ut,V,U)){const kt=q.data[Rr()];if(D4(kt,O)&&!Rv(q,V)){let jt=O?kt.classesWithoutHost:kt.stylesWithoutHost;null!==jt&&(U=k(jt,U||"")),O0(q,kt,ut,U,O)}else!function I8(h,g,U,O,q,V,ut,kt){q===Ga&&(q=hi);let jt=0,ye=0,Qe=0=h.expandoStartIndex}function Hv(h,g,U,O){const q=h.data;if(null===q[U+1]){const V=q[Rr()],ut=Rv(h,U);D4(V,O)&&null===g&&!ut&&(g=!1),g=function zv(h,g,U,O){const q=Ic(h);let V=O?g.residualClasses:g.residualStyles;if(null===q)0===(O?g.classBindings:g.styleBindings)&&(U=H0(U=d2(null,h,g,U,O),g.attrs,O),V=null);else{const ut=g.directiveStylingLast;if(-1===ut||h[ut]!==q)if(U=d2(q,h,g,U,O),null===V){let jt=function O8(h,g,U){const O=U?g.classBindings:g.styleBindings;if(0!==_l(O))return h[Wr(O)]}(h,g,O);void 0!==jt&&Array.isArray(jt)&&(jt=d2(null,h,g,jt[1],O),jt=H0(jt,g.attrs,O),function E8(h,g,U,O){h[Wr(U?g.classBindings:g.styleBindings)]=O}(h,g,O,jt))}else V=function x5(h,g,U){let O;const q=g.directiveEnd;for(let V=1+g.directiveStylingLast;V0)&&(ye=!0)}else Qe=U;if(q)if(0!==jt){const si=Wr(h[kt+1]);h[O+1]=Iu(si,kt),0!==si&&(h[si+1]=pu(h[si+1],O)),h[kt+1]=function Ll(h,g){return 131071&h|g<<17}(h[kt+1],O)}else h[O+1]=Iu(kt,0),0!==kt&&(h[kt+1]=pu(h[kt+1],O)),kt=O;else h[O+1]=Iu(jt,0),0===kt?kt=O:h[jt+1]=pu(h[jt+1],O),jt=O;ye&&(h[O+1]=$d(h[O+1])),mf(h,Qe,O,!0),mf(h,Qe,O,!1),function Ev(h,g,U,O,q){const V=q?h.residualClasses:h.residualStyles;null!=V&&"string"==typeof g&&Dn(V,g)>=0&&(U[O+1]=Pa(U[O+1]))}(g,Qe,h,O,V),ut=Iu(kt,jt),V?g.classBindings=ut:g.styleBindings=ut}(q,V,g,U,ut,O)}}function d2(h,g,U,O,q){let V=null;const ut=U.directiveEnd;let kt=U.directiveStylingLast;for(-1===kt?kt=U.directiveStart:kt++;kt0;){const jt=h[q],ye=Array.isArray(jt),Qe=ye?jt[1]:jt,An=null===Qe;let si=U[q+1];si===Ga&&(si=An?hi:void 0);let Ai=An?Se(si,O):Qe===O?si:void 0;if(ye&&!Nh(Ai)&&(Ai=Se(jt,O)),Nh(Ai)&&(kt=Ai,ut))return kt;const Vi=h[q+1];q=ut?Wr(Vi):_l(Vi)}if(null!==g){let jt=V?g.residualClasses:g.residualStyles;null!=jt&&(kt=Se(jt,O))}return kt}function Nh(h){return void 0!==h}function D4(h,g){return 0!=(h.flags&(g?16:32))}function P4(h,g=""){const U=Yi(),O=Da(),q=h+22,V=O.firstCreatePass?t2(O,q,1,g,null):O.data[q],ut=U[q]=function Og(h,g){return h.createText(g)}(U[11],g);Uc(O,U,ut,V),Yt(V,!1)}function S4(h){return rc("",h,""),S4}function rc(h,g,U){const O=Yi(),q=fl(O,h,g,U);return q!==Ga&&t1(O,Rr(),q),rc}function _f(h,g,U,O,q){const V=Yi(),ut=Es(V,h,g,U,O,q);return ut!==Ga&&t1(V,Rr(),ut),_f}function y5(h,g,U,O,q,V,ut){const kt=Yi(),jt=function Wl(h,g,U,O,q,V,ut,kt){const ye=Xa(h,qr(),U,q,ut);return Ul(3),ye?g+ct(U)+O+ct(q)+V+ct(ut)+kt:Ga}(kt,h,g,U,O,q,V,ut);return jt!==Ga&&t1(kt,Rr(),jt),y5}function B0(h,g,U,O,q,V,ut,kt,jt){const ye=Yi(),Qe=function _u(h,g,U,O,q,V,ut,kt,jt,ye){const An=za(h,qr(),U,q,ut,jt);return Ul(4),An?g+ct(U)+O+ct(q)+V+ct(ut)+kt+ct(jt)+ye:Ga}(ye,h,g,U,O,q,V,ut,kt,jt);return Qe!==Ga&&t1(ye,Rr(),Qe),B0}function Np(h,g,U){tp(se,o1,fl(Yi(),h,g,U),!0)}function I4(h,g,U){const O=Yi();return ya(O,er(),g)&&mu(Da(),Ra(),O,h,g,O[11],U,!0),I4}function D5(h,g,U){const O=Yi();if(ya(O,er(),g)){const V=Da(),ut=Ra();mu(V,ut,O,h,g,Op(Ic(V.data),ut,O),U,!0)}return D5}const a1=void 0;var tx=["en",[["a","p"],["AM","PM"],a1],[["AM","PM"],a1,a1],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],a1,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],a1,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",a1,"{1} 'at' {0}",a1],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function gc(h){const U=Math.floor(Math.abs(h)),O=h.toString().replace(/^[^.]*\.?/,"").length;return 1===U&&0===O?1:5}];let m2={};function ex(h,g,U){"string"!=typeof g&&(U=g,g=h[Ma.LocaleId]),g=g.toLowerCase().replace(/_/g,"-"),m2[g]=h,U&&(m2[g][Ma.ExtraData]=U)}function wi(h){const g=function F4(h){return h.toLowerCase().replace(/_/g,"-")}(h);let U=Tm(g);if(U)return U;const O=g.split("-")[0];if(U=Tm(O),U)return U;if("en"===O)return tx;throw new W(701,!1)}function H(h){return wi(h)[Ma.PluralCase]}function Tm(h){return h in m2||(m2[h]=On.ng&&On.ng.common&&On.ng.common.locales&&On.ng.common.locales[h]),m2[h]}var Ma=(()=>((Ma=Ma||{})[Ma.LocaleId=0]="LocaleId",Ma[Ma.DayPeriodsFormat=1]="DayPeriodsFormat",Ma[Ma.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ma[Ma.DaysFormat=3]="DaysFormat",Ma[Ma.DaysStandalone=4]="DaysStandalone",Ma[Ma.MonthsFormat=5]="MonthsFormat",Ma[Ma.MonthsStandalone=6]="MonthsStandalone",Ma[Ma.Eras=7]="Eras",Ma[Ma.FirstDayOfWeek=8]="FirstDayOfWeek",Ma[Ma.WeekendRange=9]="WeekendRange",Ma[Ma.DateFormat=10]="DateFormat",Ma[Ma.TimeFormat=11]="TimeFormat",Ma[Ma.DateTimeFormat=12]="DateTimeFormat",Ma[Ma.NumberSymbols=13]="NumberSymbols",Ma[Ma.NumberFormats=14]="NumberFormats",Ma[Ma.CurrencyCode=15]="CurrencyCode",Ma[Ma.CurrencySymbol=16]="CurrencySymbol",Ma[Ma.CurrencyName=17]="CurrencyName",Ma[Ma.Currencies=18]="Currencies",Ma[Ma.Directionality=19]="Directionality",Ma[Ma.PluralCase=20]="PluralCase",Ma[Ma.ExtraData=21]="ExtraData",Ma))();const s_="en-US";let El=s_;function qp(h,g,U,O,q){if(h=I(h),Array.isArray(h))for(let V=0;V>20;if(oc(h)||!h.multi){const Ai=new Au(jt,q,Ar),Vi=jh(kt,g,q?Qe:Qe+si,An);-1===Vi?(us(ts(ye,ut),V,kt),f2(V,h,g.length),g.push(kt),ye.directiveStart++,ye.directiveEnd++,q&&(ye.providerIndexes+=1048576),U.push(Ai),ut.push(Ai)):(U[Vi]=Ai,ut[Vi]=Ai)}else{const Ai=jh(kt,g,Qe+si,An),Vi=jh(kt,g,Qe,Qe+si),Ao=Ai>=0&&U[Ai],ro=Vi>=0&&U[Vi];if(q&&!ro||!q&&!Ao){us(ts(ye,ut),V,kt);const pa=function J5(h,g,U,O,q){const V=new Au(h,U,Ar);return V.multi=[],V.index=g,V.componentProviders=0,V5(V,q,O&&!U),V}(q?Jh:Ex,U.length,q,O,jt);!q&&ro&&(U[Vi].providerFactory=pa),f2(V,h,g.length,0),g.push(kt),ye.directiveStart++,ye.directiveEnd++,q&&(ye.providerIndexes+=1048576),U.push(pa),ut.push(pa)}else f2(V,h,Ai>-1?Ai:Vi,V5(U[q?Vi:Ai],jt,!q&&O));!q&&O&&ro&&U[Vi].componentProviders++}}}function f2(h,g,U,O){const q=oc(g),V=function am(h){return!!h.useClass}(g);if(q||V){const jt=(V?I(g.useClass):g).prototype.ngOnDestroy;if(jt){const ye=h.destroyHooks||(h.destroyHooks=[]);if(!q&&g.multi){const Qe=ye.indexOf(U);-1===Qe?ye.push(U,[O,jt]):ye[Qe+1].push(O,jt)}else ye.push(U,jt)}}}function V5(h,g,U){return U&&h.componentProviders++,h.multi.push(g)-1}function jh(h,g,U,O){for(let q=U;q{U.providersResolver=(O,q)=>function tA(h,g,U){const O=Da();if(O.firstCreatePass){const q=Fs(h);qp(U,O.data,O.blueprint,q,!0),qp(g,O.data,O.blueprint,q,!1)}}(O,q?q(h):h,g)}}class xf{}class Y4{}function Gh(h,g){return new W0(h,g??null)}class W0 extends xf{constructor(g,U){super(),this._parent=U,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new K1(this);const O=go(g);this._bootstrapComponents=V1(O.bootstrap),this._r3Injector=Zd(g,U,[{provide:xf,useValue:this},{provide:V_,useValue:this.componentFactoryResolver}],w(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(U=>U()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class V4 extends Y4{constructor(g){super(),this.moduleType=g}create(g){return new W0(this.moduleType,g)}}class eA extends xf{constructor(g,U,O){super(),this.componentFactoryResolver=new K1(this),this.instance=null;const q=new Y1([...g,{provide:xf,useValue:this},{provide:V_,useValue:this.componentFactoryResolver}],U||B1(),O,new Set(["environment"]));this.injector=q,q.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function Cf(h,g,U=null){return new eA(h,g,U).injector}let Ix=(()=>{class h{constructor(U){this._injector=U,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(U){if(!U.standalone)return null;if(!this.cachedInjectors.has(U.id)){const O=mc(0,U.type),q=O.length>0?Cf([O],this._injector,`Standalone[${U.type.name}]`):null;this.cachedInjectors.set(U.id,q)}return this.cachedInjectors.get(U.id)}ngOnDestroy(){try{for(const U of this.cachedInjectors.values())null!==U&&U.destroy()}finally{this.cachedInjectors.clear()}}}return h.\u0275prov=ue({token:h,providedIn:"environment",factory:()=>new h(Sr(to))}),h})();function Q5(h){h.getStandaloneInjector=g=>g.get(Ix).getOrCreateStandaloneInjector(h)}function Bx(h,g,U){const O=Nr()+h,q=Yi();return q[O]===Ga?ta(q,O,U?g.call(U):g()):function xa(h,g){return h[g]}(q,O)}function X5(h,g,U,O){return j4(Yi(),Nr(),h,g,U,O)}function Yx(h,g,U,O,q){return ib(Yi(),Nr(),h,g,U,O,q)}function h2(h,g){const U=h[g];return U===Ga?void 0:U}function j4(h,g,U,O,q,V){const ut=g+U;return ya(h,ut,q)?ta(h,ut+1,V?O.call(V,q):O(q)):h2(h,ut+1)}function ib(h,g,U,O,q,V,ut){const kt=g+U;return ba(h,kt,q,V)?ta(h,kt+2,ut?O.call(ut,q,V):O(q,V)):h2(h,kt+2)}function Jx(h,g){const U=Da();let O;const q=h+22;U.firstCreatePass?(O=function Gx(h,g){if(g)for(let U=g.length-1;U>=0;U--){const O=g[U];if(h===O.name)return O}}(g,U.pipeRegistry),U.data[q]=O,O.onDestroy&&(U.destroyHooks||(U.destroyHooks=[])).push(q,O.onDestroy)):O=U.data[q];const V=O.factory||(O.factory=ks(O.type)),ut=tt(Ar);try{const kt=Ti(!1),jt=V();return Ti(kt),function Zv(h,g,U,O){U>=h.data.length&&(h.data[U]=null,h.blueprint[U]=null),g[U]=O}(U,Yi(),q,jt),jt}finally{tt(ut)}}function J4(h,g,U){const O=h+22,q=Yi(),V=qs(q,O);return K0(q,O)?j4(q,Nr(),g,V.transform,U,V):V.transform(U)}function $0(h,g,U,O){const q=h+22,V=Yi(),ut=qs(V,q);return K0(V,q)?ib(V,Nr(),g,ut.transform,U,O,ut):ut.transform(U,O)}function rb(h,g,U,O,q){const V=h+22,ut=Yi(),kt=qs(ut,V);return K0(ut,V)?function ob(h,g,U,O,q,V,ut,kt){const jt=g+U;return Xa(h,jt,q,V,ut)?ta(h,jt+3,kt?O.call(kt,q,V,ut):O(q,V,ut)):h2(h,jt+3)}(ut,Nr(),g,kt.transform,U,O,q,kt):kt.transform(U,O,q)}function G4(h,g,U,O,q,V){const ut=h+22,kt=Yi(),jt=qs(kt,ut);return K0(kt,ut)?function ab(h,g,U,O,q,V,ut,kt,jt){const ye=g+U;return za(h,ye,q,V,ut,kt)?ta(h,ye+4,jt?O.call(jt,q,V,ut,kt):O(q,V,ut,kt)):h2(h,ye+4)}(kt,Nr(),g,jt.transform,U,O,q,V,jt):jt.transform(U,O,q,V)}function K0(h,g){return h[1].data[g].pure}function sa(h){return g=>{setTimeout(h,void 0,g)}}const Pd=class pA extends d.xQ{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,U,O){let q=g,V=U||(()=>null),ut=O;if(g&&"object"==typeof g){const jt=g;q=jt.next?.bind(jt),V=jt.error?.bind(jt),ut=jt.complete?.bind(jt)}this.__isAsync&&(V=sa(V),q&&(q=sa(q)),ut&&(ut=sa(ut)));const kt=super.subscribe({next:q,error:V,complete:ut});return g instanceof p.w&&g.add(kt),kt}};function mA(){return this._results[Yn()]()}class Sd{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const U=Yn(),O=Sd.prototype;O[U]||(O[U]=mA)}get changes(){return this._changes||(this._changes=new Pd)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,U){return this._results.reduce(g,U)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,U){const O=this;O.dirty=!1;const q=Jo(g);(this._changesDetected=!function Y(h,g,U){if(h.length!==g.length)return!1;for(let O=0;O{class h{}return h.__NG_ELEMENT_ID__=$x,h})();const sb=Wh,Wx=class extends sb{constructor(g,U,O){super(),this._declarationLView=g,this._declarationTContainer=U,this.elementRef=O}createEmbeddedView(g,U){const O=this._declarationTContainer.tViews,q=Q1(this._declarationLView,O,g,16,null,O.declTNode,null,null,null,null,U||null);q[17]=this._declarationLView[this._declarationTContainer.index];const ut=this._declarationLView[19];return null!==ut&&(q[19]=ut.createEmbeddedView(O)),Xd(O,q,g),new Am(q)}};function $x(){return $h(Pr(),Yi())}function $h(h,g){return 4&h.type?new Wx(g,h,jm(h,g)):null}let X0=(()=>{class h{}return h.__NG_ELEMENT_ID__=_A,h})();function _A(){return W4(Pr(),Yi())}const Kx=X0,cb=class extends Kx{constructor(g,U,O){super(),this._lContainer=g,this._hostTNode=U,this._hostLView=O}get element(){return jm(this._hostTNode,this._hostLView)}get injector(){return new cu(this._hostTNode,this._hostLView)}get parentInjector(){const g=ns(this._hostTNode,this._hostLView);if(nn(g)){const U=$n(g,this._hostLView),O=Cn(g);return new cu(U[1].data[O+8],U)}return new cu(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const U=Xx(this._lContainer);return null!==U&&U[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,U,O){let q,V;"number"==typeof O?q=O:null!=O&&(q=O.index,V=O.injector);const ut=g.createEmbeddedView(U||{},V);return this.insert(ut,q),ut}createComponent(g,U,O,q,V){const ut=g&&!function To(h){return"function"==typeof h}(g);let kt;if(ut)kt=U;else{const An=U||{};kt=An.index,O=An.injector,q=An.projectableNodes,V=An.environmentInjector||An.ngModuleRef}const jt=ut?g:new X1(ve(g)),ye=O||this.parentInjector;if(!V&&null==jt.ngModule){const si=(ut?ye:this.parentInjector).get(to,null);si&&(V=si)}const Qe=jt.create(ye,q,void 0,V);return this.insert(Qe.hostView,kt),Qe}insert(g,U){const O=g._lView,q=O[1];if(function Qs(h){return Ir(h[3])}(O)){const Qe=this.indexOf(g);if(-1!==Qe)this.detach(Qe);else{const An=O[3],si=new cb(An,An[6],An[3]);si.detach(si.indexOf(g))}}const V=this._adjustIndex(U),ut=this._lContainer;!function Nm(h,g,U,O){const q=10+O,V=U.length;O>0&&(U[q-1][4]=g),O0)O.push(ut[kt/2]);else{const ye=V[kt+1],Qe=g[-jt];for(let An=10;An{class h{constructor(U){this.appInits=U,this.resolve=a6,this.reject=a6,this.initialized=!1,this.done=!1,this.donePromise=new Promise((O,q)=>{this.resolve=O,this.reject=q})}runInitializers(){if(this.initialized)return;const U=[],O=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let q=0;q{V.subscribe({complete:kt,error:jt})});U.push(ut)}}Promise.all(U).then(()=>{O()}).catch(q=>{this.reject(q)}),0===U.length&&O(),this.initialized=!0}}return h.\u0275fac=function(U){return new(U||h)(Sr(Sb,8))},h.\u0275prov=ue({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const hC=new wr("AppId",{providedIn:"root",factory:function gC(){return`${c3()}${c3()}${c3()}`}});function c3(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const bC=new wr("Platform Initializer"),vC=new wr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),xC=new wr("appBootstrapListener"),Ob=new wr("AnimationModuleType");let CC=(()=>{class h{log(U){console.log(U)}warn(U){console.warn(U)}}return h.\u0275fac=function(U){return new(U||h)},h.\u0275prov=ue({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const l3=new wr("LocaleId",{providedIn:"root",factory:()=>_p(l3,Ft.Optional|Ft.SkipSelf)||function AC(){return typeof $localize<"u"&&$localize.locale||s_}()}),yC=new wr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class IA{constructor(g,U){this.ngModuleFactory=g,this.componentFactories=U}}let wC=(()=>{class h{compileModuleSync(U){return new V4(U)}compileModuleAsync(U){return Promise.resolve(this.compileModuleSync(U))}compileModuleAndAllComponentsSync(U){const O=this.compileModuleSync(U),V=V1(go(U).declarations).reduce((ut,kt)=>{const jt=ve(kt);return jt&&ut.push(new X1(jt)),ut},[]);return new IA(O,V)}compileModuleAndAllComponentsAsync(U){return Promise.resolve(this.compileModuleAndAllComponentsSync(U))}clearCache(){}clearCacheFor(U){}getModuleId(U){}}return h.\u0275fac=function(U){return new(U||h)},h.\u0275prov=ue({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const kC=(()=>Promise.resolve(0))();function u3(h){typeof Zone>"u"?kC.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class r1{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:U=!1,shouldCoalesceRunChangeDetection:O=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pd(!1),this.onMicrotaskEmpty=new Pd(!1),this.onStable=new Pd(!1),this.onError=new Pd(!1),typeof Zone>"u")throw new W(908,!1);Zone.assertZonePatched();const q=this;if(q._nesting=0,q._outer=q._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const V=Zone.AsyncStackTaggingZoneSpec;q._inner=q._inner.fork(new V("Angular"))}Zone.TaskTrackingZoneSpec&&(q._inner=q._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(q._inner=q._inner.fork(Zone.longStackTraceZoneSpec)),q.shouldCoalesceEventChangeDetection=!O&&U,q.shouldCoalesceRunChangeDetection=O,q.lastRequestAnimationFrameId=-1,q.nativeRequestAnimationFrame=function r6(){let h=On.requestAnimationFrame,g=On.cancelAnimationFrame;if(typeof Zone<"u"&&h&&g){const U=h[Zone.__symbol__("OriginalDelegate")];U&&(h=U);const O=g[Zone.__symbol__("OriginalDelegate")];O&&(g=O)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function DC(h){const g=()=>{!function Ib(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(On,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,Fb(h),h.isCheckStableRunning=!0,s6(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),Fb(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(U,O,q,V,ut,kt)=>{try{return PC(h),U.invokeTask(q,V,ut,kt)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===V.type||h.shouldCoalesceRunChangeDetection)&&g(),Nb(h)}},onInvoke:(U,O,q,V,ut,kt,jt)=>{try{return PC(h),U.invoke(q,V,ut,kt,jt)}finally{h.shouldCoalesceRunChangeDetection&&g(),Nb(h)}},onHasTask:(U,O,q,V)=>{U.hasTask(q,V),O===q&&("microTask"==V.change?(h._hasPendingMicrotasks=V.microTask,Fb(h),s6(h)):"macroTask"==V.change&&(h.hasPendingMacrotasks=V.macroTask))},onHandleError:(U,O,q,V)=>(U.handleError(q,V),h.runOutsideAngular(()=>h.onError.emit(V)),!1)})}(q)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!r1.isInAngularZone())throw new W(909,!1)}static assertNotInAngularZone(){if(r1.isInAngularZone())throw new W(909,!1)}run(g,U,O){return this._inner.run(g,U,O)}runTask(g,U,O,q){const V=this._inner,ut=V.scheduleEventTask("NgZoneEvent: "+q,g,Eb,a6,a6);try{return V.runTask(ut,U,O)}finally{V.cancelTask(ut)}}runGuarded(g,U,O){return this._inner.runGuarded(g,U,O)}runOutsideAngular(g){return this._outer.run(g)}}const Eb={};function s6(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function Fb(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function PC(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function Nb(h){h._nesting--,s6(h)}class qb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pd,this.onMicrotaskEmpty=new Pd,this.onStable=new Pd,this.onError=new Pd}run(g,U,O){return g.apply(U,O)}runGuarded(g,U,O){return g.apply(U,O)}runOutsideAngular(g){return g()}runTask(g,U,O,q){return g.apply(U,O)}}const SC=new wr(""),Rb=new wr("");let c6,LC=(()=>{class h{constructor(U,O,q){this._ngZone=U,this.registry=O,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,c6||(function EC(h){c6=h}(q),q.addToWindow(O)),this._watchAngularEvents(),U.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{r1.assertNotInAngularZone(),u3(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())u3(()=>{for(;0!==this._callbacks.length;){let U=this._callbacks.pop();clearTimeout(U.timeoutId),U.doneCb(this._didWork)}this._didWork=!1});else{let U=this.getPendingTasks();this._callbacks=this._callbacks.filter(O=>!O.updateCb||!O.updateCb(U)||(clearTimeout(O.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(U=>({source:U.source,creationLocation:U.creationLocation,data:U.data})):[]}addCallback(U,O,q){let V=-1;O&&O>0&&(V=setTimeout(()=>{this._callbacks=this._callbacks.filter(ut=>ut.timeoutId!==V),U(this._didWork,this.getPendingTasks())},O)),this._callbacks.push({doneCb:U,timeoutId:V,updateCb:q})}whenStable(U,O,q){if(q&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(U,O,q),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(U){this.registry.registerApplication(U,this)}unregisterApplication(U){this.registry.unregisterApplication(U)}findProviders(U,O,q){return[]}}return h.\u0275fac=function(U){return new(U||h)(Sr(r1),Sr(OC),Sr(Rb))},h.\u0275prov=ue({token:h,factory:h.\u0275fac}),h})(),OC=(()=>{class h{constructor(){this._applications=new Map}registerApplication(U,O){this._applications.set(U,O)}unregisterApplication(U){this._applications.delete(U)}unregisterAllApplications(){this._applications.clear()}getTestability(U){return this._applications.get(U)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(U,O=!0){return c6?.findTestabilityInTree(this,U,O)??null}}return h.\u0275fac=function(U){return new(U||h)},h.\u0275prov=ue({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),l_=null;const Hb=new wr("AllowMultipleToken"),zb=new wr("PlatformDestroyListeners");class NC{constructor(g,U){this.name=g,this.token=U}}function ap(h,g,U=[]){const O=`Platform: ${g}`,q=new wr(O);return(V=[])=>{let ut=u6();if(!ut||ut.injector.get(Hb,!1)){const kt=[...U,...V,{provide:q,useValue:!0}];h?h(kt):function NA(h){if(l_&&!l_.get(Hb,!1))throw new W(400,!1);l_=h;const g=h.get(d6);(function RC(h){const g=h.get(bC,null);g&&g.forEach(U=>U())})(h)}(function l6(h=[],g){return pm.create({name:g,providers:[{provide:rs,useValue:"platform"},{provide:zb,useValue:new Set([()=>l_=null])},...h]})}(kt,O))}return function qA(h){const g=u6();if(!g)throw new W(401,!1);return g}()}}function u6(){return l_?.get(d6)??null}let d6=(()=>{class h{constructor(U){this._injector=U,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(U,O){const q=function HC(h,g){let U;return U="noop"===h?new qb:("zone.js"===h?void 0:h)||new r1(g),U}(O?.ngZone,function m3(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(O)),V=[{provide:r1,useValue:q}];return q.run(()=>{const ut=pm.create({providers:V,parent:this.injector,name:U.moduleType.name}),kt=U.create(ut),jt=kt.injector.get(sm,null);if(!jt)throw new W(402,!1);return q.runOutsideAngular(()=>{const ye=q.onError.subscribe({next:Qe=>{jt.handleError(Qe)}});kt.onDestroy(()=>{f3(this._modules,kt),ye.unsubscribe()})}),function Bb(h,g,U){try{const O=U();return e1(O)?O.catch(q=>{throw g.runOutsideAngular(()=>h.handleError(q)),q}):O}catch(O){throw g.runOutsideAngular(()=>h.handleError(O)),O}}(jt,q,()=>{const ye=kt.injector.get(s3);return ye.runInitializers(),ye.donePromise.then(()=>(function ep(h){Xe(h,"Expected localeId to be defined"),"string"==typeof h&&(El=h.toLowerCase().replace(/_/g,"-"))}(kt.injector.get(l3,s_)||s_),this._moduleDoBootstrap(kt),kt))})})}bootstrapModule(U,O=[]){const q=Yb({},O);return function IC(h,g,U){const O=new V4(U);return Promise.resolve(O)}(0,0,U).then(V=>this.bootstrapModuleFactory(V,q))}_moduleDoBootstrap(U){const O=U.injector.get(_3);if(U._bootstrapComponents.length>0)U._bootstrapComponents.forEach(q=>O.bootstrap(q));else{if(!U.instance.ngDoBootstrap)throw new W(403,!1);U.instance.ngDoBootstrap(O)}this._modules.push(U)}onDestroy(U){this._destroyListeners.push(U)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new W(404,!1);this._modules.slice().forEach(O=>O.destroy()),this._destroyListeners.forEach(O=>O());const U=this._injector.get(zb,null);U&&(U.forEach(O=>O()),U.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(U){return new(U||h)(Sr(pm))},h.\u0275prov=ue({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function Yb(h,g){return Array.isArray(g)?g.reduce(Yb,h):{...h,...g}}let _3=(()=>{class h{constructor(U,O,q){this._zone=U,this._injector=O,this._exceptionHandler=q,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const V=new v.y(kt=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{kt.next(this._stable),kt.complete()})}),ut=new v.y(kt=>{let jt;this._zone.runOutsideAngular(()=>{jt=this._zone.onStable.subscribe(()=>{r1.assertNotInAngularZone(),u3(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,kt.next(!0))})})});const ye=this._zone.onUnstable.subscribe(()=>{r1.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{kt.next(!1)}))});return()=>{jt.unsubscribe(),ye.unsubscribe()}});this.isStable=(0,T.T)(V,ut.pipe((0,t.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(U,O){const q=U instanceof Jg;if(!this._injector.get(s3).done)throw!q&&bi(U),new W(405,false);let ut;ut=q?U:this._injector.get(V_).resolveComponentFactory(U),this.componentTypes.push(ut.componentType);const kt=function p3(h){return h.isBoundToModule}(ut)?void 0:this._injector.get(xf),ye=ut.create(pm.NULL,[],O||ut.selector,kt),Qe=ye.location.nativeElement,An=ye.injector.get(SC,null);return An?.registerApplication(Qe),ye.onDestroy(()=>{this.detachView(ye.hostView),f3(this.components,ye),An?.unregisterApplication(Qe)}),this._loadComponent(ye),ye}tick(){if(this._runningTick)throw new W(101,!1);try{this._runningTick=!0;for(let U of this._views)U.detectChanges()}catch(U){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(U))}finally{this._runningTick=!1}}attachView(U){const O=U;this._views.push(O),O.attachToAppRef(this)}detachView(U){const O=U;f3(this._views,O),O.detachFromAppRef()}_loadComponent(U){this.attachView(U.hostView),this.tick(),this.components.push(U),this._injector.get(xC,[]).concat(this._bootstrapListeners).forEach(q=>q(U))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(U=>U()),this._views.slice().forEach(U=>U.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(U){return this._destroyListeners.push(U),()=>f3(this._destroyListeners,U)}destroy(){if(this._destroyed)throw new W(406,!1);const U=this._injector;U.destroy&&!U.destroyed&&U.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(U){return new(U||h)(Sr(r1),Sr(to),Sr(sm))},h.\u0275prov=ue({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function f3(h,g){const U=h.indexOf(g);U>-1&&h.splice(U,1)}let D1=!0;function VC(){D1=!1}let GC=(()=>{class h{}return h.__NG_ELEMENT_ID__=HA,h})();function HA(h){return function QC(h,g,U){if(rl(h)&&!U){const O=xs(h.index,g);return new Am(O,O)}return 47&h.type?new Am(g[16],g):null}(Pr(),Yi(),16==(16&h))}class Xb{constructor(){}supports(g){return fi(g)}create(g){return new jA(g)}}const VA=(h,g)=>g;class jA{constructor(g){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=g||VA}forEachItem(g){let U;for(U=this._itHead;null!==U;U=U._next)g(U)}forEachOperation(g){let U=this._itHead,O=this._removalsHead,q=0,V=null;for(;U||O;){const ut=!O||U&&U.currentIndex<_6(O,q,V)?U:O,kt=_6(ut,q,V),jt=ut.currentIndex;if(ut===O)q--,O=O._nextRemoved;else if(U=U._next,null==ut.previousIndex)q++;else{V||(V=[]);const ye=kt-q,Qe=jt-q;if(ye!=Qe){for(let si=0;si{ut=this._trackByFn(q,kt),null!==U&&Object.is(U.trackById,ut)?(O&&(U=this._verifyReinsertion(U,kt,ut,q)),Object.is(U.item,kt)||this._addIdentityChange(U,kt)):(U=this._mismatch(U,kt,ut,q),O=!0),U=U._next,q++}),this.length=q;return this._truncate(U),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,U,O,q){let V;return null===g?V=this._itTail:(V=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null))?(Object.is(g.item,U)||this._addIdentityChange(g,U),this._reinsertAfter(g,V,q)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(O,q))?(Object.is(g.item,U)||this._addIdentityChange(g,U),this._moveAfter(g,V,q)):g=this._addAfter(new KC(U,O),V,q),g}_verifyReinsertion(g,U,O,q){let V=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null);return null!==V?g=this._reinsertAfter(V,g._prev,q):g.currentIndex!=q&&(g.currentIndex=q,this._addToMoves(g,q)),g}_truncate(g){for(;null!==g;){const U=g._next;this._addToRemovals(this._unlink(g)),g=U}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(g,U,O){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const q=g._prevRemoved,V=g._nextRemoved;return null===q?this._removalsHead=V:q._nextRemoved=V,null===V?this._removalsTail=q:V._prevRemoved=q,this._insertAfter(g,U,O),this._addToMoves(g,O),g}_moveAfter(g,U,O){return this._unlink(g),this._insertAfter(g,U,O),this._addToMoves(g,O),g}_addAfter(g,U,O){return this._insertAfter(g,U,O),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,U,O){const q=null===U?this._itHead:U._next;return g._next=q,g._prev=U,null===q?this._itTail=g:q._prev=g,null===U?this._itHead=g:U._next=g,null===this._linkedRecords&&(this._linkedRecords=new tv),this._linkedRecords.put(g),g.currentIndex=O,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const U=g._prev,O=g._next;return null===U?this._itHead=O:U._next=O,null===O?this._itTail=U:O._prev=U,g}_addToMoves(g,U){return g.previousIndex===U||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new tv),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,U){return g.item=U,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class KC{constructor(g,U){this.item=g,this.trackById=U,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class eg{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,U){let O;for(O=this._head;null!==O;O=O._nextDup)if((null===U||U<=O.currentIndex)&&Object.is(O.trackById,g))return O;return null}remove(g){const U=g._prevDup,O=g._nextDup;return null===U?this._head=O:U._nextDup=O,null===O?this._tail=U:O._prevDup=U,null===this._head}}class tv{constructor(){this.map=new Map}put(g){const U=g.trackById;let O=this.map.get(U);O||(O=new eg,this.map.set(U,O)),O.add(g)}get(g,U){const q=this.map.get(g);return q?q.get(g,U):null}remove(g){const U=g.trackById;return this.map.get(U).remove(g)&&this.map.delete(U),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _6(h,g,U){const O=h.previousIndex;if(null===O)return O;let q=0;return U&&O{if(U&&U.key===q)this._maybeAddToChanges(U,O),this._appendAfter=U,U=U._next;else{const V=this._getOrCreateRecordForKey(q,O);U=this._insertBeforeOrAppend(U,V)}}),U){U._prev&&(U._prev._next=null),this._removalsHead=U;for(let O=U;null!==O;O=O._nextRemoved)O===this._mapHead&&(this._mapHead=null),this._records.delete(O.key),O._nextRemoved=O._next,O.previousValue=O.currentValue,O.currentValue=null,O._prev=null,O._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(g,U){if(g){const O=g._prev;return U._next=g,U._prev=O,g._prev=U,O&&(O._next=U),g===this._mapHead&&(this._mapHead=U),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=U,U._prev=this._appendAfter):this._mapHead=U,this._appendAfter=U,null}_getOrCreateRecordForKey(g,U){if(this._records.has(g)){const q=this._records.get(g);this._maybeAddToChanges(q,U);const V=q._prev,ut=q._next;return V&&(V._next=ut),ut&&(ut._prev=V),q._next=null,q._prev=null,q}const O=new XC(g);return this._records.set(g,O),O.currentValue=U,this._addToAdditions(O),O}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,U){Object.is(U,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=U,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,U){g instanceof Map?g.forEach(U):Object.keys(g).forEach(O=>U(g[O],O))}}class XC{constructor(g){this.key=g,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function f6(){return new h6([new Xb])}let h6=(()=>{class h{constructor(U){this.factories=U}static create(U,O){if(null!=O){const q=O.factories.slice();U=U.concat(q)}return new h(U)}static extend(U){return{provide:h,useFactory:O=>h.create(U,O||f6()),deps:[[h,new F1,new nc]]}}find(U){const O=this.factories.find(q=>q.supports(U));if(null!=O)return O;throw new W(901,!1)}}return h.\u0275prov=ue({token:h,providedIn:"root",factory:f6}),h})();function t8(){return new ng([new ev])}let ng=(()=>{class h{constructor(U){this.factories=U}static create(U,O){if(O){const q=O.factories.slice();U=U.concat(q)}return new h(U)}static extend(U){return{provide:h,useFactory:O=>h.create(U,O||t8()),deps:[[h,new F1,new nc]]}}find(U){const O=this.factories.find(q=>q.supports(U));if(O)return O;throw new W(901,!1)}}return h.\u0275prov=ue({token:h,providedIn:"root",factory:t8}),h})();const QA=ap(null,"core",[]);let WA=(()=>{class h{constructor(U){}}return h.\u0275fac=function(U){return new(U||h)(Sr(_3))},h.\u0275mod=It({type:h}),h.\u0275inj=ce({}),h})();function i8(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},85863:(rt,it,b)=>{"use strict";function d(D){for(let P in D){let I=D[P]??"";switch(P){case"display":D.display="flex"===I?["-webkit-flex","flex"]:"inline-flex"===I?["-webkit-inline-flex","inline-flex"]:I;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":D["-webkit-"+P]=I;break;case"flex-direction":D["-webkit-flex-direction"]=I,D["flex-direction"]=I;break;case"order":D.order=D["-webkit-"+P]=isNaN(+I)?"0":I}}return D}b.d(it,{Ar:()=>T,GK:()=>d,iQ:()=>v,kt:()=>k,tj:()=>A});const p="inline",v=["row","column","row-reverse","column-reverse"];function T(D){let[P,I,z]=t(D);return function w(D,P=null,I=!1){return{display:I?"inline-flex":"flex","box-sizing":"border-box","flex-direction":D,"flex-wrap":P||null}}(P,I,z)}function t(D){D=D?.toLowerCase()??"";let[P,I,z]=D.split(" ");return v.find(G=>G===P)||(P=v[0]),I===p&&(I=z!==p?z:"",z=p),[P,x(I),!!z]}function A(D){let[P]=t(D);return P.indexOf("row")>-1}function x(D){if(D)switch(D.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":D="wrap-reverse";break;case"no":case"none":case"nowrap":D="nowrap";break;default:D="wrap"}return D}function k(D,...P){if(null==D)throw TypeError("Cannot convert undefined or null to object");for(let I of P)if(null!=I)for(let z in I)I.hasOwnProperty(z)&&(D[z]=I[z]);return D}},32233:(rt,it,b)=>{"use strict";b.d(it,{Bs:()=>Pt,FL:()=>hi,IR:()=>z,Ot:()=>_i,QI:()=>Ht,RK:()=>Jt,WU:()=>ct,g5:()=>ot,iR:()=>tt,wY:()=>gt,yB:()=>vt});var d=b(94650),p=b(36895),v=b(591),T=b(56498),t=b(36787),A=b(8929),x=b(85863),w=b(92198),k=b(22868);const P={provide:d.tb,useFactory:function D(Vn,Gn){return()=>{if((0,p.NF)(Gn)){const je=Array.from(Vn.querySelectorAll(`[class*=${I}]`)),gn=/\bflex-layout-.+?\b/g;je.forEach(Ve=>{Ve.classList.contains(`${I}ssr`)&&Ve.parentNode?Ve.parentNode.removeChild(Ve):Ve.className.replace(gn,"")})}}},deps:[p.K0,d.Lbi],multi:!0},I="flex-layout-";let z=(()=>{class Vn{}return Vn.\u0275fac=function(je){return new(je||Vn)},Vn.\u0275mod=d.oAB({type:Vn}),Vn.\u0275inj=d.cJS({providers:[P]}),Vn})();class G{constructor(Gn=!1,je="all",gn="",Ve="",tn=0){this.matches=Gn,this.mediaQuery=je,this.mqAlias=gn,this.suffix=Ve,this.priority=tn,this.property=""}clone(){return new G(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let W=(()=>{class Vn{constructor(){this.stylesheet=new Map}addStyleToElement(je,gn,Ve){const tn=this.stylesheet.get(je);tn?tn.set(gn,Ve):this.stylesheet.set(je,new Map([[gn,Ve]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(je,gn){const Ve=this.stylesheet.get(je);let tn="";if(Ve){const an=Ve.get(gn);("number"==typeof an||"string"==typeof an)&&(tn=an+"")}return tn}}return Vn.\u0275fac=function(je){return new(je||Vn)},Vn.\u0275prov=d.Yz7({token:Vn,factory:Vn.\u0275fac,providedIn:"root"}),Vn})();const ot={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},ct=new d.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>ot}),gt=new d.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Pt=new d.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function St(Vn,Gn){return Vn=Vn?.clone()??new G,Gn&&(Vn.mqAlias=Gn.alias,Vn.mediaQuery=Gn.mediaQuery,Vn.suffix=Gn.suffix,Vn.priority=Gn.priority),Vn}class Ht{constructor(){this.shouldCache=!0}sideEffect(Gn,je,gn){}}let Jt=(()=>{class Vn{constructor(je,gn,Ve,tn){this._serverStylesheet=je,this._serverModuleLoaded=gn,this._platformId=Ve,this.layoutConfig=tn}applyStyleToElement(je,gn,Ve=null){let tn={};"string"==typeof gn&&(tn[gn]=Ve,gn=tn),tn=this.layoutConfig.disableVendorPrefixes?gn:(0,x.GK)(gn),this._applyMultiValueStyleToElement(tn,je)}applyStyleToElements(je,gn=[]){const Ve=this.layoutConfig.disableVendorPrefixes?je:(0,x.GK)(je);gn.forEach(tn=>{this._applyMultiValueStyleToElement(Ve,tn)})}getFlowDirection(je){const gn="flex-direction";let Ve=this.lookupStyle(je,gn);return[Ve||"row",this.lookupInlineStyle(je,gn)||(0,p.PM)(this._platformId)&&this._serverModuleLoaded?Ve:""]}hasWrap(je){return"wrap"===this.lookupStyle(je,"flex-wrap")}lookupAttributeValue(je,gn){return je.getAttribute(gn)??""}lookupInlineStyle(je,gn){return(0,p.NF)(this._platformId)?je.style.getPropertyValue(gn):function at(Vn,Gn){return _t(Vn)[Gn]??""}(je,gn)}lookupStyle(je,gn,Ve=!1){let tn="";return je&&((tn=this.lookupInlineStyle(je,gn))||((0,p.NF)(this._platformId)?Ve||(tn=getComputedStyle(je).getPropertyValue(gn)):this._serverModuleLoaded&&(tn=this._serverStylesheet.getStyleForElement(je,gn)))),tn?tn.trim():""}_applyMultiValueStyleToElement(je,gn){Object.keys(je).sort().forEach(Ve=>{const tn=je[Ve],an=Array.isArray(tn)?tn:[tn];an.sort();for(let pe of an)pe=pe?pe+"":"",(0,p.NF)(this._platformId)||!this._serverModuleLoaded?(0,p.NF)(this._platformId)?gn.style.setProperty(Ve,pe):Zt(gn,Ve,pe):this._serverStylesheet.addStyleToElement(gn,Ve,pe)})}}return Vn.\u0275fac=function(je){return new(je||Vn)(d.LFG(W),d.LFG(gt),d.LFG(d.Lbi),d.LFG(ct))},Vn.\u0275prov=d.Yz7({token:Vn,factory:Vn.\u0275fac,providedIn:"root"}),Vn})();function Zt(Vn,Gn,je){Gn=Gn.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const gn=_t(Vn);gn[Gn]=je??"",function wt(Vn,Gn){let je="";for(const gn in Gn)Gn[gn]&&(je+=`${gn}:${Gn[gn]};`);Vn.setAttribute("style",je)}(Vn,gn)}function _t(Vn){const Gn={},je=Vn.getAttribute("style");if(je){const gn=je.split(/;+/g);for(let Ve=0;Ve0){const an=tn.indexOf(":");if(-1===an)throw new Error(`Invalid CSS style: ${tn}`);Gn[tn.substr(0,an).trim()]=tn.substr(an+1).trim()}}}return Gn}function Nt(Vn,Gn){return(Gn&&Gn.priority||0)-(Vn&&Vn.priority||0)}function Qt(Vn,Gn){return(Vn.priority||0)-(Gn.priority||0)}let qt=(()=>{class Vn{constructor(je,gn,Ve){this._zone=je,this._platformId=gn,this._document=Ve,this.source=new v.X(new G(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const je=[];return this.registry.forEach((gn,Ve)=>{gn.matches&&je.push(Ve)}),je}isActive(je){return this.registry.get(je)?.matches??this.registerQuery(je).some(Ve=>Ve.matches)}observe(je,gn=!1){if(je&&je.length){const Ve=this._observable$.pipe((0,w.h)(an=>!gn||je.indexOf(an.mediaQuery)>-1)),tn=new T.y(an=>{const pe=this.registerQuery(je);if(pe.length){const We=pe.pop();pe.forEach(Et=>{an.next(Et)}),this.source.next(We)}an.complete()});return(0,t.T)(tn,Ve)}return this._observable$}registerQuery(je){const gn=Array.isArray(je)?je:[je],Ve=[];return function Wt(Vn,Gn){const je=Vn.filter(gn=>!le[gn]);if(je.length>0){const gn=je.join(", ");try{const Ve=Gn.createElement("style");Ve.setAttribute("type","text/css"),Ve.styleSheet||Ve.appendChild(Gn.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${gn} {.fx-query-test{ }}\n`)),Gn.head.appendChild(Ve),je.forEach(tn=>le[tn]=Ve)}catch(Ve){console.error(Ve)}}}(gn,this._document),gn.forEach(tn=>{const an=We=>{this._zone.run(()=>this.source.next(new G(We.matches,tn)))};let pe=this.registry.get(tn);pe||(pe=this.buildMQL(tn),pe.addListener(an),this.pendingRemoveListenerFns.push(()=>pe.removeListener(an)),this.registry.set(tn,pe)),pe.matches&&Ve.push(new G(!0,tn))}),Ve}ngOnDestroy(){let je;for(;je=this.pendingRemoveListenerFns.pop();)je()}buildMQL(je){return function Ae(Vn,Gn){return Gn&&window.matchMedia("all").addListener?window.matchMedia(Vn):function Ce(Vn){const Gn=new EventTarget;return Gn.matches="all"===Vn||""===Vn,Gn.media=Vn,Gn.addListener=()=>{},Gn.removeListener=()=>{},Gn.addEventListener=()=>{},Gn.dispatchEvent=()=>!1,Gn.onchange=null,Gn}(Vn)}(je,(0,p.NF)(this._platformId))}}return Vn.\u0275fac=function(je){return new(je||Vn)(d.LFG(d.R0b),d.LFG(d.Lbi),d.LFG(p.K0))},Vn.\u0275prov=d.Yz7({token:Vn,factory:Vn.\u0275fac,providedIn:"root"}),Vn})();const le={},Ne=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],ze="(orientation: portrait) and (max-width: 599.98px)",Xe="(orientation: landscape) and (max-width: 959.98px)",ie="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Te="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",re="(orientation: portrait) and (min-width: 840px)",ee="(orientation: landscape) and (min-width: 1280px)",ue={HANDSET:`${ze}, ${Xe}`,TABLET:`${ie} , ${Te}`,WEB:`${re}, ${ee} `,HANDSET_PORTRAIT:`${ze}`,TABLET_PORTRAIT:`${ie} `,WEB_PORTRAIT:`${re}`,HANDSET_LANDSCAPE:`${Xe}`,TABLET_LANDSCAPE:`${Te}`,WEB_LANDSCAPE:`${ee}`},Kt=[{alias:"handset",priority:2e3,mediaQuery:ue.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ue.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ue.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ue.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ue.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ue.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ue.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ue.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ue.WEB_PORTRAIT,overlapping:!0}],ce=/(\.|-|_)/g;function Le(Vn){let Gn=Vn.length>0?Vn.charAt(0):"",je=Vn.length>1?Vn.slice(1):"";return Gn.toUpperCase()+je}const bn=new d.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Vn=(0,d.f3M)(Pt),Gn=(0,d.f3M)(ct),je=[].concat.apply([],(Vn||[]).map(Ve=>Array.isArray(Ve)?Ve:[Ve]));return function we(Vn,Gn=[]){const je={};return Vn.forEach(gn=>{je[gn.alias]=gn}),Gn.forEach(gn=>{je[gn.alias]?(0,x.kt)(je[gn.alias],gn):je[gn.alias]=gn}),function hn(Vn){return Vn.forEach(Gn=>{Gn.suffix||(Gn.suffix=function on(Vn){return Vn.replace(ce,"|").split("|").map(Le).join("")}(Gn.alias),Gn.overlapping=!!Gn.overlapping)}),Vn}(Object.keys(je).map(gn=>je[gn]))}((Gn.disableDefaultBps?[]:Ne).concat(Gn.addOrientationBps?Kt:[]),je)}});let Ze=(()=>{class Vn{constructor(je){this.findByMap=new Map,this.items=[...je].sort(Qt)}findByAlias(je){return je?this.findWithPredicate(je,gn=>gn.alias===je):null}findByQuery(je){return this.findWithPredicate(je,gn=>gn.mediaQuery===je)}get overlappings(){return this.items.filter(je=>je.overlapping)}get aliases(){return this.items.map(je=>je.alias)}get suffixes(){return this.items.map(je=>je?.suffix??"")}findWithPredicate(je,gn){let Ve=this.findByMap.get(je);return Ve||(Ve=this.items.find(gn)??null,this.findByMap.set(je,Ve)),Ve??null}}return Vn.\u0275fac=function(je){return new(je||Vn)(d.LFG(bn))},Vn.\u0275prov=d.Yz7({token:Vn,factory:Vn.\u0275fac,providedIn:"root"}),Vn})();const dn="print",kn={alias:dn,mediaQuery:dn,priority:1e3};let ri=(()=>{class Vn{constructor(je,gn,Ve){this.breakpoints=je,this.layoutConfig=gn,this._document=Ve,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Ee,this.deactivations=[]}withPrintQuery(je){return[...je,dn]}isPrintEvent(je){return je.mediaQuery.startsWith(dn)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(je=>this.breakpoints.findByAlias(je)).filter(je=>null!==je)}getEventBreakpoints({mediaQuery:je}){const gn=this.breakpoints.findByQuery(je);return(gn?[...this.printBreakPoints,gn]:this.printBreakPoints).sort(Nt)}updateEvent(je){let gn=this.breakpoints.findByQuery(je.mediaQuery);return this.isPrintEvent(je)&&(gn=this.getEventBreakpoints(je)[0],je.mediaQuery=gn?.mediaQuery??""),St(je,gn)}registerBeforeAfterPrintHooks(je){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const gn=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(je,this.getEventBreakpoints(new G(!0,dn))),je.updateStyles())},Ve=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(je),je.updateStyles())};this._document.defaultView.addEventListener("beforeprint",gn),this._document.defaultView.addEventListener("afterprint",Ve),this.beforePrintEventListeners.push(gn),this.afterPrintEventListeners.push(Ve)}interceptEvents(je){return gn=>{this.isPrintEvent(gn)?gn.matches&&!this.isPrinting?(this.startPrinting(je,this.getEventBreakpoints(gn)),je.updateStyles()):!gn.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(je),je.updateStyles()):this.collectActivations(je,gn)}}blockPropagation(){return je=>!(this.isPrinting||this.isPrintEvent(je))}startPrinting(je,gn){this.isPrinting=!0,this.formerActivations=je.activatedBreakpoints,je.activatedBreakpoints=this.queue.addPrintBreakpoints(gn)}stopPrinting(je){je.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(je,gn){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!gn.matches){const Ve=this.breakpoints.findByQuery(gn.mediaQuery);if(Ve){const tn=this.formerActivations&&this.formerActivations.includes(Ve),an=!this.formerActivations&&je.activatedBreakpoints.includes(Ve);(tn||an)&&(this.deactivations.push(Ve),this.deactivations.sort(Nt))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(je=>this._document.defaultView.removeEventListener("beforeprint",je)),this.afterPrintEventListeners.forEach(je=>this._document.defaultView.removeEventListener("afterprint",je)))}}return Vn.\u0275fac=function(je){return new(je||Vn)(d.LFG(Ze),d.LFG(ct),d.LFG(p.K0))},Vn.\u0275prov=d.Yz7({token:Vn,factory:Vn.\u0275fac,providedIn:"root"}),Vn})();class Ee{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Gn){return Gn.push(kn),Gn.sort(Nt),Gn.forEach(je=>this.addBreakpoint(je)),this.printBreakpoints}addBreakpoint(Gn){Gn&&void 0===this.printBreakpoints.find(gn=>gn.mediaQuery===Gn.mediaQuery)&&(this.printBreakpoints=function Ft(Vn){return Vn?.mediaQuery.startsWith(dn)??!1}(Gn)?[Gn,...this.printBreakpoints]:[...this.printBreakpoints,Gn])}clear(){this.printBreakpoints=[]}}let vt=(()=>{class Vn{constructor(je,gn,Ve){this.matchMedia=je,this.breakpoints=gn,this.hook=Ve,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new A.xQ,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(je){this._activatedBreakpoints=[...je]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(je){this._useFallbacks=je}onMediaChange(je){const gn=this.findByQuery(je.mediaQuery);if(gn){je=St(je,gn);const Ve=this.activatedBreakpoints.indexOf(gn);je.matches&&-1===Ve?(this._activatedBreakpoints.push(gn),this._activatedBreakpoints.sort(Nt),this.updateStyles()):!je.matches&&-1!==Ve&&(this._activatedBreakpoints.splice(Ve,1),this._activatedBreakpoints.sort(Nt),this.updateStyles())}}init(je,gn,Ve,tn,an=[]){xt(this.updateMap,je,gn,Ve),xt(this.clearMap,je,gn,tn),this.buildElementKeyMap(je,gn),this.watchExtraTriggers(je,gn,an)}getValue(je,gn,Ve){const tn=this.elementMap.get(je);if(tn){const an=void 0!==Ve?tn.get(Ve):this.getActivatedValues(tn,gn);if(an)return an.get(gn)}}hasValue(je,gn){const Ve=this.elementMap.get(je);if(Ve){const tn=this.getActivatedValues(Ve,gn);if(tn)return void 0!==tn.get(gn)||!1}return!1}setValue(je,gn,Ve,tn){let an=this.elementMap.get(je);if(an){const We=(an.get(tn)??new Map).set(gn,Ve);an.set(tn,We),this.elementMap.set(je,an)}else an=(new Map).set(tn,(new Map).set(gn,Ve)),this.elementMap.set(je,an);const pe=this.getValue(je,gn);void 0!==pe&&this.updateElement(je,gn,pe)}trackValue(je,gn){return this.subject.asObservable().pipe((0,w.h)(Ve=>Ve.element===je&&Ve.key===gn))}updateStyles(){this.elementMap.forEach((je,gn)=>{const Ve=new Set(this.elementKeyMap.get(gn));let tn=this.getActivatedValues(je);tn&&tn.forEach((an,pe)=>{this.updateElement(gn,pe,an),Ve.delete(pe)}),Ve.forEach(an=>{if(tn=this.getActivatedValues(je,an),tn){const pe=tn.get(an);this.updateElement(gn,an,pe)}else this.clearElement(gn,an)})})}clearElement(je,gn){const Ve=this.clearMap.get(je);if(Ve){const tn=Ve.get(gn);tn&&(tn(),this.subject.next({element:je,key:gn,value:""}))}}updateElement(je,gn,Ve){const tn=this.updateMap.get(je);if(tn){const an=tn.get(gn);an&&(an(Ve),this.subject.next({element:je,key:gn,value:Ve}))}}releaseElement(je){const gn=this.watcherMap.get(je);gn&&(gn.forEach(tn=>tn.unsubscribe()),this.watcherMap.delete(je));const Ve=this.elementMap.get(je);Ve&&(Ve.forEach((tn,an)=>Ve.delete(an)),this.elementMap.delete(je))}triggerUpdate(je,gn){const Ve=this.elementMap.get(je);if(Ve){const tn=this.getActivatedValues(Ve,gn);tn&&(gn?this.updateElement(je,gn,tn.get(gn)):tn.forEach((an,pe)=>this.updateElement(je,pe,an)))}}buildElementKeyMap(je,gn){let Ve=this.elementKeyMap.get(je);Ve||(Ve=new Set,this.elementKeyMap.set(je,Ve)),Ve.add(gn)}watchExtraTriggers(je,gn,Ve){if(Ve&&Ve.length){let tn=this.watcherMap.get(je);if(tn||(tn=new Map,this.watcherMap.set(je,tn)),!tn.get(gn)){const pe=(0,t.T)(...Ve).subscribe(()=>{const We=this.getValue(je,gn);this.updateElement(je,gn,We)});tn.set(gn,pe)}}}findByQuery(je){return this.breakpoints.findByQuery(je)}getActivatedValues(je,gn){for(let tn=0;tngn.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(je)).pipe((0,k.b)(this.hook.interceptEvents(this)),(0,w.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Vn.\u0275fac=function(je){return new(je||Vn)(d.LFG(qt),d.LFG(Ze),d.LFG(ri))},Vn.\u0275prov=d.Yz7({token:Vn,factory:Vn.\u0275fac,providedIn:"root"}),Vn})();function xt(Vn,Gn,je,gn){if(void 0!==gn){const Ve=Vn.get(Gn)??new Map;Ve.set(je,gn),Vn.set(Gn,Ve)}}let tt=(()=>{class Vn{constructor(je,gn,Ve,tn){this.elementRef=je,this.styleBuilder=gn,this.styler=Ve,this.marshal=tn,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new A.xQ,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(je){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,je,this.marshal.activatedAlias)}ngOnChanges(je){Object.keys(je).forEach(gn=>{if(-1!==this.inputs.indexOf(gn)){const Ve=gn.split(".").slice(1).join(".");this.setValue(je[gn].currentValue,Ve)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(je=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),je)}addStyles(je,gn){const Ve=this.styleBuilder,tn=Ve.shouldCache;let an=this.styleCache.get(je);(!an||!tn)&&(an=Ve.buildStyles(je,gn),tn&&this.styleCache.set(je,an)),this.mru={...an},this.applyStyleToElement(an),Ve.sideEffect(je,an,gn)}clearStyles(){Object.keys(this.mru).forEach(je=>{this.mru[je]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(je,gn=!1){if(je){const[Ve,tn]=this.styler.getFlowDirection(je);if(!tn&&gn){const an=(0,x.Ar)(Ve);this.styler.applyStyleToElements(an,[je])}return Ve.trim()}return"row"}hasWrap(je){return this.styler.hasWrap(je)}applyStyleToElement(je,gn,Ve=this.nativeElement){this.styler.applyStyleToElement(Ve,je,gn)}setValue(je,gn){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,je,gn)}updateWithValue(je){this.currentValue!==je&&(this.addStyles(je),this.currentValue=je)}}return Vn.\u0275fac=function(je){return new(je||Vn)(d.Y36(d.SBq),d.Y36(Ht),d.Y36(Jt),d.Y36(vt))},Vn.\u0275dir=d.lG2({type:Vn,features:[d.TTD]}),Vn})();function _i(Vn,Gn="1",je="1"){let gn=[Gn,je,Vn],Ve=Vn.indexOf("calc");if(Ve>0){gn[2]=Si(Vn.substring(Ve).trim());let tn=Vn.substr(0,Ve).trim().split(" ");2==tn.length&&(gn[0]=tn[0],gn[1]=tn[1])}else if(0==Ve)gn[2]=Si(Vn.trim());else{let tn=Vn.split(" ");gn=3===tn.length?tn:[Gn,je,Vn]}return gn}function Si(Vn){return Vn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function hi(Vn,Gn){if(void 0===Gn)return Vn;const je=gn=>{const Ve=+gn.slice(0,-"x".length);return Vn.endsWith("x")&&!isNaN(Ve)?`${Ve*Gn.value}${Gn.unit}`:Vn};return Vn.includes(" ")?Vn.split(" ").map(je).join(" "):je(Vn)}EventTarget},55829:(rt,it,b)=>{"use strict";b.d(it,{Zl:()=>Ae,aT:()=>Xe,b8:()=>Jt,oO:()=>ot});var d=b(94650),p=b(32233),v=b(36895),T=b(21281),t=b(7625),A=b(11481);let z=(()=>{class ie extends p.iR{constructor(re,ee,ue,Kt,ce,Le,on){super(re,null,ee,ue),this.ngClassInstance=on,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new v.mk(Kt,ce,re,Le)),this.init(),this.setValue("","")}set klass(re){this.ngClassInstance.klass=re,this.setValue(re,"")}updateWithValue(re){this.ngClassInstance.ngClass=re,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return ie.\u0275fac=function(re){return new(re||ie)(d.Y36(d.SBq),d.Y36(p.RK),d.Y36(p.yB),d.Y36(d.ZZ4),d.Y36(d.aQg),d.Y36(d.Qsj),d.Y36(v.mk,10))},ie.\u0275dir=d.lG2({type:ie,inputs:{klass:["class","klass"]},features:[d.qOj]}),ie})();const G=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let ot=(()=>{class ie extends z{constructor(){super(...arguments),this.inputs=G}}return ie.\u0275fac=function(){let Te;return function(ee){return(Te||(Te=d.n5z(ie)))(ee||ie)}}(),ie.\u0275dir=d.lG2({type:ie,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[d.qOj]}),ie})(),ct=(()=>{class ie extends p.QI{buildStyles(re,ee){return{display:"true"===re?ee.display||(ee.isServer?"initial":""):"none"}}}return ie.\u0275fac=function(){let Te;return function(ee){return(Te||(Te=d.n5z(ie)))(ee||ie)}}(),ie.\u0275prov=d.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),gt=(()=>{class ie extends p.iR{constructor(re,ee,ue,Kt,ce,Le,on){super(re,ee,ue,Kt),this.layoutConfig=ce,this.platformId=Le,this.serverModuleLoaded=on,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const re=Array.from(this.nativeElement.children);for(let ue=0;ue{if(-1!==this.inputs.indexOf(ee)){const ue=ee.split("."),Kt=ue.slice(1).join("."),ce=re[ee].currentValue;let Le=""===ce||0!==ce&&(0,T.Ig)(ce);"fxHide"===ue[0]&&(Le=!Le),this.setValue(Le,Kt)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(re=>{this.marshal.trackValue(this.nativeElement,re).pipe((0,t.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(re=!0){if(""===re)return;const ee=(0,v.PM)(this.platformId);this.addStyles(re?"true":"false",{display:this.display,isServer:ee}),ee&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return ie.\u0275fac=function(re){return new(re||ie)(d.Y36(d.SBq),d.Y36(ct),d.Y36(p.RK),d.Y36(p.yB),d.Y36(p.WU),d.Y36(d.Lbi),d.Y36(p.wY))},ie.\u0275dir=d.lG2({type:ie,features:[d.qOj,d.TTD]}),ie})();const Pt=new WeakMap,St=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let Jt=(()=>{class ie extends gt{constructor(){super(...arguments),this.inputs=St}}return ie.\u0275fac=function(){let Te;return function(ee){return(Te||(Te=d.n5z(ie)))(ee||ie)}}(),ie.\u0275dir=d.lG2({type:ie,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[d.qOj]}),ie})();class at{constructor(Te,re,ee=!0){this.key=Te,this.value=re,this.key=ee?Te.replace(/['"]/g,"").trim():Te.trim(),this.value=ee?re.replace(/['"]/g,"").trim():re.trim(),this.value=this.value.replace(/;/,"")}}function Zt(ie){let Te=typeof ie;return"object"===Te?ie.constructor===Array?"array":ie.constructor===Set?"set":"object":Te}function Qt(ie){const[Te,...re]=ie.split(":");return new at(Te,re.join(":"))}function qt(ie,Te){return Te.key&&(ie[Te.key]=Te.value),ie}let le=(()=>{class ie extends p.iR{constructor(re,ee,ue,Kt,ce,Le,on,hn,we){super(re,null,ee,ue),this.sanitizer=Kt,this.ngStyleInstance=on,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new v.PC(re,ce,Le)),this.init();const bn=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(bn),this.isServer=hn&&(0,v.PM)(we)}updateWithValue(re){const ee=this.buildStyleMap(re);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...ee},this.isServer&&this.applyStyleToElement(ee),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(re){const ee=ue=>this.sanitizer.sanitize(d.q3G.STYLE,ue)??"";if(re)switch(Zt(re)){case"string":return Ne(function wt(ie,Te=";"){return String(ie).trim().split(Te).map(re=>re.trim()).filter(re=>""!==re)}(re),ee);case"array":return Ne(re,ee);default:return function Nt(ie,Te){let re=[];return"set"===Zt(ie)?ie.forEach(ee=>re.push(ee)):Object.keys(ie).forEach(ee=>{re.push(`${ee}:${ie[ee]}`)}),function _t(ie,Te){return ie.map(Qt).filter(ee=>!!ee).map(ee=>(Te&&(ee.value=Te(ee.value)),ee)).reduce(qt,{})}(re,Te)}(re,ee)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return ie.\u0275fac=function(re){return new(re||ie)(d.Y36(d.SBq),d.Y36(p.RK),d.Y36(p.yB),d.Y36(A.H7),d.Y36(d.aQg),d.Y36(d.Qsj),d.Y36(v.PC,10),d.Y36(p.wY),d.Y36(d.Lbi))},ie.\u0275dir=d.lG2({type:ie,features:[d.qOj]}),ie})();const Wt=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let Ae=(()=>{class ie extends le{constructor(){super(...arguments),this.inputs=Wt}}return ie.\u0275fac=function(){let Te;return function(ee){return(Te||(Te=d.n5z(ie)))(ee||ie)}}(),ie.\u0275dir=d.lG2({type:ie,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[d.qOj]}),ie})();function Ne(ie,Te){return ie.map(Qt).filter(ee=>!!ee).map(ee=>(Te&&(ee.value=Te(ee.value)),ee)).reduce(qt,{})}let Xe=(()=>{class ie{}return ie.\u0275fac=function(re){return new(re||ie)},ie.\u0275mod=d.oAB({type:ie}),ie.\u0275inj=d.cJS({imports:[p.IR]}),ie})()},1576:(rt,it,b)=>{"use strict";b.d(it,{SQ:()=>gt,Wh:()=>_i,XD:()=>tt,ae:()=>an,s9:()=>Bt,xw:()=>P,yH:()=>Ce});var d=b(94650),p=b(40445),v=b(32233),T=b(85863),t=b(8929),A=b(7625);let x=(()=>{class pe extends v.QI{buildStyles(Et,{display:Mt}){const It=(0,T.Ar)(Et);return{...It,display:"none"===Mt?Mt:It.display}}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const w=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let D=(()=>{class pe extends v.iR{constructor(Et,Mt,It,Me,en){super(Et,It,Mt,Me),this._config=en,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Et){const It=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=I.get(It)??new Map,I.set(It,this.styleCache),this.currentValue!==Et&&(this.addStyles(Et,{display:It}),this.currentValue=Et)}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(x),d.Y36(v.yB),d.Y36(v.WU))},pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})(),P=(()=>{class pe extends D{constructor(){super(...arguments),this.inputs=w}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[d.qOj]}),pe})();const I=new Map,z={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let G=(()=>{class pe extends v.QI{constructor(Et,Mt){super(),this._styler=Et,this._config=Mt}buildStyles(Et,Mt){return Et.endsWith(at)?(Et=Et.slice(0,Et.indexOf(at)),function wt(pe,We){const[Et,Mt]=pe.split(" "),Me=ve=>`-${ve}`;let en="0px",He=Me(Mt??Et),Zn="0px";return"rtl"===We?Zn=Me(Et):en=Me(Et),{margin:`0px ${en} ${He} ${Zn}`}}(Et=(0,v.FL)(Et,this._config.multiplier),Mt.directionality)):{}}sideEffect(Et,Mt,It){const Me=It.items;if(Et.endsWith(at)){Et=Et.slice(0,Et.indexOf(at));const en=function Zt(pe,We){const[Et,Mt]=pe.split(" ");let Me="0px",He="0px";return"rtl"===We?He=Et:Me=Et,{padding:`0px ${Me} ${Mt??Et} ${He}`}}(Et=(0,v.FL)(Et,this._config.multiplier),It.directionality);this._styler.applyStyleToElements(en,It.items)}else{Et=(0,v.FL)(Et,this._config.multiplier),Et=this.addFallbackUnit(Et);const en=Me.pop(),He=function Nt(pe,We){const Et=_t(We.directionality,We.layout),Mt={...z};return Mt[Et]=pe,Mt}(Et,It);this._styler.applyStyleToElements(He,Me),this._styler.applyStyleToElements(z,[en])}}addFallbackUnit(Et){return isNaN(+Et)?Et:`${Et}${this._config.defaultUnit}`}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.LFG(v.RK),d.LFG(v.WU))},pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const W=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let ct=(()=>{class pe extends v.iR{constructor(Et,Mt,It,Me,en,He){super(Et,en,Me,He),this.zone=Mt,this.directionality=It,this.styleUtils=Me,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new t.xQ;const Zn=[this.directionality.change,this.observerSubject.asObservable()];this.init(Zn),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const Et=this.nativeElement.children,Mt=[];for(let It=Et.length;It--;)Mt[It]=Et[It];return Mt}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(Et){const It=Et.value.split(" ");this.layout=It[0],T.iQ.find(Me=>Me===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(Et){const Mt=this.childrenNodes.filter(It=>1===It.nodeType&&this.willDisplay(It)).sort((It,Me)=>{const en=+this.styler.lookupStyle(It,"order"),He=+this.styler.lookupStyle(Me,"order");return isNaN(en)||isNaN(He)||en===He?0:en>He?1:-1});if(Mt.length>0){const It=this.directionality.value,Me=this.layout;"row"===Me&&"rtl"===It?this.styleCache=Pt:"row"===Me&&"rtl"!==It?this.styleCache=Ht:"column"===Me&&"rtl"===It?this.styleCache=St:"column"===Me&&"rtl"!==It&&(this.styleCache=Jt),this.addStyles(Et,{directionality:It,items:Mt,layout:Me})}}clearStyles(){const Et=Object.keys(this.mru).length>0,Mt=Et?"padding":_t(this.directionality.value,this.layout);Et&&super.clearStyles(),this.styleUtils.applyStyleToElements({[Mt]:""},this.childrenNodes)}willDisplay(Et){const Mt=this.marshal.getValue(Et,"show-hide");return!0===Mt||void 0===Mt&&"none"!==this.styleUtils.lookupStyle(Et,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(Et=>{Et.some(It=>It.addedNodes&&It.addedNodes.length>0||It.removedNodes&&It.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(p.Is),d.Y36(v.RK),d.Y36(G),d.Y36(v.yB))},pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})(),gt=(()=>{class pe extends ct{constructor(){super(...arguments),this.inputs=W}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[d.qOj]}),pe})();const Pt=new Map,St=new Map,Ht=new Map,Jt=new Map,at=" grid";function _t(pe,We){switch(We){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===pe?"margin-left":"margin-right";case"row-reverse":return"rtl"===pe?"margin-right":"margin-left"}}let Qt=(()=>{class pe extends v.QI{constructor(Et){super(),this.layoutConfig=Et}buildStyles(Et,Mt){let[It,Me,...en]=Et.split(" "),He=en.join(" ");const Zn=Mt.direction.indexOf("column")>-1?"column":"row",ve=(0,T.tj)(Zn)?"max-width":"max-height",Be=(0,T.tj)(Zn)?"min-width":"min-height",Fn=String(He).indexOf("calc")>-1,bi=Fn||"auto"===He,go=String(He).indexOf("%")>-1&&!Fn,_o=String(He).indexOf("px")>-1||String(He).indexOf("rem")>-1||String(He).indexOf("em")>-1||String(He).indexOf("vw")>-1||String(He).indexOf("vh")>-1;let fn=Fn||_o;It="0"==It?0:It,Me="0"==Me?0:Me;const wn=!It&&!Me;let ln={};const ii={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(He||""){case"":const Zi=!1!==this.layoutConfig.useColumnBasisZero;He="row"===Zn?"0%":Zi?"0.000000001px":"auto";break;case"initial":case"nogrow":It=0,He="auto";break;case"grow":He="100%";break;case"noshrink":Me=0,He="auto";break;case"auto":break;case"none":It=0,Me=0,He="auto";break;default:!fn&&!go&&!isNaN(He)&&(He+="%"),"0%"===He&&(fn=!0),"0px"===He&&(He="0%"),ln=(0,T.kt)(ii,Fn?{"flex-grow":It,"flex-shrink":Me,"flex-basis":fn?He:"100%"}:{flex:`${It} ${Me} ${fn?He:"100%"}`})}return ln.flex||ln["flex-grow"]||(ln=(0,T.kt)(ii,Fn?{"flex-grow":It,"flex-shrink":Me,"flex-basis":He}:{flex:`${It} ${Me} ${He}`})),"0%"!==He&&"0px"!==He&&"0.000000001px"!==He&&"auto"!==He&&(ln[Be]=wn||fn&&It?He:null,ln[ve]=wn||!bi&&Me?He:null),ln[Be]||ln[ve]?Mt.hasWrap&&(ln[Fn?"flex-basis":"flex"]=ln[ve]?Fn?ln[ve]:`${It} ${Me} ${ln[ve]}`:Fn?ln[Be]:`${It} ${Me} ${ln[Be]}`):ln=(0,T.kt)(ii,Fn?{"flex-grow":It,"flex-shrink":Me,"flex-basis":He}:{flex:`${It} ${Me} ${He}`}),(0,T.kt)(ln,{"box-sizing":"border-box"})}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.LFG(v.WU))},pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const qt=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let Wt=(()=>{class pe extends v.iR{constructor(Et,Mt,It,Me,en){super(Et,Me,Mt,en),this.layoutConfig=It,this.marshal=en,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(Et){this.flexShrink=Et||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Et){this.flexGrow=Et||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,A.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Et){const It=Et.value.split(" ");this.direction=It[0],this.wrap=void 0!==It[1]&&"wrap"===It[1],this.triggerUpdate()}updateWithValue(Et){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const It=this.direction,Me=It.startsWith("row"),en=this.wrap;Me&&en?this.styleCache=ze:Me&&!en?this.styleCache=Ae:!Me&&en?this.styleCache=Xe:!Me&&!en&&(this.styleCache=Ne);const He=String(Et).replace(";",""),Zn=(0,v.Ot)(He,this.flexGrow,this.flexShrink);this.addStyles(Zn.join(" "),{direction:It,hasWrap:en})}triggerReflow(){const Et=this.activatedValue;if(void 0!==Et){const Mt=(0,v.Ot)(Et+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,Mt.join(" "))}}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(v.WU),d.Y36(Qt),d.Y36(v.yB))},pe.\u0275dir=d.lG2({type:pe,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[d.qOj]}),pe})(),Ce=(()=>{class pe extends Wt{constructor(){super(...arguments),this.inputs=qt}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[d.qOj]}),pe})();const Ae=new Map,Ne=new Map,ze=new Map,Xe=new Map;let ri=(()=>{class pe extends v.QI{buildStyles(Et){const Mt={};switch(Et=Et||"stretch"){case"start":Mt["align-self"]="flex-start";break;case"end":Mt["align-self"]="flex-end";break;default:Mt["align-self"]=Et}return Mt}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const Ee=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let vt=(()=>{class pe extends v.iR{constructor(Et,Mt,It,Me){super(Et,It,Mt,Me),this.DIRECTIVE_KEY="flex-align",this.styleCache=xt,this.init()}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(ri),d.Y36(v.yB))},pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})();const xt=new Map;let tt=(()=>{class pe extends vt{constructor(){super(...arguments),this.inputs=Ee}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[d.qOj]}),pe})();const et={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let Ct=(()=>{class pe extends v.QI{buildStyles(Et){return et}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})(),Bt=(()=>{class pe extends v.iR{constructor(Et,Mt,It,Me){super(Et,It,Mt,Me),this.styleCache=ne,this.addStyles("")}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(Ct),d.Y36(v.yB))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[d.qOj]}),pe})();const ne=new Map;let he=(()=>{class pe extends v.QI{buildStyles(Et,Mt){const It={},[Me,en]=Et.split(" ");switch(Me){case"center":It["justify-content"]="center";break;case"space-around":It["justify-content"]="space-around";break;case"space-between":It["justify-content"]="space-between";break;case"space-evenly":It["justify-content"]="space-evenly";break;case"end":case"flex-end":It["justify-content"]="flex-end";break;default:It["justify-content"]="flex-start"}switch(en){case"start":case"flex-start":It["align-items"]=It["align-content"]="flex-start";break;case"center":It["align-items"]=It["align-content"]="center";break;case"end":case"flex-end":It["align-items"]=It["align-content"]="flex-end";break;case"space-between":It["align-content"]="space-between",It["align-items"]="stretch";break;case"space-around":It["align-content"]="space-around",It["align-items"]="stretch";break;case"baseline":It["align-content"]="stretch",It["align-items"]="baseline";break;default:It["align-items"]=It["align-content"]="stretch"}return(0,T.kt)(It,{display:Mt.inline?"inline-flex":"flex","flex-direction":Mt.layout,"box-sizing":"border-box","max-width":"stretch"===en?(0,T.tj)(Mt.layout)?null:"100%":null,"max-height":"stretch"===en&&(0,T.tj)(Mt.layout)?"100%":null})}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const Oe=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let On=(()=>{class pe extends v.iR{constructor(Et,Mt,It,Me){super(Et,It,Mt,Me),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Et){const Mt=this.layout||"row",It=this.inline;"row"===Mt&&It?this.styleCache=Gn:"row"!==Mt||It?"row-reverse"===Mt&&It?this.styleCache=gn:"row-reverse"!==Mt||It?"column"===Mt&&It?this.styleCache=je:"column"!==Mt||It?"column-reverse"===Mt&&It?this.styleCache=Ve:"column-reverse"===Mt&&!It&&(this.styleCache=Vn):this.styleCache=ho:this.styleCache=hi:this.styleCache=Si,this.addStyles(Et,{layout:Mt,inline:It})}onLayoutChange(Et){const Mt=Et.value.split(" ");this.layout=Mt[0],this.inline=Et.value.includes("inline"),T.iQ.find(It=>It===this.layout)||(this.layout="row"),this.triggerUpdate()}}return pe.\u0275fac=function(Et){return new(Et||pe)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(he),d.Y36(v.yB))},pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})(),_i=(()=>{class pe extends On{constructor(){super(...arguments),this.inputs=Oe}}return pe.\u0275fac=function(){let We;return function(Mt){return(We||(We=d.n5z(pe)))(Mt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[d.qOj]}),pe})();const Si=new Map,ho=new Map,hi=new Map,Vn=new Map,Gn=new Map,je=new Map,gn=new Map,Ve=new Map;let an=(()=>{class pe{}return pe.\u0275fac=function(Et){return new(Et||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[v.IR,p.vT]}),pe})()},24006:(rt,it,b)=>{"use strict";b.d(it,{CE:()=>Gs,Cf:()=>gt,F:()=>br,Fd:()=>pr,Fj:()=>G,JJ:()=>Ft,JL:()=>vt,JU:()=>w,NI:()=>Er,On:()=>Qr,Q7:()=>Vl,QS:()=>$s,UX:()=>sl,Zs:()=>Ps,_Y:()=>Ns,a5:()=>dn,kI:()=>Ht,nD:()=>lc,nJ:()=>Be,oH:()=>js,p4:()=>bc,qQ:()=>vs,qu:()=>Da,sg:()=>md,u:()=>zl,u5:()=>Qc,wV:()=>hr,x0:()=>Js});var d=b(94650),p=b(36895),v=b(5254),T=b(30567),t=b(24850);let A=(()=>{class _e{constructor(Yt,st){this._renderer=Yt,this._elementRef=st,this.onChange=ki=>{},this.onTouched=()=>{}}setProperty(Yt,st){this._renderer.setProperty(this._elementRef.nativeElement,Yt,st)}registerOnTouched(Yt){this.onTouched=Yt}registerOnChange(Yt){this.onChange=Yt}setDisabledState(Yt){this.setProperty("disabled",Yt)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(d.Qsj),d.Y36(d.SBq))},_e.\u0275dir=d.lG2({type:_e}),_e})(),x=(()=>{class _e extends A{}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,features:[d.qOj]}),_e})();const w=new d.OlP("NgValueAccessor"),P={provide:w,useExisting:(0,d.Gpc)(()=>G),multi:!0},z=new d.OlP("CompositionEventMode");let G=(()=>{class _e extends A{constructor(Yt,st,ki){super(Yt,st),this._compositionMode=ki,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function I(){const _e=(0,p.q)()?(0,p.q)().getUserAgent():"";return/android (\d+)/.test(_e.toLowerCase())}())}writeValue(Yt){this.setProperty("value",Yt??"")}_handleInput(Yt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Yt)}_compositionStart(){this._composing=!0}_compositionEnd(Yt){this._composing=!1,this._compositionMode&&this.onChange(Yt)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(d.Qsj),d.Y36(d.SBq),d.Y36(z,8))},_e.\u0275dir=d.lG2({type:_e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Yt,st){1&Yt&&d.NdJ("input",function(jo){return st._handleInput(jo.target.value)})("blur",function(){return st.onTouched()})("compositionstart",function(){return st._compositionStart()})("compositionend",function(jo){return st._compositionEnd(jo.target.value)})},features:[d._Bn([P]),d.qOj]}),_e})();function ot(_e){return null==_e||("string"==typeof _e||Array.isArray(_e))&&0===_e.length}function ct(_e){return null!=_e&&"number"==typeof _e.length}const gt=new d.OlP("NgValidators"),Pt=new d.OlP("NgAsyncValidators"),St=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ht{static min(ae){return Jt(ae)}static max(ae){return at(ae)}static required(ae){return Zt(ae)}static requiredTrue(ae){return wt(ae)}static email(ae){return function _t(_e){return ot(_e.value)||St.test(_e.value)?null:{email:!0}}(ae)}static minLength(ae){return function Nt(_e){return ae=>ot(ae.value)||!ct(ae.value)?null:ae.value.length<_e?{minlength:{requiredLength:_e,actualLength:ae.value.length}}:null}(ae)}static maxLength(ae){return Qt(ae)}static pattern(ae){return function qt(_e){if(!_e)return le;let ae,Yt;return"string"==typeof _e?(Yt="","^"!==_e.charAt(0)&&(Yt+="^"),Yt+=_e,"$"!==_e.charAt(_e.length-1)&&(Yt+="$"),ae=new RegExp(Yt)):(Yt=_e.toString(),ae=_e),st=>{if(ot(st.value))return null;const ki=st.value;return ae.test(ki)?null:{pattern:{requiredPattern:Yt,actualValue:ki}}}}(ae)}static nullValidator(ae){return null}static compose(ae){return ie(ae)}static composeAsync(ae){return re(ae)}}function Jt(_e){return ae=>{if(ot(ae.value)||ot(_e))return null;const Yt=parseFloat(ae.value);return!isNaN(Yt)&&Yt<_e?{min:{min:_e,actual:ae.value}}:null}}function at(_e){return ae=>{if(ot(ae.value)||ot(_e))return null;const Yt=parseFloat(ae.value);return!isNaN(Yt)&&Yt>_e?{max:{max:_e,actual:ae.value}}:null}}function Zt(_e){return ot(_e.value)?{required:!0}:null}function wt(_e){return!0===_e.value?null:{required:!0}}function Qt(_e){return ae=>ct(ae.value)&&ae.value.length>_e?{maxlength:{requiredLength:_e,actualLength:ae.value.length}}:null}function le(_e){return null}function Wt(_e){return null!=_e}function Ce(_e){return(0,d.QGY)(_e)?(0,v.D)(_e):_e}function Ae(_e){let ae={};return _e.forEach(Yt=>{ae=null!=Yt?{...ae,...Yt}:ae}),0===Object.keys(ae).length?null:ae}function Ne(_e,ae){return ae.map(Yt=>Yt(_e))}function Xe(_e){return _e.map(ae=>function ze(_e){return!_e.validate}(ae)?ae:Yt=>ae.validate(Yt))}function ie(_e){if(!_e)return null;const ae=_e.filter(Wt);return 0==ae.length?null:function(Yt){return Ae(Ne(Yt,ae))}}function Te(_e){return null!=_e?ie(Xe(_e)):null}function re(_e){if(!_e)return null;const ae=_e.filter(Wt);return 0==ae.length?null:function(Yt){const st=Ne(Yt,ae).map(Ce);return(0,T.D)(st).pipe((0,t.U)(Ae))}}function ee(_e){return null!=_e?re(Xe(_e)):null}function ue(_e,ae){return null===_e?[ae]:Array.isArray(_e)?[..._e,ae]:[_e,ae]}function Kt(_e){return _e._rawValidators}function ce(_e){return _e._rawAsyncValidators}function Le(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}function on(_e,ae){return Array.isArray(_e)?_e.includes(ae):_e===ae}function hn(_e,ae){const Yt=Le(ae);return Le(_e).forEach(ki=>{on(Yt,ki)||Yt.push(ki)}),Yt}function we(_e,ae){return Le(ae).filter(Yt=>!on(_e,Yt))}class bn{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(ae){this._rawValidators=ae||[],this._composedValidatorFn=Te(this._rawValidators)}_setAsyncValidators(ae){this._rawAsyncValidators=ae||[],this._composedAsyncValidatorFn=ee(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ae){this._onDestroyCallbacks.push(ae)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ae=>ae()),this._onDestroyCallbacks=[]}reset(ae){this.control&&this.control.reset(ae)}hasError(ae,Yt){return!!this.control&&this.control.hasError(ae,Yt)}getError(ae,Yt){return this.control?this.control.getError(ae,Yt):null}}class Ze extends bn{get formDirective(){return null}get path(){return null}}class dn extends bn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class kn{constructor(ae){this._cd=ae}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ft=(()=>{class _e extends kn{constructor(Yt){super(Yt)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(dn,2))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Yt,st){2&Yt&&d.ekj("ng-untouched",st.isUntouched)("ng-touched",st.isTouched)("ng-pristine",st.isPristine)("ng-dirty",st.isDirty)("ng-valid",st.isValid)("ng-invalid",st.isInvalid)("ng-pending",st.isPending)},features:[d.qOj]}),_e})(),vt=(()=>{class _e extends kn{constructor(Yt){super(Yt)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(Ze,10))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Yt,st){2&Yt&&d.ekj("ng-untouched",st.isUntouched)("ng-touched",st.isTouched)("ng-pristine",st.isPristine)("ng-dirty",st.isDirty)("ng-valid",st.isValid)("ng-invalid",st.isInvalid)("ng-pending",st.isPending)("ng-submitted",st.isSubmitted)},features:[d.qOj]}),_e})();const Ve="VALID",tn="INVALID",an="PENDING",pe="DISABLED";function We(_e){return(Me(_e)?_e.validators:_e)||null}function Et(_e){return Array.isArray(_e)?Te(_e):_e||null}function Mt(_e,ae){return(Me(ae)?ae.asyncValidators:_e)||null}function It(_e){return Array.isArray(_e)?ee(_e):_e||null}function Me(_e){return null!=_e&&!Array.isArray(_e)&&"object"==typeof _e}function en(_e,ae,Yt){const st=_e.controls;if(!(ae?Object.keys(st):st).length)throw new d.vHH(1e3,"");if(!st[Yt])throw new d.vHH(1001,"")}function He(_e,ae,Yt){_e._forEachChild((st,ki)=>{if(void 0===Yt[ki])throw new d.vHH(1002,"")})}class Zn{constructor(ae,Yt){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=ae,this._rawAsyncValidators=Yt,this._composedValidatorFn=Et(this._rawValidators),this._composedAsyncValidatorFn=It(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(ae){this._rawValidators=this._composedValidatorFn=ae}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ae){this._rawAsyncValidators=this._composedAsyncValidatorFn=ae}get parent(){return this._parent}get valid(){return this.status===Ve}get invalid(){return this.status===tn}get pending(){return this.status==an}get disabled(){return this.status===pe}get enabled(){return this.status!==pe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ae){this._rawValidators=ae,this._composedValidatorFn=Et(ae)}setAsyncValidators(ae){this._rawAsyncValidators=ae,this._composedAsyncValidatorFn=It(ae)}addValidators(ae){this.setValidators(hn(ae,this._rawValidators))}addAsyncValidators(ae){this.setAsyncValidators(hn(ae,this._rawAsyncValidators))}removeValidators(ae){this.setValidators(we(ae,this._rawValidators))}removeAsyncValidators(ae){this.setAsyncValidators(we(ae,this._rawAsyncValidators))}hasValidator(ae){return on(this._rawValidators,ae)}hasAsyncValidator(ae){return on(this._rawAsyncValidators,ae)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ae={}){this.touched=!0,this._parent&&!ae.onlySelf&&this._parent.markAsTouched(ae)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ae=>ae.markAllAsTouched())}markAsUntouched(ae={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Yt=>{Yt.markAsUntouched({onlySelf:!0})}),this._parent&&!ae.onlySelf&&this._parent._updateTouched(ae)}markAsDirty(ae={}){this.pristine=!1,this._parent&&!ae.onlySelf&&this._parent.markAsDirty(ae)}markAsPristine(ae={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Yt=>{Yt.markAsPristine({onlySelf:!0})}),this._parent&&!ae.onlySelf&&this._parent._updatePristine(ae)}markAsPending(ae={}){this.status=an,!1!==ae.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ae.onlySelf&&this._parent.markAsPending(ae)}disable(ae={}){const Yt=this._parentMarkedDirty(ae.onlySelf);this.status=pe,this.errors=null,this._forEachChild(st=>{st.disable({...ae,onlySelf:!0})}),this._updateValue(),!1!==ae.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ae,skipPristineCheck:Yt}),this._onDisabledChange.forEach(st=>st(!0))}enable(ae={}){const Yt=this._parentMarkedDirty(ae.onlySelf);this.status=Ve,this._forEachChild(st=>{st.enable({...ae,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ae.emitEvent}),this._updateAncestors({...ae,skipPristineCheck:Yt}),this._onDisabledChange.forEach(st=>st(!1))}_updateAncestors(ae){this._parent&&!ae.onlySelf&&(this._parent.updateValueAndValidity(ae),ae.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ae){this._parent=ae}getRawValue(){return this.value}updateValueAndValidity(ae={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ve||this.status===an)&&this._runAsyncValidator(ae.emitEvent)),!1!==ae.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ae.onlySelf&&this._parent.updateValueAndValidity(ae)}_updateTreeValidity(ae={emitEvent:!0}){this._forEachChild(Yt=>Yt._updateTreeValidity(ae)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ae.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?pe:Ve}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ae){if(this.asyncValidator){this.status=an,this._hasOwnPendingAsyncValidator=!0;const Yt=Ce(this.asyncValidator(this));this._asyncValidationSubscription=Yt.subscribe(st=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(st,{emitEvent:ae})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ae,Yt={}){this.errors=ae,this._updateControlsErrors(!1!==Yt.emitEvent)}get(ae){let Yt=ae;return null==Yt||(Array.isArray(Yt)||(Yt=Yt.split(".")),0===Yt.length)?null:Yt.reduce((st,ki)=>st&&st._find(ki),this)}getError(ae,Yt){const st=Yt?this.get(Yt):this;return st&&st.errors?st.errors[ae]:null}hasError(ae,Yt){return!!this.getError(ae,Yt)}get root(){let ae=this;for(;ae._parent;)ae=ae._parent;return ae}_updateControlsErrors(ae){this.status=this._calculateStatus(),ae&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ae)}_initObservables(){this.valueChanges=new d.vpe,this.statusChanges=new d.vpe}_calculateStatus(){return this._allControlsDisabled()?pe:this.errors?tn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(an)?an:this._anyControlsHaveStatus(tn)?tn:Ve}_anyControlsHaveStatus(ae){return this._anyControls(Yt=>Yt.status===ae)}_anyControlsDirty(){return this._anyControls(ae=>ae.dirty)}_anyControlsTouched(){return this._anyControls(ae=>ae.touched)}_updatePristine(ae={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ae.onlySelf&&this._parent._updatePristine(ae)}_updateTouched(ae={}){this.touched=this._anyControlsTouched(),this._parent&&!ae.onlySelf&&this._parent._updateTouched(ae)}_registerOnCollectionChange(ae){this._onCollectionChange=ae}_setUpdateStrategy(ae){Me(ae)&&null!=ae.updateOn&&(this._updateOn=ae.updateOn)}_parentMarkedDirty(ae){return!ae&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ae){return null}}class ve extends Zn{constructor(ae,Yt,st){super(We(Yt),Mt(st,Yt)),this.controls=ae,this._initObservables(),this._setUpdateStrategy(Yt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(ae,Yt){return this.controls[ae]?this.controls[ae]:(this.controls[ae]=Yt,Yt.setParent(this),Yt._registerOnCollectionChange(this._onCollectionChange),Yt)}addControl(ae,Yt,st={}){this.registerControl(ae,Yt),this.updateValueAndValidity({emitEvent:st.emitEvent}),this._onCollectionChange()}removeControl(ae,Yt={}){this.controls[ae]&&this.controls[ae]._registerOnCollectionChange(()=>{}),delete this.controls[ae],this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}setControl(ae,Yt,st={}){this.controls[ae]&&this.controls[ae]._registerOnCollectionChange(()=>{}),delete this.controls[ae],Yt&&this.registerControl(ae,Yt),this.updateValueAndValidity({emitEvent:st.emitEvent}),this._onCollectionChange()}contains(ae){return this.controls.hasOwnProperty(ae)&&this.controls[ae].enabled}setValue(ae,Yt={}){He(this,0,ae),Object.keys(ae).forEach(st=>{en(this,!0,st),this.controls[st].setValue(ae[st],{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt)}patchValue(ae,Yt={}){null!=ae&&(Object.keys(ae).forEach(st=>{const ki=this.controls[st];ki&&ki.patchValue(ae[st],{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt))}reset(ae={},Yt={}){this._forEachChild((st,ki)=>{st.reset(ae[ki],{onlySelf:!0,emitEvent:Yt.emitEvent})}),this._updatePristine(Yt),this._updateTouched(Yt),this.updateValueAndValidity(Yt)}getRawValue(){return this._reduceChildren({},(ae,Yt,st)=>(ae[st]=Yt.getRawValue(),ae))}_syncPendingControls(){let ae=this._reduceChildren(!1,(Yt,st)=>!!st._syncPendingControls()||Yt);return ae&&this.updateValueAndValidity({onlySelf:!0}),ae}_forEachChild(ae){Object.keys(this.controls).forEach(Yt=>{const st=this.controls[Yt];st&&ae(st,Yt)})}_setUpControls(){this._forEachChild(ae=>{ae.setParent(this),ae._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ae){for(const[Yt,st]of Object.entries(this.controls))if(this.contains(Yt)&&ae(st))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Yt,st,ki)=>((st.enabled||this.disabled)&&(Yt[ki]=st.value),Yt))}_reduceChildren(ae,Yt){let st=ae;return this._forEachChild((ki,jo)=>{st=Yt(st,ki,jo)}),st}_allControlsDisabled(){for(const ae of Object.keys(this.controls))if(this.controls[ae].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ae){return this.controls.hasOwnProperty(ae)?this.controls[ae]:null}}const Be=ve;class bi extends ve{}function _o(_e,ae){return[...ae.path,_e]}function fn(_e,ae){Zi(_e,ae),ae.valueAccessor.writeValue(_e.value),_e.disabled&&ae.valueAccessor.setDisabledState?.(!0),function No(_e,ae){ae.valueAccessor.registerOnChange(Yt=>{_e._pendingValue=Yt,_e._pendingChange=!0,_e._pendingDirty=!0,"change"===_e.updateOn&&Ea(_e,ae)})}(_e,ae),function fr(_e,ae){const Yt=(st,ki)=>{ae.valueAccessor.writeValue(st),ki&&ae.viewToModelUpdate(st)};_e.registerOnChange(Yt),ae._registerOnDestroy(()=>{_e._unregisterOnChange(Yt)})}(_e,ae),function la(_e,ae){ae.valueAccessor.registerOnTouched(()=>{_e._pendingTouched=!0,"blur"===_e.updateOn&&_e._pendingChange&&Ea(_e,ae),"submit"!==_e.updateOn&&_e.markAsTouched()})}(_e,ae),function ii(_e,ae){if(ae.valueAccessor.setDisabledState){const Yt=st=>{ae.valueAccessor.setDisabledState(st)};_e.registerOnDisabledChange(Yt),ae._registerOnDestroy(()=>{_e._unregisterOnDisabledChange(Yt)})}}(_e,ae)}function wn(_e,ae,Yt=!0){const st=()=>{};ae.valueAccessor&&(ae.valueAccessor.registerOnChange(st),ae.valueAccessor.registerOnTouched(st)),vo(_e,ae),_e&&(ae._invokeOnDestroyCallbacks(),_e._registerOnCollectionChange(()=>{}))}function ln(_e,ae){_e.forEach(Yt=>{Yt.registerOnValidatorChange&&Yt.registerOnValidatorChange(ae)})}function Zi(_e,ae){const Yt=Kt(_e);null!==ae.validator?_e.setValidators(ue(Yt,ae.validator)):"function"==typeof Yt&&_e.setValidators([Yt]);const st=ce(_e);null!==ae.asyncValidator?_e.setAsyncValidators(ue(st,ae.asyncValidator)):"function"==typeof st&&_e.setAsyncValidators([st]);const ki=()=>_e.updateValueAndValidity();ln(ae._rawValidators,ki),ln(ae._rawAsyncValidators,ki)}function vo(_e,ae){let Yt=!1;if(null!==_e){if(null!==ae.validator){const ki=Kt(_e);if(Array.isArray(ki)&&ki.length>0){const jo=ki.filter(Sa=>Sa!==ae.validator);jo.length!==ki.length&&(Yt=!0,_e.setValidators(jo))}}if(null!==ae.asyncValidator){const ki=ce(_e);if(Array.isArray(ki)&&ki.length>0){const jo=ki.filter(Sa=>Sa!==ae.asyncValidator);jo.length!==ki.length&&(Yt=!0,_e.setAsyncValidators(jo))}}}const st=()=>{};return ln(ae._rawValidators,st),ln(ae._rawAsyncValidators,st),Yt}function Ea(_e,ae){_e._pendingDirty&&_e.markAsDirty(),_e.setValue(_e._pendingValue,{emitModelToViewChange:!1}),ae.viewToModelUpdate(_e._pendingValue),_e._pendingChange=!1}function $e(_e,ae){Zi(_e,ae)}function Vt(_e,ae){if(!_e.hasOwnProperty("model"))return!1;const Yt=_e.model;return!!Yt.isFirstChange()||!Object.is(ae,Yt.currentValue)}function zt(_e,ae){_e._syncPendingControls(),ae.forEach(Yt=>{const st=Yt.control;"submit"===st.updateOn&&st._pendingChange&&(Yt.viewToModelUpdate(st._pendingValue),st._pendingChange=!1)})}function Je(_e,ae){if(!ae)return null;let Yt,st,ki;return Array.isArray(ae),ae.forEach(jo=>{jo.constructor===G?Yt=jo:function Q(_e){return Object.getPrototypeOf(_e.constructor)===x}(jo)?st=jo:ki=jo}),ki||st||Yt||null}const Co={provide:Ze,useExisting:(0,d.Gpc)(()=>br)},gr=(()=>Promise.resolve())();let br=(()=>{class _e extends Ze{constructor(Yt,st){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new d.vpe,this.form=new ve({},Te(Yt),ee(st))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Yt){gr.then(()=>{const st=this._findContainer(Yt.path);Yt.control=st.registerControl(Yt.name,Yt.control),fn(Yt.control,Yt),Yt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Yt)})}getControl(Yt){return this.form.get(Yt.path)}removeControl(Yt){gr.then(()=>{const st=this._findContainer(Yt.path);st&&st.removeControl(Yt.name),this._directives.delete(Yt)})}addFormGroup(Yt){gr.then(()=>{const st=this._findContainer(Yt.path),ki=new ve({});$e(ki,Yt),st.registerControl(Yt.name,ki),ki.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Yt){gr.then(()=>{const st=this._findContainer(Yt.path);st&&st.removeControl(Yt.name)})}getFormGroup(Yt){return this.form.get(Yt.path)}updateModel(Yt,st){gr.then(()=>{this.form.get(Yt.path).setValue(st)})}setValue(Yt){this.control.setValue(Yt)}onSubmit(Yt){return this.submitted=!0,zt(this.form,this._directives),this.ngSubmit.emit(Yt),"dialog"===Yt?.target?.method}onReset(){this.resetForm()}resetForm(Yt){this.form.reset(Yt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Yt){return Yt.pop(),Yt.length?this.form.get(Yt):this.form}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(gt,10),d.Y36(Pt,10))},_e.\u0275dir=d.lG2({type:_e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Yt,st){1&Yt&&d.NdJ("submit",function(jo){return st.onSubmit(jo)})("reset",function(){return st.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([Co]),d.qOj]}),_e})();function cs(_e,ae){const Yt=_e.indexOf(ae);Yt>-1&&_e.splice(Yt,1)}function or(_e){return"object"==typeof _e&&null!==_e&&2===Object.keys(_e).length&&"value"in _e&&"disabled"in _e}const Er=class extends Zn{constructor(ae=null,Yt,st){super(We(Yt),Mt(st,Yt)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ae),this._setUpdateStrategy(Yt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Me(Yt)&&(Yt.nonNullable||Yt.initialValueIsDefault)&&(this.defaultValue=or(ae)?ae.value:ae)}setValue(ae,Yt={}){this.value=this._pendingValue=ae,this._onChange.length&&!1!==Yt.emitModelToViewChange&&this._onChange.forEach(st=>st(this.value,!1!==Yt.emitViewToModelChange)),this.updateValueAndValidity(Yt)}patchValue(ae,Yt={}){this.setValue(ae,Yt)}reset(ae=this.defaultValue,Yt={}){this._applyFormState(ae),this.markAsPristine(Yt),this.markAsUntouched(Yt),this.setValue(this.value,Yt),this._pendingChange=!1}_updateValue(){}_anyControls(ae){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ae){this._onChange.push(ae)}_unregisterOnChange(ae){cs(this._onChange,ae)}registerOnDisabledChange(ae){this._onDisabledChange.push(ae)}_unregisterOnDisabledChange(ae){cs(this._onDisabledChange,ae)}_forEachChild(ae){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(ae){or(ae)?(this.value=this._pendingValue=ae.value,ae.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ae}},bc=Er;let Yr=(()=>{class _e extends Ze{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return _o(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,features:[d.qOj]}),_e})();const Lc={provide:dn,useExisting:(0,d.Gpc)(()=>Qr)},xl=(()=>Promise.resolve())();let Qr=(()=>{class _e extends dn{constructor(Yt,st,ki,jo,Sa){super(),this._changeDetectorRef=Sa,this.control=new Er,this._registered=!1,this.update=new d.vpe,this._parent=Yt,this._setValidators(st),this._setAsyncValidators(ki),this.valueAccessor=Je(0,jo)}ngOnChanges(Yt){if(this._checkForErrors(),!this._registered||"name"in Yt){if(this._registered&&(this._checkName(),this.formDirective)){const st=Yt.name.previousValue;this.formDirective.removeControl({name:st,path:this._getPath(st)})}this._setUpControl()}"isDisabled"in Yt&&this._updateDisabled(Yt),Vt(Yt,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Yt){this.viewModel=Yt,this.update.emit(Yt)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){fn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Yt){xl.then(()=>{this.control.setValue(Yt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Yt){const st=Yt.isDisabled.currentValue,ki=0!==st&&(0,d.D6c)(st);xl.then(()=>{ki&&!this.control.disabled?this.control.disable():!ki&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Yt){return this._parent?_o(Yt,this._parent):[Yt]}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(Ze,9),d.Y36(gt,10),d.Y36(Pt,10),d.Y36(w,10),d.Y36(d.sBO,8))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[d._Bn([Lc]),d.qOj,d.TTD]}),_e})(),Ns=(()=>{class _e{}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275dir=d.lG2({type:_e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),_e})();const _1={provide:w,useExisting:(0,d.Gpc)(()=>hr),multi:!0};let hr=(()=>{class _e extends x{writeValue(Yt){this.setProperty("value",Yt??"")}registerOnChange(Yt){this.onChange=st=>{Yt(""==st?null:parseFloat(st))}}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Yt,st){1&Yt&&d.NdJ("input",function(jo){return st.onChange(jo.target.value)})("blur",function(){return st.onTouched()})},features:[d._Bn([_1]),d.qOj]}),_e})(),vc=(()=>{class _e{}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275mod=d.oAB({type:_e}),_e.\u0275inj=d.cJS({}),_e})();const Yc=new d.OlP("NgModelWithFormControlWarning"),Vc={provide:dn,useExisting:(0,d.Gpc)(()=>js)};let js=(()=>{class _e extends dn{constructor(Yt,st,ki,jo){super(),this._ngModelWarningConfig=jo,this.update=new d.vpe,this._ngModelWarningSent=!1,this._setValidators(Yt),this._setAsyncValidators(st),this.valueAccessor=Je(0,ki)}set isDisabled(Yt){}ngOnChanges(Yt){if(this._isControlChanged(Yt)){const st=Yt.form.previousValue;st&&wn(st,this,!1),fn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Vt(Yt,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&wn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Yt){this.viewModel=Yt,this.update.emit(Yt)}_isControlChanged(Yt){return Yt.hasOwnProperty("form")}}return _e._ngModelWarningSentOnce=!1,_e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(gt,10),d.Y36(Pt,10),d.Y36(w,10),d.Y36(Yc,8))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[d._Bn([Vc]),d.qOj,d.TTD]}),_e})();const yl={provide:Ze,useExisting:(0,d.Gpc)(()=>md)};let md=(()=>{class _e extends Ze{constructor(Yt,st){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new d.vpe,this._setValidators(Yt),this._setAsyncValidators(st)}ngOnChanges(Yt){this._checkFormPresent(),Yt.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vo(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Yt){const st=this.form.get(Yt.path);return fn(st,Yt),st.updateValueAndValidity({emitEvent:!1}),this.directives.push(Yt),st}getControl(Yt){return this.form.get(Yt.path)}removeControl(Yt){wn(Yt.control||null,Yt,!1),function zn(_e,ae){const Yt=_e.indexOf(ae);Yt>-1&&_e.splice(Yt,1)}(this.directives,Yt)}addFormGroup(Yt){this._setUpFormContainer(Yt)}removeFormGroup(Yt){this._cleanUpFormContainer(Yt)}getFormGroup(Yt){return this.form.get(Yt.path)}addFormArray(Yt){this._setUpFormContainer(Yt)}removeFormArray(Yt){this._cleanUpFormContainer(Yt)}getFormArray(Yt){return this.form.get(Yt.path)}updateModel(Yt,st){this.form.get(Yt.path).setValue(st)}onSubmit(Yt){return this.submitted=!0,zt(this.form,this.directives),this.ngSubmit.emit(Yt),"dialog"===Yt?.target?.method}onReset(){this.resetForm()}resetForm(Yt){this.form.reset(Yt),this.submitted=!1}_updateDomValue(){this.directives.forEach(Yt=>{const st=Yt.control,ki=this.form.get(Yt.path);st!==ki&&(wn(st||null,Yt),(_e=>_e instanceof Er)(ki)&&(fn(ki,Yt),Yt.control=ki))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Yt){const st=this.form.get(Yt.path);$e(st,Yt),st.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Yt){if(this.form){const st=this.form.get(Yt.path);st&&function Nn(_e,ae){return vo(_e,ae)}(st,Yt)&&st.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zi(this.form,this),this._oldForm&&vo(this._oldForm,this)}_checkFormPresent(){}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(gt,10),d.Y36(Pt,10))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formGroup",""]],hostBindings:function(Yt,st){1&Yt&&d.NdJ("submit",function(jo){return st.onSubmit(jo)})("reset",function(){return st.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([yl]),d.qOj,d.TTD]}),_e})();const Hl={provide:Ze,useExisting:(0,d.Gpc)(()=>Js)};let Js=(()=>{class _e extends Yr{constructor(Yt,st,ki){super(),this._parent=Yt,this._setValidators(st),this._setAsyncValidators(ki)}_checkParentType(){jc(this._parent)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(Ze,13),d.Y36(gt,10),d.Y36(Pt,10))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[d._Bn([Hl]),d.qOj]}),_e})();const Tl={provide:Ze,useExisting:(0,d.Gpc)(()=>Gs)};let Gs=(()=>{class _e extends Ze{constructor(Yt,st,ki){super(),this._parent=Yt,this._setValidators(st),this._setAsyncValidators(ki)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return _o(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){jc(this._parent)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(Ze,13),d.Y36(gt,10),d.Y36(Pt,10))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[d._Bn([Tl]),d.qOj]}),_e})();function jc(_e){return!(_e instanceof Js||_e instanceof md||_e instanceof Gs)}const ks={provide:dn,useExisting:(0,d.Gpc)(()=>zl)};let zl=(()=>{class _e extends dn{constructor(Yt,st,ki,jo,Sa){super(),this._ngModelWarningConfig=Sa,this._added=!1,this.update=new d.vpe,this._ngModelWarningSent=!1,this._parent=Yt,this._setValidators(st),this._setAsyncValidators(ki),this.valueAccessor=Je(0,jo)}set isDisabled(Yt){}ngOnChanges(Yt){this._added||this._setUpControl(),Vt(Yt,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Yt){this.viewModel=Yt,this.update.emit(Yt)}get path(){return _o(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return _e._ngModelWarningSentOnce=!1,_e.\u0275fac=function(Yt){return new(Yt||_e)(d.Y36(Ze,13),d.Y36(gt,10),d.Y36(Pt,10),d.Y36(w,10),d.Y36(Yc,8))},_e.\u0275dir=d.lG2({type:_e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[d._Bn([ks]),d.qOj,d.TTD]}),_e})();function Dr(_e){return"number"==typeof _e?_e:parseFloat(_e)}let Cc=(()=>{class _e{constructor(){this._validator=le}ngOnChanges(Yt){if(this.inputName in Yt){const st=this.normalizeInput(Yt[this.inputName].currentValue);this._enabled=this.enabled(st),this._validator=this._enabled?this.createValidator(st):le,this._onChange&&this._onChange()}}validate(Yt){return this._validator(Yt)}registerOnValidatorChange(Yt){this._onChange=Yt}enabled(Yt){return null!=Yt}}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275dir=d.lG2({type:_e,features:[d.TTD]}),_e})();const Wa={provide:gt,useExisting:(0,d.Gpc)(()=>pr),multi:!0};let pr=(()=>{class _e extends Cc{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Yt=>Dr(Yt),this.createValidator=Yt=>at(Yt)}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Yt,st){2&Yt&&d.uIk("max",st._enabled?st.max:null)},inputs:{max:"max"},features:[d._Bn([Wa]),d.qOj]}),_e})();const Gc={provide:gt,useExisting:(0,d.Gpc)(()=>vs),multi:!0};let vs=(()=>{class _e extends Cc{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Yt=>Dr(Yt),this.createValidator=Yt=>Jt(Yt)}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Yt,st){2&Yt&&d.uIk("min",st._enabled?st.min:null)},inputs:{min:"min"},features:[d._Bn([Gc]),d.qOj]}),_e})();const Ac={provide:gt,useExisting:(0,d.Gpc)(()=>Vl),multi:!0},rr={provide:gt,useExisting:(0,d.Gpc)(()=>Ps),multi:!0};let Vl=(()=>{class _e extends Cc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=d.D6c,this.createValidator=Yt=>Zt}enabled(Yt){return Yt}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Yt,st){2&Yt&&d.uIk("required",st._enabled?"":null)},inputs:{required:"required"},features:[d._Bn([Ac]),d.qOj]}),_e})(),Ps=(()=>{class _e extends Vl{constructor(){super(...arguments),this.createValidator=Yt=>wt}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Yt,st){2&Yt&&d.uIk("required",st._enabled?"":null)},features:[d._Bn([rr]),d.qOj]}),_e})();const Qs={provide:gt,useExisting:(0,d.Gpc)(()=>lc),multi:!0};let lc=(()=>{class _e extends Cc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Yt=>function bu(_e){return"number"==typeof _e?_e:parseInt(_e,10)}(Yt),this.createValidator=Yt=>Qt(Yt)}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275dir=d.lG2({type:_e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Yt,st){2&Yt&&d.uIk("maxlength",st._enabled?st.maxlength:null)},inputs:{maxlength:"maxlength"},features:[d._Bn([Qs]),d.qOj]}),_e})(),Vr=(()=>{class _e{}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275mod=d.oAB({type:_e}),_e.\u0275inj=d.cJS({imports:[vc]}),_e})(),Qc=(()=>{class _e{}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275mod=d.oAB({type:_e}),_e.\u0275inj=d.cJS({imports:[Vr]}),_e})(),sl=(()=>{class _e{static withConfig(Yt){return{ngModule:_e,providers:[{provide:Yc,useValue:Yt.warnOnNgModelWithFormControl}]}}}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275mod=d.oAB({type:_e}),_e.\u0275inj=d.cJS({imports:[Vr]}),_e})();class yc extends Zn{constructor(ae,Yt,st){super(We(Yt),Mt(st,Yt)),this.controls=ae,this._initObservables(),this._setUpdateStrategy(Yt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(ae){return this.controls[this._adjustIndex(ae)]}push(ae,Yt={}){this.controls.push(ae),this._registerControl(ae),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}insert(ae,Yt,st={}){this.controls.splice(ae,0,Yt),this._registerControl(Yt),this.updateValueAndValidity({emitEvent:st.emitEvent})}removeAt(ae,Yt={}){let st=this._adjustIndex(ae);st<0&&(st=0),this.controls[st]&&this.controls[st]._registerOnCollectionChange(()=>{}),this.controls.splice(st,1),this.updateValueAndValidity({emitEvent:Yt.emitEvent})}setControl(ae,Yt,st={}){let ki=this._adjustIndex(ae);ki<0&&(ki=0),this.controls[ki]&&this.controls[ki]._registerOnCollectionChange(()=>{}),this.controls.splice(ki,1),Yt&&(this.controls.splice(ki,0,Yt),this._registerControl(Yt)),this.updateValueAndValidity({emitEvent:st.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ae,Yt={}){He(this,0,ae),ae.forEach((st,ki)=>{en(this,!1,ki),this.at(ki).setValue(st,{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt)}patchValue(ae,Yt={}){null!=ae&&(ae.forEach((st,ki)=>{this.at(ki)&&this.at(ki).patchValue(st,{onlySelf:!0,emitEvent:Yt.emitEvent})}),this.updateValueAndValidity(Yt))}reset(ae=[],Yt={}){this._forEachChild((st,ki)=>{st.reset(ae[ki],{onlySelf:!0,emitEvent:Yt.emitEvent})}),this._updatePristine(Yt),this._updateTouched(Yt),this.updateValueAndValidity(Yt)}getRawValue(){return this.controls.map(ae=>ae.getRawValue())}clear(ae={}){this.controls.length<1||(this._forEachChild(Yt=>Yt._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ae.emitEvent}))}_adjustIndex(ae){return ae<0?ae+this.length:ae}_syncPendingControls(){let ae=this.controls.reduce((Yt,st)=>!!st._syncPendingControls()||Yt,!1);return ae&&this.updateValueAndValidity({onlySelf:!0}),ae}_forEachChild(ae){this.controls.forEach((Yt,st)=>{ae(Yt,st)})}_updateValue(){this.value=this.controls.filter(ae=>ae.enabled||this.disabled).map(ae=>ae.value)}_anyControls(ae){return this.controls.some(Yt=>Yt.enabled&&ae(Yt))}_setUpControls(){this._forEachChild(ae=>this._registerControl(ae))}_allControlsDisabled(){for(const ae of this.controls)if(ae.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ae){ae.setParent(this),ae._registerOnCollectionChange(this._onCollectionChange)}_find(ae){return this.at(ae)??null}}function Yi(_e){return!!_e&&(void 0!==_e.asyncValidators||void 0!==_e.validators||void 0!==_e.updateOn)}let Da=(()=>{class _e{constructor(){this.useNonNullable=!1}get nonNullable(){const Yt=new _e;return Yt.useNonNullable=!0,Yt}group(Yt,st=null){const ki=this._reduceControls(Yt);let jo={};return Yi(st)?jo=st:null!==st&&(jo.validators=st.validator,jo.asyncValidators=st.asyncValidator),new ve(ki,jo)}record(Yt,st=null){const ki=this._reduceControls(Yt);return new bi(ki,st)}control(Yt,st,ki){let jo={};return this.useNonNullable?(Yi(st)?jo=st:(jo.validators=st,jo.asyncValidators=ki),new Er(Yt,{...jo,nonNullable:!0})):new Er(Yt,st,ki)}array(Yt,st,ki){const jo=Yt.map(Sa=>this._createControl(Sa));return new yc(jo,st,ki)}_reduceControls(Yt){const st={};return Object.keys(Yt).forEach(ki=>{st[ki]=this._createControl(Yt[ki])}),st}_createControl(Yt){return Yt instanceof Er||Yt instanceof Zn?Yt:Array.isArray(Yt)?this.control(Yt[0],Yt.length>1?Yt[1]:null,Yt.length>2?Yt[2]:null):this.control(Yt)}}return _e.\u0275fac=function(Yt){return new(Yt||_e)},_e.\u0275prov=d.Yz7({token:_e,factory:_e.\u0275fac,providedIn:sl}),_e})(),$s=(()=>{class _e extends Da{group(Yt,st=null){return super.group(Yt,st)}control(Yt,st,ki){return super.control(Yt,st,ki)}array(Yt,st,ki){return super.array(Yt,st,ki)}}return _e.\u0275fac=function(){let ae;return function(st){return(ae||(ae=d.n5z(_e)))(st||_e)}}(),_e.\u0275prov=d.Yz7({token:_e,factory:_e.\u0275fac,providedIn:sl}),_e})()},47957:(rt,it,b)=>{"use strict";b.d(it,{Bb:()=>hn,XC:()=>Xe,ZL:()=>on});var d=b(12687),p=b(21281),v=b(83353),T=b(94650),t=b(3238),A=b(42654),x=b(8929),w=b(88514),k=b(36787),D=b(21086),P=b(23753),I=b(36895),z=b(98184),G=b(67376),W=b(40445),ot=b(29521),ct=b(84080),gt=b(24006),Pt=b(59549),St=b(1059),Ht=b(87545),Jt=b(72986),at=b(92198),Zt=b(24850),wt=b(22868),_t=b(18583);const Nt=["panel"];function Qt(we,bn){if(1&we&&(T.TgZ(0,"div",0,1),T.Hsn(2),T.qZA()),2&we){const Ze=bn.id,dn=T.oxw();T.Q6J("id",dn.id)("ngClass",dn._classList),T.uIk("aria-label",dn.ariaLabel||null)("aria-labelledby",dn._getPanelAriaLabelledby(Ze))}}const qt=["*"];let le=0;class Wt{constructor(bn,Ze){this.source=bn,this.option=Ze}}const Ce=(0,t.Kr)(class{}),Ae=new T.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Ne(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let ze=(()=>{class we extends Ce{constructor(Ze,dn,kn,ri){super(),this._changeDetectorRef=Ze,this._elementRef=dn,this._activeOptionChanges=A.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new T.vpe,this.opened=new T.vpe,this.closed=new T.vpe,this.optionActivated=new T.vpe,this._classList={},this.id="mat-autocomplete-"+le++,this.inertGroups=ri?.SAFARI||!1,this._autoActiveFirstOption=!!kn.autoActiveFirstOption,this._autoSelectActiveOption=!!kn.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Ze){this._autoActiveFirstOption=(0,p.Ig)(Ze)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Ze){this._autoSelectActiveOption=(0,p.Ig)(Ze)}set classList(Ze){this._classList=Ze&&Ze.length?(0,p.du)(Ze).reduce((dn,kn)=>(dn[kn]=!0,dn),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new d.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Ze=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Ze]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Ze){this.panel&&(this.panel.nativeElement.scrollTop=Ze)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Ze){const dn=new Wt(this,Ze);this.optionSelected.emit(dn)}_getPanelAriaLabelledby(Ze){return this.ariaLabel?null:this.ariaLabelledby?(Ze?Ze+" ":"")+this.ariaLabelledby:Ze}_setVisibilityClasses(Ze){Ze[this._visibleClass]=this.showPanel,Ze[this._hiddenClass]=!this.showPanel}}return we.\u0275fac=function(Ze){return new(Ze||we)(T.Y36(T.sBO),T.Y36(T.SBq),T.Y36(Ae),T.Y36(v.t4))},we.\u0275dir=T.lG2({type:we,viewQuery:function(Ze,dn){if(1&Ze&&(T.Gf(T.Rgc,7),T.Gf(Nt,5)),2&Ze){let kn;T.iGM(kn=T.CRH())&&(dn.template=kn.first),T.iGM(kn=T.CRH())&&(dn.panel=kn.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[T.qOj]}),we})(),Xe=(()=>{class we extends ze{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return we.\u0275fac=function(){let bn;return function(dn){return(bn||(bn=T.n5z(we)))(dn||we)}}(),we.\u0275cmp=T.Xpm({type:we,selectors:[["mat-autocomplete"]],contentQueries:function(Ze,dn,kn){if(1&Ze&&(T.Suo(kn,t.K7,5),T.Suo(kn,t.ey,5)),2&Ze){let ri;T.iGM(ri=T.CRH())&&(dn.optionGroups=ri),T.iGM(ri=T.CRH())&&(dn.options=ri)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[T._Bn([{provide:t.HF,useExisting:we}]),T.qOj],ngContentSelectors:qt,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Ze,dn){1&Ze&&(T.F$t(),T.YNc(0,Qt,3,4,"ng-template"))},dependencies:[I.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),we})();const re=new T.OlP("mat-autocomplete-scroll-strategy"),ue={provide:re,deps:[z.aV],useFactory:function ee(we){return()=>we.scrollStrategies.reposition()}},Kt={provide:gt.JU,useExisting:(0,T.Gpc)(()=>on),multi:!0};let Le=(()=>{class we{constructor(Ze,dn,kn,ri,Ee,Ft,vt,xt,tt,et,Ct){this._element=Ze,this._overlay=dn,this._viewContainerRef=kn,this._zone=ri,this._changeDetectorRef=Ee,this._dir=vt,this._formField=xt,this._document=tt,this._viewportRuler=et,this._defaults=Ct,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=A.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new x.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,w.P)(()=>{const Bt=this.autocomplete?this.autocomplete.options:null;return Bt?Bt.changes.pipe((0,St.O)(Bt),(0,Ht.w)(()=>(0,k.T)(...Bt.map(ne=>ne.onSelectionChange)))):this._zone.onStable.pipe((0,Jt.q)(1),(0,Ht.w)(()=>this.optionSelections))}),this._scrollStrategy=Ft}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Ze){this._autocompleteDisabled=(0,p.Ig)(Ze)}ngAfterViewInit(){const Ze=this._getWindow();typeof Ze<"u"&&this._zone.runOutsideAngular(()=>Ze.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Ze){Ze.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Ze=this._getWindow();typeof Ze<"u"&&Ze.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,k.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,at.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,at.h)(()=>this._overlayAttached)):(0,D.of)()).pipe((0,Zt.U)(Ze=>Ze instanceof t.rN?Ze:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,k.T)((0,P.R)(this._document,"click"),(0,P.R)(this._document,"auxclick"),(0,P.R)(this._document,"touchend")).pipe((0,at.h)(Ze=>{const dn=(0,v.sA)(Ze),kn=this._formField?this._formField._elementRef.nativeElement:null,ri=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&dn!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!kn||!kn.contains(dn))&&(!ri||!ri.contains(dn))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(dn)}))}writeValue(Ze){Promise.resolve(null).then(()=>this._assignOptionValue(Ze))}registerOnChange(Ze){this._onChange=Ze}registerOnTouched(Ze){this._onTouched=Ze}setDisabledState(Ze){this._element.nativeElement.disabled=Ze}_handleKeydown(Ze){const dn=Ze.keyCode,kn=(0,ot.Vb)(Ze);if(dn===ot.hY&&!kn&&Ze.preventDefault(),this.activeOption&&dn===ot.K5&&this.panelOpen&&!kn)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ze.preventDefault();else if(this.autocomplete){const ri=this.autocomplete._keyManager.activeItem,Ee=dn===ot.LH||dn===ot.JH;dn===ot.Mf||Ee&&!kn&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Ze):Ee&&this._canOpen()&&this.openPanel(),(Ee||this.autocomplete._keyManager.activeItem!==ri)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Ze){let dn=Ze.target,kn=dn.value;"number"===dn.type&&(kn=""==kn?null:parseFloat(kn)),this._previousValue!==kn&&(this._previousValue=kn,this._pendingAutoselectedOption=null,this._onChange(kn),this._canOpen()&&this._document.activeElement===Ze.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Ze=!1){this._formField&&"auto"===this._formField.floatLabel&&(Ze?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Ze=this._zone.onStable.pipe((0,Jt.q)(1)),dn=this.autocomplete.options.changes.pipe((0,wt.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,_t.g)(0));return(0,k.T)(Ze,dn).pipe((0,Ht.w)(()=>(this._zone.run(()=>{const kn=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),kn!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Jt.q)(1)).subscribe(kn=>this._setValueAndClose(kn))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Ze){const dn=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Ze):Ze;this._updateNativeInputValue(dn??"")}_updateNativeInputValue(Ze){this._formField?this._formField._control.value=Ze:this._element.nativeElement.value=Ze,this._previousValue=Ze}_setValueAndClose(Ze){const dn=Ze?Ze.source:this._pendingAutoselectedOption;dn&&(this._clearPreviousSelectedOption(dn),this._assignOptionValue(dn.value),this._onChange(dn.value),this.autocomplete._emitSelectEvent(dn),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Ze){this.autocomplete.options.forEach(dn=>{dn!==Ze&&dn.selected&&dn.deselect()})}_attachOverlay(){let Ze=this._overlayRef;Ze?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ze.updateSize({width:this._getPanelWidth()})):(this._portal=new ct.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Ze=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ze,this._handleOverlayEvents(Ze),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ze&&Ze.updateSize({width:this._getPanelWidth()})})),Ze&&!Ze.hasAttached()&&(Ze.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const dn=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&dn!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new z.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const Ze=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Ze),this._positionStrategy=Ze,Ze}_setStrategyPositions(Ze){const dn=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],kn=this._aboveClass,ri=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:kn},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:kn}];let Ee;Ee="above"===this.position?ri:"below"===this.position?dn:[...dn,...ri],Ze.withPositions(Ee)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Ze=this.autocomplete;Ze.autoActiveFirstOption?Ze._keyManager.setFirstItemActive():Ze._keyManager.setActiveItem(-1)}_canOpen(){const Ze=this._element.nativeElement;return!Ze.readOnly&&!Ze.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Ze){const dn=this.autocomplete,kn=(0,t.CB)(Ze,dn.options,dn.optionGroups);if(0===Ze&&1===kn)dn._setScrollTop(0);else if(dn.panel){const ri=dn.options.toArray()[Ze];if(ri){const Ee=ri._getHostElement(),Ft=(0,t.jH)(Ee.offsetTop,Ee.offsetHeight,dn._getScrollTop(),dn.panel.nativeElement.offsetHeight);dn._setScrollTop(Ft)}}}_handleOverlayEvents(Ze){Ze.keydownEvents().subscribe(dn=>{(dn.keyCode===ot.hY&&!(0,ot.Vb)(dn)||dn.keyCode===ot.LH&&(0,ot.Vb)(dn,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),dn.stopPropagation(),dn.preventDefault())}),Ze.outsidePointerEvents().subscribe()}}return we.\u0275fac=function(Ze){return new(Ze||we)(T.Y36(T.SBq),T.Y36(z.aV),T.Y36(T.s_b),T.Y36(T.R0b),T.Y36(T.sBO),T.Y36(re),T.Y36(W.Is,8),T.Y36(Pt.G_,9),T.Y36(I.K0,8),T.Y36(G.rL),T.Y36(Ae,8))},we.\u0275dir=T.lG2({type:we,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[T.TTD]}),we})(),on=(()=>{class we extends Le{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return we.\u0275fac=function(){let bn;return function(dn){return(bn||(bn=T.n5z(we)))(dn||we)}}(),we.\u0275dir=T.lG2({type:we,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Ze,dn){1&Ze&&T.NdJ("focusin",function(){return dn._handleFocus()})("blur",function(){return dn._onTouched()})("input",function(ri){return dn._handleInput(ri)})("keydown",function(ri){return dn._handleKeydown(ri)})("click",function(){return dn._handleClick()}),2&Ze&&T.uIk("autocomplete",dn.autocompleteAttribute)("role",dn.autocompleteDisabled?null:"combobox")("aria-autocomplete",dn.autocompleteDisabled?null:"list")("aria-activedescendant",dn.panelOpen&&dn.activeOption?dn.activeOption.id:null)("aria-expanded",dn.autocompleteDisabled?null:dn.panelOpen.toString())("aria-owns",dn.autocompleteDisabled||!dn.panelOpen||null==dn.autocomplete?null:dn.autocomplete.id)("aria-haspopup",dn.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[T._Bn([Kt]),T.qOj]}),we})(),hn=(()=>{class we{}return we.\u0275fac=function(Ze){return new(Ze||we)},we.\u0275mod=T.oAB({type:we}),we.\u0275inj=T.cJS({providers:[ue],imports:[z.U8,t.Ng,t.BQ,I.ez,G.ZD,t.Ng,t.BQ]}),we})()},42673:(rt,it,b)=>{"use strict";b.d(it,{g:()=>k,k:()=>w});var d=b(94650),p=b(3238),v=b(12687),T=b(21281);let t=0;const A=(0,p.Id)(class{}),x="mat-badge-content";let w=(()=>{class D extends A{constructor(I,z,G,W,ot){super(),this._ngZone=I,this._elementRef=z,this._ariaDescriber=G,this._renderer=W,this._animationMode=ot,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=t++,this._isInitialized=!1}get color(){return this._color}set color(I){this._setColor(I),this._color=I}get overlap(){return this._overlap}set overlap(I){this._overlap=(0,T.Ig)(I)}get content(){return this._content}set content(I){this._updateRenderedContent(I)}get description(){return this._description}set description(I){this._updateHostAriaDescription(I)}get hidden(){return this._hidden}set hidden(I){this._hidden=(0,T.Ig)(I)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const I=this._renderer.createElement("span"),z="mat-badge-active";return I.setAttribute("id",`mat-badge-content-${this._id}`),I.setAttribute("aria-hidden","true"),I.classList.add(x),"NoopAnimations"===this._animationMode&&I.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(I),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{I.classList.add(z)})}):I.classList.add(z),I}_updateRenderedContent(I){const z=`${I??""}`.trim();this._isInitialized&&z&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=z),this._content=z}_updateHostAriaDescription(I){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),I&&this._ariaDescriber.describe(this._elementRef.nativeElement,I),this._description=I}_setColor(I){const z=this._elementRef.nativeElement.classList;z.remove(`mat-badge-${this._color}`),I&&z.add(`mat-badge-${I}`)}_clearExistingBadges(){const I=this._elementRef.nativeElement.querySelectorAll(`:scope > .${x}`);for(const z of Array.from(I))z!==this._badgeElement&&z.remove()}}return D.\u0275fac=function(I){return new(I||D)(d.Y36(d.R0b),d.Y36(d.SBq),d.Y36(v.$s),d.Y36(d.Qsj),d.Y36(d.QbO,8))},D.\u0275dir=d.lG2({type:D,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(I,z){2&I&&d.ekj("mat-badge-overlap",z.overlap)("mat-badge-above",z.isAbove())("mat-badge-below",!z.isAbove())("mat-badge-before",!z.isAfter())("mat-badge-after",z.isAfter())("mat-badge-small","small"===z.size)("mat-badge-medium","medium"===z.size)("mat-badge-large","large"===z.size)("mat-badge-hidden",z.hidden||!z.content)("mat-badge-disabled",z.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[d.qOj]}),D})(),k=(()=>{class D{}return D.\u0275fac=function(I){return new(I||D)},D.\u0275mod=d.oAB({type:D}),D.\u0275inj=d.cJS({imports:[v.rt,p.BQ,p.BQ]}),D})()},90811:(rt,it,b)=>{"use strict";b.d(it,{A9:()=>G,Yi:()=>ot,vV:()=>ct});var d=b(12687),p=b(21281),v=b(95017),T=b(94650),t=b(24006),A=b(3238);const x=["button"],w=["*"],k=new T.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),D=new T.OlP("MatButtonToggleGroup"),P={provide:t.JU,useExisting:(0,T.Gpc)(()=>G),multi:!0};let I=0;class z{constructor(Pt,St){this.source=Pt,this.value=St}}let G=(()=>{class gt{constructor(St,Ht){this._changeDetector=St,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+I++,this.valueChange=new T.vpe,this.change=new T.vpe,this.appearance=Ht&&Ht.appearance?Ht.appearance:"standard"}get name(){return this._name}set name(St){this._name=St,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(St){this._vertical=(0,p.Ig)(St)}get value(){const St=this._selectionModel?this._selectionModel.selected:[];return this.multiple?St.map(Ht=>Ht.value):St[0]?St[0].value:void 0}set value(St){this._setSelectionByValue(St),this.valueChange.emit(this.value)}get selected(){const St=this._selectionModel?this._selectionModel.selected:[];return this.multiple?St:St[0]||null}get multiple(){return this._multiple}set multiple(St){this._multiple=(0,p.Ig)(St),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(St){this._disabled=(0,p.Ig)(St),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new v.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(St=>St.checked))}writeValue(St){this.value=St,this._changeDetector.markForCheck()}registerOnChange(St){this._controlValueAccessorChangeFn=St}registerOnTouched(St){this._onTouched=St}setDisabledState(St){this.disabled=St}_emitChangeEvent(St){const Ht=new z(St,this.value);this._controlValueAccessorChangeFn(Ht.value),this.change.emit(Ht)}_syncButtonToggle(St,Ht,Jt=!1,at=!1){!this.multiple&&this.selected&&!St.checked&&(this.selected.checked=!1),this._selectionModel?Ht?this._selectionModel.select(St):this._selectionModel.deselect(St):at=!0,at?Promise.resolve().then(()=>this._updateModelValue(St,Jt)):this._updateModelValue(St,Jt)}_isSelected(St){return this._selectionModel&&this._selectionModel.isSelected(St)}_isPrechecked(St){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(Ht=>null!=St.value&&Ht===St.value):St.value===this._rawValue)}_setSelectionByValue(St){this._rawValue=St,this._buttonToggles&&(this.multiple&&St?(Array.isArray(St),this._clearSelection(),St.forEach(Ht=>this._selectValue(Ht))):(this._clearSelection(),this._selectValue(St)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(St=>St.checked=!1)}_selectValue(St){const Ht=this._buttonToggles.find(Jt=>null!=Jt.value&&Jt.value===St);Ht&&(Ht.checked=!0,this._selectionModel.select(Ht))}_updateModelValue(St,Ht){Ht&&this._emitChangeEvent(St),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(St=>St._markForCheck())}}return gt.\u0275fac=function(St){return new(St||gt)(T.Y36(T.sBO),T.Y36(k,8))},gt.\u0275dir=T.lG2({type:gt,selectors:[["mat-button-toggle-group"]],contentQueries:function(St,Ht,Jt){if(1&St&&T.Suo(Jt,ot,5),2&St){let at;T.iGM(at=T.CRH())&&(Ht._buttonToggles=at)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(St,Ht){2&St&&(T.uIk("aria-disabled",Ht.disabled),T.ekj("mat-button-toggle-vertical",Ht.vertical)("mat-button-toggle-group-appearance-standard","standard"===Ht.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[T._Bn([P,{provide:D,useExisting:gt}])]}),gt})();const W=(0,A.Kr)(class{});let ot=(()=>{class gt extends W{constructor(St,Ht,Jt,at,Zt,wt){super(),this._changeDetectorRef=Ht,this._elementRef=Jt,this._focusMonitor=at,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T.vpe;const _t=Number(Zt);this.tabIndex=_t||0===_t?_t:null,this.buttonToggleGroup=St,this.appearance=wt&&wt.appearance?wt.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(St){this._appearance=St}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(St){const Ht=(0,p.Ig)(St);Ht!==this._checked&&(this._checked=Ht,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(St){this._disabled=(0,p.Ig)(St)}ngOnInit(){const St=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+I++,St&&(St._isPrechecked(this)?this.checked=!0:St._isSelected(this)!==this._checked&&St._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const St=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),St&&St._isSelected(this)&&St._syncButtonToggle(this,!1,!1,!0)}focus(St){this._buttonElement.nativeElement.focus(St)}_onButtonClick(){const St=!!this._isSingleSelector()||!this._checked;St!==this._checked&&(this._checked=St,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new z(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return gt.\u0275fac=function(St){return new(St||gt)(T.Y36(D,8),T.Y36(T.sBO),T.Y36(T.SBq),T.Y36(d.tE),T.$8M("tabindex"),T.Y36(k,8))},gt.\u0275cmp=T.Xpm({type:gt,selectors:[["mat-button-toggle"]],viewQuery:function(St,Ht){if(1&St&&T.Gf(x,5),2&St){let Jt;T.iGM(Jt=T.CRH())&&(Ht._buttonElement=Jt.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(St,Ht){1&St&&T.NdJ("focus",function(){return Ht.focus()}),2&St&&(T.uIk("aria-label",null)("aria-labelledby",null)("id",Ht.id)("name",null),T.ekj("mat-button-toggle-standalone",!Ht.buttonToggleGroup)("mat-button-toggle-checked",Ht.checked)("mat-button-toggle-disabled",Ht.disabled)("mat-button-toggle-appearance-standard","standard"===Ht.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[T.qOj],ngContentSelectors:w,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(St,Ht){if(1&St&&(T.F$t(),T.TgZ(0,"button",0,1),T.NdJ("click",function(){return Ht._onButtonClick()}),T.TgZ(2,"span",2),T.Hsn(3),T.qZA()(),T._UZ(4,"span",3)(5,"span",4)),2&St){const Jt=T.MAs(1);T.Q6J("id",Ht.buttonId)("disabled",Ht.disabled||null),T.uIk("tabindex",Ht.disabled?-1:Ht.tabIndex)("aria-pressed",Ht.checked)("name",Ht._getButtonName())("aria-label",Ht.ariaLabel)("aria-labelledby",Ht.ariaLabelledby),T.xp6(5),T.Q6J("matRippleTrigger",Jt)("matRippleDisabled",Ht.disableRipple||Ht.disabled)}},dependencies:[A.wG],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),gt})(),ct=(()=>{class gt{}return gt.\u0275fac=function(St){return new(St||gt)},gt.\u0275mod=T.oAB({type:gt}),gt.\u0275inj=T.cJS({imports:[A.BQ,A.si,A.BQ]}),gt})()},4859:(rt,it,b)=>{"use strict";b.d(it,{lW:()=>D,ot:()=>I});var d=b(94650),p=b(3238),v=b(12687);const T=["mat-button",""],t=["*"],w=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],k=(0,p.pj)((0,p.Id)((0,p.Kr)(class{constructor(z){this._elementRef=z}})));let D=(()=>{class z extends k{constructor(W,ot,ct){super(W),this._focusMonitor=ot,this._animationMode=ct,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const gt of w)this._hasHostAttributes(gt)&&this._getHostElement().classList.add(gt);W.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(W,ot){W?this._focusMonitor.focusVia(this._getHostElement(),W,ot):this._getHostElement().focus(ot)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...W){return W.some(ot=>this._getHostElement().hasAttribute(ot))}}return z.\u0275fac=function(W){return new(W||z)(d.Y36(d.SBq),d.Y36(v.tE),d.Y36(d.QbO,8))},z.\u0275cmp=d.Xpm({type:z,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(W,ot){if(1&W&&d.Gf(p.wG,5),2&W){let ct;d.iGM(ct=d.CRH())&&(ot.ripple=ct.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(W,ot){2&W&&(d.uIk("disabled",ot.disabled||null),d.ekj("_mat-animation-noopable","NoopAnimations"===ot._animationMode)("mat-button-disabled",ot.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[d.qOj],attrs:T,ngContentSelectors:t,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(W,ot){1&W&&(d.F$t(),d.TgZ(0,"span",0),d.Hsn(1),d.qZA(),d._UZ(2,"span",1)(3,"span",2)),2&W&&(d.xp6(2),d.ekj("mat-button-ripple-round",ot.isRoundButton||ot.isIconButton),d.Q6J("matRippleDisabled",ot._isRippleDisabled())("matRippleCentered",ot.isIconButton)("matRippleTrigger",ot._getHostElement()))},dependencies:[p.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),z})(),I=(()=>{class z{}return z.\u0275fac=function(W){return new(W||z)},z.\u0275mod=d.oAB({type:z}),z.\u0275inj=d.cJS({imports:[p.si,p.BQ,p.BQ]}),z})()},73546:(rt,it,b)=>{"use strict";b.d(it,{$j:()=>P,C1:()=>Jt,G2:()=>G,QW:()=>at,a8:()=>St,dk:()=>Ht,dn:()=>k,hq:()=>I,n5:()=>D,nc:()=>ot});var d=b(94650),p=b(3238);const v=["*",[["mat-card-footer"]]],T=["*","mat-card-footer"],t=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],A=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],x=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],w=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let k=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275dir=d.lG2({type:Zt,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Zt})(),D=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275dir=d.lG2({type:Zt,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Zt})(),P=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275dir=d.lG2({type:Zt,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Zt})(),I=(()=>{class Zt{constructor(){this.align="start"}}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275dir=d.lG2({type:Zt,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(_t,Nt){2&_t&&d.ekj("mat-card-actions-align-end","end"===Nt.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Zt})(),G=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275dir=d.lG2({type:Zt,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Zt})(),ot=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275dir=d.lG2({type:Zt,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),Zt})(),St=(()=>{class Zt{constructor(_t){this._animationMode=_t}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(d.Y36(d.QbO,8))},Zt.\u0275cmp=d.Xpm({type:Zt,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(_t,Nt){2&_t&&d.ekj("_mat-animation-noopable","NoopAnimations"===Nt._animationMode)},exportAs:["matCard"],ngContentSelectors:T,decls:2,vars:0,template:function(_t,Nt){1&_t&&(d.F$t(v),d.Hsn(0),d.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),Zt})(),Ht=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275cmp=d.Xpm({type:Zt,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:A,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(_t,Nt){1&_t&&(d.F$t(t),d.Hsn(0),d.TgZ(1,"div",0),d.Hsn(2,1),d.qZA(),d.Hsn(3,2))},encapsulation:2,changeDetection:0}),Zt})(),Jt=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275cmp=d.Xpm({type:Zt,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:w,decls:4,vars:0,template:function(_t,Nt){1&_t&&(d.F$t(x),d.TgZ(0,"div"),d.Hsn(1),d.qZA(),d.Hsn(2,1),d.Hsn(3,2))},encapsulation:2,changeDetection:0}),Zt})(),at=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275mod=d.oAB({type:Zt}),Zt.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),Zt})()},56709:(rt,it,b)=>{"use strict";b.d(it,{e_:()=>Ht,oG:()=>Pt,p9:()=>at});var d=b(12687),p=b(21281),v=b(94650),T=b(24006),t=b(3238),A=b(49643);const x=["input"],w=["label"],k=function(Zt){return{enterDuration:Zt}},D=["*"],P=new v.OlP("mat-checkbox-default-options",{providedIn:"root",factory:I});function I(){return{color:"accent",clickAction:"check-indeterminate"}}let z=0;const G=I(),W={provide:T.JU,useExisting:(0,v.Gpc)(()=>Pt),multi:!0};class ot{}const ct=(0,t.sb)((0,t.pj)((0,t.Kr)((0,t.Id)(class{constructor(Zt){this._elementRef=Zt}}))));let gt=(()=>{class Zt extends ct{constructor(_t,Nt,Qt,qt,le,Wt,Ce){super(Nt),this._changeDetectorRef=Qt,this._ngZone=qt,this._animationMode=Wt,this._options=Ce,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new v.vpe,this.indeterminateChange=new v.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||G,this.color=this.defaultColor=this._options.color||G.color,this.tabIndex=parseInt(le)||0,this.id=this._uniqueId=`${_t}${++z}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(_t){this._required=(0,p.Ig)(_t)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(_t){const Nt=(0,p.Ig)(_t);Nt!=this.checked&&(this._checked=Nt,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(_t){const Nt=(0,p.Ig)(_t);Nt!==this.disabled&&(this._disabled=Nt,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(_t){const Nt=_t!=this._indeterminate;this._indeterminate=(0,p.Ig)(_t),Nt&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(_t){this.checked=!!_t}registerOnChange(_t){this._controlValueAccessorChangeFn=_t}registerOnTouched(_t){this._onTouched=_t}setDisabledState(_t){this.disabled=_t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(_t){let Nt=this._currentCheckState,Qt=this._getAnimationTargetElement();if(Nt!==_t&&Qt&&(this._currentAnimationClass&&Qt.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Nt,_t),this._currentCheckState=_t,this._currentAnimationClass.length>0)){Qt.classList.add(this._currentAnimationClass);const qt=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Qt.classList.remove(qt)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const _t=this._options?.clickAction;this.disabled||"noop"===_t?!this.disabled&&"noop"===_t&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==_t&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(_t){_t.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(_t,Nt){if("NoopAnimations"===this._animationMode)return"";switch(_t){case 0:if(1===Nt)return this._animationClasses.uncheckedToChecked;if(3==Nt)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Nt?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Nt?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Nt?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(_t){const Nt=this._inputElement;Nt&&(Nt.nativeElement.indeterminate=_t)}}return Zt.\u0275fac=function(_t){v.$Z()},Zt.\u0275dir=v.lG2({type:Zt,viewQuery:function(_t,Nt){if(1&_t&&(v.Gf(x,5),v.Gf(w,5),v.Gf(t.wG,5)),2&_t){let Qt;v.iGM(Qt=v.CRH())&&(Nt._inputElement=Qt.first),v.iGM(Qt=v.CRH())&&(Nt._labelElement=Qt.first),v.iGM(Qt=v.CRH())&&(Nt.ripple=Qt.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[v.qOj]}),Zt})(),Pt=(()=>{class Zt extends gt{constructor(_t,Nt,Qt,qt,le,Wt,Ce){super("mat-checkbox-",_t,Nt,qt,le,Wt,Ce),this._focusMonitor=Qt,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(_t){const Nt=new ot;return Nt.source=this,Nt.checked=_t,Nt}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(_t=>{_t||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(_t){_t.stopPropagation(),super._handleInputClick()}focus(_t,Nt){_t?this._focusMonitor.focusVia(this._inputElement,_t,Nt):this._inputElement.nativeElement.focus(Nt)}}return Zt.\u0275fac=function(_t){return new(_t||Zt)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(d.tE),v.Y36(v.R0b),v.$8M("tabindex"),v.Y36(v.QbO,8),v.Y36(P,8))},Zt.\u0275cmp=v.Xpm({type:Zt,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(_t,Nt){2&_t&&(v.Ikx("id",Nt.id),v.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),v.ekj("mat-checkbox-indeterminate",Nt.indeterminate)("mat-checkbox-checked",Nt.checked)("mat-checkbox-disabled",Nt.disabled)("mat-checkbox-label-before","before"==Nt.labelPosition)("_mat-animation-noopable","NoopAnimations"===Nt._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[v._Bn([W]),v.qOj],ngContentSelectors:D,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(_t,Nt){if(1&_t&&(v.F$t(),v.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),v.NdJ("change",function(qt){return Nt._onInteractionEvent(qt)})("click",function(qt){return Nt._onInputClick(qt)}),v.qZA(),v.TgZ(5,"span",5),v._UZ(6,"span",6),v.qZA(),v._UZ(7,"span",7),v.TgZ(8,"span",8),v.O4$(),v.TgZ(9,"svg",9),v._UZ(10,"path",10),v.qZA(),v.kcU(),v._UZ(11,"span",11),v.qZA()(),v.TgZ(12,"span",12,13),v.NdJ("cdkObserveContent",function(){return Nt._onLabelTextChange()}),v.TgZ(14,"span",14),v._uU(15,"\xa0"),v.qZA(),v.Hsn(16),v.qZA()()),2&_t){const Qt=v.MAs(1),qt=v.MAs(13);v.uIk("for",Nt.inputId),v.xp6(2),v.ekj("mat-checkbox-inner-container-no-side-margin",!qt.textContent||!qt.textContent.trim()),v.xp6(1),v.Q6J("id",Nt.inputId)("required",Nt.required)("checked",Nt.checked)("disabled",Nt.disabled)("tabIndex",Nt.tabIndex),v.uIk("value",Nt.value)("name",Nt.name)("aria-label",Nt.ariaLabel||null)("aria-labelledby",Nt.ariaLabelledby)("aria-checked",Nt._getAriaChecked())("aria-describedby",Nt.ariaDescribedby),v.xp6(2),v.Q6J("matRippleTrigger",Qt)("matRippleDisabled",Nt._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",v.VKq(19,k,"NoopAnimations"===Nt._animationMode?0:150))}},dependencies:[t.wG,A.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Zt})();const St={provide:T.Cf,useExisting:(0,v.Gpc)(()=>Ht),multi:!0};let Ht=(()=>{class Zt extends T.Zs{}return Zt.\u0275fac=function(){let wt;return function(Nt){return(wt||(wt=v.n5z(Zt)))(Nt||Zt)}}(),Zt.\u0275dir=v.lG2({type:Zt,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[v._Bn([St]),v.qOj]}),Zt})(),Jt=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275mod=v.oAB({type:Zt}),Zt.\u0275inj=v.cJS({}),Zt})(),at=(()=>{class Zt{}return Zt.\u0275fac=function(_t){return new(_t||Zt)},Zt.\u0275mod=v.oAB({type:Zt}),Zt.\u0275inj=v.cJS({imports:[t.si,t.BQ,A.Q8,Jt,t.BQ,Jt]}),Zt})()},3238:(rt,it,b)=>{"use strict";b.d(it,{yN:()=>gt,mZ:()=>Pt,_A:()=>Ne,rD:()=>ce,sG:()=>ze,Ad:()=>Ce,K7:()=>On,HF:()=>ne,Y2:()=>xt,BQ:()=>Jt,X2:()=>Le,uc:()=>we,XK:()=>ue,ey:()=>Vn,Ng:()=>gn,rN:()=>ho,nP:()=>Ct,us:()=>Bt,wG:()=>tt,si:()=>et,IR:()=>Ft,CB:()=>Gn,jH:()=>je,pj:()=>Nt,Kr:()=>Qt,Id:()=>_t,FD:()=>le,dB:()=>Wt,sb:()=>qt,E0:()=>on});var d=b(94650),p=b(12687),v=b(40445),t=b(36895),A=b(83353),x=b(21281),w=b(56498),k=b(8929),D=b(1059),P=b(29521);function G(Ve,tn){if(1&Ve&&d._UZ(0,"mat-pseudo-checkbox",4),2&Ve){const an=d.oxw();d.Q6J("state",an.selected?"checked":"unchecked")("disabled",an.disabled)}}function W(Ve,tn){if(1&Ve&&(d.TgZ(0,"span",5),d._uU(1),d.qZA()),2&Ve){const an=d.oxw();d.xp6(1),d.hij("(",an.group.label,")")}}const ot=["*"];let gt=(()=>{class Ve{}return Ve.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ve.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ve.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ve.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ve})(),Pt=(()=>{class Ve{}return Ve.COMPLEX="375ms",Ve.ENTERING="225ms",Ve.EXITING="195ms",Ve})();const Ht=new d.OlP("mat-sanity-checks",{providedIn:"root",factory:function St(){return!0}});let Jt=(()=>{class Ve{constructor(an,pe,We){this._sanityChecks=pe,this._document=We,this._hasDoneGlobalChecks=!1,an._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(an){return!(0,A.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[an])}}return Ve.\u0275fac=function(an){return new(an||Ve)(d.LFG(p.qm),d.LFG(Ht,8),d.LFG(t.K0))},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({imports:[v.vT,v.vT]}),Ve})();function _t(Ve){return class extends Ve{constructor(...tn){super(...tn),this._disabled=!1}get disabled(){return this._disabled}set disabled(tn){this._disabled=(0,x.Ig)(tn)}}}function Nt(Ve,tn){return class extends Ve{constructor(...an){super(...an),this.defaultColor=tn,this.color=tn}get color(){return this._color}set color(an){const pe=an||this.defaultColor;pe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),pe&&this._elementRef.nativeElement.classList.add(`mat-${pe}`),this._color=pe)}}}function Qt(Ve){return class extends Ve{constructor(...tn){super(...tn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(tn){this._disableRipple=(0,x.Ig)(tn)}}}function qt(Ve,tn=0){return class extends Ve{constructor(...an){super(...an),this._tabIndex=tn,this.defaultTabIndex=tn}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(an){this._tabIndex=null!=an?(0,x.su)(an):this.defaultTabIndex}}}function le(Ve){return class extends Ve{constructor(...tn){super(...tn),this.errorState=!1}updateErrorState(){const tn=this.errorState,Et=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Et!==tn&&(this.errorState=Et,this.stateChanges.next())}}}function Wt(Ve){return class extends Ve{constructor(...tn){super(...tn),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new w.y(an=>{this._isInitialized?this._notifySubscriber(an):this._pendingSubscribers.push(an)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(tn){tn.next(),tn.complete()}}}const Ce=new d.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Ae(){return(0,d.f3M)(d.soG)}});class Ne{constructor(){this._localeChanges=new k.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(tn){return this.isDateInstance(tn)&&this.isValid(tn)?tn:null}deserialize(tn){return null==tn||this.isDateInstance(tn)&&this.isValid(tn)?tn:this.invalid()}setLocale(tn){this.locale=tn,this._localeChanges.next()}compareDate(tn,an){return this.getYear(tn)-this.getYear(an)||this.getMonth(tn)-this.getMonth(an)||this.getDate(tn)-this.getDate(an)}sameDate(tn,an){if(tn&&an){let pe=this.isValid(tn),We=this.isValid(an);return pe&&We?!this.compareDate(tn,an):pe==We}return tn==an}clampDate(tn,an,pe){return an&&this.compareDate(tn,an)<0?an:pe&&this.compareDate(tn,pe)>0?pe:tn}}const ze=new d.OlP("mat-date-formats"),Xe=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ie(Ve,tn){const an=Array(Ve);for(let pe=0;pe{class Ve extends Ne{constructor(an,pe){super(),this.useUtcForDisplay=!1,super.setLocale(an)}getYear(an){return an.getFullYear()}getMonth(an){return an.getMonth()}getDate(an){return an.getDate()}getDayOfWeek(an){return an.getDay()}getMonthNames(an){const pe=new Intl.DateTimeFormat(this.locale,{month:an,timeZone:"utc"});return ie(12,We=>this._format(pe,new Date(2017,We,1)))}getDateNames(){const an=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ie(31,pe=>this._format(an,new Date(2017,0,pe+1)))}getDayOfWeekNames(an){const pe=new Intl.DateTimeFormat(this.locale,{weekday:an,timeZone:"utc"});return ie(7,We=>this._format(pe,new Date(2017,0,We+1)))}getYearName(an){const pe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(pe,an)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(an){return this.getDate(this._createDateWithOverflow(this.getYear(an),this.getMonth(an)+1,0))}clone(an){return new Date(an.getTime())}createDate(an,pe,We){let Et=this._createDateWithOverflow(an,pe,We);return Et.getMonth(),Et}today(){return new Date}parse(an,pe){return"number"==typeof an?new Date(an):an?new Date(Date.parse(an)):null}format(an,pe){if(!this.isValid(an))throw Error("NativeDateAdapter: Cannot format invalid date.");const We=new Intl.DateTimeFormat(this.locale,{...pe,timeZone:"utc"});return this._format(We,an)}addCalendarYears(an,pe){return this.addCalendarMonths(an,12*pe)}addCalendarMonths(an,pe){let We=this._createDateWithOverflow(this.getYear(an),this.getMonth(an)+pe,this.getDate(an));return this.getMonth(We)!=((this.getMonth(an)+pe)%12+12)%12&&(We=this._createDateWithOverflow(this.getYear(We),this.getMonth(We),0)),We}addCalendarDays(an,pe){return this._createDateWithOverflow(this.getYear(an),this.getMonth(an),this.getDate(an)+pe)}toIso8601(an){return[an.getUTCFullYear(),this._2digit(an.getUTCMonth()+1),this._2digit(an.getUTCDate())].join("-")}deserialize(an){if("string"==typeof an){if(!an)return null;if(Xe.test(an)){let pe=new Date(an);if(this.isValid(pe))return pe}}return super.deserialize(an)}isDateInstance(an){return an instanceof Date}isValid(an){return!isNaN(an.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(an,pe,We){const Et=new Date;return Et.setFullYear(an,pe,We),Et.setHours(0,0,0,0),Et}_2digit(an){return("00"+an).slice(-2)}_format(an,pe){const We=new Date;return We.setUTCFullYear(pe.getFullYear(),pe.getMonth(),pe.getDate()),We.setUTCHours(pe.getHours(),pe.getMinutes(),pe.getSeconds(),pe.getMilliseconds()),an.format(We)}}return Ve.\u0275fac=function(an){return new(an||Ve)(d.LFG(Ce,8),d.LFG(A.t4))},Ve.\u0275prov=d.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const re={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let ee=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({providers:[{provide:Ne,useClass:Te}]}),Ve})(),ue=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({providers:[{provide:ze,useValue:re}],imports:[ee]}),Ve})(),ce=(()=>{class Ve{isErrorState(an,pe){return!!(an&&an.invalid&&(an.touched||pe&&pe.submitted))}}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275prov=d.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),Le=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275dir=d.lG2({type:Ve,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ve})();function on(Ve,tn,an="mat"){Ve.changes.pipe((0,D.O)(Ve)).subscribe(({length:pe})=>{hn(tn,`${an}-2-line`,!1),hn(tn,`${an}-3-line`,!1),hn(tn,`${an}-multi-line`,!1),2===pe||3===pe?hn(tn,`${an}-${pe}-line`,!0):pe>3&&hn(tn,`${an}-multi-line`,!0)})}function hn(Ve,tn,an){Ve.nativeElement.classList.toggle(tn,an)}let we=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({imports:[Jt,Jt]}),Ve})();class bn{constructor(tn,an,pe,We=!1){this._renderer=tn,this.element=an,this.config=pe,this._animationForciblyDisabledThroughCss=We,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ze={enterDuration:225,exitDuration:150},kn=(0,A.i$)({passive:!0}),ri=["mousedown","touchstart"],Ee=["mouseup","mouseleave","touchend","touchcancel"];class Ft{constructor(tn,an,pe,We){this._target=tn,this._ngZone=an,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,We.isBrowser&&(this._containerElement=(0,x.fI)(pe))}fadeInRipple(tn,an,pe={}){const We=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Et={...Ze,...pe.animation};pe.centered&&(tn=We.left+We.width/2,an=We.top+We.height/2);const Mt=pe.radius||function vt(Ve,tn,an){const pe=Math.max(Math.abs(Ve-an.left),Math.abs(Ve-an.right)),We=Math.max(Math.abs(tn-an.top),Math.abs(tn-an.bottom));return Math.sqrt(pe*pe+We*We)}(tn,an,We),It=tn-We.left,Me=an-We.top,en=Et.enterDuration,He=document.createElement("div");He.classList.add("mat-ripple-element"),He.style.left=It-Mt+"px",He.style.top=Me-Mt+"px",He.style.height=2*Mt+"px",He.style.width=2*Mt+"px",null!=pe.color&&(He.style.backgroundColor=pe.color),He.style.transitionDuration=`${en}ms`,this._containerElement.appendChild(He);const Zn=window.getComputedStyle(He),Be=Zn.transitionDuration,Fn="none"===Zn.transitionProperty||"0s"===Be||"0s, 0s"===Be,bi=new bn(this,He,pe,Fn);He.style.transform="scale3d(1, 1, 1)",bi.state=0,pe.persistent||(this._mostRecentTransientRipple=bi);let go=null;return!Fn&&(en||Et.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _o=()=>this._finishRippleTransition(bi),fn=()=>this._destroyRipple(bi);He.addEventListener("transitionend",_o),He.addEventListener("transitioncancel",fn),go={onTransitionEnd:_o,onTransitionCancel:fn}}),this._activeRipples.set(bi,go),(Fn||!en)&&this._finishRippleTransition(bi),bi}fadeOutRipple(tn){if(2===tn.state||3===tn.state)return;const an=tn.element,pe={...Ze,...tn.config.animation};an.style.transitionDuration=`${pe.exitDuration}ms`,an.style.opacity="0",tn.state=2,(tn._animationForciblyDisabledThroughCss||!pe.exitDuration)&&this._finishRippleTransition(tn)}fadeOutAll(){this._getActiveRipples().forEach(tn=>tn.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(tn=>{tn.config.persistent||tn.fadeOut()})}setupTriggerEvents(tn){const an=(0,x.fI)(tn);!an||an===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=an,this._registerEvents(ri))}handleEvent(tn){"mousedown"===tn.type?this._onMousedown(tn):"touchstart"===tn.type?this._onTouchStart(tn):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ee),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(tn){0===tn.state?this._startFadeOutTransition(tn):2===tn.state&&this._destroyRipple(tn)}_startFadeOutTransition(tn){const an=tn===this._mostRecentTransientRipple,{persistent:pe}=tn.config;tn.state=1,!pe&&(!an||!this._isPointerDown)&&tn.fadeOut()}_destroyRipple(tn){const an=this._activeRipples.get(tn)??null;this._activeRipples.delete(tn),this._activeRipples.size||(this._containerRect=null),tn===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),tn.state=3,null!==an&&(tn.element.removeEventListener("transitionend",an.onTransitionEnd),tn.element.removeEventListener("transitioncancel",an.onTransitionCancel)),tn.element.remove()}_onMousedown(tn){const an=(0,p.X6)(tn),pe=this._lastTouchStartEvent&&Date.now(){!tn.config.persistent&&(1===tn.state||tn.config.terminateOnPointerUp&&0===tn.state)&&tn.fadeOut()}))}_registerEvents(tn){this._ngZone.runOutsideAngular(()=>{tn.forEach(an=>{this._triggerElement.addEventListener(an,this,kn)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ri.forEach(tn=>{this._triggerElement.removeEventListener(tn,this,kn)}),this._pointerUpEventsRegistered&&Ee.forEach(tn=>{this._triggerElement.removeEventListener(tn,this,kn)}))}}const xt=new d.OlP("mat-ripple-global-options");let tt=(()=>{class Ve{constructor(an,pe,We,Et,Mt){this._elementRef=an,this._animationMode=Mt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Et||{},this._rippleRenderer=new Ft(this,pe,an,We)}get disabled(){return this._disabled}set disabled(an){an&&this.fadeOutAllNonPersistent(),this._disabled=an,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(an){this._trigger=an,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(an,pe=0,We){return"number"==typeof an?this._rippleRenderer.fadeInRipple(an,pe,{...this.rippleConfig,...We}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...an})}}return Ve.\u0275fac=function(an){return new(an||Ve)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(A.t4),d.Y36(xt,8),d.Y36(d.QbO,8))},Ve.\u0275dir=d.lG2({type:Ve,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(an,pe){2&an&&d.ekj("mat-ripple-unbounded",pe.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ve})(),et=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({imports:[Jt,Jt]}),Ve})(),Ct=(()=>{class Ve{constructor(an){this._animationMode=an,this.state="unchecked",this.disabled=!1}}return Ve.\u0275fac=function(an){return new(an||Ve)(d.Y36(d.QbO,8))},Ve.\u0275cmp=d.Xpm({type:Ve,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(an,pe){2&an&&d.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===pe.state)("mat-pseudo-checkbox-checked","checked"===pe.state)("mat-pseudo-checkbox-disabled",pe.disabled)("_mat-animation-noopable","NoopAnimations"===pe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(an,pe){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),Ve})(),Bt=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({imports:[Jt]}),Ve})();const ne=new d.OlP("MAT_OPTION_PARENT_COMPONENT"),On=new d.OlP("MatOptgroup");let Si=0;class ho{constructor(tn,an=!1){this.source=tn,this.isUserInput=an}}let hi=(()=>{class Ve{constructor(an,pe,We,Et){this._element=an,this._changeDetectorRef=pe,this._parent=We,this.group=Et,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Si++,this.onSelectionChange=new d.vpe,this._stateChanges=new k.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(an){this._disabled=(0,x.Ig)(an)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(an,pe){const We=this._getHostElement();"function"==typeof We.focus&&We.focus(pe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(an){(an.keyCode===P.K5||an.keyCode===P.L_)&&!(0,P.Vb)(an)&&(this._selectViaInteraction(),an.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const an=this.viewValue;an!==this._mostRecentViewValue&&(this._mostRecentViewValue=an,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(an=!1){this.onSelectionChange.emit(new ho(this,an))}}return Ve.\u0275fac=function(an){d.$Z()},Ve.\u0275dir=d.lG2({type:Ve,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ve})(),Vn=(()=>{class Ve extends hi{constructor(an,pe,We,Et){super(an,pe,We,Et)}}return Ve.\u0275fac=function(an){return new(an||Ve)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(ne,8),d.Y36(On,8))},Ve.\u0275cmp=d.Xpm({type:Ve,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(an,pe){1&an&&d.NdJ("click",function(){return pe._selectViaInteraction()})("keydown",function(Et){return pe._handleKeydown(Et)}),2&an&&(d.Ikx("id",pe.id),d.uIk("tabindex",pe._getTabIndex())("aria-selected",pe._getAriaSelected())("aria-disabled",pe.disabled.toString()),d.ekj("mat-selected",pe.selected)("mat-option-multiple",pe.multiple)("mat-active",pe.active)("mat-option-disabled",pe.disabled))},exportAs:["matOption"],features:[d.qOj],ngContentSelectors:ot,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(an,pe){1&an&&(d.F$t(),d.YNc(0,G,1,2,"mat-pseudo-checkbox",0),d.TgZ(1,"span",1),d.Hsn(2),d.qZA(),d.YNc(3,W,2,1,"span",2),d._UZ(4,"div",3)),2&an&&(d.Q6J("ngIf",pe.multiple),d.xp6(3),d.Q6J("ngIf",pe.group&&pe.group._inert),d.xp6(1),d.Q6J("matRippleTrigger",pe._getHostElement())("matRippleDisabled",pe.disabled||pe.disableRipple))},dependencies:[tt,t.O5,Ct],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),Ve})();function Gn(Ve,tn,an){if(an.length){let pe=tn.toArray(),We=an.toArray(),Et=0;for(let Mt=0;Mtan+pe?Math.max(0,Ve-pe+tn):an}let gn=(()=>{class Ve{}return Ve.\u0275fac=function(an){return new(an||Ve)},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({imports:[et,t.ez,Jt,Bt]}),Ve})()},99602:(rt,it,b)=>{"use strict";b.d(it,{C0:()=>kn,E2:()=>an,FA:()=>Ye,Lv:()=>Mt,Mq:()=>He,S8:()=>Le,Uu:()=>We,hl:()=>go,nW:()=>fn});var d=b(12687),p=b(98184),v=b(84080),T=b(36895),t=b(94650),A=b(4859),x=b(67376),w=b(3238),k=b(8929),D=b(42654),P=b(36787),I=b(21086),z=b(29521),G=b(40445),W=b(72986),ot=b(1059),ct=b(92198),gt=b(21281),Pt=b(83353),St=b(37340),Ht=b(24006),Jt=b(59549),at=b(284);const Zt=["mat-calendar-body",""];function wt(Pe,mn){if(1&Pe&&(t.TgZ(0,"tr",2)(1,"td",3),t._uU(2),t.qZA()()),2&Pe){const nt=t.oxw();t.xp6(1),t.Udp("padding-top",nt._cellPadding)("padding-bottom",nt._cellPadding),t.uIk("colspan",nt.numCols),t.xp6(1),t.hij(" ",nt.label," ")}}function _t(Pe,mn){if(1&Pe&&(t.TgZ(0,"td",3),t._uU(1),t.qZA()),2&Pe){const nt=t.oxw(2);t.Udp("padding-top",nt._cellPadding)("padding-bottom",nt._cellPadding),t.uIk("colspan",nt._firstRowOffset),t.xp6(1),t.hij(" ",nt._firstRowOffset>=nt.labelMinRequiredCells?nt.label:""," ")}}function Nt(Pe,mn){if(1&Pe){const nt=t.EpF();t.TgZ(0,"td",7)(1,"button",8),t.NdJ("click",function(Q){const Je=t.CHM(nt).$implicit,zn=t.oxw(2);return t.KtG(zn._cellClicked(Je,Q))})("focus",function(Q){const Je=t.CHM(nt).$implicit,zn=t.oxw(2);return t.KtG(zn._emitActiveDateChange(Je,Q))}),t.TgZ(2,"div",9),t._uU(3),t.qZA(),t._UZ(4,"div",10),t.qZA()()}if(2&Pe){const nt=mn.$implicit,Vt=mn.index,Q=t.oxw().index,zt=t.oxw();t.Udp("width",zt._cellWidth)("padding-top",zt._cellPadding)("padding-bottom",zt._cellPadding),t.uIk("data-mat-row",Q)("data-mat-col",Vt),t.xp6(1),t.ekj("mat-calendar-body-disabled",!nt.enabled)("mat-calendar-body-active",zt._isActiveCell(Q,Vt))("mat-calendar-body-range-start",zt._isRangeStart(nt.compareValue))("mat-calendar-body-range-end",zt._isRangeEnd(nt.compareValue))("mat-calendar-body-in-range",zt._isInRange(nt.compareValue))("mat-calendar-body-comparison-bridge-start",zt._isComparisonBridgeStart(nt.compareValue,Q,Vt))("mat-calendar-body-comparison-bridge-end",zt._isComparisonBridgeEnd(nt.compareValue,Q,Vt))("mat-calendar-body-comparison-start",zt._isComparisonStart(nt.compareValue))("mat-calendar-body-comparison-end",zt._isComparisonEnd(nt.compareValue))("mat-calendar-body-in-comparison-range",zt._isInComparisonRange(nt.compareValue))("mat-calendar-body-preview-start",zt._isPreviewStart(nt.compareValue))("mat-calendar-body-preview-end",zt._isPreviewEnd(nt.compareValue))("mat-calendar-body-in-preview",zt._isInPreview(nt.compareValue)),t.Q6J("ngClass",nt.cssClasses)("tabindex",zt._isActiveCell(Q,Vt)?0:-1),t.uIk("aria-label",nt.ariaLabel)("aria-disabled",!nt.enabled||null)("aria-pressed",zt._isSelected(nt.compareValue))("aria-current",zt.todayValue===nt.compareValue?"date":null),t.xp6(1),t.ekj("mat-calendar-body-selected",zt._isSelected(nt.compareValue))("mat-calendar-body-comparison-identical",zt._isComparisonIdentical(nt.compareValue))("mat-calendar-body-today",zt.todayValue===nt.compareValue),t.xp6(1),t.hij(" ",nt.displayValue," ")}}function Qt(Pe,mn){if(1&Pe&&(t.TgZ(0,"tr",4),t.YNc(1,_t,2,6,"td",5),t.YNc(2,Nt,5,47,"td",6),t.qZA()),2&Pe){const nt=mn.$implicit,Vt=mn.index,Q=t.oxw();t.xp6(1),t.Q6J("ngIf",0===Vt&&Q._firstRowOffset),t.xp6(1),t.Q6J("ngForOf",nt)}}function qt(Pe,mn){if(1&Pe&&(t.TgZ(0,"th",5)(1,"span",6),t._uU(2),t.qZA(),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&Pe){const nt=mn.$implicit;t.xp6(2),t.Oqu(nt.long),t.xp6(2),t.Oqu(nt.narrow)}}const le=["*"];function Wt(Pe,mn){}function Ce(Pe,mn){if(1&Pe){const nt=t.EpF();t.TgZ(0,"mat-month-view",5),t.NdJ("activeDateChange",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt.activeDate=Q)})("_userSelection",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt._dateSelected(Q))}),t.qZA()}if(2&Pe){const nt=t.oxw();t.Q6J("activeDate",nt.activeDate)("selected",nt.selected)("dateFilter",nt.dateFilter)("maxDate",nt.maxDate)("minDate",nt.minDate)("dateClass",nt.dateClass)("comparisonStart",nt.comparisonStart)("comparisonEnd",nt.comparisonEnd)}}function Ae(Pe,mn){if(1&Pe){const nt=t.EpF();t.TgZ(0,"mat-year-view",6),t.NdJ("activeDateChange",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt.activeDate=Q)})("monthSelected",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt._monthSelectedInYearView(Q))})("selectedChange",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt._goToDateInView(Q,"month"))}),t.qZA()}if(2&Pe){const nt=t.oxw();t.Q6J("activeDate",nt.activeDate)("selected",nt.selected)("dateFilter",nt.dateFilter)("maxDate",nt.maxDate)("minDate",nt.minDate)("dateClass",nt.dateClass)}}function Ne(Pe,mn){if(1&Pe){const nt=t.EpF();t.TgZ(0,"mat-multi-year-view",7),t.NdJ("activeDateChange",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt.activeDate=Q)})("yearSelected",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt._yearSelectedInMultiYearView(Q))})("selectedChange",function(Q){t.CHM(nt);const zt=t.oxw();return t.KtG(zt._goToDateInView(Q,"year"))}),t.qZA()}if(2&Pe){const nt=t.oxw();t.Q6J("activeDate",nt.activeDate)("selected",nt.selected)("dateFilter",nt.dateFilter)("maxDate",nt.maxDate)("minDate",nt.minDate)("dateClass",nt.dateClass)}}function ze(Pe,mn){}const Xe=["button"];function ie(Pe,mn){1&Pe&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"path",4),t.qZA())}const Te=[[["","matDatepickerToggleIcon",""]]],re=["[matDatepickerToggleIcon]"];let Le=(()=>{class Pe{constructor(){this.changes=new k.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(nt,Vt){return`${nt} \u2013 ${Vt}`}formatYearRangeLabel(nt,Vt){return`${nt} to ${Vt}`}}return Pe.\u0275fac=function(nt){return new(nt||Pe)},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();class on{constructor(mn,nt,Vt,Q,zt={},Je=mn,zn){this.value=mn,this.displayValue=nt,this.ariaLabel=Vt,this.enabled=Q,this.cssClasses=zt,this.compareValue=Je,this.rawValue=zn}}let hn=(()=>{class Pe{constructor(nt,Vt){this._elementRef=nt,this._ngZone=Vt,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new t.vpe,this.previewChange=new t.vpe,this.activeDateChange=new t.vpe,this._enterHandler=Q=>{if(this._skipNextFocus&&"focus"===Q.type)this._skipNextFocus=!1;else if(Q.target&&this.isRange){const zt=this._getCellFromElement(Q.target);zt&&this._ngZone.run(()=>this.previewChange.emit({value:zt.enabled?zt:null,event:Q}))}},this._leaveHandler=Q=>{null!==this.previewEnd&&this.isRange&&Q.target&&this._getCellFromElement(Q.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Q}))},Vt.runOutsideAngular(()=>{const Q=nt.nativeElement;Q.addEventListener("mouseenter",this._enterHandler,!0),Q.addEventListener("focus",this._enterHandler,!0),Q.addEventListener("mouseleave",this._leaveHandler,!0),Q.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(nt,Vt){nt.enabled&&this.selectedValueChange.emit({value:nt.value,event:Vt})}_emitActiveDateChange(nt,Vt){nt.enabled&&this.activeDateChange.emit({value:nt.value,event:Vt})}_isSelected(nt){return this.startValue===nt||this.endValue===nt}ngOnChanges(nt){const Vt=nt.numCols,{rows:Q,numCols:zt}=this;(nt.rows||Vt)&&(this._firstRowOffset=Q&&Q.length&&Q[0].length?zt-Q[0].length:0),(nt.cellAspectRatio||Vt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/zt+"%"),(Vt||!this._cellWidth)&&(this._cellWidth=100/zt+"%")}ngOnDestroy(){const nt=this._elementRef.nativeElement;nt.removeEventListener("mouseenter",this._enterHandler,!0),nt.removeEventListener("focus",this._enterHandler,!0),nt.removeEventListener("mouseleave",this._leaveHandler,!0),nt.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(nt,Vt){let Q=nt*this.numCols+Vt;return nt&&(Q-=this._firstRowOffset),Q==this.activeCell}_focusActiveCell(nt=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>{setTimeout(()=>{const Vt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Vt&&(nt||(this._skipNextFocus=!0),Vt.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(nt){return bn(nt,this.startValue,this.endValue)}_isRangeEnd(nt){return Ze(nt,this.startValue,this.endValue)}_isInRange(nt){return dn(nt,this.startValue,this.endValue,this.isRange)}_isComparisonStart(nt){return bn(nt,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(nt,Vt,Q){if(!this._isComparisonStart(nt)||this._isRangeStart(nt)||!this._isInRange(nt))return!1;let zt=this.rows[Vt][Q-1];if(!zt){const Je=this.rows[Vt-1];zt=Je&&Je[Je.length-1]}return zt&&!this._isRangeEnd(zt.compareValue)}_isComparisonBridgeEnd(nt,Vt,Q){if(!this._isComparisonEnd(nt)||this._isRangeEnd(nt)||!this._isInRange(nt))return!1;let zt=this.rows[Vt][Q+1];if(!zt){const Je=this.rows[Vt+1];zt=Je&&Je[0]}return zt&&!this._isRangeStart(zt.compareValue)}_isComparisonEnd(nt){return Ze(nt,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(nt){return dn(nt,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(nt){return this.comparisonStart===this.comparisonEnd&&nt===this.comparisonStart}_isPreviewStart(nt){return bn(nt,this.previewStart,this.previewEnd)}_isPreviewEnd(nt){return Ze(nt,this.previewStart,this.previewEnd)}_isInPreview(nt){return dn(nt,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(nt){let Vt;if(we(nt)?Vt=nt:we(nt.parentNode)&&(Vt=nt.parentNode),Vt){const Q=Vt.getAttribute("data-mat-row"),zt=Vt.getAttribute("data-mat-col");if(Q&&zt)return this.rows[parseInt(Q)][parseInt(zt)]}return null}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(t.SBq),t.Y36(t.R0b))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[t.TTD],attrs:Zt,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(nt,Vt){1&nt&&(t.YNc(0,wt,3,6,"tr",0),t.YNc(1,Qt,3,2,"tr",1)),2&nt&&(t.Q6J("ngIf",Vt._firstRowOffset=mn&&Pe===nt}function dn(Pe,mn,nt,Vt){return Vt&&null!==mn&&null!==nt&&mn!==nt&&Pe>=mn&&Pe<=nt}class kn{constructor(mn,nt){this.start=mn,this.end=nt}}let ri=(()=>{class Pe{constructor(nt,Vt){this.selection=nt,this._adapter=Vt,this._selectionChanged=new k.xQ,this.selectionChanged=this._selectionChanged,this.selection=nt}updateSelection(nt,Vt){const Q=this.selection;this.selection=nt,this._selectionChanged.next({selection:nt,source:Vt,oldValue:Q})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(nt){return this._adapter.isDateInstance(nt)&&this._adapter.isValid(nt)}}return Pe.\u0275fac=function(nt){t.$Z()},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),Ee=(()=>{class Pe extends ri{constructor(nt){super(null,nt)}add(nt){super.updateSelection(nt,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const nt=new Pe(this._adapter);return nt.updateSelection(this.selection,this),nt}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.LFG(w._A))},Pe.\u0275prov=t.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const xt={provide:ri,deps:[[new t.FiY,new t.tp0,ri],w._A],useFactory:function vt(Pe,mn){return Pe||new Ee(mn)}},Ct=new t.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let yn=(()=>{class Pe{constructor(nt,Vt,Q,zt,Je){this._changeDetectorRef=nt,this._dateFormats=Vt,this._dateAdapter=Q,this._dir=zt,this._rangeStrategy=Je,this._rerenderSubscription=D.w.EMPTY,this.selectedChange=new t.vpe,this._userSelection=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(nt){const Vt=this._activeDate,Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this._hasSameMonthAndYear(Vt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(nt){this._selected=nt instanceof kn?nt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(nt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get maxDate(){return this._maxDate}set maxDate(nt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ot.O)(null)).subscribe(()=>this._init())}ngOnChanges(nt){const Vt=nt.comparisonStart||nt.comparisonEnd;Vt&&!Vt.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(nt){const Vt=nt.value,Q=this._getDateFromDayOfMonth(Vt);let zt,Je;this._selected instanceof kn?(zt=this._getDateInCurrentMonth(this._selected.start),Je=this._getDateInCurrentMonth(this._selected.end)):zt=Je=this._getDateInCurrentMonth(this._selected),(zt!==Vt||Je!==Vt)&&this.selectedChange.emit(Q),this._userSelection.emit({value:Q,event:nt.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(nt){const Q=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(nt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(nt){const Vt=this._activeDate,Q=this._isRtl();switch(nt.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Q?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Q?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case z.Ku:this.activeDate=nt.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case z.VM:this.activeDate=nt.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case z.K5:case z.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&nt.preventDefault());case z.hY:return void(null!=this._previewEnd&&!(0,z.Vb)(nt)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:nt}),nt.preventDefault(),nt.stopPropagation()));default:return}this._dateAdapter.compareDate(Vt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),nt.preventDefault()}_handleCalendarBodyKeyup(nt){(nt.keyCode===z.L_||nt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:nt}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let nt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(nt)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(nt){this._matCalendarBody._focusActiveCell(nt)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:nt,value:Vt}){if(this._rangeStrategy){const zt=this._rangeStrategy.createPreview(Vt?Vt.rawValue:null,this.selected,nt);this._previewStart=this._getCellCompareValue(zt.start),this._previewEnd=this._getCellCompareValue(zt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(nt){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),nt)}_initWeekdays(){const nt=this._dateAdapter.getFirstDayOfWeek(),Vt=this._dateAdapter.getDayOfWeekNames("narrow");let zt=this._dateAdapter.getDayOfWeekNames("long").map((Je,zn)=>({long:Je,narrow:Vt[zn]}));this._weekdays=zt.slice(nt).concat(zt.slice(0,nt))}_createWeekCells(){const nt=this._dateAdapter.getNumDaysInMonth(this.activeDate),Vt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Q=0,zt=this._firstWeekOffset;Q=0)&&(!this.maxDate||this._dateAdapter.compareDate(nt,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(nt))}_getDateInCurrentMonth(nt){return nt&&this._hasSameMonthAndYear(nt,this.activeDate)?this._dateAdapter.getDate(nt):null}_hasSameMonthAndYear(nt,Vt){return!(!nt||!Vt||this._dateAdapter.getMonth(nt)!=this._dateAdapter.getMonth(Vt)||this._dateAdapter.getYear(nt)!=this._dateAdapter.getYear(Vt))}_getCellCompareValue(nt){if(nt){const Vt=this._dateAdapter.getYear(nt),Q=this._dateAdapter.getMonth(nt),zt=this._dateAdapter.getDate(nt);return new Date(Vt,Q,zt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(nt){nt instanceof kn?(this._rangeStart=this._getCellCompareValue(nt.start),this._rangeEnd=this._getCellCompareValue(nt.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(nt),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(nt){return!this.dateFilter||this.dateFilter(nt)}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(t.sBO),t.Y36(w.sG,8),t.Y36(w._A,8),t.Y36(G.Is,8),t.Y36(Ct,8))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-month-view"]],viewQuery:function(nt,Vt){if(1&nt&&t.Gf(hn,5),2&nt){let Q;t.iGM(Q=t.CRH())&&(Vt._matCalendarBody=Q.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[t.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(nt,Vt){1&nt&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t.YNc(3,qt,5,2,"th",2),t.qZA(),t.TgZ(4,"tr"),t._UZ(5,"th",3),t.qZA()(),t.TgZ(6,"tbody",4),t.NdJ("selectedValueChange",function(zt){return Vt._dateSelected(zt)})("activeDateChange",function(zt){return Vt._updateActiveDate(zt)})("previewChange",function(zt){return Vt._previewChanged(zt)})("keyup",function(zt){return Vt._handleCalendarBodyKeyup(zt)})("keydown",function(zt){return Vt._handleCalendarBodyKeydown(zt)}),t.qZA()()),2&nt&&(t.xp6(3),t.Q6J("ngForOf",Vt._weekdays),t.xp6(3),t.Q6J("label",Vt._monthLabel)("rows",Vt._weeks)("todayValue",Vt._todayDate)("startValue",Vt._rangeStart)("endValue",Vt._rangeEnd)("comparisonStart",Vt._comparisonRangeStart)("comparisonEnd",Vt._comparisonRangeEnd)("previewStart",Vt._previewStart)("previewEnd",Vt._previewEnd)("isRange",Vt._isRange)("labelMinRequiredCells",3)("activeCell",Vt._dateAdapter.getDate(Vt.activeDate)-1))},dependencies:[T.sg,hn],encapsulation:2,changeDetection:0}),Pe})(),Si=(()=>{class Pe{constructor(nt,Vt,Q){this._changeDetectorRef=nt,this._dateAdapter=Vt,this._dir=Q,this._rerenderSubscription=D.w.EMPTY,this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(nt){let Vt=this._activeDate;const Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),ho(this._dateAdapter,Vt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(nt){this._selected=nt instanceof kn?nt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt)),this._setSelectedYear(nt)}get minDate(){return this._minDate}set minDate(nt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get maxDate(){return this._maxDate}set maxDate(nt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ot.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Vt=this._dateAdapter.getYear(this._activeDate)-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Q=0,zt=[];Q<24;Q++)zt.push(Vt+Q),4==zt.length&&(this._years.push(zt.map(Je=>this._createCellForYear(Je))),zt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(nt){const Vt=nt.value,Q=this._dateAdapter.createDate(Vt,0,1),zt=this._getDateFromYear(Vt);this.yearSelected.emit(Q),this.selectedChange.emit(zt)}_updateActiveDate(nt){const Q=this._activeDate;this.activeDate=this._getDateFromYear(nt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(nt){const Vt=this._activeDate,Q=this._isRtl();switch(nt.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Q?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,nt.altKey?-240:-24);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,nt.altKey?240:24);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Vt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),nt.preventDefault()}_handleCalendarBodyKeyup(nt){(nt.keyCode===z.L_||nt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:nt}),this._selectionKeyPressed=!1)}_getActiveCell(){return hi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(nt){const Vt=this._dateAdapter.getMonth(this.activeDate),Q=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(nt,Vt,1));return this._dateAdapter.createDate(nt,Vt,Math.min(this._dateAdapter.getDate(this.activeDate),Q))}_createCellForYear(nt){const Vt=this._dateAdapter.createDate(nt,0,1),Q=this._dateAdapter.getYearName(Vt),zt=this.dateClass?this.dateClass(Vt,"multi-year"):void 0;return new on(nt,Q,Q,this._shouldEnableYear(nt),zt)}_shouldEnableYear(nt){if(null==nt||this.maxDate&&nt>this._dateAdapter.getYear(this.maxDate)||this.minDate&&nt{class Pe{constructor(nt,Vt,Q,zt){this._changeDetectorRef=nt,this._dateFormats=Vt,this._dateAdapter=Q,this._dir=zt,this._rerenderSubscription=D.w.EMPTY,this.selectedChange=new t.vpe,this.monthSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(nt){let Vt=this._activeDate;const Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this._dateAdapter.getYear(Vt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(nt){this._selected=nt instanceof kn?nt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt)),this._setSelectedMonth(nt)}get minDate(){return this._minDate}set minDate(nt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get maxDate(){return this._maxDate}set maxDate(nt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ot.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(nt){const Vt=nt.value,Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Vt,1);this.monthSelected.emit(Q);const zt=this._getDateFromMonth(Vt);this.selectedChange.emit(zt)}_updateActiveDate(nt){const Q=this._activeDate;this.activeDate=this._getDateFromMonth(nt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(nt){const Vt=this._activeDate,Q=this._isRtl();switch(nt.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Q?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Q?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,nt.altKey?-10:-1);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,nt.altKey?10:1);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Vt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),nt.preventDefault()}_handleCalendarBodyKeyup(nt){(nt.keyCode===z.L_||nt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:nt}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let nt=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Vt=>Vt.map(Q=>this._createCellForMonth(Q,nt[Q]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(nt){return nt&&this._dateAdapter.getYear(nt)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(nt):null}_getDateFromMonth(nt){const Vt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),nt,1),Q=this._dateAdapter.getNumDaysInMonth(Vt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),nt,Math.min(this._dateAdapter.getDate(this.activeDate),Q))}_createCellForMonth(nt,Vt){const Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),nt,1),zt=this._dateAdapter.format(Q,this._dateFormats.display.monthYearA11yLabel),Je=this.dateClass?this.dateClass(Q,"year"):void 0;return new on(nt,Vt.toLocaleUpperCase(),zt,this._shouldEnableMonth(nt),Je)}_shouldEnableMonth(nt){const Vt=this._dateAdapter.getYear(this.activeDate);if(null==nt||this._isYearAndMonthAfterMaxDate(Vt,nt)||this._isYearAndMonthBeforeMinDate(Vt,nt))return!1;if(!this.dateFilter)return!0;for(let zt=this._dateAdapter.createDate(Vt,nt,1);this._dateAdapter.getMonth(zt)==nt;zt=this._dateAdapter.addCalendarDays(zt,1))if(this.dateFilter(zt))return!0;return!1}_isYearAndMonthAfterMaxDate(nt,Vt){if(this.maxDate){const Q=this._dateAdapter.getYear(this.maxDate),zt=this._dateAdapter.getMonth(this.maxDate);return nt>Q||nt===Q&&Vt>zt}return!1}_isYearAndMonthBeforeMinDate(nt,Vt){if(this.minDate){const Q=this._dateAdapter.getYear(this.minDate),zt=this._dateAdapter.getMonth(this.minDate);return nt{class Pe{constructor(nt,Vt,Q,zt,Je){this._intl=nt,this.calendar=Vt,this._dateAdapter=Q,this._dateFormats=zt,this._buttonDescriptionId="mat-calendar-button-"+gn++,this.calendar.stateChanges.subscribe(()=>Je.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Vt=this._dateAdapter.getYear(this.calendar.activeDate)-hi(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Q=Vt+24-1,zt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Vt,0,1)),Je=this._dateAdapter.getYearName(this._dateAdapter.createDate(Q,0,1));return this._intl.formatYearRange(zt,Je)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(nt,Vt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(nt)==this._dateAdapter.getYear(Vt)&&this._dateAdapter.getMonth(nt)==this._dateAdapter.getMonth(Vt):"year"==this.calendar.currentView?this._dateAdapter.getYear(nt)==this._dateAdapter.getYear(Vt):ho(this._dateAdapter,nt,Vt,this.calendar.minDate,this.calendar.maxDate)}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(Le),t.Y36((0,t.Gpc)(()=>tn)),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(t.sBO))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:le,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(nt,Vt){1&nt&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return Vt.currentPeriodClicked()}),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.O4$(),t.TgZ(5,"svg",3),t._UZ(6,"polygon",4),t.qZA()(),t.kcU(),t._UZ(7,"div",5),t.Hsn(8),t.TgZ(9,"button",6),t.NdJ("click",function(){return Vt.previousClicked()}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return Vt.nextClicked()}),t.qZA()()()),2&nt&&(t.xp6(2),t.uIk("aria-label",Vt.periodButtonLabel)("aria-describedby",Vt._buttonDescriptionId),t.xp6(1),t.uIk("id",Vt._buttonDescriptionId),t.xp6(1),t.Oqu(Vt.periodButtonText),t.xp6(1),t.ekj("mat-calendar-invert","month"!==Vt.calendar.currentView),t.xp6(4),t.Q6J("disabled",!Vt.previousEnabled()),t.uIk("aria-label",Vt.prevButtonLabel),t.xp6(1),t.Q6J("disabled",!Vt.nextEnabled()),t.uIk("aria-label",Vt.nextButtonLabel))},dependencies:[A.lW],encapsulation:2,changeDetection:0}),Pe})(),tn=(()=>{class Pe{constructor(nt,Vt,Q,zt){this._dateAdapter=Vt,this._dateFormats=Q,this._changeDetectorRef=zt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this._userSelection=new t.vpe,this.stateChanges=new k.xQ,this._intlChanges=nt.changes.subscribe(()=>{zt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(nt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get selected(){return this._selected}set selected(nt){this._selected=nt instanceof kn?nt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get minDate(){return this._minDate}set minDate(nt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get maxDate(){return this._maxDate}set maxDate(nt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get activeDate(){return this._clampedActiveDate}set activeDate(nt){this._clampedActiveDate=this._dateAdapter.clampDate(nt,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(nt){const Vt=this._currentView!==nt?nt:null;this._currentView=nt,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Vt&&this.viewChanged.emit(Vt)}ngAfterContentInit(){this._calendarHeaderPortal=new v.C5(this.headerComponent||Ve),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(nt){const Vt=nt.minDate&&!this._dateAdapter.sameDate(nt.minDate.previousValue,nt.minDate.currentValue)?nt.minDate:void 0,Q=nt.maxDate&&!this._dateAdapter.sameDate(nt.maxDate.previousValue,nt.maxDate.currentValue)?nt.maxDate:void 0,zt=Vt||Q||nt.dateFilter;if(zt&&!zt.firstChange){const Je=this._getCurrentViewComponent();Je&&(this._changeDetectorRef.detectChanges(),Je._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(nt){const Vt=nt.value;(this.selected instanceof kn||Vt&&!this._dateAdapter.sameDate(Vt,this.selected))&&this.selectedChange.emit(Vt),this._userSelection.emit(nt)}_yearSelectedInMultiYearView(nt){this.yearSelected.emit(nt)}_monthSelectedInYearView(nt){this.monthSelected.emit(nt)}_goToDateInView(nt,Vt){this.activeDate=nt,this.currentView=Vt}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(Le),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(t.sBO))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-calendar"]],viewQuery:function(nt,Vt){if(1&nt&&(t.Gf(yn,5),t.Gf(je,5),t.Gf(Si,5)),2&nt){let Q;t.iGM(Q=t.CRH())&&(Vt.monthView=Q.first),t.iGM(Q=t.CRH())&&(Vt.yearView=Q.first),t.iGM(Q=t.CRH())&&(Vt.multiYearView=Q.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[t._Bn([xt]),t.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(nt,Vt){1&nt&&(t.YNc(0,Wt,0,0,"ng-template",0),t.TgZ(1,"div",1),t.YNc(2,Ce,1,8,"mat-month-view",2),t.YNc(3,Ae,1,6,"mat-year-view",3),t.YNc(4,Ne,1,6,"mat-multi-year-view",4),t.qZA()),2&nt&&(t.Q6J("cdkPortalOutlet",Vt._calendarHeaderPortal),t.xp6(1),t.Q6J("ngSwitch",Vt.currentView),t.xp6(1),t.Q6J("ngSwitchCase","month"),t.xp6(1),t.Q6J("ngSwitchCase","year"),t.xp6(1),t.Q6J("ngSwitchCase","multi-year"))},dependencies:[T.RF,T.n9,d.kH,v.Pl,yn,je,Si],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Pe})();const an={transformPanel:(0,St.X$)("transformPanel",[(0,St.eR)("void => enter-dropdown",(0,St.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,St.F4)([(0,St.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,St.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,St.eR)("void => enter-dialog",(0,St.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,St.F4)([(0,St.oB)({opacity:0,transform:"scale(0.7)"}),(0,St.oB)({transform:"none",opacity:1})]))),(0,St.eR)("* => void",(0,St.jt)("100ms linear",(0,St.oB)({opacity:0})))]),fadeInCalendar:(0,St.X$)("fadeInCalendar",[(0,St.SB)("void",(0,St.oB)({opacity:0})),(0,St.SB)("enter",(0,St.oB)({opacity:1})),(0,St.eR)("void => *",(0,St.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let pe=0;const We=new t.OlP("mat-datepicker-scroll-strategy"),Mt={provide:We,deps:[p.aV],useFactory:function Et(Pe){return()=>Pe.scrollStrategies.reposition()}},It=(0,w.pj)(class{constructor(Pe){this._elementRef=Pe}});let Me=(()=>{class Pe extends It{constructor(nt,Vt,Q,zt,Je,zn){super(nt),this._changeDetectorRef=Vt,this._globalModel=Q,this._dateAdapter=zt,this._rangeSelectionStrategy=Je,this._subscriptions=new D.w,this._animationDone=new k.xQ,this._actionsPortal=null,this._closeButtonText=zn.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(nt){const Vt=this._model.selection,Q=nt.value,zt=Vt instanceof kn;if(zt&&this._rangeSelectionStrategy){const Je=this._rangeSelectionStrategy.selectionFinished(Q,Vt,nt.event);this._model.updateSelection(Je,this)}else Q&&(zt||!this._dateAdapter.sameDate(Q,Vt))&&this._model.add(Q);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(nt,Vt){this._model=nt?this._globalModel.clone():this._globalModel,this._actionsPortal=nt,Vt&&this._changeDetectorRef.detectChanges()}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ri),t.Y36(w._A),t.Y36(Ct,8),t.Y36(Le))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-datepicker-content"]],viewQuery:function(nt,Vt){if(1&nt&&t.Gf(tn,5),2&nt){let Q;t.iGM(Q=t.CRH())&&(Vt._calendar=Q.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(nt,Vt){1&nt&&t.WFA("@transformPanel.done",function(){return Vt._animationDone.next()}),2&nt&&(t.d8E("@transformPanel",Vt._animationState),t.ekj("mat-datepicker-content-touch",Vt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[t.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(nt,Vt){if(1&nt&&(t.TgZ(0,"div",0)(1,"mat-calendar",1),t.NdJ("yearSelected",function(zt){return Vt.datepicker._selectYear(zt)})("monthSelected",function(zt){return Vt.datepicker._selectMonth(zt)})("viewChanged",function(zt){return Vt.datepicker._viewChanged(zt)})("_userSelection",function(zt){return Vt._handleUserSelection(zt)}),t.qZA(),t.YNc(2,ze,0,0,"ng-template",2),t.TgZ(3,"button",3),t.NdJ("focus",function(){return Vt._closeButtonFocused=!0})("blur",function(){return Vt._closeButtonFocused=!1})("click",function(){return Vt.datepicker.close()}),t._uU(4),t.qZA()()),2&nt){let Q;t.ekj("mat-datepicker-content-container-with-custom-header",Vt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Vt._actionsPortal),t.uIk("aria-modal",!0)("aria-labelledby",null!==(Q=Vt._dialogLabelId)&&void 0!==Q?Q:void 0),t.xp6(1),t.Q6J("id",Vt.datepicker.id)("ngClass",Vt.datepicker.panelClass)("startAt",Vt.datepicker.startAt)("startView",Vt.datepicker.startView)("minDate",Vt.datepicker._getMinDate())("maxDate",Vt.datepicker._getMaxDate())("dateFilter",Vt.datepicker._getDateFilter())("headerComponent",Vt.datepicker.calendarHeaderComponent)("selected",Vt._getSelected())("dateClass",Vt.datepicker.dateClass)("comparisonStart",Vt.comparisonStart)("comparisonEnd",Vt.comparisonEnd)("@fadeInCalendar","enter"),t.xp6(1),t.Q6J("cdkPortalOutlet",Vt._actionsPortal),t.xp6(1),t.ekj("cdk-visually-hidden",!Vt._closeButtonFocused),t.Q6J("color",Vt.color||"primary"),t.xp6(1),t.Oqu(Vt._closeButtonText)}},dependencies:[T.mk,A.lW,d.mK,v.Pl,tn],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[an.transformPanel,an.fadeInCalendar]},changeDetection:0}),Pe})(),en=(()=>{class Pe{constructor(nt,Vt,Q,zt,Je,zn,Gi){this._overlay=nt,this._ngZone=Vt,this._viewContainerRef=Q,this._dateAdapter=Je,this._dir=zn,this._model=Gi,this._inputStateChanges=D.w.EMPTY,this._document=(0,t.f3M)(T.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this.openedStream=new t.vpe,this.closedStream=new t.vpe,this._opened=!1,this.id="mat-datepicker-"+pe++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new k.xQ,this._scrollStrategy=zt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(nt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(nt){this._color=nt}get touchUi(){return this._touchUi}set touchUi(nt){this._touchUi=(0,gt.Ig)(nt)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(nt){const Vt=(0,gt.Ig)(nt);Vt!==this._disabled&&(this._disabled=Vt,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(nt){this._restoreFocus=(0,gt.Ig)(nt)}get panelClass(){return this._panelClass}set panelClass(nt){this._panelClass=(0,gt.du)(nt)}get opened(){return this._opened}set opened(nt){(0,gt.Ig)(nt)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(nt){const Vt=nt.xPosition||nt.yPosition;if(Vt&&!Vt.firstChange&&this._overlayRef){const Q=this._overlayRef.getConfig().positionStrategy;Q instanceof p._G&&(this._setConnectedPositions(Q),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(nt){this._model.add(nt)}_selectYear(nt){this.yearSelected.emit(nt)}_selectMonth(nt){this.monthSelected.emit(nt)}_viewChanged(nt){this.viewChanged.emit(nt)}registerInput(nt){return this._inputStateChanges.unsubscribe(),this.datepickerInput=nt,this._inputStateChanges=nt.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(nt){this._actionsPortal=nt,this._componentRef?.instance._assignActions(nt,!0)}removeActions(nt){nt===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,Pt.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const nt=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Vt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Q,location:zt}=this._componentRef;Q._startExitAnimation(),Q._animationDone.pipe((0,W.q)(1)).subscribe(()=>{const Je=this._document.activeElement;nt&&(!Je||Je===this._document.activeElement||zt.nativeElement.contains(Je))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}nt?setTimeout(Vt):Vt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(nt){nt.datepicker=this,nt.color=this.color,nt._dialogLabelId=this.datepickerInput.getOverlayLabelId(),nt._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const nt=this.touchUi,Vt=new v.C5(Me,this._viewContainerRef),Q=this._overlayRef=this._overlay.create(new p.X_({positionStrategy:nt?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[nt?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:nt?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(nt?"dialog":"popup")}));this._getCloseStream(Q).subscribe(zt=>{zt&&zt.preventDefault(),this.close()}),Q.keydownEvents().subscribe(zt=>{const Je=zt.keyCode;(Je===z.LH||Je===z.JH||Je===z.oh||Je===z.SV||Je===z.Ku||Je===z.VM)&&zt.preventDefault()}),this._componentRef=Q.attach(Vt),this._forwardContentValues(this._componentRef.instance),nt||this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>Q.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const nt=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(nt)}_setConnectedPositions(nt){const Vt="end"===this.xPosition?"end":"start",Q="start"===Vt?"end":"start",zt="above"===this.yPosition?"bottom":"top",Je="top"===zt?"bottom":"top";return nt.withPositions([{originX:Vt,originY:Je,overlayX:Vt,overlayY:zt},{originX:Vt,originY:zt,overlayX:Vt,overlayY:Je},{originX:Q,originY:Je,overlayX:Q,overlayY:zt},{originX:Q,originY:zt,overlayX:Q,overlayY:Je}])}_getCloseStream(nt){return(0,P.T)(nt.backdropClick(),nt.detachments(),nt.keydownEvents().pipe((0,ct.h)(Vt=>Vt.keyCode===z.hY&&!(0,z.Vb)(Vt)||this.datepickerInput&&(0,z.Vb)(Vt,"altKey")&&Vt.keyCode===z.LH)))}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(p.aV),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(We),t.Y36(w._A,8),t.Y36(G.Is,8),t.Y36(ri))},Pe.\u0275dir=t.lG2({type:Pe,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[t.TTD]}),Pe})(),He=(()=>{class Pe extends en{}return Pe.\u0275fac=function(){let mn;return function(Vt){return(mn||(mn=t.n5z(Pe)))(Vt||Pe)}}(),Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[t._Bn([xt,{provide:en,useExisting:Pe}]),t.qOj],decls:0,vars:0,template:function(nt,Vt){},encapsulation:2,changeDetection:0}),Pe})();class Zn{constructor(mn,nt){this.target=mn,this.targetElement=nt,this.value=this.target.value}}let ve=(()=>{class Pe{constructor(nt,Vt,Q){this._elementRef=nt,this._dateAdapter=Vt,this._dateFormats=Q,this.dateChange=new t.vpe,this.dateInput=new t.vpe,this.stateChanges=new k.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=D.w.EMPTY,this._localeSubscription=D.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=zt=>{const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(zt.value));return!Je||this._matchesFilter(Je)?null:{matDatepickerFilter:!0}},this._minValidator=zt=>{const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(zt.value)),zn=this._getMinDate();return!zn||!Je||this._dateAdapter.compareDate(zn,Je)<=0?null:{matDatepickerMin:{min:zn,actual:Je}}},this._maxValidator=zt=>{const Je=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(zt.value)),zn=this._getMaxDate();return!zn||!Je||this._dateAdapter.compareDate(zn,Je)>=0?null:{matDatepickerMax:{max:zn,actual:Je}}},this._lastValueValid=!1,this._localeSubscription=Vt.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(nt){this._assignValueProgrammatically(nt)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(nt){const Vt=(0,gt.Ig)(nt),Q=this._elementRef.nativeElement;this._disabled!==Vt&&(this._disabled=Vt,this.stateChanges.next(void 0)),Vt&&this._isInitialized&&Q.blur&&Q.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(nt){this._model=nt,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Vt=>{if(this._shouldHandleChangeEvent(Vt)){const Q=this._getValueFromModel(Vt.selection);this._lastValueValid=this._isValidValue(Q),this._cvaOnChange(Q),this._onTouched(),this._formatValue(Q),this.dateInput.emit(new Zn(this,this._elementRef.nativeElement)),this.dateChange.emit(new Zn(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(nt){(function Be(Pe,mn){const nt=Object.keys(Pe);for(let Vt of nt){const{previousValue:Q,currentValue:zt}=Pe[Vt];if(!mn.isDateInstance(Q)||!mn.isDateInstance(zt))return!0;if(!mn.sameDate(Q,zt))return!0}return!1})(nt,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(nt){this._validatorOnChange=nt}validate(nt){return this._validator?this._validator(nt):null}writeValue(nt){this._assignValueProgrammatically(nt)}registerOnChange(nt){this._cvaOnChange=nt}registerOnTouched(nt){this._onTouched=nt}setDisabledState(nt){this.disabled=nt}_onKeydown(nt){nt.altKey&&nt.keyCode===z.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),nt.preventDefault())}_onInput(nt){const Vt=this._lastValueValid;let Q=this._dateAdapter.parse(nt,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Q),Q=this._dateAdapter.getValidDateOrNull(Q);const zt=!this._dateAdapter.sameDate(Q,this.value);!Q||zt?this._cvaOnChange(Q):(nt&&!this.value&&this._cvaOnChange(Q),Vt!==this._lastValueValid&&this._validatorOnChange()),zt&&(this._assignValue(Q),this.dateInput.emit(new Zn(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Zn(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(nt){this._elementRef.nativeElement.value=null!=nt?this._dateAdapter.format(nt,this._dateFormats.display.dateInput):""}_assignValue(nt){this._model?(this._assignValueToModel(nt),this._pendingValue=null):this._pendingValue=nt}_isValidValue(nt){return!nt||this._dateAdapter.isValid(nt)}_parentDisabled(){return!1}_assignValueProgrammatically(nt){nt=this._dateAdapter.deserialize(nt),this._lastValueValid=this._isValidValue(nt),nt=this._dateAdapter.getValidDateOrNull(nt),this._assignValue(nt),this._formatValue(nt)}_matchesFilter(nt){const Vt=this._getDateFilter();return!Vt||Vt(nt)}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(t.SBq),t.Y36(w._A,8),t.Y36(w.sG,8))},Pe.\u0275dir=t.lG2({type:Pe,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t.TTD]}),Pe})();const Fn={provide:Ht.JU,useExisting:(0,t.Gpc)(()=>go),multi:!0},bi={provide:Ht.Cf,useExisting:(0,t.Gpc)(()=>go),multi:!0};let go=(()=>{class Pe extends ve{constructor(nt,Vt,Q,zt){super(nt,Vt,Q),this._formField=zt,this._closedSubscription=D.w.EMPTY,this._validator=Ht.kI.compose(super._getValidators())}set matDatepicker(nt){nt&&(this._datepicker=nt,this._closedSubscription=nt.closedStream.subscribe(()=>this._onTouched()),this._registerModel(nt.registerInput(this)))}get min(){return this._min}set min(nt){const Vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt));this._dateAdapter.sameDate(Vt,this._min)||(this._min=Vt,this._validatorOnChange())}get max(){return this._max}set max(nt){const Vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(nt));this._dateAdapter.sameDate(Vt,this._max)||(this._max=Vt,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(nt){const Vt=this._matchesFilter(this.value);this._dateFilter=nt,this._matchesFilter(this.value)!==Vt&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(nt){return nt}_assignValueToModel(nt){this._model&&this._model.updateSelection(nt,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(nt){return nt.source!==this}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(t.SBq),t.Y36(w._A,8),t.Y36(w.sG,8),t.Y36(Jt.G_,8))},Pe.\u0275dir=t.lG2({type:Pe,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(nt,Vt){1&nt&&t.NdJ("input",function(zt){return Vt._onInput(zt.target.value)})("change",function(){return Vt._onChange()})("blur",function(){return Vt._onBlur()})("keydown",function(zt){return Vt._onKeydown(zt)}),2&nt&&(t.Ikx("disabled",Vt.disabled),t.uIk("aria-haspopup",Vt._datepicker?"dialog":null)("aria-owns",(null==Vt._datepicker?null:Vt._datepicker.opened)&&Vt._datepicker.id||null)("min",Vt.min?Vt._dateAdapter.toIso8601(Vt.min):null)("max",Vt.max?Vt._dateAdapter.toIso8601(Vt.max):null)("data-mat-calendar",Vt._datepicker?Vt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[t._Bn([Fn,bi,{provide:at.Jk,useExisting:Pe}]),t.qOj]}),Pe})(),_o=(()=>{class Pe{}return Pe.\u0275fac=function(nt){return new(nt||Pe)},Pe.\u0275dir=t.lG2({type:Pe,selectors:[["","matDatepickerToggleIcon",""]]}),Pe})(),fn=(()=>{class Pe{constructor(nt,Vt,Q){this._intl=nt,this._changeDetectorRef=Vt,this._stateChanges=D.w.EMPTY;const zt=Number(Q);this.tabIndex=zt||0===zt?zt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(nt){this._disabled=(0,gt.Ig)(nt)}ngOnChanges(nt){nt.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(nt){this.datepicker&&!this.disabled&&(this.datepicker.open(),nt.stopPropagation())}_watchStateChanges(){const nt=this.datepicker?this.datepicker.stateChanges:(0,I.of)(),Vt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,I.of)(),Q=this.datepicker?(0,P.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,I.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,P.T)(this._intl.changes,nt,Vt,Q).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Pe.\u0275fac=function(nt){return new(nt||Pe)(t.Y36(Le),t.Y36(t.sBO),t.$8M("tabindex"))},Pe.\u0275cmp=t.Xpm({type:Pe,selectors:[["mat-datepicker-toggle"]],contentQueries:function(nt,Vt,Q){if(1&nt&&t.Suo(Q,_o,5),2&nt){let zt;t.iGM(zt=t.CRH())&&(Vt._customIcon=zt.first)}},viewQuery:function(nt,Vt){if(1&nt&&t.Gf(Xe,5),2&nt){let Q;t.iGM(Q=t.CRH())&&(Vt._button=Q.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(nt,Vt){1&nt&&t.NdJ("click",function(zt){return Vt._open(zt)}),2&nt&&(t.uIk("tabindex",null)("data-mat-calendar",Vt.datepicker?Vt.datepicker.id:null),t.ekj("mat-datepicker-toggle-active",Vt.datepicker&&Vt.datepicker.opened)("mat-accent",Vt.datepicker&&"accent"===Vt.datepicker.color)("mat-warn",Vt.datepicker&&"warn"===Vt.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[t.TTD],ngContentSelectors:re,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(nt,Vt){1&nt&&(t.F$t(Te),t.TgZ(0,"button",0,1),t.YNc(2,ie,2,0,"svg",2),t.Hsn(3),t.qZA()),2&nt&&(t.Q6J("disabled",Vt.disabled)("disableRipple",Vt.disableRipple),t.uIk("aria-haspopup",Vt.datepicker?"dialog":null)("aria-label",Vt.ariaLabel||Vt._intl.openCalendarLabel)("tabindex",Vt.disabled?-1:Vt.tabIndex),t.xp6(2),t.Q6J("ngIf",!Vt._customIcon))},dependencies:[T.O5,A.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Pe})(),Ye=(()=>{class Pe{}return Pe.\u0275fac=function(nt){return new(nt||Pe)},Pe.\u0275mod=t.oAB({type:Pe}),Pe.\u0275inj=t.cJS({providers:[Le,Mt],imports:[T.ez,A.ot,p.U8,d.rt,v.eL,w.BQ,x.ZD]}),Pe})()},65412:(rt,it,b)=>{"use strict";b.d(it,{WI:()=>ee,uw:()=>bn,H8:()=>Ee,ZT:()=>dn,xY:()=>ri,Is:()=>vt,so:()=>Te,uh:()=>kn});var d=b(12687),p=b(98184),v=b(83353),T=b(84080),t=b(36895),A=b(94650),x=b(29521),w=b(8929),k=b(88514),D=b(21086),P=b(40445),I=b(1059);function z(xt,tt){}class G{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let ot=(()=>{class xt extends T.en{constructor(et,Ct,Bt,ne,he,Oe,yn,On){super(),this._elementRef=et,this._focusTrapFactory=Ct,this._config=ne,this._interactivityChecker=he,this._ngZone=Oe,this._overlayRef=yn,this._focusMonitor=On,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=_i=>{this._portalOutlet.hasAttached();const Si=this._portalOutlet.attachDomPortal(_i);return this._contentAttached(),Si},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Bt}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(et){this._portalOutlet.hasAttached();const Ct=this._portalOutlet.attachComponentPortal(et);return this._contentAttached(),Ct}attachTemplatePortal(et){this._portalOutlet.hasAttached();const Ct=this._portalOutlet.attachTemplatePortal(et);return this._contentAttached(),Ct}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(et,Ct){this._interactivityChecker.isFocusable(et)||(et.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Bt=()=>{et.removeEventListener("blur",Bt),et.removeEventListener("mousedown",Bt),et.removeAttribute("tabindex")};et.addEventListener("blur",Bt),et.addEventListener("mousedown",Bt)})),et.focus(Ct)}_focusByCssSelector(et,Ct){let Bt=this._elementRef.nativeElement.querySelector(et);Bt&&this._forceFocus(Bt,Ct)}_trapFocus(){const et=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||et.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ct=>{Ct||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const et=this._config.restoreFocus;let Ct=null;if("string"==typeof et?Ct=this._document.querySelector(et):"boolean"==typeof et?Ct=et?this._elementFocusedBeforeDialogWasOpened:null:et&&(Ct=et),this._config.restoreFocus&&Ct&&"function"==typeof Ct.focus){const Bt=(0,v.ht)(),ne=this._elementRef.nativeElement;(!Bt||Bt===this._document.body||Bt===ne||ne.contains(Bt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ct,this._closeInteractionType),this._closeInteractionType=null):Ct.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const et=this._elementRef.nativeElement,Ct=(0,v.ht)();return et===Ct||et.contains(Ct)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,v.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return xt.\u0275fac=function(et){return new(et||xt)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(G),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(d.tE))},xt.\u0275cmp=A.Xpm({type:xt,selectors:[["cdk-dialog-container"]],viewQuery:function(et,Ct){if(1&et&&A.Gf(T.Pl,7),2&et){let Bt;A.iGM(Bt=A.CRH())&&(Ct._portalOutlet=Bt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(et,Ct){2&et&&A.uIk("id",Ct._config.id||null)("role",Ct._config.role)("aria-modal",Ct._config.ariaModal)("aria-labelledby",Ct._config.ariaLabel?null:Ct._ariaLabelledBy)("aria-label",Ct._config.ariaLabel)("aria-describedby",Ct._config.ariaDescribedBy||null)},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(et,Ct){1&et&&A.YNc(0,z,0,0,"ng-template",0)},dependencies:[T.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),xt})();class ct{constructor(tt,et){this.overlayRef=tt,this.config=et,this.closed=new w.xQ,this.disableClose=et.disableClose,this.backdropClick=tt.backdropClick(),this.keydownEvents=tt.keydownEvents(),this.outsidePointerEvents=tt.outsidePointerEvents(),this.id=et.id,this.keydownEvents.subscribe(Ct=>{Ct.keyCode===x.hY&&!this.disableClose&&!(0,x.Vb)(Ct)&&(Ct.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(tt,et){if(this.containerInstance){const Ct=this.closed;this.containerInstance._closeInteractionType=et?.focusOrigin||"program",this.overlayRef.dispose(),Ct.next(tt),Ct.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(tt="",et=""){return this.overlayRef.updateSize({width:tt,height:et}),this}addPanelClass(tt){return this.overlayRef.addPanelClass(tt),this}removePanelClass(tt){return this.overlayRef.removePanelClass(tt),this}}const gt=new A.OlP("DialogScrollStrategy"),Pt=new A.OlP("DialogData"),St=new A.OlP("DefaultDialogConfig"),Jt={provide:gt,deps:[p.aV],useFactory:function Ht(xt){return()=>xt.scrollStrategies.block()}};let at=0,Zt=(()=>{class xt{constructor(et,Ct,Bt,ne,he,Oe){this._overlay=et,this._injector=Ct,this._defaultOptions=Bt,this._parentDialog=ne,this._overlayContainer=he,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.xQ,this._afterOpenedAtThisLevel=new w.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,k.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,I.O)(void 0))),this._scrollStrategy=Oe}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(et,Ct){(Ct={...this._defaultOptions||new G,...Ct}).id=Ct.id||"cdk-dialog-"+at++,Ct.id&&this.getDialogById(Ct.id);const ne=this._getOverlayConfig(Ct),he=this._overlay.create(ne),Oe=new ct(he,Ct),yn=this._attachContainer(he,Oe,Ct);return Oe.containerInstance=yn,this._attachDialogContent(et,Oe,yn,Ct),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Oe),Oe.closed.subscribe(()=>this._removeOpenDialog(Oe,!0)),this.afterOpened.next(Oe),Oe}closeAll(){wt(this.openDialogs,et=>et.close())}getDialogById(et){return this.openDialogs.find(Ct=>Ct.id===et)}ngOnDestroy(){wt(this._openDialogsAtThisLevel,et=>{!1===et.config.closeOnDestroy&&this._removeOpenDialog(et,!1)}),wt(this._openDialogsAtThisLevel,et=>et.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(et){const Ct=new p.X_({positionStrategy:et.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:et.scrollStrategy||this._scrollStrategy(),panelClass:et.panelClass,hasBackdrop:et.hasBackdrop,direction:et.direction,minWidth:et.minWidth,minHeight:et.minHeight,maxWidth:et.maxWidth,maxHeight:et.maxHeight,width:et.width,height:et.height,disposeOnNavigation:et.closeOnNavigation});return et.backdropClass&&(Ct.backdropClass=et.backdropClass),Ct}_attachContainer(et,Ct,Bt){const ne=Bt.injector||Bt.viewContainerRef?.injector,he=[{provide:G,useValue:Bt},{provide:ct,useValue:Ct},{provide:p.Iu,useValue:et}];let Oe;Bt.container?"function"==typeof Bt.container?Oe=Bt.container:(Oe=Bt.container.type,he.push(...Bt.container.providers(Bt))):Oe=ot;const yn=new T.C5(Oe,Bt.viewContainerRef,A.zs3.create({parent:ne||this._injector,providers:he}),Bt.componentFactoryResolver);return et.attach(yn).instance}_attachDialogContent(et,Ct,Bt,ne){if(et instanceof A.Rgc){const he=this._createInjector(ne,Ct,Bt,void 0);let Oe={$implicit:ne.data,dialogRef:Ct};ne.templateContext&&(Oe={...Oe,..."function"==typeof ne.templateContext?ne.templateContext():ne.templateContext}),Bt.attachTemplatePortal(new T.UE(et,null,Oe,he))}else{const he=this._createInjector(ne,Ct,Bt,this._injector),Oe=Bt.attachComponentPortal(new T.C5(et,ne.viewContainerRef,he,ne.componentFactoryResolver));Ct.componentInstance=Oe.instance}}_createInjector(et,Ct,Bt,ne){const he=et.injector||et.viewContainerRef?.injector,Oe=[{provide:Pt,useValue:et.data},{provide:ct,useValue:Ct}];return et.providers&&("function"==typeof et.providers?Oe.push(...et.providers(Ct,et,Bt)):Oe.push(...et.providers)),et.direction&&(!he||!he.get(P.Is,null,A.XFs.Optional))&&Oe.push({provide:P.Is,useValue:{value:et.direction,change:(0,D.of)()}}),A.zs3.create({parent:he||ne,providers:Oe})}_removeOpenDialog(et,Ct){const Bt=this.openDialogs.indexOf(et);Bt>-1&&(this.openDialogs.splice(Bt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ne,he)=>{ne?he.setAttribute("aria-hidden",ne):he.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Ct&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const et=this._overlayContainer.getContainerElement();if(et.parentElement){const Ct=et.parentElement.children;for(let Bt=Ct.length-1;Bt>-1;Bt--){const ne=Ct[Bt];ne!==et&&"SCRIPT"!==ne.nodeName&&"STYLE"!==ne.nodeName&&!ne.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ne,ne.getAttribute("aria-hidden")),ne.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const et=this._parentDialog;return et?et._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return xt.\u0275fac=function(et){return new(et||xt)(A.LFG(p.aV),A.LFG(A.zs3),A.LFG(St,8),A.LFG(xt,12),A.LFG(p.Xj),A.LFG(gt))},xt.\u0275prov=A.Yz7({token:xt,factory:xt.\u0275fac}),xt})();function wt(xt,tt){let et=xt.length;for(;et--;)tt(xt[et])}let _t=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275mod=A.oAB({type:xt}),xt.\u0275inj=A.cJS({providers:[Zt,Jt],imports:[p.U8,T.eL,d.rt,T.eL]}),xt})();var Nt=b(3238),Qt=b(36787),qt=b(92198),le=b(72986),Wt=b(37340);function Ce(xt,tt){}const Ae={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Ne={dialogContainer:(0,Wt.X$)("dialogContainer",[(0,Wt.SB)("void, exit",(0,Wt.oB)({opacity:0,transform:"scale(0.7)"})),(0,Wt.SB)("enter",(0,Wt.oB)({transform:"none"})),(0,Wt.eR)("* => enter",(0,Wt.ru)([(0,Wt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Wt.oB)({transform:"none",opacity:1})),(0,Wt.IO)("@*",(0,Wt.pV)(),{optional:!0})]),Ae),(0,Wt.eR)("* => void, * => exit",(0,Wt.ru)([(0,Wt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Wt.oB)({opacity:0})),(0,Wt.IO)("@*",(0,Wt.pV)(),{optional:!0})]),Ae)])};class ze{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Ae.params.enterAnimationDuration,this.exitAnimationDuration=Ae.params.exitAnimationDuration}}let Xe=(()=>{class xt extends ot{constructor(et,Ct,Bt,ne,he,Oe,yn,On){super(et,Ct,Bt,ne,he,Oe,yn,On),this._animationStateChanged=new A.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(et){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:et})}}return xt.\u0275fac=function(et){return new(et||xt)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(ze),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(d.tE))},xt.\u0275cmp=A.Xpm({type:xt,selectors:[["ng-component"]],features:[A.qOj],decls:0,vars:0,template:function(et,Ct){},encapsulation:2}),xt})(),ie=(()=>{class xt extends Xe{constructor(et,Ct,Bt,ne,he,Oe,yn,On,_i){super(et,Ct,Bt,ne,he,Oe,yn,_i),this._changeDetectorRef=On,this._state="enter"}_onAnimationDone({toState:et,totalTime:Ct}){"enter"===et?this._openAnimationDone(Ct):"exit"===et&&this._animationStateChanged.next({state:"closed",totalTime:Ct})}_onAnimationStart({toState:et,totalTime:Ct}){"enter"===et?this._animationStateChanged.next({state:"opening",totalTime:Ct}):("exit"===et||"void"===et)&&this._animationStateChanged.next({state:"closing",totalTime:Ct})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Ae.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Ae.params.exitAnimationDuration}}}}return xt.\u0275fac=function(et){return new(et||xt)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(ze),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(A.sBO),A.Y36(d.tE))},xt.\u0275cmp=A.Xpm({type:xt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(et,Ct){1&et&&A.WFA("@dialogContainer.start",function(ne){return Ct._onAnimationStart(ne)})("@dialogContainer.done",function(ne){return Ct._onAnimationDone(ne)}),2&et&&(A.Ikx("id",Ct._config.id),A.uIk("aria-modal",Ct._config.ariaModal)("role",Ct._config.role)("aria-labelledby",Ct._config.ariaLabel?null:Ct._ariaLabelledBy)("aria-label",Ct._config.ariaLabel)("aria-describedby",Ct._config.ariaDescribedBy||null),A.d8E("@dialogContainer",Ct._getAnimationState()))},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(et,Ct){1&et&&A.YNc(0,Ce,0,0,"ng-template",0)},dependencies:[T.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Ne.dialogContainer]}}),xt})();class Te{constructor(tt,et,Ct){this._ref=tt,this._containerInstance=Ct,this._afterOpened=new w.xQ,this._beforeClosed=new w.xQ,this._state=0,this.disableClose=et.disableClose,this.id=tt.id,Ct._animationStateChanged.pipe((0,qt.h)(Bt=>"opened"===Bt.state),(0,le.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ct._animationStateChanged.pipe((0,qt.h)(Bt=>"closed"===Bt.state),(0,le.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),tt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Qt.T)(this.backdropClick(),this.keydownEvents().pipe((0,qt.h)(Bt=>Bt.keyCode===x.hY&&!this.disableClose&&!(0,x.Vb)(Bt)))).subscribe(Bt=>{this.disableClose||(Bt.preventDefault(),re(this,"keydown"===Bt.type?"keyboard":"mouse"))})}close(tt){this._result=tt,this._containerInstance._animationStateChanged.pipe((0,qt.h)(et=>"closing"===et.state),(0,le.q)(1)).subscribe(et=>{this._beforeClosed.next(tt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),et.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(tt){let et=this._ref.config.positionStrategy;return tt&&(tt.left||tt.right)?tt.left?et.left(tt.left):et.right(tt.right):et.centerHorizontally(),tt&&(tt.top||tt.bottom)?tt.top?et.top(tt.top):et.bottom(tt.bottom):et.centerVertically(),this._ref.updatePosition(),this}updateSize(tt="",et=""){return this._ref.updateSize(tt,et),this}addPanelClass(tt){return this._ref.addPanelClass(tt),this}removePanelClass(tt){return this._ref.removePanelClass(tt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function re(xt,tt,et){return xt._closeInteractionType=tt,xt.close(et)}const ee=new A.OlP("MatDialogData"),ue=new A.OlP("mat-dialog-default-options"),Kt=new A.OlP("mat-dialog-scroll-strategy"),on={provide:Kt,deps:[p.aV],useFactory:function Le(xt){return()=>xt.scrollStrategies.block()}};let hn=0,we=(()=>{class xt{constructor(et,Ct,Bt,ne,he,Oe,yn,On,_i,Si){this._overlay=et,this._defaultOptions=Bt,this._parentDialog=ne,this._dialogRefConstructor=yn,this._dialogContainerType=On,this._dialogDataToken=_i,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.xQ,this._afterOpenedAtThisLevel=new w.xQ,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,k.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,I.O)(void 0))),this._scrollStrategy=Oe,this._dialog=Ct.get(Zt)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const et=this._parentDialog;return et?et._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(et,Ct){let Bt;(Ct={...this._defaultOptions||new ze,...Ct}).id=Ct.id||`${this._idPrefix}${hn++}`,Ct.scrollStrategy=Ct.scrollStrategy||this._scrollStrategy();const ne=this._dialog.open(et,{...Ct,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:ze,useValue:Ct},{provide:G,useValue:Ct}]},templateContext:()=>({dialogRef:Bt}),providers:(he,Oe,yn)=>(Bt=new this._dialogRefConstructor(he,Ct,yn),Bt.updatePosition(Ct?.position),[{provide:this._dialogContainerType,useValue:yn},{provide:this._dialogDataToken,useValue:Oe.data},{provide:this._dialogRefConstructor,useValue:Bt}])});return Bt.componentInstance=ne.componentInstance,this.openDialogs.push(Bt),this.afterOpened.next(Bt),Bt.afterClosed().subscribe(()=>{const he=this.openDialogs.indexOf(Bt);he>-1&&(this.openDialogs.splice(he,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Bt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(et){return this.openDialogs.find(Ct=>Ct.id===et)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(et){let Ct=et.length;for(;Ct--;)et[Ct].close()}}return xt.\u0275fac=function(et){A.$Z()},xt.\u0275prov=A.Yz7({token:xt,factory:xt.\u0275fac}),xt})(),bn=(()=>{class xt extends we{constructor(et,Ct,Bt,ne,he,Oe,yn,On){super(et,Ct,ne,Oe,yn,he,Te,ie,ee,On)}}return xt.\u0275fac=function(et){return new(et||xt)(A.LFG(p.aV),A.LFG(A.zs3),A.LFG(t.Ye,8),A.LFG(ue,8),A.LFG(Kt),A.LFG(xt,12),A.LFG(p.Xj),A.LFG(A.QbO,8))},xt.\u0275prov=A.Yz7({token:xt,factory:xt.\u0275fac}),xt})(),Ze=0,dn=(()=>{class xt{constructor(et,Ct,Bt){this.dialogRef=et,this._elementRef=Ct,this._dialog=Bt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Ft(this._elementRef,this._dialog.openDialogs))}ngOnChanges(et){const Ct=et._matDialogClose||et._matDialogCloseResult;Ct&&(this.dialogResult=Ct.currentValue)}_onButtonClick(et){re(this.dialogRef,0===et.screenX&&0===et.screenY?"keyboard":"mouse",this.dialogResult)}}return xt.\u0275fac=function(et){return new(et||xt)(A.Y36(Te,8),A.Y36(A.SBq),A.Y36(bn))},xt.\u0275dir=A.lG2({type:xt,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(et,Ct){1&et&&A.NdJ("click",function(ne){return Ct._onButtonClick(ne)}),2&et&&A.uIk("aria-label",Ct.ariaLabel||null)("type",Ct.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[A.TTD]}),xt})(),kn=(()=>{class xt{constructor(et,Ct,Bt){this._dialogRef=et,this._elementRef=Ct,this._dialog=Bt,this.id="mat-dialog-title-"+Ze++}ngOnInit(){this._dialogRef||(this._dialogRef=Ft(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const et=this._dialogRef._containerInstance;et&&!et._ariaLabelledBy&&(et._ariaLabelledBy=this.id)})}}return xt.\u0275fac=function(et){return new(et||xt)(A.Y36(Te,8),A.Y36(A.SBq),A.Y36(bn))},xt.\u0275dir=A.lG2({type:xt,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(et,Ct){2&et&&A.Ikx("id",Ct.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),xt})(),ri=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=A.lG2({type:xt,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),xt})(),Ee=(()=>{class xt{constructor(){this.align="start"}}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=A.lG2({type:xt,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(et,Ct){2&et&&A.ekj("mat-dialog-actions-align-center","center"===Ct.align)("mat-dialog-actions-align-end","end"===Ct.align)},inputs:{align:"align"}}),xt})();function Ft(xt,tt){let et=xt.nativeElement.parentElement;for(;et&&!et.classList.contains("mat-dialog-container");)et=et.parentElement;return et?tt.find(Ct=>Ct.id===et.id):null}let vt=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275mod=A.oAB({type:xt}),xt.\u0275inj=A.cJS({providers:[bn,on],imports:[_t,p.U8,T.eL,Nt.BQ,Nt.BQ]}),xt})()},44850:(rt,it,b)=>{"use strict";b.d(it,{d:()=>T,t:()=>t});var d=b(94650),p=b(21281),v=b(3238);let T=(()=>{class A{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(w){this._vertical=(0,p.Ig)(w)}get inset(){return this._inset}set inset(w){this._inset=(0,p.Ig)(w)}}return A.\u0275fac=function(w){return new(w||A)},A.\u0275cmp=d.Xpm({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(w,k){2&w&&(d.uIk("aria-orientation",k.vertical?"vertical":"horizontal"),d.ekj("mat-divider-vertical",k.vertical)("mat-divider-horizontal",!k.vertical)("mat-divider-inset",k.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(w,k){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),A})(),t=(()=>{class A{}return A.\u0275fac=function(w){return new(w||A)},A.\u0275mod=d.oAB({type:A}),A.\u0275inj=d.cJS({imports:[v.BQ,v.BQ]}),A})()},37084:(rt,it,b)=>{"use strict";b.d(it,{pp:()=>on,To:()=>hn,ib:()=>Te,u4:()=>ce,yz:()=>Kt,yK:()=>Le});var d=b(94650),p=b(95017),v=b(21281),T=b(8929),t=b(42654);let A=0;const x=new d.OlP("CdkAccordion");let w=(()=>{class we{constructor(){this._stateChanges=new T.xQ,this._openCloseAllActions=new T.xQ,this.id="cdk-accordion-"+A++,this._multi=!1}get multi(){return this._multi}set multi(Ze){this._multi=(0,v.Ig)(Ze)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Ze){this._stateChanges.next(Ze)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return we.\u0275fac=function(Ze){return new(Ze||we)},we.\u0275dir=d.lG2({type:we,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[d._Bn([{provide:x,useExisting:we}]),d.TTD]}),we})(),k=0,D=(()=>{class we{constructor(Ze,dn,kn){this.accordion=Ze,this._changeDetectorRef=dn,this._expansionDispatcher=kn,this._openCloseAllSubscription=t.w.EMPTY,this.closed=new d.vpe,this.opened=new d.vpe,this.destroyed=new d.vpe,this.expandedChange=new d.vpe,this.id="cdk-accordion-child-"+k++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=kn.listen((ri,Ee)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ee&&this.id!==ri&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(Ze){Ze=(0,v.Ig)(Ze),this._expanded!==Ze&&(this._expanded=Ze,this.expandedChange.emit(Ze),Ze?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Ze){this._disabled=(0,v.Ig)(Ze)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(Ze=>{this.disabled||(this.expanded=Ze)})}}return we.\u0275fac=function(Ze){return new(Ze||we)(d.Y36(x,12),d.Y36(d.sBO),d.Y36(p.A8))},we.\u0275dir=d.lG2({type:we,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[d._Bn([{provide:x,useValue:void 0}])]}),we})(),P=(()=>{class we{}return we.\u0275fac=function(Ze){return new(Ze||we)},we.\u0275mod=d.oAB({type:we}),we.\u0275inj=d.cJS({}),we})();var I=b(84080),z=b(36895),G=b(3238),W=b(12687),ot=b(75778),ct=b(1059),gt=b(92198),Pt=b(72986),St=b(29521),Ht=b(68896),Jt=b(36787),at=b(37340);const Zt=["body"];function wt(we,bn){}const _t=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Nt=["mat-expansion-panel-header","*","mat-action-row"];function Qt(we,bn){if(1&we&&d._UZ(0,"span",2),2&we){const Ze=d.oxw();d.Q6J("@indicatorRotate",Ze._getExpandedState())}}const qt=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],le=["mat-panel-title","mat-panel-description","*"],Wt=new d.OlP("MAT_ACCORDION"),Ce="225ms cubic-bezier(0.4,0.0,0.2,1)",Ae={indicatorRotate:(0,at.X$)("indicatorRotate",[(0,at.SB)("collapsed, void",(0,at.oB)({transform:"rotate(0deg)"})),(0,at.SB)("expanded",(0,at.oB)({transform:"rotate(180deg)"})),(0,at.eR)("expanded <=> collapsed, void => collapsed",(0,at.jt)(Ce))]),bodyExpansion:(0,at.X$)("bodyExpansion",[(0,at.SB)("collapsed, void",(0,at.oB)({height:"0px",visibility:"hidden"})),(0,at.SB)("expanded",(0,at.oB)({height:"*",visibility:"visible"})),(0,at.eR)("expanded <=> collapsed, void => collapsed",(0,at.jt)(Ce))])},Ne=new d.OlP("MAT_EXPANSION_PANEL");let ze=(()=>{class we{constructor(Ze,dn){this._template=Ze,this._expansionPanel=dn}}return we.\u0275fac=function(Ze){return new(Ze||we)(d.Y36(d.Rgc),d.Y36(Ne,8))},we.\u0275dir=d.lG2({type:we,selectors:[["ng-template","matExpansionPanelContent",""]]}),we})(),Xe=0;const ie=new d.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Te=(()=>{class we extends D{constructor(Ze,dn,kn,ri,Ee,Ft,vt){super(Ze,dn,kn),this._viewContainerRef=ri,this._animationMode=Ft,this._hideToggle=!1,this.afterExpand=new d.vpe,this.afterCollapse=new d.vpe,this._inputChanges=new T.xQ,this._headerId="mat-expansion-panel-header-"+Xe++,this._bodyAnimationDone=new T.xQ,this.accordion=Ze,this._document=Ee,this._bodyAnimationDone.pipe((0,ot.x)((xt,tt)=>xt.fromState===tt.fromState&&xt.toState===tt.toState)).subscribe(xt=>{"void"!==xt.fromState&&("expanded"===xt.toState?this.afterExpand.emit():"collapsed"===xt.toState&&this.afterCollapse.emit())}),vt&&(this.hideToggle=vt.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Ze){this._hideToggle=(0,v.Ig)(Ze)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Ze){this._togglePosition=Ze}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,ct.O)(null),(0,gt.h)(()=>this.expanded&&!this._portal),(0,Pt.q)(1)).subscribe(()=>{this._portal=new I.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Ze){this._inputChanges.next(Ze)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Ze=this._document.activeElement,dn=this._body.nativeElement;return Ze===dn||dn.contains(Ze)}return!1}}return we.\u0275fac=function(Ze){return new(Ze||we)(d.Y36(Wt,12),d.Y36(d.sBO),d.Y36(p.A8),d.Y36(d.s_b),d.Y36(z.K0),d.Y36(d.QbO,8),d.Y36(ie,8))},we.\u0275cmp=d.Xpm({type:we,selectors:[["mat-expansion-panel"]],contentQueries:function(Ze,dn,kn){if(1&Ze&&d.Suo(kn,ze,5),2&Ze){let ri;d.iGM(ri=d.CRH())&&(dn._lazyContent=ri.first)}},viewQuery:function(Ze,dn){if(1&Ze&&d.Gf(Zt,5),2&Ze){let kn;d.iGM(kn=d.CRH())&&(dn._body=kn.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Ze,dn){2&Ze&&d.ekj("mat-expanded",dn.expanded)("_mat-animation-noopable","NoopAnimations"===dn._animationMode)("mat-expansion-panel-spacing",dn._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[d._Bn([{provide:Wt,useValue:void 0},{provide:Ne,useExisting:we}]),d.qOj,d.TTD],ngContentSelectors:Nt,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Ze,dn){1&Ze&&(d.F$t(_t),d.Hsn(0),d.TgZ(1,"div",0,1),d.NdJ("@bodyExpansion.done",function(ri){return dn._bodyAnimationDone.next(ri)}),d.TgZ(3,"div",2),d.Hsn(4,1),d.YNc(5,wt,0,0,"ng-template",3),d.qZA(),d.Hsn(6,2),d.qZA()),2&Ze&&(d.xp6(1),d.Q6J("@bodyExpansion",dn._getExpandedState())("id",dn.id),d.uIk("aria-labelledby",dn._headerId),d.xp6(4),d.Q6J("cdkPortalOutlet",dn._portal))},dependencies:[I.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[Ae.bodyExpansion]},changeDetection:0}),we})();class ee{}const ue=(0,G.sb)(ee);let Kt=(()=>{class we extends ue{constructor(Ze,dn,kn,ri,Ee,Ft,vt){super(),this.panel=Ze,this._element=dn,this._focusMonitor=kn,this._changeDetectorRef=ri,this._animationMode=Ft,this._parentChangeSubscription=t.w.EMPTY;const xt=Ze.accordion?Ze.accordion._stateChanges.pipe((0,gt.h)(tt=>!(!tt.hideToggle&&!tt.togglePosition))):Ht.E;this.tabIndex=parseInt(vt||"")||0,this._parentChangeSubscription=(0,Jt.T)(Ze.opened,Ze.closed,xt,Ze._inputChanges.pipe((0,gt.h)(tt=>!!(tt.hideToggle||tt.disabled||tt.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Ze.closed.pipe((0,gt.h)(()=>Ze._containsFocus())).subscribe(()=>kn.focusVia(dn,"program")),Ee&&(this.expandedHeight=Ee.expandedHeight,this.collapsedHeight=Ee.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const Ze=this._isExpanded();return Ze&&this.expandedHeight?this.expandedHeight:!Ze&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Ze){switch(Ze.keyCode){case St.L_:case St.K5:(0,St.Vb)(Ze)||(Ze.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Ze))}}focus(Ze,dn){Ze?this._focusMonitor.focusVia(this._element,Ze,dn):this._element.nativeElement.focus(dn)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Ze=>{Ze&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return we.\u0275fac=function(Ze){return new(Ze||we)(d.Y36(Te,1),d.Y36(d.SBq),d.Y36(W.tE),d.Y36(d.sBO),d.Y36(ie,8),d.Y36(d.QbO,8),d.$8M("tabindex"))},we.\u0275cmp=d.Xpm({type:we,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Ze,dn){1&Ze&&d.NdJ("click",function(){return dn._toggle()})("keydown",function(ri){return dn._keydown(ri)}),2&Ze&&(d.uIk("id",dn.panel._headerId)("tabindex",dn.tabIndex)("aria-controls",dn._getPanelId())("aria-expanded",dn._isExpanded())("aria-disabled",dn.panel.disabled),d.Udp("height",dn._getHeaderHeight()),d.ekj("mat-expanded",dn._isExpanded())("mat-expansion-toggle-indicator-after","after"===dn._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===dn._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===dn._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[d.qOj],ngContentSelectors:le,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Ze,dn){1&Ze&&(d.F$t(qt),d.TgZ(0,"span",0),d.Hsn(1),d.Hsn(2,1),d.Hsn(3,2),d.qZA(),d.YNc(4,Qt,1,1,"span",1)),2&Ze&&(d.ekj("mat-content-hide-toggle",!dn._showToggle()),d.xp6(4),d.Q6J("ngIf",dn._showToggle()))},dependencies:[z.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[Ae.indicatorRotate]},changeDetection:0}),we})(),ce=(()=>{class we{}return we.\u0275fac=function(Ze){return new(Ze||we)},we.\u0275dir=d.lG2({type:we,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),we})(),Le=(()=>{class we{}return we.\u0275fac=function(Ze){return new(Ze||we)},we.\u0275dir=d.lG2({type:we,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),we})(),on=(()=>{class we extends w{constructor(){super(...arguments),this._ownHeaders=new d.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Ze){this._hideToggle=(0,v.Ig)(Ze)}ngAfterContentInit(){this._headers.changes.pipe((0,ct.O)(this._headers)).subscribe(Ze=>{this._ownHeaders.reset(Ze.filter(dn=>dn.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new W.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Ze){this._keyManager.onKeydown(Ze)}_handleHeaderFocus(Ze){this._keyManager.updateActiveItem(Ze)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return we.\u0275fac=function(){let bn;return function(dn){return(bn||(bn=d.n5z(we)))(dn||we)}}(),we.\u0275dir=d.lG2({type:we,selectors:[["mat-accordion"]],contentQueries:function(Ze,dn,kn){if(1&Ze&&d.Suo(kn,Kt,5),2&Ze){let ri;d.iGM(ri=d.CRH())&&(dn._headers=ri)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Ze,dn){2&Ze&&d.ekj("mat-accordion-multi",dn.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[d._Bn([{provide:Wt,useExisting:we}]),d.qOj]}),we})(),hn=(()=>{class we{}return we.\u0275fac=function(Ze){return new(Ze||we)},we.\u0275mod=d.oAB({type:we}),we.\u0275inj=d.cJS({imports:[z.ez,G.BQ,P,I.eL]}),we})()},59549:(rt,it,b)=>{"use strict";b.d(it,{Eo:()=>ze,G_:()=>Ee,KE:()=>Ft,R9:()=>we,TO:()=>Ae,bx:()=>ue,hX:()=>Kt,lN:()=>vt,o2:()=>ri,qo:()=>on});var d=b(49643),p=b(36895),v=b(94650),T=b(3238),t=b(40445),A=b(21281),x=b(8929),w=b(36787),k=b(23753),D=b(1059),P=b(7625),I=b(72986),z=b(37340),G=b(83353);const W=["connectionContainer"],ot=["inputContainer"],ct=["label"];function gt(xt,tt){1&xt&&(v.ynx(0),v.TgZ(1,"div",14),v._UZ(2,"div",15)(3,"div",16)(4,"div",17),v.qZA(),v.TgZ(5,"div",18),v._UZ(6,"div",15)(7,"div",16)(8,"div",17),v.qZA(),v.BQk())}function Pt(xt,tt){if(1&xt){const et=v.EpF();v.TgZ(0,"div",19),v.NdJ("cdkObserveContent",function(){v.CHM(et);const Bt=v.oxw();return v.KtG(Bt.updateOutlineGap())}),v.Hsn(1,1),v.qZA()}if(2&xt){const et=v.oxw();v.Q6J("cdkObserveContentDisabled","outline"!=et.appearance)}}function St(xt,tt){if(1&xt&&(v.ynx(0),v.Hsn(1,2),v.TgZ(2,"span"),v._uU(3),v.qZA(),v.BQk()),2&xt){const et=v.oxw(2);v.xp6(3),v.Oqu(et._control.placeholder)}}function Ht(xt,tt){1&xt&&v.Hsn(0,3,["*ngSwitchCase","true"])}function Jt(xt,tt){1&xt&&(v.TgZ(0,"span",23),v._uU(1," *"),v.qZA())}function at(xt,tt){if(1&xt){const et=v.EpF();v.TgZ(0,"label",20,21),v.NdJ("cdkObserveContent",function(){v.CHM(et);const Bt=v.oxw();return v.KtG(Bt.updateOutlineGap())}),v.YNc(2,St,4,1,"ng-container",12),v.YNc(3,Ht,1,0,"ng-content",12),v.YNc(4,Jt,2,0,"span",22),v.qZA()}if(2&xt){const et=v.oxw();v.ekj("mat-empty",et._control.empty&&!et._shouldAlwaysFloat())("mat-form-field-empty",et._control.empty&&!et._shouldAlwaysFloat())("mat-accent","accent"==et.color)("mat-warn","warn"==et.color),v.Q6J("cdkObserveContentDisabled","outline"!=et.appearance)("id",et._labelId)("ngSwitch",et._hasLabel()),v.uIk("for",et._control.id)("aria-owns",et._control.id),v.xp6(2),v.Q6J("ngSwitchCase",!1),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngIf",!et.hideRequiredMarker&&et._control.required&&!et._control.disabled)}}function Zt(xt,tt){1&xt&&(v.TgZ(0,"div",24),v.Hsn(1,4),v.qZA())}function wt(xt,tt){if(1&xt&&(v.TgZ(0,"div",25),v._UZ(1,"span",26),v.qZA()),2&xt){const et=v.oxw();v.xp6(1),v.ekj("mat-accent","accent"==et.color)("mat-warn","warn"==et.color)}}function _t(xt,tt){if(1&xt&&(v.TgZ(0,"div"),v.Hsn(1,5),v.qZA()),2&xt){const et=v.oxw();v.Q6J("@transitionMessages",et._subscriptAnimationState)}}function Nt(xt,tt){if(1&xt&&(v.TgZ(0,"div",30),v._uU(1),v.qZA()),2&xt){const et=v.oxw(2);v.Q6J("id",et._hintLabelId),v.xp6(1),v.Oqu(et.hintLabel)}}function Qt(xt,tt){if(1&xt&&(v.TgZ(0,"div",27),v.YNc(1,Nt,2,2,"div",28),v.Hsn(2,6),v._UZ(3,"div",29),v.Hsn(4,7),v.qZA()),2&xt){const et=v.oxw();v.Q6J("@transitionMessages",et._subscriptAnimationState),v.xp6(1),v.Q6J("ngIf",et.hintLabel)}}const qt=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],le=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Wt=0;const Ce=new v.OlP("MatError");let Ae=(()=>{class xt{constructor(et,Ct){this.id="mat-error-"+Wt++,et||Ct.nativeElement.setAttribute("aria-live","polite")}}return xt.\u0275fac=function(et){return new(et||xt)(v.$8M("aria-live"),v.Y36(v.SBq))},xt.\u0275dir=v.lG2({type:xt,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(et,Ct){2&et&&v.uIk("id",Ct.id)},inputs:{id:"id"},features:[v._Bn([{provide:Ce,useExisting:xt}])]}),xt})();const Ne={transitionMessages:(0,z.X$)("transitionMessages",[(0,z.SB)("enter",(0,z.oB)({opacity:1,transform:"translateY(0%)"})),(0,z.eR)("void => enter",[(0,z.oB)({opacity:0,transform:"translateY(-5px)"}),(0,z.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ze=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=v.lG2({type:xt}),xt})(),re=0;const ee=new v.OlP("MatHint");let ue=(()=>{class xt{constructor(){this.align="start",this.id="mat-hint-"+re++}}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=v.lG2({type:xt,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(et,Ct){2&et&&(v.uIk("id",Ct.id)("align",null),v.ekj("mat-form-field-hint-end","end"===Ct.align))},inputs:{align:"align",id:"id"},features:[v._Bn([{provide:ee,useExisting:xt}])]}),xt})(),Kt=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=v.lG2({type:xt,selectors:[["mat-label"]]}),xt})(),ce=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=v.lG2({type:xt,selectors:[["mat-placeholder"]]}),xt})();const Le=new v.OlP("MatPrefix");let on=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=v.lG2({type:xt,selectors:[["","matPrefix",""]],features:[v._Bn([{provide:Le,useExisting:xt}])]}),xt})();const hn=new v.OlP("MatSuffix");let we=(()=>{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275dir=v.lG2({type:xt,selectors:[["","matSuffix",""]],features:[v._Bn([{provide:hn,useExisting:xt}])]}),xt})(),bn=0;const kn=(0,T.pj)(class{constructor(xt){this._elementRef=xt}},"primary"),ri=new v.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ee=new v.OlP("MatFormField");let Ft=(()=>{class xt extends kn{constructor(et,Ct,Bt,ne,he,Oe,yn){super(et),this._changeDetectorRef=Ct,this._dir=Bt,this._defaults=ne,this._platform=he,this._ngZone=Oe,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new x.xQ,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+bn++,this._labelId="mat-form-field-label-"+bn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==yn,this.appearance=ne?.appearance||"legacy",ne&&(this._hideRequiredMarker=Boolean(ne.hideRequiredMarker),ne.color&&(this.color=this.defaultColor=ne.color))}get appearance(){return this._appearance}set appearance(et){const Ct=this._appearance;this._appearance=et||this._defaults?.appearance||"legacy","outline"===this._appearance&&Ct!==et&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(et){this._hideRequiredMarker=(0,A.Ig)(et)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(et){this._hintLabel=et,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(et){et!==this._floatLabel&&(this._floatLabel=et||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(et){this._explicitFormFieldControl=et}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const et=this._control;et.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${et.controlType}`),et.stateChanges.pipe((0,D.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),et.ngControl&&et.ngControl.valueChanges&&et.ngControl.valueChanges.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,w.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(et){const Ct=this._control?this._control.ngControl:null;return Ct&&Ct[et]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,k.R)(this._label.nativeElement,"transitionend").pipe((0,I.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let et=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&et.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Ct=this._hintChildren?this._hintChildren.find(ne=>"start"===ne.align):null,Bt=this._hintChildren?this._hintChildren.find(ne=>"end"===ne.align):null;Ct?et.push(Ct.id):this._hintLabel&&et.push(this._hintLabelId),Bt&&et.push(Bt.id)}else this._errorChildren&&et.push(...this._errorChildren.map(Ct=>Ct.id));this._control.setDescribedByIds(et)}}_validateControlChild(){}updateOutlineGap(){const et=this._label?this._label.nativeElement:null,Ct=this._connectionContainerRef.nativeElement,Bt=".mat-form-field-outline-start",ne=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!et||!et.children.length||!et.textContent.trim()){const _i=Ct.querySelectorAll(`${Bt}, ${ne}`);for(let Si=0;Si<_i.length;Si++)_i[Si].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let he=0,Oe=0;const yn=Ct.querySelectorAll(Bt),On=Ct.querySelectorAll(ne);if(this._label&&this._label.nativeElement.children.length){const _i=Ct.getBoundingClientRect();if(0===_i.width&&0===_i.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Si=this._getStartEnd(_i),ho=et.children,hi=this._getStartEnd(ho[0].getBoundingClientRect());let Vn=0;for(let Gn=0;Gn0?.75*Vn+10:0}for(let _i=0;_i{class xt{}return xt.\u0275fac=function(et){return new(et||xt)},xt.\u0275mod=v.oAB({type:xt}),xt.\u0275inj=v.cJS({imports:[p.ez,T.BQ,d.Q8,T.BQ]}),xt})()},90782:(rt,it,b)=>{"use strict";b.d(it,{DX:()=>I,Il:()=>wt,N6:()=>_t});var d=b(94650),p=b(3238),v=b(21281),T=b(40445);const t=["*"];class k{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const qt=Math.max(...this.tracker);return qt>1?this.rowCount+qt-1:this.rowCount}update(qt,le){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(qt),this.tracker.fill(0,0,this.tracker.length),this.positions=le.map(Wt=>this._trackTile(Wt))}_trackTile(qt){const le=this._findMatchingGap(qt.colspan);return this._markTilePosition(le,qt),this.columnIndex=le+qt.colspan,new D(this.rowIndex,le)}_findMatchingGap(qt){let le=-1,Wt=-1;do{this.columnIndex+qt>this.tracker.length?(this._nextRow(),le=this.tracker.indexOf(0,this.columnIndex),Wt=this._findGapEndIndex(le)):(le=this.tracker.indexOf(0,this.columnIndex),-1!=le?(Wt=this._findGapEndIndex(le),this.columnIndex=le+1):(this._nextRow(),le=this.tracker.indexOf(0,this.columnIndex),Wt=this._findGapEndIndex(le)))}while(Wt-le{class Qt{constructor(le,Wt){this._element=le,this._gridList=Wt,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(le){this._rowspan=Math.round((0,v.su)(le))}get colspan(){return this._colspan}set colspan(le){this._colspan=Math.round((0,v.su)(le))}_setStyle(le,Wt){this._element.nativeElement.style[le]=Wt}}return Qt.\u0275fac=function(le){return new(le||Qt)(d.Y36(d.SBq),d.Y36(P,8))},Qt.\u0275cmp=d.Xpm({type:Qt,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(le,Wt){2&le&&d.uIk("rowspan",Wt.rowspan)("colspan",Wt.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:t,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(le,Wt){1&le&&(d.F$t(),d.TgZ(0,"div",0),d.Hsn(1),d.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Qt})();const ct=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class gt{constructor(){this._rows=0,this._rowspan=0}init(qt,le,Wt,Ce){this._gutterSize=at(qt),this._rows=le.rowCount,this._rowspan=le.rowspan,this._cols=Wt,this._direction=Ce}getBaseTileSize(qt,le){return`(${qt}% - (${this._gutterSize} * ${le}))`}getTilePosition(qt,le){return 0===le?"0":Jt(`(${qt} + ${this._gutterSize}) * ${le}`)}getTileSize(qt,le){return`(${qt} * ${le}) + (${le-1} * ${this._gutterSize})`}setStyle(qt,le,Wt){let Ce=100/this._cols,Ae=(this._cols-1)/this._cols;this.setColStyles(qt,Wt,Ce,Ae),this.setRowStyles(qt,le,Ce,Ae)}setColStyles(qt,le,Wt,Ce){let Ae=this.getBaseTileSize(Wt,Ce);qt._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(Ae,le)),qt._setStyle("width",Jt(this.getTileSize(Ae,qt.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(qt){return`${this._rowspan} * ${this.getTileSize(qt,1)}`}getComputedHeight(){return null}}class Pt extends gt{constructor(qt){super(),this.fixedRowHeight=qt}init(qt,le,Wt,Ce){super.init(qt,le,Wt,Ce),this.fixedRowHeight=at(this.fixedRowHeight),ct.test(this.fixedRowHeight)}setRowStyles(qt,le){qt._setStyle("top",this.getTilePosition(this.fixedRowHeight,le)),qt._setStyle("height",Jt(this.getTileSize(this.fixedRowHeight,qt.rowspan)))}getComputedHeight(){return["height",Jt(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(qt){qt._setListStyle(["height",null]),qt._tiles&&qt._tiles.forEach(le=>{le._setStyle("top",null),le._setStyle("height",null)})}}class St extends gt{constructor(qt){super(),this._parseRatio(qt)}setRowStyles(qt,le,Wt,Ce){this.baseTileHeight=this.getBaseTileSize(Wt/this.rowHeightRatio,Ce),qt._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,le)),qt._setStyle("paddingTop",Jt(this.getTileSize(this.baseTileHeight,qt.rowspan)))}getComputedHeight(){return["paddingBottom",Jt(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(qt){qt._setListStyle(["paddingBottom",null]),qt._tiles.forEach(le=>{le._setStyle("marginTop",null),le._setStyle("paddingTop",null)})}_parseRatio(qt){const le=qt.split(":");this.rowHeightRatio=parseFloat(le[0])/parseFloat(le[1])}}class Ht extends gt{setRowStyles(qt,le){let Ae=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);qt._setStyle("top",this.getTilePosition(Ae,le)),qt._setStyle("height",Jt(this.getTileSize(Ae,qt.rowspan)))}reset(qt){qt._tiles&&qt._tiles.forEach(le=>{le._setStyle("top",null),le._setStyle("height",null)})}}function Jt(Qt){return`calc(${Qt})`}function at(Qt){return Qt.match(/([A-Za-z%]+)$/)?Qt:`${Qt}px`}let wt=(()=>{class Qt{constructor(le,Wt){this._element=le,this._dir=Wt,this._gutter="1px"}get cols(){return this._cols}set cols(le){this._cols=Math.max(1,Math.round((0,v.su)(le)))}get gutterSize(){return this._gutter}set gutterSize(le){this._gutter=`${le??""}`}get rowHeight(){return this._rowHeight}set rowHeight(le){const Wt=`${le??""}`;Wt!==this._rowHeight&&(this._rowHeight=Wt,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(le){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===le?new Ht:le&&le.indexOf(":")>-1?new St(le):new Pt(le)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new k);const le=this._tileCoordinator,Wt=this._tiles.filter(Ae=>!Ae._gridList||Ae._gridList===this),Ce=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,Wt),this._tileStyler.init(this.gutterSize,le,this.cols,Ce),Wt.forEach((Ae,Ne)=>{const ze=le.positions[Ne];this._tileStyler.setStyle(Ae,ze.row,ze.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(le){le&&(this._element.nativeElement.style[le[0]]=le[1])}}return Qt.\u0275fac=function(le){return new(le||Qt)(d.Y36(d.SBq),d.Y36(T.Is,8))},Qt.\u0275cmp=d.Xpm({type:Qt,selectors:[["mat-grid-list"]],contentQueries:function(le,Wt,Ce){if(1&le&&d.Suo(Ce,I,5),2&le){let Ae;d.iGM(Ae=d.CRH())&&(Wt._tiles=Ae)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(le,Wt){2&le&&d.uIk("cols",Wt.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[d._Bn([{provide:P,useExisting:Qt}])],ngContentSelectors:t,decls:2,vars:0,template:function(le,Wt){1&le&&(d.F$t(),d.TgZ(0,"div"),d.Hsn(1),d.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Qt})(),_t=(()=>{class Qt{}return Qt.\u0275fac=function(le){return new(le||Qt)},Qt.\u0275mod=d.oAB({type:Qt}),Qt.\u0275inj=d.cJS({imports:[p.uc,p.BQ,p.uc,p.BQ]}),Qt})()},97392:(rt,it,b)=>{"use strict";b.d(it,{Hw:()=>re,Ps:()=>ee});var d=b(94650),p=b(3238),v=b(21281),T=b(36895),t=b(21086),A=b(61737),x=b(30567),w=b(42654),k=b(22868),D=b(24850),P=b(27221),I=b(40537),z=b(12474),G=b(72986),W=b(80529),ot=b(11481);const ct=["*"];let gt;function St(ue){return function Pt(){if(void 0===gt&&(gt=null,typeof window<"u")){const ue=window;void 0!==ue.trustedTypes&&(gt=ue.trustedTypes.createPolicy("angular#components",{createHTML:Kt=>Kt}))}return gt}()?.createHTML(ue)||ue}function Ht(ue){return Error(`Unable to find icon with the name "${ue}"`)}function at(ue){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ue}".`)}function Zt(ue){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ue}".`)}class wt{constructor(Kt,ce,Le){this.url=Kt,this.svgText=ce,this.options=Le}}let _t=(()=>{class ue{constructor(ce,Le,on,hn){this._httpClient=ce,this._sanitizer=Le,this._errorHandler=hn,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=on}addSvgIcon(ce,Le,on){return this.addSvgIconInNamespace("",ce,Le,on)}addSvgIconLiteral(ce,Le,on){return this.addSvgIconLiteralInNamespace("",ce,Le,on)}addSvgIconInNamespace(ce,Le,on,hn){return this._addSvgIconConfig(ce,Le,new wt(on,null,hn))}addSvgIconResolver(ce){return this._resolvers.push(ce),this}addSvgIconLiteralInNamespace(ce,Le,on,hn){const we=this._sanitizer.sanitize(d.q3G.HTML,on);if(!we)throw Zt(on);const bn=St(we);return this._addSvgIconConfig(ce,Le,new wt("",bn,hn))}addSvgIconSet(ce,Le){return this.addSvgIconSetInNamespace("",ce,Le)}addSvgIconSetLiteral(ce,Le){return this.addSvgIconSetLiteralInNamespace("",ce,Le)}addSvgIconSetInNamespace(ce,Le,on){return this._addSvgIconSetConfig(ce,new wt(Le,null,on))}addSvgIconSetLiteralInNamespace(ce,Le,on){const hn=this._sanitizer.sanitize(d.q3G.HTML,Le);if(!hn)throw Zt(Le);const we=St(hn);return this._addSvgIconSetConfig(ce,new wt("",we,on))}registerFontClassAlias(ce,Le=ce){return this._fontCssClassesByAlias.set(ce,Le),this}classNameForFontAlias(ce){return this._fontCssClassesByAlias.get(ce)||ce}setDefaultFontSetClass(...ce){return this._defaultFontSetClass=ce,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ce){const Le=this._sanitizer.sanitize(d.q3G.RESOURCE_URL,ce);if(!Le)throw at(ce);const on=this._cachedIconsByUrl.get(Le);return on?(0,t.of)(qt(on)):this._loadSvgIconFromConfig(new wt(ce,null)).pipe((0,k.b)(hn=>this._cachedIconsByUrl.set(Le,hn)),(0,D.U)(hn=>qt(hn)))}getNamedSvgIcon(ce,Le=""){const on=le(Le,ce);let hn=this._svgIconConfigs.get(on);if(hn)return this._getSvgFromConfig(hn);if(hn=this._getIconConfigFromResolvers(Le,ce),hn)return this._svgIconConfigs.set(on,hn),this._getSvgFromConfig(hn);const we=this._iconSetConfigs.get(Le);return we?this._getSvgFromIconSetConfigs(ce,we):(0,A._)(Ht(on))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ce){return ce.svgText?(0,t.of)(qt(this._svgElementFromConfig(ce))):this._loadSvgIconFromConfig(ce).pipe((0,D.U)(Le=>qt(Le)))}_getSvgFromIconSetConfigs(ce,Le){const on=this._extractIconWithNameFromAnySet(ce,Le);if(on)return(0,t.of)(on);const hn=Le.filter(we=>!we.svgText).map(we=>this._loadSvgIconSetFromConfig(we).pipe((0,P.K)(bn=>{const dn=`Loading icon set URL: ${this._sanitizer.sanitize(d.q3G.RESOURCE_URL,we.url)} failed: ${bn.message}`;return this._errorHandler.handleError(new Error(dn)),(0,t.of)(null)})));return(0,x.D)(hn).pipe((0,D.U)(()=>{const we=this._extractIconWithNameFromAnySet(ce,Le);if(!we)throw Ht(ce);return we}))}_extractIconWithNameFromAnySet(ce,Le){for(let on=Le.length-1;on>=0;on--){const hn=Le[on];if(hn.svgText&&hn.svgText.toString().indexOf(ce)>-1){const we=this._svgElementFromConfig(hn),bn=this._extractSvgIconFromSet(we,ce,hn.options);if(bn)return bn}}return null}_loadSvgIconFromConfig(ce){return this._fetchIcon(ce).pipe((0,k.b)(Le=>ce.svgText=Le),(0,D.U)(()=>this._svgElementFromConfig(ce)))}_loadSvgIconSetFromConfig(ce){return ce.svgText?(0,t.of)(null):this._fetchIcon(ce).pipe((0,k.b)(Le=>ce.svgText=Le))}_extractSvgIconFromSet(ce,Le,on){const hn=ce.querySelector(`[id="${Le}"]`);if(!hn)return null;const we=hn.cloneNode(!0);if(we.removeAttribute("id"),"svg"===we.nodeName.toLowerCase())return this._setSvgAttributes(we,on);if("symbol"===we.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(we),on);const bn=this._svgElementFromString(St(""));return bn.appendChild(we),this._setSvgAttributes(bn,on)}_svgElementFromString(ce){const Le=this._document.createElement("DIV");Le.innerHTML=ce;const on=Le.querySelector("svg");if(!on)throw Error(" tag not found");return on}_toSvgElement(ce){const Le=this._svgElementFromString(St("")),on=ce.attributes;for(let hn=0;hnSt(dn)),(0,I.x)(()=>this._inProgressUrlFetches.delete(we)),(0,z.B)());return this._inProgressUrlFetches.set(we,Ze),Ze}_addSvgIconConfig(ce,Le,on){return this._svgIconConfigs.set(le(ce,Le),on),this}_addSvgIconSetConfig(ce,Le){const on=this._iconSetConfigs.get(ce);return on?on.push(Le):this._iconSetConfigs.set(ce,[Le]),this}_svgElementFromConfig(ce){if(!ce.svgElement){const Le=this._svgElementFromString(ce.svgText);this._setSvgAttributes(Le,ce.options),ce.svgElement=Le}return ce.svgElement}_getIconConfigFromResolvers(ce,Le){for(let on=0;onKt?Kt.pathname+Kt.search:""}}}),Xe=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ie=Xe.map(ue=>`[${ue}]`).join(", "),Te=/^url\(['"]?#(.*?)['"]?\)$/;let re=(()=>{class ue extends Ce{constructor(ce,Le,on,hn,we,bn){super(ce),this._iconRegistry=Le,this._location=hn,this._errorHandler=we,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=w.w.EMPTY,bn&&(bn.color&&(this.color=this.defaultColor=bn.color),bn.fontSet&&(this.fontSet=bn.fontSet)),on||ce.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(ce){this._inline=(0,v.Ig)(ce)}get svgIcon(){return this._svgIcon}set svgIcon(ce){ce!==this._svgIcon&&(ce?this._updateSvgIcon(ce):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ce)}get fontSet(){return this._fontSet}set fontSet(ce){const Le=this._cleanupFontValue(ce);Le!==this._fontSet&&(this._fontSet=Le,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ce){const Le=this._cleanupFontValue(ce);Le!==this._fontIcon&&(this._fontIcon=Le,this._updateFontIconClasses())}_splitIconName(ce){if(!ce)return["",""];const Le=ce.split(":");switch(Le.length){case 1:return["",Le[0]];case 2:return Le;default:throw Error(`Invalid icon name: "${ce}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ce=this._elementsWithExternalReferences;if(ce&&ce.size){const Le=this._location.getPathname();Le!==this._previousPath&&(this._previousPath=Le,this._prependPathToReferences(Le))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ce){this._clearSvgElement();const Le=this._location.getPathname();this._previousPath=Le,this._cacheChildrenWithExternalReferences(ce),this._prependPathToReferences(Le),this._elementRef.nativeElement.appendChild(ce)}_clearSvgElement(){const ce=this._elementRef.nativeElement;let Le=ce.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Le--;){const on=ce.childNodes[Le];(1!==on.nodeType||"svg"===on.nodeName.toLowerCase())&&on.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ce=this._elementRef.nativeElement,Le=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(on=>on.length>0);this._previousFontSetClass.forEach(on=>ce.classList.remove(on)),Le.forEach(on=>ce.classList.add(on)),this._previousFontSetClass=Le,this.fontIcon!==this._previousFontIconClass&&!Le.includes("mat-ligature-font")&&(this._previousFontIconClass&&ce.classList.remove(this._previousFontIconClass),this.fontIcon&&ce.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ce){return"string"==typeof ce?ce.trim().split(" ")[0]:ce}_prependPathToReferences(ce){const Le=this._elementsWithExternalReferences;Le&&Le.forEach((on,hn)=>{on.forEach(we=>{hn.setAttribute(we.name,`url('${ce}#${we.value}')`)})})}_cacheChildrenWithExternalReferences(ce){const Le=ce.querySelectorAll(ie),on=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let hn=0;hn{const bn=Le[hn],Ze=bn.getAttribute(we),dn=Ze?Ze.match(Te):null;if(dn){let kn=on.get(bn);kn||(kn=[],on.set(bn,kn)),kn.push({name:we,value:dn[1]})}})}_updateSvgIcon(ce){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ce){const[Le,on]=this._splitIconName(ce);Le&&(this._svgNamespace=Le),on&&(this._svgName=on),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(on,Le).pipe((0,G.q)(1)).subscribe(hn=>this._setSvgElement(hn),hn=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Le}:${on}! ${hn.message}`))})}}}return ue.\u0275fac=function(ce){return new(ce||ue)(d.Y36(d.SBq),d.Y36(_t),d.$8M("aria-hidden"),d.Y36(Ne),d.Y36(d.qLn),d.Y36(Ae,8))},ue.\u0275cmp=d.Xpm({type:ue,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(ce,Le){2&ce&&(d.uIk("data-mat-icon-type",Le._usingFontIcon()?"font":"svg")("data-mat-icon-name",Le._svgName||Le.fontIcon)("data-mat-icon-namespace",Le._svgNamespace||Le.fontSet)("fontIcon",Le._usingFontIcon()?Le.fontIcon:null),d.ekj("mat-icon-inline",Le.inline)("mat-icon-no-color","primary"!==Le.color&&"accent"!==Le.color&&"warn"!==Le.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[d.qOj],ngContentSelectors:ct,decls:1,vars:0,template:function(ce,Le){1&ce&&(d.F$t(),d.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),ue})(),ee=(()=>{class ue{}return ue.\u0275fac=function(ce){return new(ce||ue)},ue.\u0275mod=d.oAB({type:ue}),ue.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),ue})()},284:(rt,it,b)=>{"use strict";b.d(it,{Jk:()=>D,Nt:()=>G,c:()=>W});var d=b(21281),p=b(83353),v=b(39349),T=b(94650),t=b(24006),A=b(3238),x=b(59549),w=b(8929);const D=new T.OlP("MAT_INPUT_VALUE_ACCESSOR"),P=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let I=0;const z=(0,A.FD)(class{constructor(ot,ct,gt,Pt){this._defaultErrorStateMatcher=ot,this._parentForm=ct,this._parentFormGroup=gt,this.ngControl=Pt,this.stateChanges=new w.xQ}});let G=(()=>{class ot extends z{constructor(gt,Pt,St,Ht,Jt,at,Zt,wt,_t,Nt){super(at,Ht,Jt,St),this._elementRef=gt,this._platform=Pt,this._autofillMonitor=wt,this._formField=Nt,this._uid="mat-input-"+I++,this.focused=!1,this.stateChanges=new w.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(le=>(0,p.qK)().has(le)),this._iOSKeyupListener=le=>{const Wt=le.target;!Wt.value&&0===Wt.selectionStart&&0===Wt.selectionEnd&&(Wt.setSelectionRange(1,1),Wt.setSelectionRange(0,0))};const Qt=this._elementRef.nativeElement,qt=Qt.nodeName.toLowerCase();this._inputValueAccessor=Zt||Qt,this._previousNativeValue=this.value,this.id=this.id,Pt.IOS&&_t.runOutsideAngular(()=>{gt.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===qt,this._isTextarea="textarea"===qt,this._isInFormField=!!Nt,this._isNativeSelect&&(this.controlType=Qt.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(gt){this._disabled=(0,d.Ig)(gt),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(gt){this._id=gt||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(t.kI.required)??!1}set required(gt){this._required=(0,d.Ig)(gt)}get type(){return this._type}set type(gt){this._type=gt||"text",this._validateType(),!this._isTextarea&&(0,p.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(gt){gt!==this.value&&(this._inputValueAccessor.value=gt,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(gt){this._readonly=(0,d.Ig)(gt)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(gt=>{this.autofilled=gt.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(gt){this._elementRef.nativeElement.focus(gt)}_focusChanged(gt){gt!==this.focused&&(this.focused=gt,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const gt=this._formField,Pt=gt&&"legacy"===gt.appearance&&!gt._hasLabel?.()?null:this.placeholder;if(Pt!==this._previousPlaceholder){const St=this._elementRef.nativeElement;this._previousPlaceholder=Pt,Pt?St.setAttribute("placeholder",Pt):St.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const gt=this._elementRef.nativeElement.value;this._previousNativeValue!==gt&&(this._previousNativeValue=gt,this.stateChanges.next())}_validateType(){P.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let gt=this._elementRef.nativeElement.validity;return gt&>.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const gt=this._elementRef.nativeElement,Pt=gt.options[0];return this.focused||gt.multiple||!this.empty||!!(gt.selectedIndex>-1&&Pt&&Pt.label)}return this.focused||!this.empty}setDescribedByIds(gt){gt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",gt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const gt=this._elementRef.nativeElement;return this._isNativeSelect&&(gt.multiple||gt.size>1)}}return ot.\u0275fac=function(gt){return new(gt||ot)(T.Y36(T.SBq),T.Y36(p.t4),T.Y36(t.a5,10),T.Y36(t.F,8),T.Y36(t.sg,8),T.Y36(A.rD),T.Y36(D,10),T.Y36(v.Lq),T.Y36(T.R0b),T.Y36(x.G_,8))},ot.\u0275dir=T.lG2({type:ot,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(gt,Pt){1>&&T.NdJ("focus",function(){return Pt._focusChanged(!0)})("blur",function(){return Pt._focusChanged(!1)})("input",function(){return Pt._onInput()}),2>&&(T.Ikx("disabled",Pt.disabled)("required",Pt.required),T.uIk("id",Pt.id)("data-placeholder",Pt.placeholder)("name",Pt.name||null)("readonly",Pt.readonly&&!Pt._isNativeSelect||null)("aria-invalid",Pt.empty&&Pt.required?null:Pt.errorState)("aria-required",Pt.required),T.ekj("mat-input-server",Pt._isServer)("mat-native-select-inline",Pt._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[T._Bn([{provide:x.Eo,useExisting:ot}]),T.qOj,T.TTD]}),ot})(),W=(()=>{class ot{}return ot.\u0275fac=function(gt){return new(gt||ot)},ot.\u0275mod=T.oAB({type:ot}),ot.\u0275inj=T.cJS({providers:[A.rD],imports:[v.Ky,x.lN,A.BQ,v.Ky,x.lN]}),ot})()},96338:(rt,it,b)=>{"use strict";b.d(it,{Hk:()=>wt,Nh:()=>Qt,Tg:()=>le,gs:()=>qt,i$:()=>_t,ie:()=>ie});var d=b(36895),p=b(94650),v=b(3238),T=b(21281),t=b(8929),A=b(7625),I=(b(1059),b(12687),b(95017),b(29521),b(24006),b(44850));const z=["*"],W=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],ot=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Ht=(0,v.Id)((0,v.Kr)(class{})),Jt=(0,v.Kr)(class{}),at=new p.OlP("MatList"),Zt=new p.OlP("MatNavList");let wt=(()=>{class Te extends Ht{constructor(){super(...arguments),this._stateChanges=new t.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Te.\u0275fac=function(){let re;return function(ue){return(re||(re=p.n5z(Te)))(ue||Te)}}(),Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[p._Bn([{provide:Zt,useExisting:Te}]),p.qOj,p.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(ee,ue){1&ee&&(p.F$t(),p.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Te})(),_t=(()=>{class Te extends Ht{constructor(ee){super(),this._elementRef=ee,this._stateChanges=new t.xQ,"action-list"===this._getListType()&&(ee.nativeElement.classList.add("mat-action-list"),ee.nativeElement.setAttribute("role","group"))}_getListType(){const ee=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===ee?"list":"mat-action-list"===ee?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Te.\u0275fac=function(ee){return new(ee||Te)(p.Y36(p.SBq))},Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[p._Bn([{provide:at,useExisting:Te}]),p.qOj,p.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(ee,ue){1&ee&&(p.F$t(),p.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Te})(),Nt=(()=>{class Te{}return Te.\u0275fac=function(ee){return new(ee||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Te})(),Qt=(()=>{class Te{}return Te.\u0275fac=function(ee){return new(ee||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Te})(),qt=(()=>{class Te{}return Te.\u0275fac=function(ee){return new(ee||Te)},Te.\u0275dir=p.lG2({type:Te,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Te})(),le=(()=>{class Te extends Jt{constructor(ee,ue,Kt,ce){super(),this._element=ee,this._isInteractiveList=!1,this._destroyed=new t.xQ,this._disabled=!1,this._isInteractiveList=!!(Kt||ce&&"action-list"===ce._getListType()),this._list=Kt||ce;const Le=this._getHostElement();"button"===Le.nodeName.toLowerCase()&&!Le.hasAttribute("type")&&Le.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>{ue.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(ee){this._disabled=(0,T.Ig)(ee)}ngAfterContentInit(){(0,v.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return Te.\u0275fac=function(ee){return new(ee||Te)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Zt,8),p.Y36(at,8))},Te.\u0275cmp=p.Xpm({type:Te,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(ee,ue,Kt){if(1&ee&&(p.Suo(Kt,Nt,5),p.Suo(Kt,Qt,5),p.Suo(Kt,v.X2,5)),2&ee){let ce;p.iGM(ce=p.CRH())&&(ue._avatar=ce.first),p.iGM(ce=p.CRH())&&(ue._icon=ce.first),p.iGM(ce=p.CRH())&&(ue._lines=ce)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(ee,ue){2&ee&&p.ekj("mat-list-item-disabled",ue.disabled)("mat-list-item-with-avatar",ue._avatar||ue._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[p.qOj],ngContentSelectors:ot,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(ee,ue){1&ee&&(p.F$t(W),p.TgZ(0,"span",0),p._UZ(1,"span",1),p.Hsn(2),p.TgZ(3,"span",2),p.Hsn(4,1),p.qZA(),p.Hsn(5,2),p.qZA()),2&ee&&(p.xp6(1),p.Q6J("matRippleTrigger",ue._getHostElement())("matRippleDisabled",ue._isRippleDisabled()))},dependencies:[v.wG],encapsulation:2,changeDetection:0}),Te})(),ie=(()=>{class Te{}return Te.\u0275fac=function(ee){return new(ee||Te)},Te.\u0275mod=p.oAB({type:Te}),Te.\u0275inj=p.cJS({imports:[v.uc,v.si,v.BQ,v.us,d.ez,v.uc,v.BQ,v.us,I.t]}),Te})()},28255:(rt,it,b)=>{"use strict";b.d(it,{OP:()=>re,Tx:()=>ri,VK:()=>Le,p6:()=>kn});var d=b(12687),p=b(21281),v=b(29521),T=b(94650),t=b(8929),A=b(42654),x=b(36787),w=b(21086),k=b(8139),D=b(1059),P=b(87545),I=b(72986),z=b(7625),G=b(92198),W=b(18583),ot=b(37340),ct=b(84080),gt=b(36895),Pt=b(3238),St=b(40445),Ht=b(98184),Jt=b(83353),at=b(67376);const Zt=["mat-menu-item",""];function wt(Ee,Ft){1&Ee&&(T.O4$(),T.TgZ(0,"svg",2),T._UZ(1,"polygon",3),T.qZA())}const _t=["*"];function Nt(Ee,Ft){if(1&Ee){const vt=T.EpF();T.TgZ(0,"div",0),T.NdJ("keydown",function(tt){T.CHM(vt);const et=T.oxw();return T.KtG(et._handleKeydown(tt))})("click",function(){T.CHM(vt);const tt=T.oxw();return T.KtG(tt.closed.emit("click"))})("@transformMenu.start",function(tt){T.CHM(vt);const et=T.oxw();return T.KtG(et._onAnimationStart(tt))})("@transformMenu.done",function(tt){T.CHM(vt);const et=T.oxw();return T.KtG(et._onAnimationDone(tt))}),T.TgZ(1,"div",1),T.Hsn(2),T.qZA()()}if(2&Ee){const vt=T.oxw();T.Q6J("id",vt.panelId)("ngClass",vt._classList)("@transformMenu",vt._panelAnimationState),T.uIk("aria-label",vt.ariaLabel||null)("aria-labelledby",vt.ariaLabelledby||null)("aria-describedby",vt.ariaDescribedby||null)}}const Qt={transformMenu:(0,ot.X$)("transformMenu",[(0,ot.SB)("void",(0,ot.oB)({opacity:0,transform:"scale(0.8)"})),(0,ot.eR)("void => enter",(0,ot.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ot.oB)({opacity:1,transform:"scale(1)"}))),(0,ot.eR)("* => void",(0,ot.jt)("100ms 25ms linear",(0,ot.oB)({opacity:0})))]),fadeInItems:(0,ot.X$)("fadeInItems",[(0,ot.SB)("showing",(0,ot.oB)({opacity:1})),(0,ot.eR)("void => *",[(0,ot.oB)({opacity:0}),(0,ot.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Wt=new T.OlP("MatMenuContent"),ie=new T.OlP("MAT_MENU_PANEL"),Te=(0,Pt.Kr)((0,Pt.Id)(class{}));let re=(()=>{class Ee extends Te{constructor(vt,xt,tt,et,Ct){super(),this._elementRef=vt,this._document=xt,this._focusMonitor=tt,this._parentMenu=et,this._changeDetectorRef=Ct,this.role="menuitem",this._hovered=new t.xQ,this._focused=new t.xQ,this._highlighted=!1,this._triggersSubmenu=!1,et?.addItem?.(this)}focus(vt,xt){this._focusMonitor&&vt?this._focusMonitor.focusVia(this._getHostElement(),vt,xt):this._getHostElement().focus(xt),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(vt){this.disabled&&(vt.preventDefault(),vt.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const vt=this._elementRef.nativeElement.cloneNode(!0),xt=vt.querySelectorAll("mat-icon, .material-icons");for(let tt=0;tt{class Ee{constructor(vt,xt,tt,et){this._elementRef=vt,this._ngZone=xt,this._defaultOptions=tt,this._changeDetectorRef=et,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new T.n_E,this._tabSubscription=A.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new t.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new T.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Kt++}get xPosition(){return this._xPosition}set xPosition(vt){this._xPosition=vt,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(vt){this._yPosition=vt,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(vt){this._overlapTrigger=(0,p.Ig)(vt)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(vt){this._hasBackdrop=(0,p.Ig)(vt)}set panelClass(vt){const xt=this._previousPanelClass;xt&&xt.length&&xt.split(" ").forEach(tt=>{this._classList[tt]=!1}),this._previousPanelClass=vt,vt&&vt.length&&(vt.split(" ").forEach(tt=>{this._classList[tt]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(vt){this.panelClass=vt}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new d.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,D.O)(this._directDescendantItems),(0,P.w)(vt=>(0,x.T)(...vt.map(xt=>xt._focused)))).subscribe(vt=>this._keyManager.updateActiveItem(vt)),this._directDescendantItems.changes.subscribe(vt=>{const xt=this._keyManager;if("enter"===this._panelAnimationState&&xt.activeItem?._hasFocus()){const tt=vt.toArray(),et=Math.max(0,Math.min(tt.length-1,xt.activeItemIndex||0));tt[et]&&!tt[et].disabled?xt.setActiveItem(et):xt.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,D.O)(this._directDescendantItems),(0,P.w)(xt=>(0,x.T)(...xt.map(tt=>tt._hovered))))}addItem(vt){}removeItem(vt){}_handleKeydown(vt){const xt=vt.keyCode,tt=this._keyManager;switch(xt){case v.hY:(0,v.Vb)(vt)||(vt.preventDefault(),this.closed.emit("keydown"));break;case v.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case v.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(xt===v.LH||xt===v.JH)&&tt.setFocusOrigin("keyboard"),void tt.onKeydown(vt)}vt.stopPropagation()}focusFirstItem(vt="program"){this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>{let xt=null;if(this._directDescendantItems.length&&(xt=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!xt||!xt.contains(document.activeElement)){const tt=this._keyManager;tt.setFocusOrigin(vt).setFirstItemActive(),!tt.activeItem&&xt&&xt.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(vt){const xt=Math.min(this._baseElevation+vt,24),tt=`${this._elevationPrefix}${xt}`,et=Object.keys(this._classList).find(Ct=>Ct.startsWith(this._elevationPrefix));(!et||et===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[tt]=!0,this._previousElevation=tt)}setPositionClasses(vt=this.xPosition,xt=this.yPosition){const tt=this._classList;tt["mat-menu-before"]="before"===vt,tt["mat-menu-after"]="after"===vt,tt["mat-menu-above"]="above"===xt,tt["mat-menu-below"]="below"===xt,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(vt){this._animationDone.next(vt),this._isAnimating=!1}_onAnimationStart(vt){this._isAnimating=!0,"enter"===vt.toState&&0===this._keyManager.activeItemIndex&&(vt.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,D.O)(this._allItems)).subscribe(vt=>{this._directDescendantItems.reset(vt.filter(xt=>xt._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Ee.\u0275fac=function(vt){return new(vt||Ee)(T.Y36(T.SBq),T.Y36(T.R0b),T.Y36(ee),T.Y36(T.sBO))},Ee.\u0275dir=T.lG2({type:Ee,contentQueries:function(vt,xt,tt){if(1&vt&&(T.Suo(tt,Wt,5),T.Suo(tt,re,5),T.Suo(tt,re,4)),2&vt){let et;T.iGM(et=T.CRH())&&(xt.lazyContent=et.first),T.iGM(et=T.CRH())&&(xt._allItems=et),T.iGM(et=T.CRH())&&(xt.items=et)}},viewQuery:function(vt,xt){if(1&vt&&T.Gf(T.Rgc,5),2&vt){let tt;T.iGM(tt=T.CRH())&&(xt.templateRef=tt.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Ee})(),Le=(()=>{class Ee extends ce{constructor(vt,xt,tt,et){super(vt,xt,tt,et),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return Ee.\u0275fac=function(vt){return new(vt||Ee)(T.Y36(T.SBq),T.Y36(T.R0b),T.Y36(ee),T.Y36(T.sBO))},Ee.\u0275cmp=T.Xpm({type:Ee,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(vt,xt){2&vt&&T.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[T._Bn([{provide:ie,useExisting:Ee}]),T.qOj],ngContentSelectors:_t,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(vt,xt){1&vt&&(T.F$t(),T.YNc(0,Nt,3,6,"ng-template"))},dependencies:[gt.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Qt.transformMenu,Qt.fadeInItems]},changeDetection:0}),Ee})();const on=new T.OlP("mat-menu-scroll-strategy"),we={provide:on,deps:[Ht.aV],useFactory:function hn(Ee){return()=>Ee.scrollStrategies.reposition()}},Ze=(0,Jt.i$)({passive:!0});let dn=(()=>{class Ee{constructor(vt,xt,tt,et,Ct,Bt,ne,he,Oe){this._overlay=vt,this._element=xt,this._viewContainerRef=tt,this._menuItemInstance=Bt,this._dir=ne,this._focusMonitor=he,this._ngZone=Oe,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.w.EMPTY,this._hoverSubscription=A.w.EMPTY,this._menuCloseSubscription=A.w.EMPTY,this._handleTouchStart=yn=>{(0,d.yG)(yn)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new T.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new T.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=et,this._parentMaterialMenu=Ct instanceof ce?Ct:void 0,xt.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ze),Bt&&(Bt._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(vt){this.menu=vt}get menu(){return this._menu}set menu(vt){vt!==this._menu&&(this._menu=vt,this._menuCloseSubscription.unsubscribe(),vt&&(this._menuCloseSubscription=vt.close.subscribe(xt=>{this._destroyMenu(xt),("click"===xt||"tab"===xt)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(xt)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ze),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const vt=this.menu;if(this._menuOpen||!vt)return;const xt=this._createOverlay(vt),tt=xt.getConfig(),et=tt.positionStrategy;this._setPosition(vt,et),tt.hasBackdrop=vt.hasBackdrop??!this.triggersSubmenu(),xt.attach(this._getPortal(vt)),vt.lazyContent&&vt.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(vt),vt instanceof ce&&(vt._startAnimation(),vt._directDescendantItems.changes.pipe((0,z.R)(vt.close)).subscribe(()=>{et.withLockedPosition(!1).reapplyLastPosition(),et.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(vt,xt){this._focusMonitor&&vt?this._focusMonitor.focusVia(this._element,vt,xt):this._element.nativeElement.focus(xt)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(vt){if(!this._overlayRef||!this.menuOpen)return;const xt=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===vt||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,xt instanceof ce?(xt._resetAnimation(),xt.lazyContent?xt._animationDone.pipe((0,G.h)(tt=>"void"===tt.toState),(0,I.q)(1),(0,z.R)(xt.lazyContent._attached)).subscribe({next:()=>xt.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),xt?.lazyContent?.detach())}_initMenu(vt){vt.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,vt.direction=this.dir,this._setMenuElevation(vt),vt.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(vt){if(vt.setElevation){let xt=0,tt=vt.parentMenu;for(;tt;)xt++,tt=tt.parentMenu;vt.setElevation(xt)}}_setIsMenuOpen(vt){this._menuOpen=vt,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(vt)}_createOverlay(vt){if(!this._overlayRef){const xt=this._getOverlayConfig(vt);this._subscribeToPositions(vt,xt.positionStrategy),this._overlayRef=this._overlay.create(xt),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(vt){return new Ht.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:vt.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:vt.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(vt,xt){vt.setPositionClasses&&xt.positionChanges.subscribe(tt=>{const et="start"===tt.connectionPair.overlayX?"after":"before",Ct="top"===tt.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>vt.setPositionClasses(et,Ct)):vt.setPositionClasses(et,Ct)})}_setPosition(vt,xt){let[tt,et]="before"===vt.xPosition?["end","start"]:["start","end"],[Ct,Bt]="above"===vt.yPosition?["bottom","top"]:["top","bottom"],[ne,he]=[Ct,Bt],[Oe,yn]=[tt,et],On=0;if(this.triggersSubmenu()){if(yn=tt="before"===vt.xPosition?"start":"end",et=Oe="end"===tt?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const _i=this._parentMaterialMenu.items.first;this._parentInnerPadding=_i?_i._getHostElement().offsetTop:0}On="bottom"===Ct?this._parentInnerPadding:-this._parentInnerPadding}}else vt.overlapTrigger||(ne="top"===Ct?"bottom":"top",he="top"===Bt?"bottom":"top");xt.withPositions([{originX:tt,originY:ne,overlayX:Oe,overlayY:Ct,offsetY:On},{originX:et,originY:ne,overlayX:yn,overlayY:Ct,offsetY:On},{originX:tt,originY:he,overlayX:Oe,overlayY:Bt,offsetY:-On},{originX:et,originY:he,overlayX:yn,overlayY:Bt,offsetY:-On}])}_menuClosingActions(){const vt=this._overlayRef.backdropClick(),xt=this._overlayRef.detachments(),tt=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,w.of)(),et=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,G.h)(Ct=>Ct!==this._menuItemInstance),(0,G.h)(()=>this._menuOpen)):(0,w.of)();return(0,x.T)(vt,tt,et,xt)}_handleMousedown(vt){(0,d.X6)(vt)||(this._openedBy=0===vt.button?"mouse":void 0,this.triggersSubmenu()&&vt.preventDefault())}_handleKeydown(vt){const xt=vt.keyCode;(xt===v.K5||xt===v.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(xt===v.SV&&"ltr"===this.dir||xt===v.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(vt){this.triggersSubmenu()?(vt.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,G.h)(vt=>vt===this._menuItemInstance&&!vt.disabled),(0,W.g)(0,k.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ce&&this.menu._isAnimating?this.menu._animationDone.pipe((0,I.q)(1),(0,W.g)(0,k.E),(0,z.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(vt){return(!this._portal||this._portal.templateRef!==vt.templateRef)&&(this._portal=new ct.UE(vt.templateRef,this._viewContainerRef)),this._portal}}return Ee.\u0275fac=function(vt){return new(vt||Ee)(T.Y36(Ht.aV),T.Y36(T.SBq),T.Y36(T.s_b),T.Y36(on),T.Y36(ie,8),T.Y36(re,10),T.Y36(St.Is,8),T.Y36(d.tE),T.Y36(T.R0b))},Ee.\u0275dir=T.lG2({type:Ee,hostVars:3,hostBindings:function(vt,xt){1&vt&&T.NdJ("click",function(et){return xt._handleClick(et)})("mousedown",function(et){return xt._handleMousedown(et)})("keydown",function(et){return xt._handleKeydown(et)}),2&vt&&T.uIk("aria-haspopup",xt.menu?"menu":null)("aria-expanded",xt.menuOpen||null)("aria-controls",xt.menuOpen?xt.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),Ee})(),kn=(()=>{class Ee extends dn{}return Ee.\u0275fac=function(){let Ft;return function(xt){return(Ft||(Ft=T.n5z(Ee)))(xt||Ee)}}(),Ee.\u0275dir=T.lG2({type:Ee,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[T.qOj]}),Ee})(),ri=(()=>{class Ee{}return Ee.\u0275fac=function(vt){return new(vt||Ee)},Ee.\u0275mod=T.oAB({type:Ee}),Ee.\u0275inj=T.cJS({providers:[we],imports:[gt.ez,Pt.BQ,Pt.si,Ht.U8,at.ZD,Pt.BQ]}),Ee})()},98739:(rt,it,b)=>{"use strict";b.d(it,{NW:()=>Zt,TU:()=>wt});var d=b(36895),p=b(94650),v=b(3238),T=b(4859),t=b(84385),A=b(10266),x=b(21281),w=b(8929),k=b(59549);function D(_t,Nt){if(1&_t&&(p.TgZ(0,"mat-option",19),p._uU(1),p.qZA()),2&_t){const Qt=Nt.$implicit;p.Q6J("value",Qt),p.xp6(1),p.hij(" ",Qt," ")}}function P(_t,Nt){if(1&_t){const Qt=p.EpF();p.TgZ(0,"mat-form-field",16)(1,"mat-select",17),p.NdJ("selectionChange",function(le){p.CHM(Qt);const Wt=p.oxw(2);return p.KtG(Wt._changePageSize(le.value))}),p.YNc(2,D,2,2,"mat-option",18),p.qZA()()}if(2&_t){const Qt=p.oxw(2);p.Q6J("appearance",Qt._formFieldAppearance)("color",Qt.color),p.xp6(1),p.Q6J("value",Qt.pageSize)("disabled",Qt.disabled)("panelClass",Qt.selectConfig.panelClass||"")("disableOptionCentering",Qt.selectConfig.disableOptionCentering)("aria-label",Qt._intl.itemsPerPageLabel),p.xp6(1),p.Q6J("ngForOf",Qt._displayedPageSizeOptions)}}function I(_t,Nt){if(1&_t&&(p.TgZ(0,"div",20),p._uU(1),p.qZA()),2&_t){const Qt=p.oxw(2);p.xp6(1),p.Oqu(Qt.pageSize)}}function z(_t,Nt){if(1&_t&&(p.TgZ(0,"div",12)(1,"div",13),p._uU(2),p.qZA(),p.YNc(3,P,3,8,"mat-form-field",14),p.YNc(4,I,2,1,"div",15),p.qZA()),2&_t){const Qt=p.oxw();p.xp6(2),p.hij(" ",Qt._intl.itemsPerPageLabel," "),p.xp6(1),p.Q6J("ngIf",Qt._displayedPageSizeOptions.length>1),p.xp6(1),p.Q6J("ngIf",Qt._displayedPageSizeOptions.length<=1)}}function G(_t,Nt){if(1&_t){const Qt=p.EpF();p.TgZ(0,"button",21),p.NdJ("click",function(){p.CHM(Qt);const le=p.oxw();return p.KtG(le.firstPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",22),p.qZA()()}if(2&_t){const Qt=p.oxw();p.Q6J("matTooltip",Qt._intl.firstPageLabel)("matTooltipDisabled",Qt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Qt._previousButtonsDisabled()),p.uIk("aria-label",Qt._intl.firstPageLabel)}}function W(_t,Nt){if(1&_t){const Qt=p.EpF();p.O4$(),p.kcU(),p.TgZ(0,"button",23),p.NdJ("click",function(){p.CHM(Qt);const le=p.oxw();return p.KtG(le.lastPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",24),p.qZA()()}if(2&_t){const Qt=p.oxw();p.Q6J("matTooltip",Qt._intl.lastPageLabel)("matTooltipDisabled",Qt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Qt._nextButtonsDisabled()),p.uIk("aria-label",Qt._intl.lastPageLabel)}}let ot=(()=>{class _t{constructor(){this.changes=new w.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Qt,qt,le)=>{if(0==le||0==qt)return`0 of ${le}`;const Wt=Qt*qt;return`${Wt+1} \u2013 ${Wt<(le=Math.max(le,0))?Math.min(Wt+qt,le):Wt+qt} of ${le}`}}}return _t.\u0275fac=function(Qt){return new(Qt||_t)},_t.\u0275prov=p.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"}),_t})();const gt={provide:ot,deps:[[new p.FiY,new p.tp0,ot]],useFactory:function ct(_t){return _t||new ot}},Ht=new p.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Jt=(0,v.Id)((0,v.dB)(class{}));let at=(()=>{class _t extends Jt{constructor(Qt,qt,le){if(super(),this._intl=Qt,this._changeDetectorRef=qt,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new p.vpe,this._intlChanges=Qt.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),le){const{pageSize:Wt,pageSizeOptions:Ce,hidePageSize:Ae,showFirstLastButtons:Ne}=le;null!=Wt&&(this._pageSize=Wt),null!=Ce&&(this._pageSizeOptions=Ce),null!=Ae&&(this._hidePageSize=Ae),null!=Ne&&(this._showFirstLastButtons=Ne)}}get pageIndex(){return this._pageIndex}set pageIndex(Qt){this._pageIndex=Math.max((0,x.su)(Qt),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Qt){this._length=(0,x.su)(Qt),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Qt){this._pageSize=Math.max((0,x.su)(Qt),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Qt){this._pageSizeOptions=(Qt||[]).map(qt=>(0,x.su)(qt)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Qt){this._hidePageSize=(0,x.Ig)(Qt)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Qt){this._showFirstLastButtons=(0,x.Ig)(Qt)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Qt=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Qt)}previousPage(){if(!this.hasPreviousPage())return;const Qt=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Qt)}firstPage(){if(!this.hasPreviousPage())return;const Qt=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Qt)}lastPage(){if(!this.hasNextPage())return;const Qt=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Qt)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Qt=this.getNumberOfPages()-1;return this.pageIndexQt-qt),this._changeDetectorRef.markForCheck())}_emitPageEvent(Qt){this.page.emit({previousPageIndex:Qt,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return _t.\u0275fac=function(Qt){p.$Z()},_t.\u0275dir=p.lG2({type:_t,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[p.qOj]}),_t})(),Zt=(()=>{class _t extends at{constructor(Qt,qt,le){super(Qt,qt,le),le&&null!=le.formFieldAppearance&&(this._formFieldAppearance=le.formFieldAppearance)}}return _t.\u0275fac=function(Qt){return new(Qt||_t)(p.Y36(ot),p.Y36(p.sBO),p.Y36(Ht,8))},_t.\u0275cmp=p.Xpm({type:_t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[p.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(Qt,qt){1&Qt&&(p.TgZ(0,"div",0)(1,"div",1),p.YNc(2,z,5,3,"div",2),p.TgZ(3,"div",3)(4,"div",4),p._uU(5),p.qZA(),p.YNc(6,G,3,5,"button",5),p.TgZ(7,"button",6),p.NdJ("click",function(){return qt.previousPage()}),p.O4$(),p.TgZ(8,"svg",7),p._UZ(9,"path",8),p.qZA()(),p.kcU(),p.TgZ(10,"button",9),p.NdJ("click",function(){return qt.nextPage()}),p.O4$(),p.TgZ(11,"svg",7),p._UZ(12,"path",10),p.qZA()(),p.YNc(13,W,3,5,"button",11),p.qZA()()()),2&Qt&&(p.xp6(2),p.Q6J("ngIf",!qt.hidePageSize),p.xp6(3),p.hij(" ",qt._intl.getRangeLabel(qt.pageIndex,qt.pageSize,qt.length)," "),p.xp6(1),p.Q6J("ngIf",qt.showFirstLastButtons),p.xp6(1),p.Q6J("matTooltip",qt._intl.previousPageLabel)("matTooltipDisabled",qt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",qt._previousButtonsDisabled()),p.uIk("aria-label",qt._intl.previousPageLabel),p.xp6(3),p.Q6J("matTooltip",qt._intl.nextPageLabel)("matTooltipDisabled",qt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",qt._nextButtonsDisabled()),p.uIk("aria-label",qt._intl.nextPageLabel),p.xp6(3),p.Q6J("ngIf",qt.showFirstLastButtons))},dependencies:[d.sg,d.O5,T.lW,k.KE,t.gD,v.ey,A.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),_t})(),wt=(()=>{class _t{}return _t.\u0275fac=function(Qt){return new(Qt||_t)},_t.\u0275mod=p.oAB({type:_t}),_t.\u0275inj=p.cJS({providers:[gt],imports:[d.ez,T.ot,t.LD,A.AV,v.BQ]}),_t})()},73162:(rt,it,b)=>{"use strict";b.d(it,{Cv:()=>ot,pW:()=>G});var d=b(94650),p=b(36895),v=b(3238),T=b(21281),t=b(42654),A=b(23753),x=b(92198);const w=["primaryValueBar"],k=(0,v.pj)(class{constructor(ct){this._elementRef=ct}},"primary"),D=new d.OlP("mat-progress-bar-location",{providedIn:"root",factory:function P(){const ct=(0,d.f3M)(p.K0),gt=ct?ct.location:null;return{getPathname:()=>gt?gt.pathname+gt.search:""}}}),I=new d.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let z=0,G=(()=>{class ct extends k{constructor(Pt,St,Ht,Jt,at,Zt){super(Pt),this._ngZone=St,this._animationMode=Ht,this._changeDetectorRef=Zt,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new d.vpe,this._animationEndSubscription=t.w.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+z++;const wt=Jt?Jt.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${wt}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===Ht,at&&(at.color&&(this.color=this.defaultColor=at.color),this.mode=at.mode||this.mode)}get value(){return this._value}set value(Pt){this._value=W((0,T.su)(Pt)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Pt){this._bufferValue=W(Pt||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const Pt=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,A.R)(Pt,"transitionend").pipe((0,x.h)(St=>St.target===Pt)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return ct.\u0275fac=function(Pt){return new(Pt||ct)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(d.QbO,8),d.Y36(D,8),d.Y36(I,8),d.Y36(d.sBO))},ct.\u0275cmp=d.Xpm({type:ct,selectors:[["mat-progress-bar"]],viewQuery:function(Pt,St){if(1&Pt&&d.Gf(w,5),2&Pt){let Ht;d.iGM(Ht=d.CRH())&&(St._primaryValueBar=Ht.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Pt,St){2&Pt&&(d.uIk("aria-valuenow","indeterminate"===St.mode||"query"===St.mode?null:St.value)("mode",St.mode),d.ekj("_mat-animation-noopable",St._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[d.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(Pt,St){1&Pt&&(d.TgZ(0,"div",0),d.O4$(),d.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),d._UZ(4,"circle",3),d.qZA()(),d._UZ(5,"rect",4),d.qZA(),d.kcU(),d._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),d.qZA()),2&Pt&&(d.xp6(3),d.Q6J("id",St.progressbarId),d.xp6(2),d.uIk("fill",St._rectangleFillValue),d.xp6(1),d.Q6J("ngStyle",St._bufferTransform()),d.xp6(1),d.Q6J("ngStyle",St._primaryTransform()))},dependencies:[p.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),ct})();function W(ct,gt=0,Pt=100){return Math.max(gt,Math.min(Pt,ct))}let ot=(()=>{class ct{}return ct.\u0275fac=function(Pt){return new(Pt||ct)},ct.\u0275mod=d.oAB({type:ct}),ct.\u0275inj=d.cJS({imports:[p.ez,v.BQ,v.BQ]}),ct})()},51572:(rt,it,b)=>{"use strict";b.d(it,{Cq:()=>ct,Ou:()=>ot});var d=b(21281),p=b(83353),v=b(67376),T=b(36895),t=b(94650),A=b(3238),x=b(42654);function w(Pt,St){if(1&Pt&&(t.O4$(),t._UZ(0,"circle",4)),2&Pt){const Ht=t.oxw(),Jt=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+Ht._spinnerAnimationLabel)("stroke-dashoffset",Ht._getStrokeDashOffset(),"px")("stroke-dasharray",Ht._getStrokeCircumference(),"px")("stroke-width",Ht._getCircleStrokeWidth(),"%")("transform-origin",Ht._getCircleTransformOrigin(Jt)),t.uIk("r",Ht._getCircleRadius())}}function k(Pt,St){if(1&Pt&&(t.O4$(),t._UZ(0,"circle",4)),2&Pt){const Ht=t.oxw(),Jt=t.MAs(1);t.Udp("stroke-dashoffset",Ht._getStrokeDashOffset(),"px")("stroke-dasharray",Ht._getStrokeCircumference(),"px")("stroke-width",Ht._getCircleStrokeWidth(),"%")("transform-origin",Ht._getCircleTransformOrigin(Jt)),t.uIk("r",Ht._getCircleRadius())}}const I=(0,A.pj)(class{constructor(Pt){this._elementRef=Pt}},"primary"),z=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function G(){return{diameter:100}}});class ot extends I{constructor(St,Ht,Jt,at,Zt,wt,_t,Nt){super(St),this._document=Jt,this._diameter=100,this._value=0,this._resizeSubscription=x.w.EMPTY,this.mode="determinate";const Qt=ot._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Qt.has(Jt.head)||Qt.set(Jt.head,new Set([100])),this._noopAnimations="NoopAnimations"===at&&!!Zt&&!Zt._forceAnimations,"mat-spinner"===St.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Zt&&(Zt.color&&(this.color=this.defaultColor=Zt.color),Zt.diameter&&(this.diameter=Zt.diameter),Zt.strokeWidth&&(this.strokeWidth=Zt.strokeWidth)),Ht.isBrowser&&Ht.SAFARI&&_t&&wt&&Nt&&(this._resizeSubscription=_t.change(150).subscribe(()=>{"indeterminate"===this.mode&&Nt.run(()=>wt.markForCheck())}))}get diameter(){return this._diameter}set diameter(St){this._diameter=(0,d.su)(St),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(St){this._strokeWidth=(0,d.su)(St)}get value(){return"determinate"===this.mode?this._value:0}set value(St){this._value=Math.max(0,Math.min(100,(0,d.su)(St)))}ngOnInit(){const St=this._elementRef.nativeElement;this._styleRoot=(0,p.kV)(St)||this._document.head,this._attachStyleNode(),St.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const St=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${St} ${St}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(St){const Ht=50*(St.currentScale??1);return`${Ht}% ${Ht}%`}_attachStyleNode(){const St=this._styleRoot,Ht=this._diameter,Jt=ot._diameters;let at=Jt.get(St);if(!at||!at.has(Ht)){const Zt=this._document.createElement("style");Zt.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Zt.textContent=this._getAnimationText(),St.appendChild(Zt),at||(at=new Set,Jt.set(St,at)),at.add(Ht)}}_getAnimationText(){const St=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*St).replace(/END_VALUE/g,""+.2*St).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}ot._diameters=new WeakMap,ot.\u0275fac=function(St){return new(St||ot)(t.Y36(t.SBq),t.Y36(p.t4),t.Y36(T.K0,8),t.Y36(t.QbO,8),t.Y36(z),t.Y36(t.sBO),t.Y36(v.rL),t.Y36(t.R0b))},ot.\u0275cmp=t.Xpm({type:ot,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(St,Ht){2&St&&(t.uIk("aria-valuemin","determinate"===Ht.mode?0:null)("aria-valuemax","determinate"===Ht.mode?100:null)("aria-valuenow","determinate"===Ht.mode?Ht.value:null)("mode",Ht.mode),t.Udp("width",Ht.diameter,"px")("height",Ht.diameter,"px"),t.ekj("_mat-animation-noopable",Ht._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(St,Ht){1&St&&(t.O4$(),t.TgZ(0,"svg",0,1),t.YNc(2,w,1,11,"circle",2),t.YNc(3,k,1,9,"circle",3),t.qZA()),2&St&&(t.Udp("width",Ht.diameter,"px")("height",Ht.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===Ht.mode),t.uIk("viewBox",Ht._getViewBox()),t.xp6(2),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let ct=(()=>{class Pt{}return Pt.\u0275fac=function(Ht){return new(Ht||Pt)},Pt.\u0275mod=t.oAB({type:Pt}),Pt.\u0275inj=t.cJS({imports:[A.BQ,T.ez,A.BQ]}),Pt})()},71948:(rt,it,b)=>{"use strict";b.d(it,{Fk:()=>Jt,U0:()=>Ht,VQ:()=>ct});var d=b(94650),p=b(3238),v=b(12687),T=b(21281),t=b(95017),A=b(24006);const x=["input"],w=function(at){return{enterDuration:at}},k=["*"],D=new d.OlP("mat-radio-default-options",{providedIn:"root",factory:function P(){return{color:"accent"}}});let I=0;const z={provide:A.JU,useExisting:(0,d.Gpc)(()=>ct),multi:!0};class G{constructor(Zt,wt){this.source=Zt,this.value=wt}}const W=new d.OlP("MatRadioGroup");let ot=(()=>{class at{constructor(wt){this._changeDetector=wt,this._value=null,this._name="mat-radio-group-"+I++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new d.vpe}get name(){return this._name}set name(wt){this._name=wt,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(wt){this._labelPosition="before"===wt?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(wt){this._value!==wt&&(this._value=wt,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(wt){this._selected=wt,this.value=wt?wt.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(wt){this._disabled=(0,T.Ig)(wt),this._markRadiosForCheck()}get required(){return this._required}set required(wt){this._required=(0,T.Ig)(wt),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(wt=>{wt.name=this.name,wt._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(_t=>{_t.checked=this.value===_t.value,_t.checked&&(this._selected=_t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new G(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(wt=>wt._markForCheck())}writeValue(wt){this.value=wt,this._changeDetector.markForCheck()}registerOnChange(wt){this._controlValueAccessorChangeFn=wt}registerOnTouched(wt){this.onTouched=wt}setDisabledState(wt){this.disabled=wt,this._changeDetector.markForCheck()}}return at.\u0275fac=function(wt){return new(wt||at)(d.Y36(d.sBO))},at.\u0275dir=d.lG2({type:at,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),at})(),ct=(()=>{class at extends ot{}return at.\u0275fac=function(){let Zt;return function(_t){return(Zt||(Zt=d.n5z(at)))(_t||at)}}(),at.\u0275dir=d.lG2({type:at,selectors:[["mat-radio-group"]],contentQueries:function(wt,_t,Nt){if(1&wt&&d.Suo(Nt,Ht,5),2&wt){let Qt;d.iGM(Qt=d.CRH())&&(_t._radios=Qt)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[d._Bn([z,{provide:W,useExisting:at}]),d.qOj]}),at})();class gt{constructor(Zt){this._elementRef=Zt}}const Pt=(0,p.Kr)((0,p.sb)(gt));let St=(()=>{class at extends Pt{constructor(wt,_t,Nt,Qt,qt,le,Wt,Ce){super(_t),this._changeDetector=Nt,this._focusMonitor=Qt,this._radioDispatcher=qt,this._providerOverride=Wt,this._uniqueId="mat-radio-"+ ++I,this.id=this._uniqueId,this.change=new d.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=wt,this._noopAnimations="NoopAnimations"===le,Ce&&(this.tabIndex=(0,T.su)(Ce,0)),this._removeUniqueSelectionListener=qt.listen((Ae,Ne)=>{Ae!==this.id&&Ne===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(wt){const _t=(0,T.Ig)(wt);this._checked!==_t&&(this._checked=_t,_t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!_t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),_t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(wt){this._value!==wt&&(this._value=wt,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===wt),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(wt){this._labelPosition=wt}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(wt){this._setDisabled((0,T.Ig)(wt))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(wt){this._required=(0,T.Ig)(wt)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(wt){this._color=wt}get inputId(){return`${this.id||this._uniqueId}-input`}focus(wt,_t){_t?this._focusMonitor.focusVia(this._inputElement,_t,wt):this._inputElement.nativeElement.focus(wt)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(wt=>{!wt&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new G(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(wt){wt.stopPropagation()}_onInputInteraction(wt){if(wt.stopPropagation(),!this.checked&&!this.disabled){const _t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),_t&&this.radioGroup._emitChangeEvent())}}_setDisabled(wt){this._disabled!==wt&&(this._disabled=wt,this._changeDetector.markForCheck())}_updateTabIndex(){const wt=this.radioGroup;let _t;if(_t=wt&&wt.selected&&!this.disabled?wt.selected===this?this.tabIndex:-1:this.tabIndex,_t!==this._previousTabIndex){const Nt=this._inputElement?.nativeElement;Nt&&(Nt.setAttribute("tabindex",_t+""),this._previousTabIndex=_t)}}}return at.\u0275fac=function(wt){d.$Z()},at.\u0275dir=d.lG2({type:at,viewQuery:function(wt,_t){if(1&wt&&d.Gf(x,5),2&wt){let Nt;d.iGM(Nt=d.CRH())&&(_t._inputElement=Nt.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[d.qOj]}),at})(),Ht=(()=>{class at extends St{constructor(wt,_t,Nt,Qt,qt,le,Wt,Ce){super(wt,_t,Nt,Qt,qt,le,Wt,Ce)}}return at.\u0275fac=function(wt){return new(wt||at)(d.Y36(W,8),d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(v.tE),d.Y36(t.A8),d.Y36(d.QbO,8),d.Y36(D,8),d.$8M("tabindex"))},at.\u0275cmp=d.Xpm({type:at,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(wt,_t){1&wt&&d.NdJ("focus",function(){return _t._inputElement.nativeElement.focus()}),2&wt&&(d.uIk("tabindex",null)("id",_t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),d.ekj("mat-radio-checked",_t.checked)("mat-radio-disabled",_t.disabled)("_mat-animation-noopable",_t._noopAnimations)("mat-primary","primary"===_t.color)("mat-accent","accent"===_t.color)("mat-warn","warn"===_t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[d.qOj],ngContentSelectors:k,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(wt,_t){if(1&wt&&(d.F$t(),d.TgZ(0,"label",0,1)(2,"span",2),d._UZ(3,"span",3)(4,"span",4),d.TgZ(5,"input",5,6),d.NdJ("change",function(Qt){return _t._onInputInteraction(Qt)})("click",function(Qt){return _t._onInputClick(Qt)}),d.qZA(),d.TgZ(7,"span",7),d._UZ(8,"span",8),d.qZA()(),d.TgZ(9,"span",9)(10,"span",10),d._uU(11,"\xa0"),d.qZA(),d.Hsn(12),d.qZA()()),2&wt){const Nt=d.MAs(1);d.uIk("for",_t.inputId),d.xp6(5),d.Q6J("id",_t.inputId)("checked",_t.checked)("disabled",_t.disabled)("required",_t.required),d.uIk("name",_t.name)("value",_t.value)("aria-label",_t.ariaLabel)("aria-labelledby",_t.ariaLabelledby)("aria-describedby",_t.ariaDescribedby),d.xp6(2),d.Q6J("matRippleTrigger",Nt)("matRippleDisabled",_t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",d.VKq(17,w,_t._noopAnimations?0:150)),d.xp6(2),d.ekj("mat-radio-label-before","before"==_t.labelPosition)}},dependencies:[p.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),at})(),Jt=(()=>{class at{}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275mod=d.oAB({type:at}),at.\u0275inj=d.cJS({imports:[p.si,p.BQ,p.BQ]}),at})()},84385:(rt,it,b)=>{"use strict";b.d(it,{LD:()=>Ft,gD:()=>Ee});var d=b(98184),p=b(36895),v=b(94650),T=b(3238),t=b(59549),A=b(67376),x=b(12687),w=b(40445),k=b(21281),D=b(95017),P=b(29521),I=b(24006),z=b(8929),G=b(88514),W=b(36787),ot=b(1059),ct=b(87545),gt=b(72986),Pt=b(92198),St=b(24850),Ht=b(75778),Jt=b(7625),at=b(37340);const Zt=["trigger"],wt=["panel"];function _t(vt,xt){if(1&vt&&(v.TgZ(0,"span",8),v._uU(1),v.qZA()),2&vt){const tt=v.oxw();v.xp6(1),v.Oqu(tt.placeholder)}}function Nt(vt,xt){if(1&vt&&(v.TgZ(0,"span",12),v._uU(1),v.qZA()),2&vt){const tt=v.oxw(2);v.xp6(1),v.Oqu(tt.triggerValue)}}function Qt(vt,xt){1&vt&&v.Hsn(0,0,["*ngSwitchCase","true"])}function qt(vt,xt){if(1&vt&&(v.TgZ(0,"span",9),v.YNc(1,Nt,2,1,"span",10),v.YNc(2,Qt,1,0,"ng-content",11),v.qZA()),2&vt){const tt=v.oxw();v.Q6J("ngSwitch",!!tt.customTrigger),v.xp6(2),v.Q6J("ngSwitchCase",!0)}}function le(vt,xt){if(1&vt){const tt=v.EpF();v.TgZ(0,"div",13)(1,"div",14,15),v.NdJ("@transformPanel.done",function(Ct){v.CHM(tt);const Bt=v.oxw();return v.KtG(Bt._panelDoneAnimatingStream.next(Ct.toState))})("keydown",function(Ct){v.CHM(tt);const Bt=v.oxw();return v.KtG(Bt._handleKeydown(Ct))}),v.Hsn(3,1),v.qZA()()}if(2&vt){const tt=v.oxw();v.Q6J("@transformPanelWrap",void 0),v.xp6(1),v.Gre("mat-select-panel ",tt._getPanelTheme(),""),v.Udp("transform-origin",tt._transformOrigin)("font-size",tt._triggerFontSize,"px"),v.Q6J("ngClass",tt.panelClass)("@transformPanel",tt.multiple?"showing-multiple":"showing"),v.uIk("id",tt.id+"-panel")("aria-multiselectable",tt.multiple)("aria-label",tt.ariaLabel||null)("aria-labelledby",tt._getPanelAriaLabelledby())}}const Wt=[[["mat-select-trigger"]],"*"],Ce=["mat-select-trigger","*"],Ae={transformPanelWrap:(0,at.X$)("transformPanelWrap",[(0,at.eR)("* => void",(0,at.IO)("@transformPanel",[(0,at.pV)()],{optional:!0}))]),transformPanel:(0,at.X$)("transformPanel",[(0,at.SB)("void",(0,at.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,at.SB)("showing",(0,at.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,at.SB)("showing-multiple",(0,at.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,at.eR)("void => *",(0,at.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,at.eR)("* => void",(0,at.jt)("100ms 25ms linear",(0,at.oB)({opacity:0})))])};let ie=0;const Le=new v.OlP("mat-select-scroll-strategy"),hn=new v.OlP("MAT_SELECT_CONFIG"),we={provide:Le,deps:[d.aV],useFactory:function on(vt){return()=>vt.scrollStrategies.reposition()}};class bn{constructor(xt,tt){this.source=xt,this.value=tt}}const Ze=(0,T.Kr)((0,T.sb)((0,T.Id)((0,T.FD)(class{constructor(vt,xt,tt,et,Ct){this._elementRef=vt,this._defaultErrorStateMatcher=xt,this._parentForm=tt,this._parentFormGroup=et,this.ngControl=Ct,this.stateChanges=new z.xQ}})))),dn=new v.OlP("MatSelectTrigger");let ri=(()=>{class vt extends Ze{constructor(tt,et,Ct,Bt,ne,he,Oe,yn,On,_i,Si,ho,hi,Vn){super(ne,Bt,Oe,yn,_i),this._viewportRuler=tt,this._changeDetectorRef=et,this._ngZone=Ct,this._dir=he,this._parentFormField=On,this._liveAnnouncer=hi,this._defaultOptions=Vn,this._panelOpen=!1,this._compareWith=(Gn,je)=>Gn===je,this._uid="mat-select-"+ie++,this._triggerAriaLabelledBy=null,this._destroy=new z.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ie++,this._panelDoneAnimatingStream=new z.xQ,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,G.P)(()=>{const Gn=this.options;return Gn?Gn.changes.pipe((0,ot.O)(Gn),(0,ct.w)(()=>(0,W.T)(...Gn.map(je=>je.onSelectionChange)))):this._ngZone.onStable.pipe((0,gt.q)(1),(0,ct.w)(()=>this.optionSelectionChanges))}),this.openedChange=new v.vpe,this._openedStream=this.openedChange.pipe((0,Pt.h)(Gn=>Gn),(0,St.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Pt.h)(Gn=>!Gn),(0,St.U)(()=>{})),this.selectionChange=new v.vpe,this.valueChange=new v.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Vn?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Vn.typeaheadDebounceInterval),this._scrollStrategyFactory=ho,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Si)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(tt){this._placeholder=tt,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(I.kI.required)??!1}set required(tt){this._required=(0,k.Ig)(tt),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(tt){this._multiple=(0,k.Ig)(tt)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(tt){this._disableOptionCentering=(0,k.Ig)(tt)}get compareWith(){return this._compareWith}set compareWith(tt){this._compareWith=tt,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(tt){this._assignValue(tt)&&this._onChange(tt)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(tt){this._typeaheadDebounceInterval=(0,k.su)(tt)}get id(){return this._id}set id(tt){this._id=tt||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new D.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Ht.x)(),(0,Jt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Jt.R)(this._destroy)).subscribe(tt=>{tt.added.forEach(et=>et.select()),tt.removed.forEach(et=>et.deselect())}),this.options.changes.pipe((0,ot.O)(null),(0,Jt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const tt=this._getTriggerAriaLabelledby(),et=this.ngControl;if(tt!==this._triggerAriaLabelledBy){const Ct=this._elementRef.nativeElement;this._triggerAriaLabelledBy=tt,tt?Ct.setAttribute("aria-labelledby",tt):Ct.removeAttribute("aria-labelledby")}et&&(this._previousControl!==et.control&&(void 0!==this._previousControl&&null!==et.disabled&&et.disabled!==this.disabled&&(this.disabled=et.disabled),this._previousControl=et.control),this.updateErrorState())}ngOnChanges(tt){(tt.disabled||tt.userAriaDescribedBy)&&this.stateChanges.next(),tt.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(tt){this._assignValue(tt)}registerOnChange(tt){this._onChange=tt}registerOnTouched(tt){this._onTouched=tt}setDisabledState(tt){this.disabled=tt,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const tt=this._selectionModel.selected.map(et=>et.viewValue);return this._isRtl()&&tt.reverse(),tt.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(tt){this.disabled||(this.panelOpen?this._handleOpenKeydown(tt):this._handleClosedKeydown(tt))}_handleClosedKeydown(tt){const et=tt.keyCode,Ct=et===P.JH||et===P.LH||et===P.oh||et===P.SV,Bt=et===P.K5||et===P.L_,ne=this._keyManager;if(!ne.isTyping()&&Bt&&!(0,P.Vb)(tt)||(this.multiple||tt.altKey)&&Ct)tt.preventDefault(),this.open();else if(!this.multiple){const he=this.selected;ne.onKeydown(tt);const Oe=this.selected;Oe&&he!==Oe&&this._liveAnnouncer.announce(Oe.viewValue,1e4)}}_handleOpenKeydown(tt){const et=this._keyManager,Ct=tt.keyCode,Bt=Ct===P.JH||Ct===P.LH,ne=et.isTyping();if(Bt&&tt.altKey)tt.preventDefault(),this.close();else if(ne||Ct!==P.K5&&Ct!==P.L_||!et.activeItem||(0,P.Vb)(tt))if(!ne&&this._multiple&&Ct===P.A&&tt.ctrlKey){tt.preventDefault();const he=this.options.some(Oe=>!Oe.disabled&&!Oe.selected);this.options.forEach(Oe=>{Oe.disabled||(he?Oe.select():Oe.deselect())})}else{const he=et.activeItemIndex;et.onKeydown(tt),this._multiple&&Bt&&tt.shiftKey&&et.activeItem&&et.activeItemIndex!==he&&et.activeItem._selectViaInteraction()}else tt.preventDefault(),et.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,gt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(tt){if(this._selectionModel.selected.forEach(et=>et.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&tt)Array.isArray(tt),tt.forEach(et=>this._selectOptionByValue(et)),this._sortValues();else{const et=this._selectOptionByValue(tt);et?this._keyManager.updateActiveItem(et):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(tt){const et=this.options.find(Ct=>{if(this._selectionModel.isSelected(Ct))return!1;try{return null!=Ct.value&&this._compareWith(Ct.value,tt)}catch{return!1}});return et&&this._selectionModel.select(et),et}_assignValue(tt){return!!(tt!==this._value||this._multiple&&Array.isArray(tt))&&(this.options&&this._setSelectionByValue(tt),this._value=tt,!0)}_initKeyManager(){this._keyManager=new x.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,Jt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,Jt.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const tt=(0,W.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Jt.R)(tt)).subscribe(et=>{this._onSelect(et.source,et.isUserInput),et.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,W.T)(...this.options.map(et=>et._stateChanges)).pipe((0,Jt.R)(tt)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(tt,et){const Ct=this._selectionModel.isSelected(tt);null!=tt.value||this._multiple?(Ct!==tt.selected&&(tt.selected?this._selectionModel.select(tt):this._selectionModel.deselect(tt)),et&&this._keyManager.setActiveItem(tt),this.multiple&&(this._sortValues(),et&&this.focus())):(tt.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(tt.value)),Ct!==this._selectionModel.isSelected(tt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const tt=this.options.toArray();this._selectionModel.sort((et,Ct)=>this.sortComparator?this.sortComparator(et,Ct,tt):tt.indexOf(et)-tt.indexOf(Ct)),this.stateChanges.next()}}_propagateChanges(tt){let et=null;et=this.multiple?this.selected.map(Ct=>Ct.value):this.selected?this.selected.value:tt,this._value=et,this.valueChange.emit(et),this._onChange(et),this.selectionChange.emit(this._getChangeEvent(et)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(tt){this._elementRef.nativeElement.focus(tt)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const tt=this._parentFormField?.getLabelId();return this.ariaLabelledby?(tt?tt+" ":"")+this.ariaLabelledby:tt}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const tt=this._parentFormField?.getLabelId();let et=(tt?tt+" ":"")+this._valueId;return this.ariaLabelledby&&(et+=" "+this.ariaLabelledby),et}_panelDoneAnimating(tt){this.openedChange.emit(tt)}setDescribedByIds(tt){tt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",tt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return vt.\u0275fac=function(tt){return new(tt||vt)(v.Y36(A.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(T.rD),v.Y36(v.SBq),v.Y36(w.Is,8),v.Y36(I.F,8),v.Y36(I.sg,8),v.Y36(t.G_,8),v.Y36(I.a5,10),v.$8M("tabindex"),v.Y36(Le),v.Y36(x.Kd),v.Y36(hn,8))},vt.\u0275dir=v.lG2({type:vt,viewQuery:function(tt,et){if(1&tt&&(v.Gf(Zt,5),v.Gf(wt,5),v.Gf(d.pI,5)),2&tt){let Ct;v.iGM(Ct=v.CRH())&&(et.trigger=Ct.first),v.iGM(Ct=v.CRH())&&(et.panel=Ct.first),v.iGM(Ct=v.CRH())&&(et._overlayDir=Ct.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[v.qOj,v.TTD]}),vt})(),Ee=(()=>{class vt extends ri{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(tt,et,Ct){const Bt=this._getItemHeight();return Math.min(Math.max(0,Bt*tt-et+Bt/2),Ct)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Jt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,gt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(tt){const et=(0,T.CB)(tt,this.options,this.optionGroups),Ct=this._getItemHeight();this.panel.nativeElement.scrollTop=0===tt&&1===et?0:(0,T.jH)((tt+et)*Ct,Ct,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(tt){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(tt)}_getChangeEvent(tt){return new bn(this,tt)}_calculateOverlayOffsetX(){const tt=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),et=this._viewportRuler.getViewportSize(),Ct=this._isRtl(),Bt=this.multiple?56:32;let ne;if(this.multiple)ne=40;else if(this.disableOptionCentering)ne=16;else{let yn=this._selectionModel.selected[0]||this.options.first;ne=yn&&yn.group?32:16}Ct||(ne*=-1);const he=0-(tt.left+ne-(Ct?Bt:0)),Oe=tt.right+ne-et.width+(Ct?0:Bt);he>0?ne+=he+8:Oe>0&&(ne-=Oe+8),this._overlayDir.offsetX=Math.round(ne),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(tt,et,Ct){const Bt=this._getItemHeight(),ne=(Bt-this._triggerRect.height)/2,he=Math.floor(256/Bt);let Oe;return this.disableOptionCentering?0:(Oe=0===this._scrollTop?tt*Bt:this._scrollTop===Ct?(tt-(this._getItemCount()-he))*Bt+(Bt-(this._getItemCount()*Bt-256)%Bt):et-Bt/2,Math.round(-1*Oe-ne))}_checkOverlayWithinViewport(tt){const et=this._getItemHeight(),Ct=this._viewportRuler.getViewportSize(),Bt=this._triggerRect.top-8,ne=Ct.height-this._triggerRect.bottom-8,he=Math.abs(this._offsetY),yn=Math.min(this._getItemCount()*et,256)-he-this._triggerRect.height;yn>ne?this._adjustPanelUp(yn,ne):he>Bt?this._adjustPanelDown(he,Bt,tt):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(tt,et){const Ct=Math.round(tt-et);this._scrollTop-=Ct,this._offsetY-=Ct,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(tt,et,Ct){const Bt=Math.round(tt-et);if(this._scrollTop+=Bt,this._offsetY+=Bt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Ct)return this._scrollTop=Ct,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const tt=this._getItemHeight(),et=this._getItemCount(),Ct=Math.min(et*tt,256),ne=et*tt-Ct;let he;he=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),he+=(0,T.CB)(he,this.options,this.optionGroups);const Oe=Ct/2;this._scrollTop=this._calculateOverlayScroll(he,Oe,ne),this._offsetY=this._calculateOverlayOffsetY(he,Oe,ne),this._checkOverlayWithinViewport(ne)}_getOriginBasedOnOption(){const tt=this._getItemHeight(),et=(tt-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-et+tt/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return vt.\u0275fac=function(){let xt;return function(et){return(xt||(xt=v.n5z(vt)))(et||vt)}}(),vt.\u0275cmp=v.Xpm({type:vt,selectors:[["mat-select"]],contentQueries:function(tt,et,Ct){if(1&tt&&(v.Suo(Ct,dn,5),v.Suo(Ct,T.ey,5),v.Suo(Ct,T.K7,5)),2&tt){let Bt;v.iGM(Bt=v.CRH())&&(et.customTrigger=Bt.first),v.iGM(Bt=v.CRH())&&(et.options=Bt),v.iGM(Bt=v.CRH())&&(et.optionGroups=Bt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(tt,et){1&tt&&v.NdJ("keydown",function(Bt){return et._handleKeydown(Bt)})("focus",function(){return et._onFocus()})("blur",function(){return et._onBlur()}),2&tt&&(v.uIk("id",et.id)("tabindex",et.tabIndex)("aria-controls",et.panelOpen?et.id+"-panel":null)("aria-expanded",et.panelOpen)("aria-label",et.ariaLabel||null)("aria-required",et.required.toString())("aria-disabled",et.disabled.toString())("aria-invalid",et.errorState)("aria-activedescendant",et._getAriaActiveDescendant()),v.ekj("mat-select-disabled",et.disabled)("mat-select-invalid",et.errorState)("mat-select-required",et.required)("mat-select-empty",et.empty)("mat-select-multiple",et.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v._Bn([{provide:t.Eo,useExisting:vt},{provide:T.HF,useExisting:vt}]),v.qOj],ngContentSelectors:Ce,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(tt,et){if(1&tt&&(v.F$t(Wt),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return et.toggle()}),v.TgZ(3,"div",2),v.YNc(4,_t,2,1,"span",3),v.YNc(5,qt,3,2,"span",4),v.qZA(),v.TgZ(6,"div",5),v._UZ(7,"div",6),v.qZA()(),v.YNc(8,le,4,14,"ng-template",7),v.NdJ("backdropClick",function(){return et.close()})("attach",function(){return et._onAttached()})("detach",function(){return et.close()})),2&tt){const Ct=v.MAs(1);v.uIk("aria-owns",et.panelOpen?et.id+"-panel":null),v.xp6(3),v.Q6J("ngSwitch",et.empty),v.uIk("id",et._valueId),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngSwitchCase",!1),v.xp6(3),v.Q6J("cdkConnectedOverlayPanelClass",et._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",et._scrollStrategy)("cdkConnectedOverlayOrigin",Ct)("cdkConnectedOverlayOpen",et.panelOpen)("cdkConnectedOverlayPositions",et._positions)("cdkConnectedOverlayMinWidth",null==et._triggerRect?null:et._triggerRect.width)("cdkConnectedOverlayOffsetY",et._offsetY)}},dependencies:[p.mk,p.RF,p.n9,p.ED,d.pI,d.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Ae.transformPanelWrap,Ae.transformPanel]},changeDetection:0}),vt})(),Ft=(()=>{class vt{}return vt.\u0275fac=function(tt){return new(tt||vt)},vt.\u0275mod=v.oAB({type:vt}),vt.\u0275inj=v.cJS({providers:[we],imports:[p.ez,d.U8,T.Ng,T.BQ,A.ZD,t.lN,T.Ng,T.BQ]}),vt})()},23267:(rt,it,b)=>{"use strict";b.d(it,{JX:()=>Kt,Rh:()=>ue,SJ:()=>Le,TM:()=>ce});var d=b(67376),p=b(36895),v=b(94650),T=b(3238),t=b(12687),A=b(40445),x=b(21281),w=b(29521),k=b(83353),D=b(8929),P=b(23753),I=b(36787),z=b(92198),G=b(24850),W=b(77604),ot=b(7625),ct=b(75778),gt=b(72986),Pt=b(1059),St=b(80013),Ht=b(37340);const Jt=["*"],at=["content"];function Zt(on,hn){if(1&on){const we=v.EpF();v.TgZ(0,"div",2),v.NdJ("click",function(){v.CHM(we);const Ze=v.oxw();return v.KtG(Ze._onBackdropClicked())}),v.qZA()}if(2&on){const we=v.oxw();v.ekj("mat-drawer-shown",we._isShowingBackdrop())}}function wt(on,hn){1&on&&(v.TgZ(0,"mat-drawer-content"),v.Hsn(1,2),v.qZA())}const _t=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Nt=["mat-drawer","mat-drawer-content","*"];function Qt(on,hn){if(1&on){const we=v.EpF();v.TgZ(0,"div",2),v.NdJ("click",function(){v.CHM(we);const Ze=v.oxw();return v.KtG(Ze._onBackdropClicked())}),v.qZA()}if(2&on){const we=v.oxw();v.ekj("mat-drawer-shown",we._isShowingBackdrop())}}function qt(on,hn){1&on&&(v.TgZ(0,"mat-sidenav-content"),v.Hsn(1,2),v.qZA())}const le=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Wt=["mat-sidenav","mat-sidenav-content","*"],Ae={transformDrawer:(0,Ht.X$)("transform",[(0,Ht.SB)("open, open-instant",(0,Ht.oB)({transform:"none",visibility:"visible"})),(0,Ht.SB)("void",(0,Ht.oB)({"box-shadow":"none",visibility:"hidden"})),(0,Ht.eR)("void => open-instant",(0,Ht.jt)("0ms")),(0,Ht.eR)("void <=> open, open-instant => void",(0,Ht.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},ze=new v.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function ie(){return!1}}),Xe=new v.OlP("MAT_DRAWER_CONTAINER");let Te=(()=>{class on extends d.PQ{constructor(we,bn,Ze,dn,kn){super(Ze,dn,kn),this._changeDetectorRef=we,this._container=bn}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return on.\u0275fac=function(we){return new(we||on)(v.Y36(v.sBO),v.Y36((0,v.Gpc)(()=>ee)),v.Y36(v.SBq),v.Y36(d.mF),v.Y36(v.R0b))},on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(we,bn){2&we&&v.Udp("margin-left",bn._container._contentMargins.left,"px")("margin-right",bn._container._contentMargins.right,"px")},features:[v._Bn([{provide:d.PQ,useExisting:on}]),v.qOj],ngContentSelectors:Jt,decls:1,vars:0,template:function(we,bn){1&we&&(v.F$t(),v.Hsn(0))},encapsulation:2,changeDetection:0}),on})(),re=(()=>{class on{constructor(we,bn,Ze,dn,kn,ri,Ee,Ft){this._elementRef=we,this._focusTrapFactory=bn,this._focusMonitor=Ze,this._platform=dn,this._ngZone=kn,this._interactivityChecker=ri,this._doc=Ee,this._container=Ft,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new D.xQ,this._animationEnd=new D.xQ,this._animationState="void",this.openedChange=new v.vpe(!0),this._openedStream=this.openedChange.pipe((0,z.h)(vt=>vt),(0,G.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,z.h)(vt=>vt.fromState!==vt.toState&&0===vt.toState.indexOf("open")),(0,W.h)(void 0)),this._closedStream=this.openedChange.pipe((0,z.h)(vt=>!vt),(0,G.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,z.h)(vt=>vt.fromState!==vt.toState&&"void"===vt.toState),(0,W.h)(void 0)),this._destroyed=new D.xQ,this.onPositionChanged=new v.vpe,this._modeChanged=new D.xQ,this.openedChange.subscribe(vt=>{vt?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,P.R)(this._elementRef.nativeElement,"keydown").pipe((0,z.h)(vt=>vt.keyCode===w.hY&&!this.disableClose&&!(0,w.Vb)(vt)),(0,ot.R)(this._destroyed)).subscribe(vt=>this._ngZone.run(()=>{this.close(),vt.stopPropagation(),vt.preventDefault()}))}),this._animationEnd.pipe((0,ct.x)((vt,xt)=>vt.fromState===xt.fromState&&vt.toState===xt.toState)).subscribe(vt=>{const{fromState:xt,toState:tt}=vt;(0===tt.indexOf("open")&&"void"===xt||"void"===tt&&0===xt.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(we){(we="end"===we?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(we),this._position=we,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(we){this._mode=we,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(we){this._disableClose=(0,x.Ig)(we)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(we){("true"===we||"false"===we||null==we)&&(we=(0,x.Ig)(we)),this._autoFocus=we}get opened(){return this._opened}set opened(we){this.toggle((0,x.Ig)(we))}_forceFocus(we,bn){this._interactivityChecker.isFocusable(we)||(we.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ze=()=>{we.removeEventListener("blur",Ze),we.removeEventListener("mousedown",Ze),we.removeAttribute("tabindex")};we.addEventListener("blur",Ze),we.addEventListener("mousedown",Ze)})),we.focus(bn)}_focusByCssSelector(we,bn){let Ze=this._elementRef.nativeElement.querySelector(we);Ze&&this._forceFocus(Ze,bn)}_takeFocus(){if(!this._focusTrap)return;const we=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(bn=>{!bn&&"function"==typeof this._elementRef.nativeElement.focus&&we.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(we){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,we):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const we=this._doc.activeElement;return!!we&&this._elementRef.nativeElement.contains(we)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(we){return this.toggle(!0,we)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(we=!this.opened,bn){we&&bn&&(this._openedVia=bn);const Ze=this._setOpen(we,!we&&this._isFocusWithinDrawer(),this._openedVia||"program");return we||(this._openedVia=null),Ze}_setOpen(we,bn,Ze){return this._opened=we,we?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",bn&&this._restoreFocus(Ze)),this._updateFocusTrapState(),new Promise(dn=>{this.openedChange.pipe((0,gt.q)(1)).subscribe(kn=>dn(kn?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(we){const bn=this._elementRef.nativeElement,Ze=bn.parentNode;"end"===we?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ze.insertBefore(this._anchor,bn)),Ze.appendChild(bn)):this._anchor&&this._anchor.parentNode.insertBefore(bn,this._anchor)}}return on.\u0275fac=function(we){return new(we||on)(v.Y36(v.SBq),v.Y36(t.qV),v.Y36(t.tE),v.Y36(k.t4),v.Y36(v.R0b),v.Y36(t.ic),v.Y36(p.K0,8),v.Y36(Xe,8))},on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-drawer"]],viewQuery:function(we,bn){if(1&we&&v.Gf(at,5),2&we){let Ze;v.iGM(Ze=v.CRH())&&(bn._content=Ze.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(we,bn){1&we&&v.WFA("@transform.start",function(dn){return bn._animationStarted.next(dn)})("@transform.done",function(dn){return bn._animationEnd.next(dn)}),2&we&&(v.uIk("align",null),v.d8E("@transform",bn._animationState),v.ekj("mat-drawer-end","end"===bn.position)("mat-drawer-over","over"===bn.mode)("mat-drawer-push","push"===bn.mode)("mat-drawer-side","side"===bn.mode)("mat-drawer-opened",bn.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Jt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(we,bn){1&we&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[Ae.transformDrawer]},changeDetection:0}),on})(),ee=(()=>{class on{constructor(we,bn,Ze,dn,kn,ri=!1,Ee){this._dir=we,this._element=bn,this._ngZone=Ze,this._changeDetectorRef=dn,this._animationMode=Ee,this._drawers=new v.n_E,this.backdropClick=new v.vpe,this._destroyed=new D.xQ,this._doCheckSubject=new D.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new D.xQ,we&&we.change.pipe((0,ot.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),kn.change().pipe((0,ot.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=ri}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(we){this._autosize=(0,x.Ig)(we)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(we){this._backdropOverride=null==we?null:(0,x.Ig)(we)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Pt.O)(this._allDrawers),(0,ot.R)(this._destroyed)).subscribe(we=>{this._drawers.reset(we.filter(bn=>!bn._container||bn._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Pt.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(we=>{this._watchDrawerToggle(we),this._watchDrawerPosition(we),this._watchDrawerMode(we)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,St.b)(10),(0,ot.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(we=>we.open())}close(){this._drawers.forEach(we=>we.close())}updateContentMargins(){let we=0,bn=0;if(this._left&&this._left.opened)if("side"==this._left.mode)we+=this._left._getWidth();else if("push"==this._left.mode){const Ze=this._left._getWidth();we+=Ze,bn-=Ze}if(this._right&&this._right.opened)if("side"==this._right.mode)bn+=this._right._getWidth();else if("push"==this._right.mode){const Ze=this._right._getWidth();bn+=Ze,we-=Ze}we=we||null,bn=bn||null,(we!==this._contentMargins.left||bn!==this._contentMargins.right)&&(this._contentMargins={left:we,right:bn},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(we){we._animationStarted.pipe((0,z.h)(bn=>bn.fromState!==bn.toState),(0,ot.R)(this._drawers.changes)).subscribe(bn=>{"open-instant"!==bn.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==we.mode&&we.openedChange.pipe((0,ot.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(we.opened))}_watchDrawerPosition(we){!we||we.onPositionChanged.pipe((0,ot.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,gt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(we){we&&we._modeChanged.pipe((0,ot.R)((0,I.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(we){const bn=this._element.nativeElement.classList,Ze="mat-drawer-container-has-open";we?bn.add(Ze):bn.remove(Ze)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(we=>{"end"==we.position?this._end=we:this._start=we}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(we=>we&&!we.disableClose&&this._canHaveBackdrop(we)).forEach(we=>we._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(we){return"side"!==we.mode||!!this._backdropOverride}_isDrawerOpen(we){return null!=we&&we.opened}}return on.\u0275fac=function(we){return new(we||on)(v.Y36(A.Is,8),v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(v.sBO),v.Y36(d.rL),v.Y36(ze),v.Y36(v.QbO,8))},on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-drawer-container"]],contentQueries:function(we,bn,Ze){if(1&we&&(v.Suo(Ze,Te,5),v.Suo(Ze,re,5)),2&we){let dn;v.iGM(dn=v.CRH())&&(bn._content=dn.first),v.iGM(dn=v.CRH())&&(bn._allDrawers=dn)}},viewQuery:function(we,bn){if(1&we&&v.Gf(Te,5),2&we){let Ze;v.iGM(Ze=v.CRH())&&(bn._userContent=Ze.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(we,bn){2&we&&v.ekj("mat-drawer-container-explicit-backdrop",bn._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[v._Bn([{provide:Xe,useExisting:on}])],ngContentSelectors:Nt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(we,bn){1&we&&(v.F$t(_t),v.YNc(0,Zt,1,2,"div",0),v.Hsn(1),v.Hsn(2,1),v.YNc(3,wt,2,0,"mat-drawer-content",1)),2&we&&(v.Q6J("ngIf",bn.hasBackdrop),v.xp6(3),v.Q6J("ngIf",!bn._content))},dependencies:[p.O5,Te],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),on})(),ue=(()=>{class on extends Te{constructor(we,bn,Ze,dn,kn){super(we,bn,Ze,dn,kn)}}return on.\u0275fac=function(we){return new(we||on)(v.Y36(v.sBO),v.Y36((0,v.Gpc)(()=>ce)),v.Y36(v.SBq),v.Y36(d.mF),v.Y36(v.R0b))},on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(we,bn){2&we&&v.Udp("margin-left",bn._container._contentMargins.left,"px")("margin-right",bn._container._contentMargins.right,"px")},features:[v._Bn([{provide:d.PQ,useExisting:on}]),v.qOj],ngContentSelectors:Jt,decls:1,vars:0,template:function(we,bn){1&we&&(v.F$t(),v.Hsn(0))},encapsulation:2,changeDetection:0}),on})(),Kt=(()=>{class on extends re{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(we){this._fixedInViewport=(0,x.Ig)(we)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(we){this._fixedTopGap=(0,x.su)(we)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(we){this._fixedBottomGap=(0,x.su)(we)}}return on.\u0275fac=function(){let hn;return function(bn){return(hn||(hn=v.n5z(on)))(bn||on)}}(),on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(we,bn){2&we&&(v.uIk("align",null),v.Udp("top",bn.fixedInViewport?bn.fixedTopGap:null,"px")("bottom",bn.fixedInViewport?bn.fixedBottomGap:null,"px"),v.ekj("mat-drawer-end","end"===bn.position)("mat-drawer-over","over"===bn.mode)("mat-drawer-push","push"===bn.mode)("mat-drawer-side","side"===bn.mode)("mat-drawer-opened",bn.opened)("mat-sidenav-fixed",bn.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[v.qOj],ngContentSelectors:Jt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(we,bn){1&we&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[Ae.transformDrawer]},changeDetection:0}),on})(),ce=(()=>{class on extends ee{}return on.\u0275fac=function(){let hn;return function(bn){return(hn||(hn=v.n5z(on)))(bn||on)}}(),on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-sidenav-container"]],contentQueries:function(we,bn,Ze){if(1&we&&(v.Suo(Ze,ue,5),v.Suo(Ze,Kt,5)),2&we){let dn;v.iGM(dn=v.CRH())&&(bn._content=dn.first),v.iGM(dn=v.CRH())&&(bn._allDrawers=dn)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(we,bn){2&we&&v.ekj("mat-drawer-container-explicit-backdrop",bn._backdropOverride)},exportAs:["matSidenavContainer"],features:[v._Bn([{provide:Xe,useExisting:on}]),v.qOj],ngContentSelectors:Wt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(we,bn){1&we&&(v.F$t(le),v.YNc(0,Qt,1,2,"div",0),v.Hsn(1),v.Hsn(2,1),v.YNc(3,qt,2,0,"mat-sidenav-content",1)),2&we&&(v.Q6J("ngIf",bn.hasBackdrop),v.xp6(3),v.Q6J("ngIf",!bn._content))},dependencies:[p.O5,ue],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),on})(),Le=(()=>{class on{}return on.\u0275fac=function(we){return new(we||on)},on.\u0275mod=v.oAB({type:on}),on.\u0275inj=v.cJS({imports:[p.ez,T.BQ,d.ZD,d.ZD,T.BQ]}),on})()},90455:(rt,it,b)=>{"use strict";b.d(it,{Rr:()=>ot,rP:()=>St});var d=b(49643),p=b(94650),v=b(3238),T=b(12687),t=b(21281),A=b(24006);const x=["input"],w=function(Ht){return{enterDuration:Ht}},k=["*"],D=new p.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let P=0;const I={provide:A.JU,useExisting:(0,p.Gpc)(()=>ot),multi:!0};class z{constructor(Jt,at){this.source=Jt,this.checked=at}}const G=(0,v.sb)((0,v.pj)((0,v.Kr)((0,v.Id)(class{constructor(Ht){this._elementRef=Ht}}))));let W=(()=>{class Ht extends G{constructor(at,Zt,wt,_t,Nt,Qt,qt){super(at),this._focusMonitor=Zt,this._changeDetectorRef=wt,this.defaults=Nt,this._onChange=le=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new p.vpe,this.toggleChange=new p.vpe,this.tabIndex=parseInt(_t)||0,this.color=this.defaultColor=Nt.color||"accent",this._noopAnimations="NoopAnimations"===Qt,this.id=this._uniqueId=`${qt}${++P}`}get required(){return this._required}set required(at){this._required=(0,t.Ig)(at)}get checked(){return this._checked}set checked(at){this._checked=(0,t.Ig)(at),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(at=>{"keyboard"===at||"program"===at?this._focused=!0:at||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(at){this.checked=!!at}registerOnChange(at){this._onChange=at}registerOnTouched(at){this._onTouched=at}setDisabledState(at){this.disabled=at,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return Ht.\u0275fac=function(at){p.$Z()},Ht.\u0275dir=p.lG2({type:Ht,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[p.qOj]}),Ht})(),ot=(()=>{class Ht extends W{constructor(at,Zt,wt,_t,Nt,Qt){super(at,Zt,wt,_t,Nt,Qt,"mat-slide-toggle-")}_createChangeEvent(at){return new z(this,at)}_onChangeEvent(at){at.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(at){at.stopPropagation()}focus(at,Zt){Zt?this._focusMonitor.focusVia(this._inputElement,Zt,at):this._inputElement.nativeElement.focus(at)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return Ht.\u0275fac=function(at){return new(at||Ht)(p.Y36(p.SBq),p.Y36(T.tE),p.Y36(p.sBO),p.$8M("tabindex"),p.Y36(D),p.Y36(p.QbO,8))},Ht.\u0275cmp=p.Xpm({type:Ht,selectors:[["mat-slide-toggle"]],viewQuery:function(at,Zt){if(1&at&&p.Gf(x,5),2&at){let wt;p.iGM(wt=p.CRH())&&(Zt._inputElement=wt.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(at,Zt){2&at&&(p.Ikx("id",Zt.id),p.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),p.ekj("mat-checked",Zt.checked)("mat-disabled",Zt.disabled)("mat-slide-toggle-label-before","before"==Zt.labelPosition)("_mat-animation-noopable",Zt._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[p._Bn([I]),p.qOj],ngContentSelectors:k,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(at,Zt){if(1&at&&(p.F$t(),p.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),p.NdJ("change",function(_t){return Zt._onChangeEvent(_t)})("click",function(_t){return Zt._onInputClick(_t)}),p.qZA(),p.TgZ(5,"span",5),p._UZ(6,"span",6),p.TgZ(7,"span",7),p._UZ(8,"span",8),p.qZA()()(),p.TgZ(9,"span",9,10),p.NdJ("cdkObserveContent",function(){return Zt._onLabelTextChange()}),p.TgZ(11,"span",11),p._uU(12,"\xa0"),p.qZA(),p.Hsn(13),p.qZA()()),2&at){const wt=p.MAs(1),_t=p.MAs(10);p.uIk("for",Zt.inputId),p.xp6(2),p.ekj("mat-slide-toggle-bar-no-side-margin",!_t.textContent||!_t.textContent.trim()),p.xp6(1),p.Q6J("id",Zt.inputId)("required",Zt.required)("tabIndex",Zt.tabIndex)("checked",Zt.checked)("disabled",Zt.disabled),p.uIk("name",Zt.name)("aria-checked",Zt.checked)("aria-label",Zt.ariaLabel)("aria-labelledby",Zt.ariaLabelledby)("aria-describedby",Zt.ariaDescribedby),p.xp6(4),p.Q6J("matRippleTrigger",wt)("matRippleDisabled",Zt.disableRipple||Zt.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",p.VKq(18,w,Zt._noopAnimations?0:150))}},dependencies:[v.wG,d.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),Ht})(),Pt=(()=>{class Ht{}return Ht.\u0275fac=function(at){return new(at||Ht)},Ht.\u0275mod=p.oAB({type:Ht}),Ht.\u0275inj=p.cJS({}),Ht})(),St=(()=>{class Ht{}return Ht.\u0275fac=function(at){return new(at||Ht)},Ht.\u0275mod=p.oAB({type:Ht}),Ht.\u0275inj=p.cJS({imports:[Pt,v.si,v.BQ,d.Q8,Pt,v.BQ]}),Ht})()},17009:(rt,it,b)=>{"use strict";b.d(it,{ZX:()=>Zt,ux:()=>Qt});var d=b(98184),p=b(84080),v=b(36895),T=b(94650),t=b(3238),A=b(4859),x=b(8929),w=b(83353),k=b(72986),D=b(7625),P=b(37340),I=b(12687),z=b(62289);function G(qt,le){if(1&qt){const Wt=T.EpF();T.TgZ(0,"div",2)(1,"button",3),T.NdJ("click",function(){T.CHM(Wt);const Ae=T.oxw();return T.KtG(Ae.action())}),T._uU(2),T.qZA()()}if(2&qt){const Wt=T.oxw();T.xp6(2),T.Oqu(Wt.data.action)}}function W(qt,le){}const ot=new T.OlP("MatSnackBarData");class ct{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const gt=Math.pow(2,31)-1;class Pt{constructor(le,Wt){this._overlayRef=Wt,this._afterDismissed=new x.xQ,this._afterOpened=new x.xQ,this._onAction=new x.xQ,this._dismissedByAction=!1,this.containerInstance=le,le._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(le){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(le,gt))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let St=(()=>{class qt{constructor(Wt,Ce){this.snackBarRef=Wt,this.data=Ce}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return qt.\u0275fac=function(Wt){return new(Wt||qt)(T.Y36(Pt),T.Y36(ot))},qt.\u0275cmp=T.Xpm({type:qt,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(Wt,Ce){1&Wt&&(T.TgZ(0,"span",0),T._uU(1),T.qZA(),T.YNc(2,G,3,1,"div",1)),2&Wt&&(T.xp6(1),T.Oqu(Ce.data.message),T.xp6(1),T.Q6J("ngIf",Ce.hasAction))},dependencies:[v.O5,A.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),qt})();const Ht={snackBarState:(0,P.X$)("state",[(0,P.SB)("void, hidden",(0,P.oB)({transform:"scale(0.8)",opacity:0})),(0,P.SB)("visible",(0,P.oB)({transform:"scale(1)",opacity:1})),(0,P.eR)("* => visible",(0,P.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,P.eR)("* => void, * => hidden",(0,P.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,P.oB)({opacity:0})))])};let Jt=(()=>{class qt extends p.en{constructor(Wt,Ce,Ae,Ne,ze){super(),this._ngZone=Wt,this._elementRef=Ce,this._changeDetectorRef=Ae,this._platform=Ne,this.snackBarConfig=ze,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new x.xQ,this._onExit=new x.xQ,this._onEnter=new x.xQ,this._animationState="void",this.attachDomPortal=Xe=>{this._assertNotAttached();const ie=this._portalOutlet.attachDomPortal(Xe);return this._afterPortalAttached(),ie},this._live="assertive"!==ze.politeness||ze.announcementMessage?"off"===ze.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Wt){this._assertNotAttached();const Ce=this._portalOutlet.attachComponentPortal(Wt);return this._afterPortalAttached(),Ce}attachTemplatePortal(Wt){this._assertNotAttached();const Ce=this._portalOutlet.attachTemplatePortal(Wt);return this._afterPortalAttached(),Ce}onAnimationEnd(Wt){const{fromState:Ce,toState:Ae}=Wt;if(("void"===Ae&&"void"!==Ce||"hidden"===Ae)&&this._completeExit(),"visible"===Ae){const Ne=this._onEnter;this._ngZone.run(()=>{Ne.next(),Ne.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,k.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const Wt=this._elementRef.nativeElement,Ce=this.snackBarConfig.panelClass;Ce&&(Array.isArray(Ce)?Ce.forEach(Ae=>Wt.classList.add(Ae)):Wt.classList.add(Ce))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Wt=this._elementRef.nativeElement.querySelector("[aria-hidden]"),Ce=this._elementRef.nativeElement.querySelector("[aria-live]");if(Wt&&Ce){let Ae=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Wt.contains(document.activeElement)&&(Ae=document.activeElement),Wt.removeAttribute("aria-hidden"),Ce.appendChild(Wt),Ae?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return qt.\u0275fac=function(Wt){return new(Wt||qt)(T.Y36(T.R0b),T.Y36(T.SBq),T.Y36(T.sBO),T.Y36(w.t4),T.Y36(ct))},qt.\u0275dir=T.lG2({type:qt,viewQuery:function(Wt,Ce){if(1&Wt&&T.Gf(p.Pl,7),2&Wt){let Ae;T.iGM(Ae=T.CRH())&&(Ce._portalOutlet=Ae.first)}},features:[T.qOj]}),qt})(),at=(()=>{class qt extends Jt{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return qt.\u0275fac=function(){let le;return function(Ce){return(le||(le=T.n5z(qt)))(Ce||qt)}}(),qt.\u0275cmp=T.Xpm({type:qt,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Wt,Ce){1&Wt&&T.WFA("@state.done",function(Ne){return Ce.onAnimationEnd(Ne)}),2&Wt&&T.d8E("@state",Ce._animationState)},features:[T.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Wt,Ce){1&Wt&&(T.TgZ(0,"div",0),T.YNc(1,W,0,0,"ng-template",1),T.qZA(),T._UZ(2,"div")),2&Wt&&(T.xp6(2),T.uIk("aria-live",Ce._live)("role",Ce._role))},dependencies:[p.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[Ht.snackBarState]}}),qt})(),Zt=(()=>{class qt{}return qt.\u0275fac=function(Wt){return new(Wt||qt)},qt.\u0275mod=T.oAB({type:qt}),qt.\u0275inj=T.cJS({imports:[d.U8,p.eL,v.ez,A.ot,t.BQ,t.BQ]}),qt})();const wt=new T.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function _t(){return new ct}});let Nt=(()=>{class qt{constructor(Wt,Ce,Ae,Ne,ze,Xe){this._overlay=Wt,this._live=Ce,this._injector=Ae,this._breakpointObserver=Ne,this._parentSnackBar=ze,this._defaultConfig=Xe,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const Wt=this._parentSnackBar;return Wt?Wt._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(Wt){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=Wt:this._snackBarRefAtThisLevel=Wt}openFromComponent(Wt,Ce){return this._attach(Wt,Ce)}openFromTemplate(Wt,Ce){return this._attach(Wt,Ce)}open(Wt,Ce="",Ae){const Ne={...this._defaultConfig,...Ae};return Ne.data={message:Wt,action:Ce},Ne.announcementMessage===Wt&&(Ne.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Ne)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Wt,Ce){const Ne=T.zs3.create({parent:Ce&&Ce.viewContainerRef&&Ce.viewContainerRef.injector||this._injector,providers:[{provide:ct,useValue:Ce}]}),ze=new p.C5(this.snackBarContainerComponent,Ce.viewContainerRef,Ne),Xe=Wt.attach(ze);return Xe.instance.snackBarConfig=Ce,Xe.instance}_attach(Wt,Ce){const Ae={...new ct,...this._defaultConfig,...Ce},Ne=this._createOverlay(Ae),ze=this._attachSnackBarContainer(Ne,Ae),Xe=new Pt(ze,Ne);if(Wt instanceof T.Rgc){const ie=new p.UE(Wt,null,{$implicit:Ae.data,snackBarRef:Xe});Xe.instance=ze.attachTemplatePortal(ie)}else{const ie=this._createInjector(Ae,Xe),Te=new p.C5(Wt,void 0,ie),re=ze.attachComponentPortal(Te);Xe.instance=re.instance}return this._breakpointObserver.observe(z.u3.HandsetPortrait).pipe((0,D.R)(Ne.detachments())).subscribe(ie=>{Ne.overlayElement.classList.toggle(this.handsetCssClass,ie.matches)}),Ae.announcementMessage&&ze._onAnnounce.subscribe(()=>{this._live.announce(Ae.announcementMessage,Ae.politeness)}),this._animateSnackBar(Xe,Ae),this._openedSnackBarRef=Xe,this._openedSnackBarRef}_animateSnackBar(Wt,Ce){Wt.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Wt&&(this._openedSnackBarRef=null),Ce.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Wt.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Wt.containerInstance.enter(),Ce.duration&&Ce.duration>0&&Wt.afterOpened().subscribe(()=>Wt._dismissAfter(Ce.duration))}_createOverlay(Wt){const Ce=new d.X_;Ce.direction=Wt.direction;let Ae=this._overlay.position().global();const Ne="rtl"===Wt.direction,ze="left"===Wt.horizontalPosition||"start"===Wt.horizontalPosition&&!Ne||"end"===Wt.horizontalPosition&&Ne,Xe=!ze&&"center"!==Wt.horizontalPosition;return ze?Ae.left("0"):Xe?Ae.right("0"):Ae.centerHorizontally(),"top"===Wt.verticalPosition?Ae.top("0"):Ae.bottom("0"),Ce.positionStrategy=Ae,this._overlay.create(Ce)}_createInjector(Wt,Ce){return T.zs3.create({parent:Wt&&Wt.viewContainerRef&&Wt.viewContainerRef.injector||this._injector,providers:[{provide:Pt,useValue:Ce},{provide:ot,useValue:Wt.data}]})}}return qt.\u0275fac=function(Wt){return new(Wt||qt)(T.LFG(d.aV),T.LFG(I.Kd),T.LFG(T.zs3),T.LFG(z.Yg),T.LFG(qt,12),T.LFG(wt))},qt.\u0275prov=T.Yz7({token:qt,factory:qt.\u0275fac}),qt})(),Qt=(()=>{class qt extends Nt{constructor(Wt,Ce,Ae,Ne,ze,Xe){super(Wt,Ce,Ae,Ne,ze,Xe),this.simpleSnackBarComponent=St,this.snackBarContainerComponent=at,this.handsetCssClass="mat-snack-bar-handset"}}return qt.\u0275fac=function(Wt){return new(Wt||qt)(T.LFG(d.aV),T.LFG(I.Kd),T.LFG(T.zs3),T.LFG(z.Yg),T.LFG(qt,12),T.LFG(wt))},qt.\u0275prov=T.Yz7({token:qt,factory:qt.\u0275fac,providedIn:Zt}),qt})()},96308:(rt,it,b)=>{"use strict";b.d(it,{JX:()=>Qt,YE:()=>Pt,nU:()=>Nt});var d=b(94650),p=b(12687),v=b(21281),T=b(29521),t=b(3238),A=b(8929),x=b(36787),w=b(37340),k=b(36895);const D=["mat-sort-header",""];function P(qt,le){if(1&qt){const Wt=d.EpF();d.TgZ(0,"div",3),d.NdJ("@arrowPosition.start",function(){d.CHM(Wt);const Ae=d.oxw();return d.KtG(Ae._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){d.CHM(Wt);const Ae=d.oxw();return d.KtG(Ae._disableViewStateAnimation=!1)}),d._UZ(1,"div",4),d.TgZ(2,"div",5),d._UZ(3,"div",6)(4,"div",7)(5,"div",8),d.qZA()()}if(2&qt){const Wt=d.oxw();d.Q6J("@arrowOpacity",Wt._getArrowViewState())("@arrowPosition",Wt._getArrowViewState())("@allowChildren",Wt._getArrowDirectionState()),d.xp6(2),d.Q6J("@indicator",Wt._getArrowDirectionState()),d.xp6(1),d.Q6J("@leftPointer",Wt._getArrowDirectionState()),d.xp6(1),d.Q6J("@rightPointer",Wt._getArrowDirectionState())}}const I=["*"],ct=new d.OlP("MAT_SORT_DEFAULT_OPTIONS"),gt=(0,t.dB)((0,t.Id)(class{}));let Pt=(()=>{class qt extends gt{constructor(Wt){super(),this._defaultOptions=Wt,this.sortables=new Map,this._stateChanges=new A.xQ,this.start="asc",this._direction="",this.sortChange=new d.vpe}get direction(){return this._direction}set direction(Wt){this._direction=Wt}get disableClear(){return this._disableClear}set disableClear(Wt){this._disableClear=(0,v.Ig)(Wt)}register(Wt){this.sortables.set(Wt.id,Wt)}deregister(Wt){this.sortables.delete(Wt.id)}sort(Wt){this.active!=Wt.id?(this.active=Wt.id,this.direction=Wt.start?Wt.start:this.start):this.direction=this.getNextSortDirection(Wt),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(Wt){if(!Wt)return"";let Ae=function St(qt,le){let Wt=["asc","desc"];return"desc"==qt&&Wt.reverse(),le||Wt.push(""),Wt}(Wt.start||this.start,Wt?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Ne=Ae.indexOf(this.direction)+1;return Ne>=Ae.length&&(Ne=0),Ae[Ne]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return qt.\u0275fac=function(Wt){return new(Wt||qt)(d.Y36(ct,8))},qt.\u0275dir=d.lG2({type:qt,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[d.qOj,d.TTD]}),qt})();const Ht=t.mZ.ENTERING+" "+t.yN.STANDARD_CURVE,Jt={indicator:(0,w.X$)("indicator",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"translateY(0px)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"translateY(10px)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(Ht))]),leftPointer:(0,w.X$)("leftPointer",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"rotate(-45deg)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"rotate(45deg)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(Ht))]),rightPointer:(0,w.X$)("rightPointer",[(0,w.SB)("active-asc, asc",(0,w.oB)({transform:"rotate(45deg)"})),(0,w.SB)("active-desc, desc",(0,w.oB)({transform:"rotate(-45deg)"})),(0,w.eR)("active-asc <=> active-desc",(0,w.jt)(Ht))]),arrowOpacity:(0,w.X$)("arrowOpacity",[(0,w.SB)("desc-to-active, asc-to-active, active",(0,w.oB)({opacity:1})),(0,w.SB)("desc-to-hint, asc-to-hint, hint",(0,w.oB)({opacity:.54})),(0,w.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,w.oB)({opacity:0})),(0,w.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,w.jt)("0ms")),(0,w.eR)("* <=> *",(0,w.jt)(Ht))]),arrowPosition:(0,w.X$)("arrowPosition",[(0,w.eR)("* => desc-to-hint, * => desc-to-active",(0,w.jt)(Ht,(0,w.F4)([(0,w.oB)({transform:"translateY(-25%)"}),(0,w.oB)({transform:"translateY(0)"})]))),(0,w.eR)("* => hint-to-desc, * => active-to-desc",(0,w.jt)(Ht,(0,w.F4)([(0,w.oB)({transform:"translateY(0)"}),(0,w.oB)({transform:"translateY(25%)"})]))),(0,w.eR)("* => asc-to-hint, * => asc-to-active",(0,w.jt)(Ht,(0,w.F4)([(0,w.oB)({transform:"translateY(25%)"}),(0,w.oB)({transform:"translateY(0)"})]))),(0,w.eR)("* => hint-to-asc, * => active-to-asc",(0,w.jt)(Ht,(0,w.F4)([(0,w.oB)({transform:"translateY(0)"}),(0,w.oB)({transform:"translateY(-25%)"})]))),(0,w.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,w.oB)({transform:"translateY(0)"})),(0,w.SB)("hint-to-desc, active-to-desc, desc",(0,w.oB)({transform:"translateY(-25%)"})),(0,w.SB)("hint-to-asc, active-to-asc, asc",(0,w.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,w.X$)("allowChildren",[(0,w.eR)("* <=> *",[(0,w.IO)("@*",(0,w.pV)(),{optional:!0})])])};let at=(()=>{class qt{constructor(){this.changes=new A.xQ}}return qt.\u0275fac=function(Wt){return new(Wt||qt)},qt.\u0275prov=d.Yz7({token:qt,factory:qt.\u0275fac,providedIn:"root"}),qt})();const wt={provide:at,deps:[[new d.FiY,new d.tp0,at]],useFactory:function Zt(qt){return qt||new at}},_t=(0,t.Id)(class{});let Nt=(()=>{class qt extends _t{constructor(Wt,Ce,Ae,Ne,ze,Xe,ie,Te){super(),this._intl=Wt,this._changeDetectorRef=Ce,this._sort=Ae,this._columnDef=Ne,this._focusMonitor=ze,this._elementRef=Xe,this._ariaDescriber=ie,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",Te?.arrowPosition&&(this.arrowPosition=Te?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(Wt){this._updateSortActionDescription(Wt)}get disableClear(){return this._disableClear}set disableClear(Wt){this._disableClear=(0,v.Ig)(Wt)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Wt=>{const Ce=!!Wt;Ce!==this._showIndicatorHint&&(this._setIndicatorHintVisible(Ce),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(Wt){this._isDisabled()&&Wt||(this._showIndicatorHint=Wt,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(Wt){this._viewState=Wt||{},this._disableViewStateAnimation&&(this._viewState={toState:Wt.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(Wt){!this._isDisabled()&&(Wt.keyCode===T.L_||Wt.keyCode===T.K5)&&(Wt.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const Wt=this._viewState.fromState;return(Wt?`${Wt}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(Wt){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,Wt)),this._sortActionDescription=Wt}_handleStateChanges(){this._rerenderSubscription=(0,x.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return qt.\u0275fac=function(Wt){return new(Wt||qt)(d.Y36(at),d.Y36(d.sBO),d.Y36(Pt,8),d.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),d.Y36(p.tE),d.Y36(d.SBq),d.Y36(p.$s,8),d.Y36(ct,8))},qt.\u0275cmp=d.Xpm({type:qt,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Wt,Ce){1&Wt&&d.NdJ("click",function(){return Ce._handleClick()})("keydown",function(Ne){return Ce._handleKeydown(Ne)})("mouseenter",function(){return Ce._setIndicatorHintVisible(!0)})("mouseleave",function(){return Ce._setIndicatorHintVisible(!1)}),2&Wt&&(d.uIk("aria-sort",Ce._getAriaSortAttribute()),d.ekj("mat-sort-header-disabled",Ce._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[d.qOj],attrs:D,ngContentSelectors:I,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(Wt,Ce){1&Wt&&(d.F$t(),d.TgZ(0,"div",0)(1,"div",1),d.Hsn(2),d.qZA(),d.YNc(3,P,6,6,"div",2),d.qZA()),2&Wt&&(d.ekj("mat-sort-header-sorted",Ce._isSorted())("mat-sort-header-position-before","before"===Ce.arrowPosition),d.uIk("tabindex",Ce._isDisabled()?null:0)("role",Ce._isDisabled()?null:"button"),d.xp6(3),d.Q6J("ngIf",Ce._renderArrow()))},dependencies:[k.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Jt.indicator,Jt.leftPointer,Jt.rightPointer,Jt.arrowOpacity,Jt.arrowPosition,Jt.allowChildren]},changeDetection:0}),qt})(),Qt=(()=>{class qt{}return qt.\u0275fac=function(Wt){return new(Wt||qt)},qt.\u0275mod=d.oAB({type:qt}),qt.\u0275inj=d.cJS({providers:[wt],imports:[k.ez,t.BQ]}),qt})()},58425:(rt,it,b)=>{"use strict";b.d(it,{C0:()=>ri,Ic:()=>Ft,T5:()=>xt,VY:()=>ue,Vq:()=>Ee,fd:()=>vt,z9:()=>dn});var d=b(84080),p=b(12138),v=b(36895),T=b(94650),t=b(4859),A=b(3238),x=b(97392),w=b(12687),k=b(8929),D=b(42654),P=b(40445),I=b(87545),z=b(24850),G=b(1059),W=b(7625),ot=b(75778),ct=b(37340);function gt(tt,et){if(1&tt&&T.GkF(0,8),2&tt){const Ct=T.oxw();T.Q6J("ngTemplateOutlet",Ct.iconOverrides[Ct.state])("ngTemplateOutletContext",Ct._getIconContext())}}function Pt(tt,et){if(1&tt&&(T.TgZ(0,"span",13),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw(2);T.xp6(1),T.Oqu(Ct._getDefaultTextForState(Ct.state))}}function St(tt,et){if(1&tt&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw(2);T.xp6(1),T.Oqu(Ct._intl.completedLabel)}}function Ht(tt,et){if(1&tt&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw(2);T.xp6(1),T.Oqu(Ct._intl.editableLabel)}}function Jt(tt,et){if(1&tt&&(T.TgZ(0,"mat-icon",13),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw(2);T.xp6(1),T.Oqu(Ct._getDefaultTextForState(Ct.state))}}function at(tt,et){if(1&tt&&(T.ynx(0,9),T.YNc(1,Pt,2,1,"span",10),T.YNc(2,St,2,1,"span",11),T.YNc(3,Ht,2,1,"span",11),T.YNc(4,Jt,2,1,"mat-icon",12),T.BQk()),2&tt){const Ct=T.oxw();T.Q6J("ngSwitch",Ct.state),T.xp6(1),T.Q6J("ngSwitchCase","number"),T.xp6(1),T.Q6J("ngIf","done"===Ct.state),T.xp6(1),T.Q6J("ngIf","edit"===Ct.state)}}function Zt(tt,et){if(1&tt&&(T.TgZ(0,"div",15),T.GkF(1,16),T.qZA()),2&tt){const Ct=T.oxw();T.xp6(1),T.Q6J("ngTemplateOutlet",Ct._templateLabel().template)}}function wt(tt,et){if(1&tt&&(T.TgZ(0,"div",15),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw();T.xp6(1),T.Oqu(Ct.label)}}function _t(tt,et){if(1&tt&&(T.TgZ(0,"div",17),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw();T.xp6(1),T.Oqu(Ct._intl.optionalLabel)}}function Nt(tt,et){if(1&tt&&(T.TgZ(0,"div",18),T._uU(1),T.qZA()),2&tt){const Ct=T.oxw();T.xp6(1),T.Oqu(Ct.errorMessage)}}function Qt(tt,et){}function qt(tt,et){if(1&tt&&(T.Hsn(0),T.YNc(1,Qt,0,0,"ng-template",0)),2&tt){const Ct=T.oxw();T.xp6(1),T.Q6J("cdkPortalOutlet",Ct._portal)}}const le=["*"];function Wt(tt,et){1&tt&&T._UZ(0,"div",11)}const Ce=function(tt,et){return{step:tt,i:et}};function Ae(tt,et){if(1&tt&&(T.ynx(0),T.GkF(1,9),T.YNc(2,Wt,1,0,"div",10),T.BQk()),2&tt){const Ct=et.$implicit,Bt=et.index,ne=et.last;T.oxw(2);const he=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",he)("ngTemplateOutletContext",T.WLB(3,Ce,Ct,Bt)),T.xp6(1),T.Q6J("ngIf",!ne)}}const Ne=function(tt){return{animationDuration:tt}},ze=function(tt,et){return{value:tt,params:et}};function Xe(tt,et){if(1&tt){const Ct=T.EpF();T.TgZ(0,"div",12),T.NdJ("@horizontalStepTransition.done",function(ne){T.CHM(Ct);const he=T.oxw(2);return T.KtG(he._animationDone.next(ne))}),T.GkF(1,13),T.qZA()}if(2&tt){const Ct=et.$implicit,Bt=et.index,ne=T.oxw(2);T.ekj("mat-horizontal-stepper-content-inactive",ne.selectedIndex!==Bt),T.Q6J("@horizontalStepTransition",T.WLB(8,ze,ne._getAnimationDirection(Bt),T.VKq(6,Ne,ne._getAnimationDuration())))("id",ne._getStepContentId(Bt)),T.uIk("aria-labelledby",ne._getStepLabelId(Bt)),T.xp6(1),T.Q6J("ngTemplateOutlet",Ct.content)}}function ie(tt,et){if(1&tt&&(T.TgZ(0,"div",4)(1,"div",5),T.YNc(2,Ae,3,6,"ng-container",6),T.qZA(),T.TgZ(3,"div",7),T.YNc(4,Xe,2,11,"div",8),T.qZA()()),2&tt){const Ct=T.oxw();T.xp6(2),T.Q6J("ngForOf",Ct.steps),T.xp6(2),T.Q6J("ngForOf",Ct.steps)}}function Te(tt,et){if(1&tt){const Ct=T.EpF();T.TgZ(0,"div",15),T.GkF(1,9),T.TgZ(2,"div",16)(3,"div",17),T.NdJ("@verticalStepTransition.done",function(ne){T.CHM(Ct);const he=T.oxw(2);return T.KtG(he._animationDone.next(ne))}),T.TgZ(4,"div",18),T.GkF(5,13),T.qZA()()()()}if(2&tt){const Ct=et.$implicit,Bt=et.index,ne=et.last,he=T.oxw(2),Oe=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",Oe)("ngTemplateOutletContext",T.WLB(10,Ce,Ct,Bt)),T.xp6(1),T.ekj("mat-stepper-vertical-line",!ne),T.xp6(1),T.ekj("mat-vertical-stepper-content-inactive",he.selectedIndex!==Bt),T.Q6J("@verticalStepTransition",T.WLB(15,ze,he._getAnimationDirection(Bt),T.VKq(13,Ne,he._getAnimationDuration())))("id",he._getStepContentId(Bt)),T.uIk("aria-labelledby",he._getStepLabelId(Bt)),T.xp6(2),T.Q6J("ngTemplateOutlet",Ct.content)}}function re(tt,et){if(1&tt&&(T.ynx(0),T.YNc(1,Te,6,18,"div",14),T.BQk()),2&tt){const Ct=T.oxw();T.xp6(1),T.Q6J("ngForOf",Ct.steps)}}function ee(tt,et){if(1&tt){const Ct=T.EpF();T.TgZ(0,"mat-step-header",19),T.NdJ("click",function(){const he=T.CHM(Ct).step;return T.KtG(he.select())})("keydown",function(ne){T.CHM(Ct);const he=T.oxw();return T.KtG(he._onKeydown(ne))}),T.qZA()}if(2&tt){const Ct=et.step,Bt=et.i,ne=T.oxw();T.ekj("mat-horizontal-stepper-header","horizontal"===ne.orientation)("mat-vertical-stepper-header","vertical"===ne.orientation),T.Q6J("tabIndex",ne._getFocusIndex()===Bt?0:-1)("id",ne._getStepLabelId(Bt))("index",Bt)("state",ne._getIndicatorType(Bt,Ct.state))("label",Ct.stepLabel||Ct.label)("selected",ne.selectedIndex===Bt)("active",ne._stepIsNavigable(Bt,Ct))("optional",Ct.optional)("errorMessage",Ct.errorMessage)("iconOverrides",ne._iconOverrides)("disableRipple",ne.disableRipple||!ne._stepIsNavigable(Bt,Ct))("color",Ct.color||ne.color),T.uIk("aria-posinset",Bt+1)("aria-setsize",ne.steps.length)("aria-controls",ne._getStepContentId(Bt))("aria-selected",ne.selectedIndex==Bt)("aria-label",Ct.ariaLabel||null)("aria-labelledby",!Ct.ariaLabel&&Ct.ariaLabelledby?Ct.ariaLabelledby:null)("aria-disabled",!ne._stepIsNavigable(Bt,Ct)||null)}}let ue=(()=>{class tt extends p.u6{}return tt.\u0275fac=function(){let et;return function(Bt){return(et||(et=T.n5z(tt)))(Bt||tt)}}(),tt.\u0275dir=T.lG2({type:tt,selectors:[["","matStepLabel",""]],features:[T.qOj]}),tt})(),Kt=(()=>{class tt{constructor(){this.changes=new k.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return tt.\u0275fac=function(Ct){return new(Ct||tt)},tt.\u0275prov=T.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})();const Le={provide:Kt,deps:[[new T.FiY,new T.tp0,Kt]],useFactory:function ce(tt){return tt||new Kt}},on=(0,A.pj)(class extends p.KL{constructor(et){super(et)}},"primary");let hn=(()=>{class tt extends on{constructor(Ct,Bt,ne,he){super(ne),this._intl=Ct,this._focusMonitor=Bt,this._intlSubscription=Ct.changes.subscribe(()=>he.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(Ct,Bt){Ct?this._focusMonitor.focusVia(this._elementRef,Ct,Bt):this._elementRef.nativeElement.focus(Bt)}_stringLabel(){return this.label instanceof ue?null:this.label}_templateLabel(){return this.label instanceof ue?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(Ct){return"number"==Ct?`${this.index+1}`:"edit"==Ct?"create":"error"==Ct?"warning":Ct}}return tt.\u0275fac=function(Ct){return new(Ct||tt)(T.Y36(Kt),T.Y36(w.tE),T.Y36(T.SBq),T.Y36(T.sBO))},tt.\u0275cmp=T.Xpm({type:tt,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[T.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(Ct,Bt){1&Ct&&(T._UZ(0,"div",0),T.TgZ(1,"div")(2,"div",1),T.YNc(3,gt,1,2,"ng-container",2),T.YNc(4,at,5,4,"ng-container",3),T.qZA()(),T.TgZ(5,"div",4),T.YNc(6,Zt,2,1,"div",5),T.YNc(7,wt,2,1,"div",5),T.YNc(8,_t,2,1,"div",6),T.YNc(9,Nt,2,1,"div",7),T.qZA()),2&Ct&&(T.Q6J("matRippleTrigger",Bt._getHostElement())("matRippleDisabled",Bt.disableRipple),T.xp6(1),T.Gre("mat-step-icon-state-",Bt.state," mat-step-icon"),T.ekj("mat-step-icon-selected",Bt.selected),T.xp6(1),T.Q6J("ngSwitch",!(!Bt.iconOverrides||!Bt.iconOverrides[Bt.state])),T.xp6(1),T.Q6J("ngSwitchCase",!0),T.xp6(2),T.ekj("mat-step-label-active",Bt.active)("mat-step-label-selected",Bt.selected)("mat-step-label-error","error"==Bt.state),T.xp6(1),T.Q6J("ngIf",Bt._templateLabel()),T.xp6(1),T.Q6J("ngIf",Bt._stringLabel()),T.xp6(1),T.Q6J("ngIf",Bt.optional&&"error"!=Bt.state),T.xp6(1),T.Q6J("ngIf","error"==Bt.state))},dependencies:[v.O5,v.tP,v.RF,v.n9,v.ED,x.Hw,A.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),tt})();const Ze={horizontalStepTransition:(0,ct.X$)("horizontalStepTransition",[(0,ct.SB)("previous",(0,ct.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,ct.SB)("current",(0,ct.oB)({transform:"none",visibility:"inherit"})),(0,ct.SB)("next",(0,ct.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,ct.eR)("* => *",(0,ct.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,ct.X$)("verticalStepTransition",[(0,ct.SB)("previous",(0,ct.oB)({height:"0px",visibility:"hidden"})),(0,ct.SB)("next",(0,ct.oB)({height:"0px",visibility:"hidden"})),(0,ct.SB)("current",(0,ct.oB)({height:"*",visibility:"inherit"})),(0,ct.eR)("* <=> current",(0,ct.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let dn=(()=>{class tt{constructor(Ct){this.templateRef=Ct}}return tt.\u0275fac=function(Ct){return new(Ct||tt)(T.Y36(T.Rgc))},tt.\u0275dir=T.lG2({type:tt,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),tt})(),kn=(()=>{class tt{constructor(Ct){this._template=Ct}}return tt.\u0275fac=function(Ct){return new(Ct||tt)(T.Y36(T.Rgc))},tt.\u0275dir=T.lG2({type:tt,selectors:[["ng-template","matStepContent",""]]}),tt})(),ri=(()=>{class tt extends p.be{constructor(Ct,Bt,ne,he){super(Ct,he),this._errorStateMatcher=Bt,this._viewContainerRef=ne,this._isSelected=D.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,I.w)(()=>this._stepper.selectionChange.pipe((0,z.U)(Ct=>Ct.selectedStep===this),(0,G.O)(this._stepper.selected===this)))).subscribe(Ct=>{Ct&&this._lazyContent&&!this._portal&&(this._portal=new d.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(Ct,Bt){return this._errorStateMatcher.isErrorState(Ct,Bt)||!!(Ct&&Ct.invalid&&this.interacted)}}return tt.\u0275fac=function(Ct){return new(Ct||tt)(T.Y36((0,T.Gpc)(()=>Ee)),T.Y36(A.rD,4),T.Y36(T.s_b),T.Y36(p.gx,8))},tt.\u0275cmp=T.Xpm({type:tt,selectors:[["mat-step"]],contentQueries:function(Ct,Bt,ne){if(1&Ct&&(T.Suo(ne,ue,5),T.Suo(ne,kn,5)),2&Ct){let he;T.iGM(he=T.CRH())&&(Bt.stepLabel=he.first),T.iGM(he=T.CRH())&&(Bt._lazyContent=he.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[T._Bn([{provide:A.rD,useExisting:tt},{provide:p.be,useExisting:tt}]),T.qOj],ngContentSelectors:le,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(Ct,Bt){1&Ct&&(T.F$t(),T.YNc(0,qt,2,1,"ng-template"))},dependencies:[d.Pl],encapsulation:2,changeDetection:0}),tt})(),Ee=(()=>{class tt extends p.B8{constructor(Ct,Bt,ne){super(Ct,Bt,ne),this.steps=new T.n_E,this.animationDone=new T.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new k.xQ,this._animationDuration="";const he=ne.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===he?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(Ct){this._animationDuration=/^\d+$/.test(Ct)?Ct+"ms":Ct}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:Ct,templateRef:Bt})=>this._iconOverrides[Ct]=Bt),this.steps.changes.pipe((0,W.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,ot.x)((Ct,Bt)=>Ct.fromState===Bt.fromState&&Ct.toState===Bt.toState),(0,W.R)(this._destroyed)).subscribe(Ct=>{"current"===Ct.toState&&this.animationDone.emit()})}_stepIsNavigable(Ct,Bt){return Bt.completed||this.selectedIndex===Ct||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return tt.\u0275fac=function(Ct){return new(Ct||tt)(T.Y36(P.Is,8),T.Y36(T.sBO),T.Y36(T.SBq))},tt.\u0275cmp=T.Xpm({type:tt,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(Ct,Bt,ne){if(1&Ct&&(T.Suo(ne,ri,5),T.Suo(ne,dn,5)),2&Ct){let he;T.iGM(he=T.CRH())&&(Bt._steps=he),T.iGM(he=T.CRH())&&(Bt._icons=he)}},viewQuery:function(Ct,Bt){if(1&Ct&&T.Gf(hn,5),2&Ct){let ne;T.iGM(ne=T.CRH())&&(Bt._stepHeader=ne)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(Ct,Bt){2&Ct&&(T.uIk("aria-orientation",Bt.orientation),T.ekj("mat-stepper-horizontal","horizontal"===Bt.orientation)("mat-stepper-vertical","vertical"===Bt.orientation)("mat-stepper-label-position-end","horizontal"===Bt.orientation&&"end"==Bt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Bt.orientation&&"bottom"==Bt.labelPosition)("mat-stepper-header-position-bottom","bottom"===Bt.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[T._Bn([{provide:p.B8,useExisting:tt}]),T.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(Ct,Bt){1&Ct&&(T.ynx(0,0),T.YNc(1,ie,5,2,"div",1),T.YNc(2,re,2,1,"ng-container",2),T.BQk(),T.YNc(3,ee,1,23,"ng-template",null,3,T.W1O)),2&Ct&&(T.Q6J("ngSwitch",Bt.orientation),T.xp6(1),T.Q6J("ngSwitchCase","horizontal"),T.xp6(1),T.Q6J("ngSwitchCase","vertical"))},dependencies:[v.sg,v.O5,v.tP,v.RF,v.n9,hn],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Ze.horizontalStepTransition,Ze.verticalStepTransition]},changeDetection:0}),tt})(),Ft=(()=>{class tt extends p.st{}return tt.\u0275fac=function(){let et;return function(Bt){return(et||(et=T.n5z(tt)))(Bt||tt)}}(),tt.\u0275dir=T.lG2({type:tt,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(Ct,Bt){2&Ct&&T.Ikx("type",Bt.type)},inputs:{type:"type"},features:[T.qOj]}),tt})(),vt=(()=>{class tt extends p.po{}return tt.\u0275fac=function(){let et;return function(Bt){return(et||(et=T.n5z(tt)))(Bt||tt)}}(),tt.\u0275dir=T.lG2({type:tt,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(Ct,Bt){2&Ct&&T.Ikx("type",Bt.type)},inputs:{type:"type"},features:[T.qOj]}),tt})(),xt=(()=>{class tt{}return tt.\u0275fac=function(Ct){return new(Ct||tt)},tt.\u0275mod=T.oAB({type:tt}),tt.\u0275inj=T.cJS({providers:[Le,A.rD],imports:[A.BQ,v.ez,d.eL,t.ot,p.U5,x.Ps,A.si,A.BQ]}),tt})()},30671:(rt,it,b)=>{"use strict";b.d(it,{ev:()=>Fn,Dz:()=>Me,w1:()=>Zn,yh:()=>Be,mD:()=>He,Q2:()=>wn,Ke:()=>go,ge:()=>ve,fO:()=>en,XQ:()=>fn,as:()=>bi,Gk:()=>ln,nj:()=>_o,BZ:()=>It,by:()=>fr,p0:()=>No});var d=b(94650),p=b(40445),v=b(21281),T=b(95017),t=b(83353),A=b(67376),x=b(36895),w=b(8929),k=b(5254),D=b(591),P=b(54715),I=b(21086),z=b(7625),G=b(72986);const W=[[["caption"]],[["colgroup"],["col"]]],ot=["caption","colgroup, col"];function Pt($e){return class extends $e{constructor(...Nn){super(...Nn),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Nn){const Ye=this._sticky;this._sticky=(0,v.Ig)(Nn),this._hasStickyChanged=Ye!==this._sticky}hasStickyChanged(){const Nn=this._hasStickyChanged;return this._hasStickyChanged=!1,Nn}resetStickyChanged(){this._hasStickyChanged=!1}}}const St=new d.OlP("CDK_TABLE");let Jt=(()=>{class $e{constructor(Ye){this.template=Ye}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkCellDef",""]]}),$e})(),at=(()=>{class $e{constructor(Ye){this.template=Ye}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkHeaderCellDef",""]]}),$e})(),Zt=(()=>{class $e{constructor(Ye){this.template=Ye}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkFooterCellDef",""]]}),$e})();class wt{}const _t=Pt(wt);let Nt=(()=>{class $e extends _t{constructor(Ye){super(),this._table=Ye,this._stickyEnd=!1}get name(){return this._name}set name(Ye){this._setNameInput(Ye)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Ye){const Pe=this._stickyEnd;this._stickyEnd=(0,v.Ig)(Ye),this._hasStickyChanged=Pe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Ye){Ye&&(this._name=Ye,this.cssClassFriendlyName=Ye.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(St,8))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkColumnDef",""]],contentQueries:function(Ye,Pe,mn){if(1&Ye&&(d.Suo(mn,Jt,5),d.Suo(mn,at,5),d.Suo(mn,Zt,5)),2&Ye){let nt;d.iGM(nt=d.CRH())&&(Pe.cell=nt.first),d.iGM(nt=d.CRH())&&(Pe.headerCell=nt.first),d.iGM(nt=d.CRH())&&(Pe.footerCell=nt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[d._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:$e}]),d.qOj]}),$e})();class Qt{constructor(Nn,Ye){Ye.nativeElement.classList.add(...Nn._columnCssClassName)}}let qt=(()=>{class $e extends Qt{constructor(Ye,Pe){super(Ye,Pe)}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(Nt),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[d.qOj]}),$e})(),le=(()=>{class $e extends Qt{constructor(Ye,Pe){if(super(Ye,Pe),1===Ye._table?._elementRef.nativeElement.nodeType){const mn=Ye._table._elementRef.nativeElement.getAttribute("role");Pe.nativeElement.setAttribute("role","grid"===mn||"treegrid"===mn?"gridcell":"cell")}}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(Nt),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[d.qOj]}),$e})(),Wt=(()=>{class $e extends Qt{constructor(Ye,Pe){if(super(Ye,Pe),1===Ye._table?._elementRef.nativeElement.nodeType){const mn=Ye._table._elementRef.nativeElement.getAttribute("role");Pe.nativeElement.setAttribute("role","grid"===mn||"treegrid"===mn?"gridcell":"cell")}}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(Nt),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[d.qOj]}),$e})();class Ce{constructor(){this.tasks=[],this.endTasks=[]}}const Ae=new d.OlP("_COALESCED_STYLE_SCHEDULER");let Ne=(()=>{class $e{constructor(Ye){this._ngZone=Ye,this._currentSchedule=null,this._destroyed=new w.xQ}schedule(Ye){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Ye)}scheduleEnd(Ye){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Ye)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Ce,this._getScheduleObservable().pipe((0,z.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Ye=this._currentSchedule;this._currentSchedule=new Ce;for(const Pe of Ye.tasks)Pe();for(const Pe of Ye.endTasks)Pe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,k.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,G.q)(1))}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.LFG(d.R0b))},$e.\u0275prov=d.Yz7({token:$e,factory:$e.\u0275fac}),$e})(),Xe=(()=>{class $e{constructor(Ye,Pe){this.template=Ye,this._differs=Pe}ngOnChanges(Ye){if(!this._columnsDiffer){const Pe=Ye.columns&&Ye.columns.currentValue||[];this._columnsDiffer=this._differs.find(Pe).create(),this._columnsDiffer.diff(Pe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Ye){return this instanceof re?Ye.headerCell.template:this instanceof Kt?Ye.footerCell.template:Ye.cell.template}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc),d.Y36(d.ZZ4))},$e.\u0275dir=d.lG2({type:$e,features:[d.TTD]}),$e})();class ie extends Xe{}const Te=Pt(ie);let re=(()=>{class $e extends Te{constructor(Ye,Pe,mn){super(Ye,Pe),this._table=mn}ngOnChanges(Ye){super.ngOnChanges(Ye)}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(St,8))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),$e})();class ee extends Xe{}const ue=Pt(ee);let Kt=(()=>{class $e extends ue{constructor(Ye,Pe,mn){super(Ye,Pe),this._table=mn}ngOnChanges(Ye){super.ngOnChanges(Ye)}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(St,8))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),$e})(),ce=(()=>{class $e extends Xe{constructor(Ye,Pe,mn){super(Ye,Pe),this._table=mn}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(St,8))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[d.qOj]}),$e})(),Le=(()=>{class $e{constructor(Ye){this._viewContainer=Ye,$e.mostRecentCellOutlet=this}ngOnDestroy(){$e.mostRecentCellOutlet===this&&($e.mostRecentCellOutlet=null)}}return $e.mostRecentCellOutlet=null,$e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.s_b))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","cdkCellOutlet",""]]}),$e})(),on=(()=>{class $e{}return $e.\u0275fac=function(Ye){return new(Ye||$e)},$e.\u0275cmp=d.Xpm({type:$e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Pe){1&Ye&&d.GkF(0,0)},dependencies:[Le],encapsulation:2}),$e})(),hn=(()=>{class $e{}return $e.\u0275fac=function(Ye){return new(Ye||$e)},$e.\u0275cmp=d.Xpm({type:$e,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Pe){1&Ye&&d.GkF(0,0)},dependencies:[Le],encapsulation:2}),$e})(),we=(()=>{class $e{}return $e.\u0275fac=function(Ye){return new(Ye||$e)},$e.\u0275cmp=d.Xpm({type:$e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Pe){1&Ye&&d.GkF(0,0)},dependencies:[Le],encapsulation:2}),$e})(),bn=(()=>{class $e{constructor(Ye){this.templateRef=Ye,this._contentClassName="cdk-no-data-row"}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.Rgc))},$e.\u0275dir=d.lG2({type:$e,selectors:[["ng-template","cdkNoDataRow",""]]}),$e})();const Ze=["top","bottom","left","right"];class dn{constructor(Nn,Ye,Pe,mn,nt=!0,Vt=!0,Q){this._isNativeHtmlTable=Nn,this._stickCellCss=Ye,this.direction=Pe,this._coalescedStyleScheduler=mn,this._isBrowser=nt,this._needsPositionStickyOnElement=Vt,this._positionListener=Q,this._cachedCellWidths=[],this._borderCellCss={top:`${Ye}-border-elem-top`,bottom:`${Ye}-border-elem-bottom`,left:`${Ye}-border-elem-left`,right:`${Ye}-border-elem-right`}}clearStickyPositioning(Nn,Ye){const Pe=[];for(const mn of Nn)if(mn.nodeType===mn.ELEMENT_NODE){Pe.push(mn);for(let nt=0;nt{for(const mn of Pe)this._removeStickyStyle(mn,Ye)})}updateStickyColumns(Nn,Ye,Pe,mn=!0){if(!Nn.length||!this._isBrowser||!Ye.some(Co=>Co)&&!Pe.some(Co=>Co))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const nt=Nn[0],Vt=nt.children.length,Q=this._getCellWidths(nt,mn),zt=this._getStickyStartColumnPositions(Q,Ye),Je=this._getStickyEndColumnPositions(Q,Pe),zn=Ye.lastIndexOf(!0),Gi=Pe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Co="rtl"===this.direction,gr=Co?"right":"left",br=Co?"left":"right";for(const cs of Nn)for(let or=0;orYe[or]?cs:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Gi?[]:Q.slice(Gi).map((cs,or)=>Pe[or+Gi]?cs:null).reverse()}))})}stickRows(Nn,Ye,Pe){if(!this._isBrowser)return;const mn="bottom"===Pe?Nn.slice().reverse():Nn,nt="bottom"===Pe?Ye.slice().reverse():Ye,Vt=[],Q=[],zt=[];for(let zn=0,Gi=0;zn{for(let zn=0;zn{Ye.some(mn=>!mn)?this._removeStickyStyle(Pe,["bottom"]):this._addStickyStyle(Pe,"bottom",0,!1)})}_removeStickyStyle(Nn,Ye){for(const mn of Ye)Nn.style[mn]="",Nn.classList.remove(this._borderCellCss[mn]);Ze.some(mn=>-1===Ye.indexOf(mn)&&Nn.style[mn])?Nn.style.zIndex=this._getCalculatedZIndex(Nn):(Nn.style.zIndex="",this._needsPositionStickyOnElement&&(Nn.style.position=""),Nn.classList.remove(this._stickCellCss))}_addStickyStyle(Nn,Ye,Pe,mn){Nn.classList.add(this._stickCellCss),mn&&Nn.classList.add(this._borderCellCss[Ye]),Nn.style[Ye]=`${Pe}px`,Nn.style.zIndex=this._getCalculatedZIndex(Nn),this._needsPositionStickyOnElement&&(Nn.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Nn){const Ye={top:100,bottom:10,left:1,right:1};let Pe=0;for(const mn of Ze)Nn.style[mn]&&(Pe+=Ye[mn]);return Pe?`${Pe}`:""}_getCellWidths(Nn,Ye=!0){if(!Ye&&this._cachedCellWidths.length)return this._cachedCellWidths;const Pe=[],mn=Nn.children;for(let nt=0;nt0;nt--)Ye[nt]&&(Pe[nt]=mn,mn+=Nn[nt]);return Pe}}const Ct=new d.OlP("CDK_SPL");let ne=(()=>{class $e{constructor(Ye,Pe){this.viewContainer=Ye,this.elementRef=Pe}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.s_b),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","rowOutlet",""]]}),$e})(),he=(()=>{class $e{constructor(Ye,Pe){this.viewContainer=Ye,this.elementRef=Pe}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.s_b),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","headerRowOutlet",""]]}),$e})(),Oe=(()=>{class $e{constructor(Ye,Pe){this.viewContainer=Ye,this.elementRef=Pe}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.s_b),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","footerRowOutlet",""]]}),$e})(),yn=(()=>{class $e{constructor(Ye,Pe){this.viewContainer=Ye,this.elementRef=Pe}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.s_b),d.Y36(d.SBq))},$e.\u0275dir=d.lG2({type:$e,selectors:[["","noDataRowOutlet",""]]}),$e})(),Si=(()=>{class $e{constructor(Ye,Pe,mn,nt,Vt,Q,zt,Je,zn,Gi,Co,gr){this._differs=Ye,this._changeDetectorRef=Pe,this._elementRef=mn,this._dir=Vt,this._platform=zt,this._viewRepeater=Je,this._coalescedStyleScheduler=zn,this._viewportRuler=Gi,this._stickyPositioningListener=Co,this._ngZone=gr,this._onDestroy=new w.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new d.vpe,this.viewChange=new D.X({start:0,end:Number.MAX_VALUE}),nt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Q,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(Ye){this._trackByFn=Ye}get dataSource(){return this._dataSource}set dataSource(Ye){this._dataSource!==Ye&&this._switchDataSource(Ye)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Ye){this._multiTemplateDataRows=(0,v.Ig)(Ye),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Ye){this._fixedLayout=(0,v.Ig)(Ye),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Ye,Pe)=>this.trackBy?this.trackBy(Pe.dataIndex,Pe.data):Pe),this._viewportRuler.change().pipe((0,z.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Pe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Pe,this._forceRecalculateCellWidths=Pe,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Ye=>{Ye.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Ye=this._dataDiffer.diff(this._renderRows);if(!Ye)return this._updateNoDataRow(),void this.contentChanged.next();const Pe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Ye,Pe,(mn,nt,Vt)=>this._getEmbeddedViewArgs(mn.item,Vt),mn=>mn.item.data,mn=>{1===mn.operation&&mn.context&&this._renderCellTemplateForItem(mn.record.item.rowDef,mn.context)}),this._updateRowIndexContext(),Ye.forEachIdentityChange(mn=>{Pe.get(mn.currentIndex).context.$implicit=mn.item.data}),this._updateNoDataRow(),this._ngZone&&d.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,G.q)(1),(0,z.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Ye){this._customColumnDefs.add(Ye)}removeColumnDef(Ye){this._customColumnDefs.delete(Ye)}addRowDef(Ye){this._customRowDefs.add(Ye)}removeRowDef(Ye){this._customRowDefs.delete(Ye)}addHeaderRowDef(Ye){this._customHeaderRowDefs.add(Ye),this._headerRowDefChanged=!0}removeHeaderRowDef(Ye){this._customHeaderRowDefs.delete(Ye),this._headerRowDefChanged=!0}addFooterRowDef(Ye){this._customFooterRowDefs.add(Ye),this._footerRowDefChanged=!0}removeFooterRowDef(Ye){this._customFooterRowDefs.delete(Ye),this._footerRowDefChanged=!0}setNoDataRow(Ye){this._customNoDataRow=Ye}updateStickyHeaderRowStyles(){const Ye=this._getRenderedRows(this._headerRowOutlet),mn=this._elementRef.nativeElement.querySelector("thead");mn&&(mn.style.display=Ye.length?"":"none");const nt=this._headerRowDefs.map(Vt=>Vt.sticky);this._stickyStyler.clearStickyPositioning(Ye,["top"]),this._stickyStyler.stickRows(Ye,nt,"top"),this._headerRowDefs.forEach(Vt=>Vt.resetStickyChanged())}updateStickyFooterRowStyles(){const Ye=this._getRenderedRows(this._footerRowOutlet),mn=this._elementRef.nativeElement.querySelector("tfoot");mn&&(mn.style.display=Ye.length?"":"none");const nt=this._footerRowDefs.map(Vt=>Vt.sticky);this._stickyStyler.clearStickyPositioning(Ye,["bottom"]),this._stickyStyler.stickRows(Ye,nt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,nt),this._footerRowDefs.forEach(Vt=>Vt.resetStickyChanged())}updateStickyColumnStyles(){const Ye=this._getRenderedRows(this._headerRowOutlet),Pe=this._getRenderedRows(this._rowOutlet),mn=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Ye,...Pe,...mn],["left","right"]),this._stickyColumnStylesNeedReset=!1),Ye.forEach((nt,Vt)=>{this._addStickyColumnStyles([nt],this._headerRowDefs[Vt])}),this._rowDefs.forEach(nt=>{const Vt=[];for(let Q=0;Q{this._addStickyColumnStyles([nt],this._footerRowDefs[Vt])}),Array.from(this._columnDefsByName.values()).forEach(nt=>nt.resetStickyChanged())}_getAllRenderRows(){const Ye=[],Pe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let mn=0;mn{const Q=mn&&mn.has(Vt)?mn.get(Vt):[];if(Q.length){const zt=Q.shift();return zt.dataIndex=Pe,zt}return{data:Ye,rowDef:Vt,dataIndex:Pe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ho(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Pe=>{this._columnDefsByName.has(Pe.name),this._columnDefsByName.set(Pe.name,Pe)})}_cacheRowDefs(){this._headerRowDefs=ho(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ho(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ho(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Ye=this._rowDefs.filter(Pe=>!Pe.when);this._defaultRowDef=Ye[0]}_renderUpdatedColumns(){const Ye=(Vt,Q)=>Vt||!!Q.getColumnsDiff(),Pe=this._rowDefs.reduce(Ye,!1);Pe&&this._forceRenderDataRows();const mn=this._headerRowDefs.reduce(Ye,!1);mn&&this._forceRenderHeaderRows();const nt=this._footerRowDefs.reduce(Ye,!1);return nt&&this._forceRenderFooterRows(),Pe||mn||nt}_switchDataSource(Ye){this._data=[],(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Ye||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Ye}_observeRenderChanges(){if(!this.dataSource)return;let Ye;(0,T.Z9)(this.dataSource)?Ye=this.dataSource.connect(this):(0,P.b)(this.dataSource)?Ye=this.dataSource:Array.isArray(this.dataSource)&&(Ye=(0,I.of)(this.dataSource)),this._renderChangeSubscription=Ye.pipe((0,z.R)(this._onDestroy)).subscribe(Pe=>{this._data=Pe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Ye,Pe)=>this._renderRow(this._headerRowOutlet,Ye,Pe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Ye,Pe)=>this._renderRow(this._footerRowOutlet,Ye,Pe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Ye,Pe){const mn=Array.from(Pe.columns||[]).map(Q=>this._columnDefsByName.get(Q)),nt=mn.map(Q=>Q.sticky),Vt=mn.map(Q=>Q.stickyEnd);this._stickyStyler.updateStickyColumns(Ye,nt,Vt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Ye){const Pe=[];for(let mn=0;mn!nt.when||nt.when(Pe,Ye));else{let nt=this._rowDefs.find(Vt=>Vt.when&&Vt.when(Pe,Ye))||this._defaultRowDef;nt&&mn.push(nt)}return mn}_getEmbeddedViewArgs(Ye,Pe){return{templateRef:Ye.rowDef.template,context:{$implicit:Ye.data},index:Pe}}_renderRow(Ye,Pe,mn,nt={}){const Vt=Ye.viewContainer.createEmbeddedView(Pe.template,nt,mn);return this._renderCellTemplateForItem(Pe,nt),Vt}_renderCellTemplateForItem(Ye,Pe){for(let mn of this._getCellTemplates(Ye))Le.mostRecentCellOutlet&&Le.mostRecentCellOutlet._viewContainer.createEmbeddedView(mn,Pe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Ye=this._rowOutlet.viewContainer;for(let Pe=0,mn=Ye.length;Pe{const mn=this._columnDefsByName.get(Pe);return Ye.extractCellTemplate(mn)}):[]}_applyNativeTableSections(){const Ye=this._document.createDocumentFragment(),Pe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const mn of Pe){const nt=this._document.createElement(mn.tag);nt.setAttribute("role","rowgroup");for(const Vt of mn.outlets)nt.appendChild(Vt.elementRef.nativeElement);Ye.appendChild(nt)}this._elementRef.nativeElement.appendChild(Ye)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Ye=(Pe,mn)=>Pe||mn.hasStickyChanged();this._headerRowDefs.reduce(Ye,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Ye,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Ye,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new dn(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,I.of)()).pipe((0,z.R)(this._onDestroy)).subscribe(Pe=>{this._stickyStyler.direction=Pe,this.updateStickyColumnStyles()})}_getOwnDefs(Ye){return Ye.filter(Pe=>!Pe._table||Pe._table===this)}_updateNoDataRow(){const Ye=this._customNoDataRow||this._noDataRow;if(!Ye)return;const Pe=0===this._rowOutlet.viewContainer.length;if(Pe===this._isShowingNoDataRow)return;const mn=this._noDataRowOutlet.viewContainer;if(Pe){const nt=mn.createEmbeddedView(Ye.templateRef),Vt=nt.rootNodes[0];1===nt.rootNodes.length&&Vt?.nodeType===this._document.ELEMENT_NODE&&(Vt.setAttribute("role","row"),Vt.classList.add(Ye._contentClassName))}else mn.clear();this._isShowingNoDataRow=Pe}}return $e.\u0275fac=function(Ye){return new(Ye||$e)(d.Y36(d.ZZ4),d.Y36(d.sBO),d.Y36(d.SBq),d.$8M("role"),d.Y36(p.Is,8),d.Y36(x.K0),d.Y36(t.t4),d.Y36(T.k),d.Y36(Ae),d.Y36(A.rL),d.Y36(Ct,12),d.Y36(d.R0b,8))},$e.\u0275cmp=d.Xpm({type:$e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Ye,Pe,mn){if(1&Ye&&(d.Suo(mn,bn,5),d.Suo(mn,Nt,5),d.Suo(mn,ce,5),d.Suo(mn,re,5),d.Suo(mn,Kt,5)),2&Ye){let nt;d.iGM(nt=d.CRH())&&(Pe._noDataRow=nt.first),d.iGM(nt=d.CRH())&&(Pe._contentColumnDefs=nt),d.iGM(nt=d.CRH())&&(Pe._contentRowDefs=nt),d.iGM(nt=d.CRH())&&(Pe._contentHeaderRowDefs=nt),d.iGM(nt=d.CRH())&&(Pe._contentFooterRowDefs=nt)}},viewQuery:function(Ye,Pe){if(1&Ye&&(d.Gf(ne,7),d.Gf(he,7),d.Gf(Oe,7),d.Gf(yn,7)),2&Ye){let mn;d.iGM(mn=d.CRH())&&(Pe._rowOutlet=mn.first),d.iGM(mn=d.CRH())&&(Pe._headerRowOutlet=mn.first),d.iGM(mn=d.CRH())&&(Pe._footerRowOutlet=mn.first),d.iGM(mn=d.CRH())&&(Pe._noDataRowOutlet=mn.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Ye,Pe){2&Ye&&d.ekj("cdk-table-fixed-layout",Pe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[d._Bn([{provide:St,useExisting:$e},{provide:T.k,useClass:T.yy},{provide:Ae,useClass:Ne},{provide:Ct,useValue:null}])],ngContentSelectors:ot,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ye,Pe){1&Ye&&(d.F$t(W),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[ne,he,Oe,yn],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),$e})();function ho($e,Nn){return $e.concat(Array.from(Nn))}let Gn=(()=>{class $e{}return $e.\u0275fac=function(Ye){return new(Ye||$e)},$e.\u0275mod=d.oAB({type:$e}),$e.\u0275inj=d.cJS({imports:[A.Cl]}),$e})();var je=b(3238),gn=b(36787),Ve=b(23426),tn=b(24850);const an=[[["caption"]],[["colgroup"],["col"]]],pe=["caption","colgroup, col"];let It=(()=>{class $e extends Si{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275cmp=d.Xpm({type:$e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(Ye,Pe){2&Ye&&d.ekj("mat-table-fixed-layout",Pe.fixedLayout)},exportAs:["matTable"],features:[d._Bn([{provide:T.k,useClass:T.yy},{provide:Si,useExisting:$e},{provide:St,useExisting:$e},{provide:Ae,useClass:Ne},{provide:Ct,useValue:null}]),d.qOj],ngContentSelectors:pe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ye,Pe){1&Ye&&(d.F$t(an),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[ne,he,Oe,yn],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),$e})(),Me=(()=>{class $e extends Jt{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matCellDef",""]],features:[d._Bn([{provide:Jt,useExisting:$e}]),d.qOj]}),$e})(),en=(()=>{class $e extends at{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matHeaderCellDef",""]],features:[d._Bn([{provide:at,useExisting:$e}]),d.qOj]}),$e})(),He=(()=>{class $e extends Zt{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matFooterCellDef",""]],features:[d._Bn([{provide:Zt,useExisting:$e}]),d.qOj]}),$e})(),Zn=(()=>{class $e extends Nt{get name(){return this._name}set name(Ye){this._setNameInput(Ye)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[d._Bn([{provide:Nt,useExisting:$e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:$e}]),d.qOj]}),$e})(),ve=(()=>{class $e extends qt{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[d.qOj]}),$e})(),Be=(()=>{class $e extends le{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[d.qOj]}),$e})(),Fn=(()=>{class $e extends Wt{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[d.qOj]}),$e})(),bi=(()=>{class $e extends re{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[d._Bn([{provide:re,useExisting:$e}]),d.qOj]}),$e})(),go=(()=>{class $e extends Kt{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[d._Bn([{provide:Kt,useExisting:$e}]),d.qOj]}),$e})(),_o=(()=>{class $e extends ce{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275dir=d.lG2({type:$e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[d._Bn([{provide:ce,useExisting:$e}]),d.qOj]}),$e})(),fn=(()=>{class $e extends on{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275cmp=d.Xpm({type:$e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[d._Bn([{provide:on,useExisting:$e}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Pe){1&Ye&&d.GkF(0,0)},dependencies:[Le],encapsulation:2}),$e})(),wn=(()=>{class $e extends hn{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275cmp=d.Xpm({type:$e,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[d._Bn([{provide:hn,useExisting:$e}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Pe){1&Ye&&d.GkF(0,0)},dependencies:[Le],encapsulation:2}),$e})(),ln=(()=>{class $e extends we{}return $e.\u0275fac=function(){let Nn;return function(Pe){return(Nn||(Nn=d.n5z($e)))(Pe||$e)}}(),$e.\u0275cmp=d.Xpm({type:$e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[d._Bn([{provide:we,useExisting:$e}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ye,Pe){1&Ye&&d.GkF(0,0)},dependencies:[Le],encapsulation:2}),$e})(),No=(()=>{class $e{}return $e.\u0275fac=function(Ye){return new(Ye||$e)},$e.\u0275mod=d.oAB({type:$e}),$e.\u0275inj=d.cJS({imports:[Gn,je.BQ,je.BQ]}),$e})();class Ea extends T.o2{constructor(Nn=[]){super(),this._renderData=new D.X([]),this._filter=new D.X(""),this._internalPageChanges=new w.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(Ye,Pe)=>{const mn=Ye[Pe];if((0,v.t6)(mn)){const nt=Number(mn);return nt<9007199254740991?nt:mn}return mn},this.sortData=(Ye,Pe)=>{const mn=Pe.active,nt=Pe.direction;return mn&&""!=nt?Ye.sort((Vt,Q)=>{let zt=this.sortingDataAccessor(Vt,mn),Je=this.sortingDataAccessor(Q,mn);const zn=typeof zt,Gi=typeof Je;zn!==Gi&&("number"===zn&&(zt+=""),"number"===Gi&&(Je+=""));let Co=0;return null!=zt&&null!=Je?zt>Je?Co=1:zt{const mn=Object.keys(Ye).reduce((Vt,Q)=>Vt+Ye[Q]+"\u25ec","").toLowerCase(),nt=Pe.trim().toLowerCase();return-1!=mn.indexOf(nt)},this._data=new D.X(Nn),this._updateChangeSubscription()}get data(){return this._data.value}set data(Nn){Nn=Array.isArray(Nn)?Nn:[],this._data.next(Nn),this._renderChangesSubscription||this._filterData(Nn)}get filter(){return this._filter.value}set filter(Nn){this._filter.next(Nn),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Nn){this._sort=Nn,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Nn){this._paginator=Nn,this._updateChangeSubscription()}_updateChangeSubscription(){const Nn=this._sort?(0,gn.T)(this._sort.sortChange,this._sort.initialized):(0,I.of)(null),Ye=this._paginator?(0,gn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,I.of)(null),mn=(0,Ve.aj)([this._data,this._filter]).pipe((0,tn.U)(([Q])=>this._filterData(Q))),nt=(0,Ve.aj)([mn,Nn]).pipe((0,tn.U)(([Q])=>this._orderData(Q))),Vt=(0,Ve.aj)([nt,Ye]).pipe((0,tn.U)(([Q])=>this._pageData(Q)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Vt.subscribe(Q=>this._renderData.next(Q))}_filterData(Nn){return this.filteredData=null==this.filter||""===this.filter?Nn:Nn.filter(Ye=>this.filterPredicate(Ye,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Nn){return this.sort?this.sortData(Nn.slice(),this.sort):Nn}_pageData(Nn){if(!this.paginator)return Nn;const Ye=this.paginator.pageIndex*this.paginator.pageSize;return Nn.slice(Ye,Ye+this.paginator.pageSize)}_updatePaginator(Nn){Promise.resolve().then(()=>{const Ye=this.paginator;if(Ye&&(Ye.length=Nn,Ye.pageIndex>0)){const Pe=Math.ceil(Ye.length/Ye.pageSize)-1||0,mn=Math.min(Ye.pageIndex,Pe);mn!==Ye.pageIndex&&(Ye.pageIndex=mn,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class fr extends Ea{}},3848:(rt,it,b)=>{"use strict";b.d(it,{BU:()=>We,Nh:()=>en,Nj:()=>It,SP:()=>tn,uD:()=>Ee,uX:()=>xt});var d=b(12687),p=b(49643),v=b(84080),T=b(36895),t=b(94650),A=b(3238),x=b(72986),w=b(1059),k=b(75778),D=b(7625),P=b(87545),I=b(31307),z=b(92198),G=b(8929),W=b(42654),ot=b(23753),ct=b(21086),gt=b(36787),Pt=b(68896),St=b(56498),Ht=b(98723),Jt=b(40445),at=b(37340),Zt=b(21281),wt=b(67376),_t=b(83353),Nt=b(29521);function Qt(He,Zn){1&He&&t.Hsn(0)}const qt=["*"];function le(He,Zn){}const Wt=function(He){return{animationDuration:He}},Ce=function(He,Zn){return{value:He,params:Zn}},Ae=["tabListContainer"],Ne=["tabList"],ze=["tabListInner"],Xe=["nextPaginator"],ie=["previousPaginator"],Te=["tabBodyWrapper"],re=["tabHeader"];function ee(He,Zn){}function ue(He,Zn){if(1&He&&t.YNc(0,ee,0,0,"ng-template",10),2&He){const ve=t.oxw().$implicit;t.Q6J("cdkPortalOutlet",ve.templateLabel)}}function Kt(He,Zn){if(1&He&&t._uU(0),2&He){const ve=t.oxw().$implicit;t.Oqu(ve.textLabel)}}function ce(He,Zn){if(1&He){const ve=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){const Fn=t.CHM(ve),bi=Fn.$implicit,go=Fn.index,_o=t.oxw(),fn=t.MAs(1);return t.KtG(_o._handleClick(bi,fn,go))})("cdkFocusChange",function(Fn){const go=t.CHM(ve).index,_o=t.oxw();return t.KtG(_o._tabFocusChanged(Fn,go))}),t.TgZ(1,"div",7),t.YNc(2,ue,1,1,"ng-template",8),t.YNc(3,Kt,1,1,"ng-template",null,9,t.W1O),t.qZA()()}if(2&He){const ve=Zn.$implicit,Be=Zn.index,Fn=t.MAs(4),bi=t.oxw();t.ekj("mat-tab-label-active",bi.selectedIndex===Be),t.Q6J("id",bi._getTabLabelId(Be))("ngClass",ve.labelClass)("disabled",ve.disabled)("matRippleDisabled",ve.disabled||bi.disableRipple),t.uIk("tabIndex",bi._getTabIndex(ve,Be))("aria-posinset",Be+1)("aria-setsize",bi._tabs.length)("aria-controls",bi._getTabContentId(Be))("aria-selected",bi.selectedIndex===Be)("aria-label",ve.ariaLabel||null)("aria-labelledby",!ve.ariaLabel&&ve.ariaLabelledby?ve.ariaLabelledby:null),t.xp6(2),t.Q6J("ngIf",ve.templateLabel)("ngIfElse",Fn)}}function Le(He,Zn){if(1&He){const ve=t.EpF();t.TgZ(0,"mat-tab-body",11),t.NdJ("_onCentered",function(){t.CHM(ve);const Fn=t.oxw();return t.KtG(Fn._removeTabBodyWrapperHeight())})("_onCentering",function(Fn){t.CHM(ve);const bi=t.oxw();return t.KtG(bi._setTabBodyWrapperHeight(Fn))}),t.qZA()}if(2&He){const ve=Zn.$implicit,Be=Zn.index,Fn=t.oxw();t.ekj("mat-tab-body-active",Fn.selectedIndex===Be),t.Q6J("id",Fn._getTabContentId(Be))("ngClass",ve.bodyClass)("content",ve.content)("position",ve.position)("origin",ve.origin)("animationDuration",Fn.animationDuration)("preserveContent",Fn.preserveContent),t.uIk("tabindex",null!=Fn.contentTabIndex&&Fn.selectedIndex===Be?Fn.contentTabIndex:null)("aria-labelledby",Fn._getTabLabelId(Be))}}const on=["mat-tab-nav-bar",""],hn=new t.OlP("MatInkBarPositioner",{providedIn:"root",factory:function we(){return Zn=>({left:Zn?(Zn.offsetLeft||0)+"px":"0",width:Zn?(Zn.offsetWidth||0)+"px":"0"})}});let bn=(()=>{class He{constructor(ve,Be,Fn,bi){this._elementRef=ve,this._ngZone=Be,this._inkBarPositioner=Fn,this._animationMode=bi}alignToElement(ve){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(()=>{const Be=this._inkBarPositioner(ve),Fn=this._elementRef.nativeElement;Fn.style.left=Be.left,Fn.style.width=Be.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(hn),t.Y36(t.QbO,8))},He.\u0275dir=t.lG2({type:He,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(ve,Be){2&ve&&t.ekj("_mat-animation-noopable","NoopAnimations"===Be._animationMode)}}),He})();const Ze=new t.OlP("MatTabContent"),kn=new t.OlP("MatTabLabel"),ri=new t.OlP("MAT_TAB");let Ee=(()=>{class He extends v.ig{constructor(ve,Be,Fn){super(ve,Be),this._closestTab=Fn}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(ri,8))},He.\u0275dir=t.lG2({type:He,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[t._Bn([{provide:kn,useExisting:He}]),t.qOj]}),He})();const Ft=(0,A.Id)(class{}),vt=new t.OlP("MAT_TAB_GROUP");let xt=(()=>{class He extends Ft{constructor(ve,Be){super(),this._viewContainerRef=ve,this._closestTabGroup=Be,this.textLabel="",this._contentPortal=null,this._stateChanges=new G.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(ve){this._setTemplateLabelInput(ve)}get content(){return this._contentPortal}ngOnChanges(ve){(ve.hasOwnProperty("textLabel")||ve.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(ve){ve&&ve._closestTab===this&&(this._templateLabel=ve)}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.s_b),t.Y36(vt,8))},He.\u0275cmp=t.Xpm({type:He,selectors:[["mat-tab"]],contentQueries:function(ve,Be,Fn){if(1&ve&&(t.Suo(Fn,kn,5),t.Suo(Fn,Ze,7,t.Rgc)),2&ve){let bi;t.iGM(bi=t.CRH())&&(Be.templateLabel=bi.first),t.iGM(bi=t.CRH())&&(Be._explicitContent=bi.first)}},viewQuery:function(ve,Be){if(1&ve&&t.Gf(t.Rgc,7),2&ve){let Fn;t.iGM(Fn=t.CRH())&&(Be._implicitContent=Fn.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[t._Bn([{provide:ri,useExisting:He}]),t.qOj,t.TTD],ngContentSelectors:qt,decls:1,vars:0,template:function(ve,Be){1&ve&&(t.F$t(),t.YNc(0,Qt,1,0,"ng-template"))},encapsulation:2}),He})();const tt={translateTab:(0,at.X$)("translateTab",[(0,at.SB)("center, void, left-origin-center, right-origin-center",(0,at.oB)({transform:"none"})),(0,at.SB)("left",(0,at.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,at.SB)("right",(0,at.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,at.eR)("* => left, * => right, left => center, right => center",(0,at.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,at.eR)("void => left-origin-center",[(0,at.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,at.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,at.eR)("void => right-origin-center",[(0,at.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,at.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let et=(()=>{class He extends v.Pl{constructor(ve,Be,Fn,bi){super(ve,Be,bi),this._host=Fn,this._centeringSub=W.w.EMPTY,this._leavingSub=W.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,w.O)(this._host._isCenterPosition(this._host._position))).subscribe(ve=>{ve&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36((0,t.Gpc)(()=>Bt)),t.Y36(T.K0))},He.\u0275dir=t.lG2({type:He,selectors:[["","matTabBodyHost",""]],features:[t.qOj]}),He})(),Ct=(()=>{class He{constructor(ve,Be,Fn){this._elementRef=ve,this._dir=Be,this._dirChangeSubscription=W.w.EMPTY,this._translateTabComplete=new G.xQ,this._onCentering=new t.vpe,this._beforeCentering=new t.vpe,this._afterLeavingCenter=new t.vpe,this._onCentered=new t.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,Be&&(this._dirChangeSubscription=Be.change.subscribe(bi=>{this._computePositionAnimationState(bi),Fn.markForCheck()})),this._translateTabComplete.pipe((0,k.x)((bi,go)=>bi.fromState===go.fromState&&bi.toState===go.toState)).subscribe(bi=>{this._isCenterPosition(bi.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(bi.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(ve){this._positionIndex=ve,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(ve){const Be=this._isCenterPosition(ve.toState);this._beforeCentering.emit(Be),Be&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(ve){return"center"==ve||"left-origin-center"==ve||"right-origin-center"==ve}_computePositionAnimationState(ve=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==ve?"left":"right":this._positionIndex>0?"ltr"==ve?"right":"left":"center"}_computePositionFromOrigin(ve){const Be=this._getLayoutDirection();return"ltr"==Be&&ve<=0||"rtl"==Be&&ve>0?"left-origin-center":"right-origin-center"}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(Jt.Is,8),t.Y36(t.sBO))},He.\u0275dir=t.lG2({type:He,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),He})(),Bt=(()=>{class He extends Ct{constructor(ve,Be,Fn){super(ve,Be,Fn)}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(Jt.Is,8),t.Y36(t.sBO))},He.\u0275cmp=t.Xpm({type:He,selectors:[["mat-tab-body"]],viewQuery:function(ve,Be){if(1&ve&&t.Gf(v.Pl,5),2&ve){let Fn;t.iGM(Fn=t.CRH())&&(Be._portalHost=Fn.first)}},hostAttrs:[1,"mat-tab-body"],features:[t.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ve,Be){1&ve&&(t.TgZ(0,"div",0,1),t.NdJ("@translateTab.start",function(bi){return Be._onTranslateTabStarted(bi)})("@translateTab.done",function(bi){return Be._translateTabComplete.next(bi)}),t.YNc(2,le,0,0,"ng-template",2),t.qZA()),2&ve&&t.Q6J("@translateTab",t.WLB(3,Ce,Be._position,t.VKq(1,Wt,Be.animationDuration)))},dependencies:[et],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[tt.translateTab]}}),He})();const ne=new t.OlP("MAT_TABS_CONFIG"),he=(0,A.Id)(class{});let Oe=(()=>{class He extends he{constructor(ve){super(),this.elementRef=ve}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq))},He.\u0275dir=t.lG2({type:He,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ve,Be){2&ve&&(t.uIk("aria-disabled",!!Be.disabled),t.ekj("mat-tab-disabled",Be.disabled))},inputs:{disabled:"disabled"},features:[t.qOj]}),He})();const yn=(0,_t.i$)({passive:!0});let ho=(()=>{class He{constructor(ve,Be,Fn,bi,go,_o,fn){this._elementRef=ve,this._changeDetectorRef=Be,this._viewportRuler=Fn,this._dir=bi,this._ngZone=go,this._platform=_o,this._animationMode=fn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new G.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new G.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new t.vpe,this.indexFocused=new t.vpe,go.runOutsideAngular(()=>{(0,ot.R)(ve.nativeElement,"mouseleave").pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(ve){this._disablePagination=(0,Zt.Ig)(ve)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ve){ve=(0,Zt.su)(ve),this._selectedIndex!=ve&&(this._selectedIndexChanged=!0,this._selectedIndex=ve,this._keyManager&&this._keyManager.updateActiveItem(ve))}ngAfterViewInit(){(0,ot.R)(this._previousPaginator.nativeElement,"touchstart",yn).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,ot.R)(this._nextPaginator.nativeElement,"touchstart",yn).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const ve=this._dir?this._dir.change:(0,ct.of)("ltr"),Be=this._viewportRuler.change(150),Fn=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new d.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(Fn),(0,gt.T)(ve,Be,this._items.changes,this._itemsResized()).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Fn()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,D.R)(this._destroyed)).subscribe(bi=>{this.indexFocused.emit(bi),this._setTabFocus(bi)})}_itemsResized(){return"function"!=typeof ResizeObserver?Pt.E:this._items.changes.pipe((0,w.O)(this._items),(0,P.w)(ve=>new St.y(Be=>this._ngZone.runOutsideAngular(()=>{const Fn=new ResizeObserver(bi=>Be.next(bi));return ve.forEach(bi=>Fn.observe(bi.elementRef.nativeElement)),()=>{Fn.disconnect()}}))),(0,I.T)(1),(0,z.h)(ve=>ve.some(Be=>Be.contentRect.width>0&&Be.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(ve){if(!(0,Nt.Vb)(ve))switch(ve.keyCode){case Nt.K5:case Nt.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(ve));break;default:this._keyManager.onKeydown(ve)}}_onContentChanges(){const ve=this._elementRef.nativeElement.textContent;ve!==this._currentTextContent&&(this._currentTextContent=ve||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(ve){!this._isValidIndex(ve)||this.focusIndex===ve||!this._keyManager||this._keyManager.setActiveItem(ve)}_isValidIndex(ve){if(!this._items)return!0;const Be=this._items?this._items.toArray()[ve]:null;return!!Be&&!Be.disabled}_setTabFocus(ve){if(this._showPaginationControls&&this._scrollToLabel(ve),this._items&&this._items.length){this._items.toArray()[ve].focus();const Be=this._tabListContainer.nativeElement;Be.scrollLeft="ltr"==this._getLayoutDirection()?0:Be.scrollWidth-Be.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const ve=this.scrollDistance,Be="ltr"===this._getLayoutDirection()?-ve:ve;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Be)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(ve){this._scrollTo(ve)}_scrollHeader(ve){return this._scrollTo(this._scrollDistance+("before"==ve?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(ve){this._stopInterval(),this._scrollHeader(ve)}_scrollToLabel(ve){if(this.disablePagination)return;const Be=this._items?this._items.toArray()[ve]:null;if(!Be)return;const Fn=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:bi,offsetWidth:go}=Be.elementRef.nativeElement;let _o,fn;"ltr"==this._getLayoutDirection()?(_o=bi,fn=_o+go):(fn=this._tabListInner.nativeElement.offsetWidth-bi,_o=fn-go);const wn=this.scrollDistance,ln=this.scrollDistance+Fn;_oln&&(this.scrollDistance+=fn-ln+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const ve=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;ve||(this.scrollDistance=0),ve!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=ve}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const ve=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Be=ve?ve.elementRef.nativeElement:null;Be?this._inkBar.alignToElement(Be):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(ve,Be){Be&&null!=Be.button&&0!==Be.button||(this._stopInterval(),(0,Ht.H)(650,100).pipe((0,D.R)((0,gt.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Fn,distance:bi}=this._scrollHeader(ve);(0===bi||bi>=Fn)&&this._stopInterval()}))}_scrollTo(ve){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Be=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Be,ve)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Be,distance:this._scrollDistance}}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(wt.rL),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(_t.t4),t.Y36(t.QbO,8))},He.\u0275dir=t.lG2({type:He,inputs:{disablePagination:"disablePagination"}}),He})(),hi=(()=>{class He extends ho{constructor(ve,Be,Fn,bi,go,_o,fn){super(ve,Be,Fn,bi,go,_o,fn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ve){this._disableRipple=(0,Zt.Ig)(ve)}_itemSelected(ve){ve.preventDefault()}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(wt.rL),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(_t.t4),t.Y36(t.QbO,8))},He.\u0275dir=t.lG2({type:He,inputs:{disableRipple:"disableRipple"},features:[t.qOj]}),He})(),Vn=(()=>{class He extends hi{constructor(ve,Be,Fn,bi,go,_o,fn){super(ve,Be,Fn,bi,go,_o,fn)}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(wt.rL),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(_t.t4),t.Y36(t.QbO,8))},He.\u0275cmp=t.Xpm({type:He,selectors:[["mat-tab-header"]],contentQueries:function(ve,Be,Fn){if(1&ve&&t.Suo(Fn,Oe,4),2&ve){let bi;t.iGM(bi=t.CRH())&&(Be._items=bi)}},viewQuery:function(ve,Be){if(1&ve&&(t.Gf(bn,7),t.Gf(Ae,7),t.Gf(Ne,7),t.Gf(ze,7),t.Gf(Xe,5),t.Gf(ie,5)),2&ve){let Fn;t.iGM(Fn=t.CRH())&&(Be._inkBar=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabListContainer=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabList=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabListInner=Fn.first),t.iGM(Fn=t.CRH())&&(Be._nextPaginator=Fn.first),t.iGM(Fn=t.CRH())&&(Be._previousPaginator=Fn.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(ve,Be){2&ve&&t.ekj("mat-tab-header-pagination-controls-enabled",Be._showPaginationControls)("mat-tab-header-rtl","rtl"==Be._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.qOj],ngContentSelectors:qt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ve,Be){1&ve&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Be._handlePaginatorClick("before")})("mousedown",function(bi){return Be._handlePaginatorPress("before",bi)})("touchend",function(){return Be._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(bi){return Be._handleKeydown(bi)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Be._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(bi){return Be._handlePaginatorPress("after",bi)})("click",function(){return Be._handlePaginatorClick("after")})("touchend",function(){return Be._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&ve&&(t.ekj("mat-tab-header-pagination-disabled",Be._disableScrollBefore),t.Q6J("matRippleDisabled",Be._disableScrollBefore||Be.disableRipple)("disabled",Be._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Be._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Be._disableScrollAfter),t.Q6J("matRippleDisabled",Be._disableScrollAfter||Be.disableRipple)("disabled",Be._disableScrollAfter||null))},dependencies:[A.wG,p.wD,bn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),He})(),Gn=0;class je{}const gn=(0,A.pj)((0,A.Kr)(class{constructor(He){this._elementRef=He}}),"primary");let Ve=(()=>{class He extends gn{constructor(ve,Be,Fn,bi){super(ve),this._changeDetectorRef=Be,this._animationMode=bi,this._tabs=new t.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=W.w.EMPTY,this._tabLabelSubscription=W.w.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new t.vpe,this.focusChange=new t.vpe,this.animationDone=new t.vpe,this.selectedTabChange=new t.vpe(!0),this._groupId=Gn++,this.animationDuration=Fn&&Fn.animationDuration?Fn.animationDuration:"500ms",this.disablePagination=!(!Fn||null==Fn.disablePagination)&&Fn.disablePagination,this.dynamicHeight=!(!Fn||null==Fn.dynamicHeight)&&Fn.dynamicHeight,this.contentTabIndex=Fn?.contentTabIndex??null,this.preserveContent=!!Fn?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(ve){this._dynamicHeight=(0,Zt.Ig)(ve)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ve){this._indexToSelect=(0,Zt.su)(ve,null)}get animationDuration(){return this._animationDuration}set animationDuration(ve){this._animationDuration=/^\d+$/.test(ve+"")?ve+"ms":ve}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(ve){this._contentTabIndex=(0,Zt.su)(ve,null)}get disablePagination(){return this._disablePagination}set disablePagination(ve){this._disablePagination=(0,Zt.Ig)(ve)}get preserveContent(){return this._preserveContent}set preserveContent(ve){this._preserveContent=(0,Zt.Ig)(ve)}get backgroundColor(){return this._backgroundColor}set backgroundColor(ve){const Be=this._elementRef.nativeElement;Be.classList.remove(`mat-background-${this.backgroundColor}`),ve&&Be.classList.add(`mat-background-${ve}`),this._backgroundColor=ve}ngAfterContentChecked(){const ve=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=ve){const Be=null==this._selectedIndex;if(!Be){this.selectedTabChange.emit(this._createChangeEvent(ve));const Fn=this._tabBodyWrapper.nativeElement;Fn.style.minHeight=Fn.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Fn,bi)=>Fn.isActive=bi===ve),Be||(this.selectedIndexChange.emit(ve),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Be,Fn)=>{Be.position=Fn-ve,null!=this._selectedIndex&&0==Be.position&&!Be.origin&&(Be.origin=ve-this._selectedIndex)}),this._selectedIndex!==ve&&(this._selectedIndex=ve,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const ve=this._clampTabIndex(this._indexToSelect);if(ve===this._selectedIndex){const Be=this._tabs.toArray();let Fn;for(let bi=0;bi{Be[ve].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(ve))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,w.O)(this._allTabs)).subscribe(ve=>{this._tabs.reset(ve.filter(Be=>Be._closestTabGroup===this||!Be._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(ve){const Be=this._tabHeader;Be&&(Be.focusIndex=ve)}_focusChanged(ve){this._lastFocusedTabIndex=ve,this.focusChange.emit(this._createChangeEvent(ve))}_createChangeEvent(ve){const Be=new je;return Be.index=ve,this._tabs&&this._tabs.length&&(Be.tab=this._tabs.toArray()[ve]),Be}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,gt.T)(...this._tabs.map(ve=>ve._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(ve){return Math.min(this._tabs.length-1,Math.max(ve||0,0))}_getTabLabelId(ve){return`mat-tab-label-${this._groupId}-${ve}`}_getTabContentId(ve){return`mat-tab-content-${this._groupId}-${ve}`}_setTabBodyWrapperHeight(ve){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Be=this._tabBodyWrapper.nativeElement;Be.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Be.style.height=ve+"px")}_removeTabBodyWrapperHeight(){const ve=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=ve.clientHeight,ve.style.height="",this.animationDone.emit()}_handleClick(ve,Be,Fn){ve.disabled||(this.selectedIndex=Be.focusIndex=Fn)}_getTabIndex(ve,Be){return ve.disabled?null:Be===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(ve,Be){ve&&"mouse"!==ve&&"touch"!==ve&&(this._tabHeader.focusIndex=Be)}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ne,8),t.Y36(t.QbO,8))},He.\u0275dir=t.lG2({type:He,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[t.qOj]}),He})(),tn=(()=>{class He extends Ve{constructor(ve,Be,Fn,bi){super(ve,Be,Fn,bi)}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ne,8),t.Y36(t.QbO,8))},He.\u0275cmp=t.Xpm({type:He,selectors:[["mat-tab-group"]],contentQueries:function(ve,Be,Fn){if(1&ve&&t.Suo(Fn,xt,5),2&ve){let bi;t.iGM(bi=t.CRH())&&(Be._allTabs=bi)}},viewQuery:function(ve,Be){if(1&ve&&(t.Gf(Te,5),t.Gf(re,5)),2&ve){let Fn;t.iGM(Fn=t.CRH())&&(Be._tabBodyWrapper=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabHeader=Fn.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(ve,Be){2&ve&&t.ekj("mat-tab-group-dynamic-height",Be.dynamicHeight)("mat-tab-group-inverted-header","below"===Be.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[t._Bn([{provide:vt,useExisting:He}]),t.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(ve,Be){1&ve&&(t.TgZ(0,"mat-tab-header",0,1),t.NdJ("indexFocused",function(bi){return Be._focusChanged(bi)})("selectFocusedIndex",function(bi){return Be.selectedIndex=bi}),t.YNc(2,ce,5,15,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.YNc(5,Le,1,11,"mat-tab-body",5),t.qZA()),2&ve&&(t.Q6J("selectedIndex",Be.selectedIndex||0)("disableRipple",Be.disableRipple)("disablePagination",Be.disablePagination),t.xp6(2),t.Q6J("ngForOf",Be._tabs),t.xp6(1),t.ekj("_mat-animation-noopable","NoopAnimations"===Be._animationMode),t.xp6(2),t.Q6J("ngForOf",Be._tabs))},dependencies:[T.mk,T.sg,T.O5,v.Pl,A.wG,d.kH,Oe,Bt,Vn],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),He})(),an=0,pe=(()=>{class He extends ho{constructor(ve,Be,Fn,bi,go,_o,fn){super(ve,bi,go,Be,Fn,_o,fn),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(ve){const Be=this._elementRef.nativeElement.classList;Be.remove(`mat-background-${this.backgroundColor}`),ve&&Be.add(`mat-background-${ve}`),this._backgroundColor=ve}get disableRipple(){return this._disableRipple}set disableRipple(ve){this._disableRipple=(0,Zt.Ig)(ve)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,w.O)(null),(0,D.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const ve=this._items.toArray();for(let Be=0;Be{class He extends pe{constructor(ve,Be,Fn,bi,go,_o,fn){super(ve,Be,Fn,bi,go,_o,fn)}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(t.SBq),t.Y36(Jt.Is,8),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(wt.rL),t.Y36(_t.t4),t.Y36(t.QbO,8))},He.\u0275cmp=t.Xpm({type:He,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(ve,Be,Fn){if(1&ve&&t.Suo(Fn,It,5),2&ve){let bi;t.iGM(bi=t.CRH())&&(Be._items=bi)}},viewQuery:function(ve,Be){if(1&ve&&(t.Gf(bn,7),t.Gf(Ae,7),t.Gf(Ne,7),t.Gf(ze,7),t.Gf(Xe,5),t.Gf(ie,5)),2&ve){let Fn;t.iGM(Fn=t.CRH())&&(Be._inkBar=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabListContainer=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabList=Fn.first),t.iGM(Fn=t.CRH())&&(Be._tabListInner=Fn.first),t.iGM(Fn=t.CRH())&&(Be._nextPaginator=Fn.first),t.iGM(Fn=t.CRH())&&(Be._previousPaginator=Fn.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(ve,Be){2&ve&&(t.uIk("role",Be._getRole()),t.ekj("mat-tab-header-pagination-controls-enabled",Be._showPaginationControls)("mat-tab-header-rtl","rtl"==Be._getLayoutDirection())("mat-primary","warn"!==Be.color&&"accent"!==Be.color)("mat-accent","accent"===Be.color)("mat-warn","warn"===Be.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[t.qOj],attrs:on,ngContentSelectors:qt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ve,Be){1&ve&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Be._handlePaginatorClick("before")})("mousedown",function(bi){return Be._handlePaginatorPress("before",bi)})("touchend",function(){return Be._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(bi){return Be._handleKeydown(bi)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Be._onContentChanges()}),t.TgZ(7,"div",7,8),t.Hsn(9),t.qZA(),t._UZ(10,"mat-ink-bar"),t.qZA()(),t.TgZ(11,"button",9,10),t.NdJ("mousedown",function(bi){return Be._handlePaginatorPress("after",bi)})("click",function(){return Be._handlePaginatorClick("after")})("touchend",function(){return Be._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&ve&&(t.ekj("mat-tab-header-pagination-disabled",Be._disableScrollBefore),t.Q6J("matRippleDisabled",Be._disableScrollBefore||Be.disableRipple)("disabled",Be._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Be._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Be._disableScrollAfter),t.Q6J("matRippleDisabled",Be._disableScrollAfter||Be.disableRipple)("disabled",Be._disableScrollAfter||null))},dependencies:[A.wG,p.wD,bn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2}),He})();const Et=(0,A.sb)((0,A.Kr)((0,A.Id)(class{})));let Mt=(()=>{class He extends Et{constructor(ve,Be,Fn,bi,go,_o){super(),this._tabNavBar=ve,this.elementRef=Be,this._focusMonitor=go,this._isActive=!1,this.id="mat-tab-link-"+an++,this.rippleConfig=Fn||{},this.tabIndex=parseInt(bi)||0,"NoopAnimations"===_o&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(ve){const Be=(0,Zt.Ig)(ve);Be!==this._isActive&&(this._isActive=Be,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(ve){this._tabNavBar.tabPanel&&ve.keyCode===Nt.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(pe),t.Y36(t.SBq),t.Y36(A.Y2,8),t.$8M("tabindex"),t.Y36(d.tE),t.Y36(t.QbO,8))},He.\u0275dir=t.lG2({type:He,inputs:{active:"active",id:"id"},features:[t.qOj]}),He})(),It=(()=>{class He extends Mt{constructor(ve,Be,Fn,bi,go,_o,fn,wn){super(ve,Be,go,_o,fn,wn),this._tabLinkRipple=new A.IR(this,Fn,Be,bi),this._tabLinkRipple.setupTriggerEvents(Be.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return He.\u0275fac=function(ve){return new(ve||He)(t.Y36(We),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(_t.t4),t.Y36(A.Y2,8),t.$8M("tabindex"),t.Y36(d.tE),t.Y36(t.QbO,8))},He.\u0275dir=t.lG2({type:He,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(ve,Be){1&ve&&t.NdJ("focus",function(){return Be._handleFocus()})("keydown",function(bi){return Be._handleKeydown(bi)}),2&ve&&(t.uIk("aria-controls",Be._getAriaControls())("aria-current",Be._getAriaCurrent())("aria-disabled",Be.disabled)("aria-selected",Be._getAriaSelected())("id",Be.id)("tabIndex",Be._getTabIndex())("role",Be._getRole()),t.ekj("mat-tab-disabled",Be.disabled)("mat-tab-label-active",Be.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[t.qOj]}),He})(),en=(()=>{class He{}return He.\u0275fac=function(ve){return new(ve||He)},He.\u0275mod=t.oAB({type:He}),He.\u0275inj=t.cJS({imports:[T.ez,A.BQ,v.eL,A.si,p.Q8,d.rt,A.BQ]}),He})()},83683:(rt,it,b)=>{"use strict";b.d(it,{Ye:()=>k,g0:()=>P});var d=b(94650),p=b(3238),v=b(83353),T=b(36895);const t=["*",[["mat-toolbar-row"]]],A=["*","mat-toolbar-row"],x=(0,p.pj)(class{constructor(I){this._elementRef=I}});let w=(()=>{class I{}return I.\u0275fac=function(G){return new(G||I)},I.\u0275dir=d.lG2({type:I,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),I})(),k=(()=>{class I extends x{constructor(G,W,ot){super(G),this._platform=W,this._document=ot}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return I.\u0275fac=function(G){return new(G||I)(d.Y36(d.SBq),d.Y36(v.t4),d.Y36(T.K0))},I.\u0275cmp=d.Xpm({type:I,selectors:[["mat-toolbar"]],contentQueries:function(G,W,ot){if(1&G&&d.Suo(ot,w,5),2&G){let ct;d.iGM(ct=d.CRH())&&(W._toolbarRows=ct)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(G,W){2&G&&d.ekj("mat-toolbar-multiple-rows",W._toolbarRows.length>0)("mat-toolbar-single-row",0===W._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[d.qOj],ngContentSelectors:A,decls:2,vars:0,template:function(G,W){1&G&&(d.F$t(t),d.Hsn(0),d.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),I})(),P=(()=>{class I{}return I.\u0275fac=function(G){return new(G||I)},I.\u0275mod=d.oAB({type:I}),I.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),I})()},10266:(rt,it,b)=>{"use strict";b.d(it,{AV:()=>Ae,gM:()=>le});var d=b(98184),p=b(12687),v=b(36895),T=b(94650),t=b(3238),A=b(67376),x=b(40445),w=b(21281),k=b(29521),D=b(62289),P=b(83353),I=b(84080),z=b(8929),G=b(7625),W=b(72986);b(37340);const ct=["tooltip"],St="tooltip-panel",Ht=(0,P.i$)({passive:!0}),Zt=new T.OlP("mat-tooltip-scroll-strategy"),_t={provide:Zt,deps:[d.aV],useFactory:function wt(ze){return()=>ze.scrollStrategies.reposition({scrollThrottle:20})}},Nt=new T.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Qt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let qt=(()=>{class ze{constructor(ie,Te,re,ee,ue,Kt,ce,Le,on,hn,we,bn){this._overlay=ie,this._elementRef=Te,this._scrollDispatcher=re,this._viewContainerRef=ee,this._ngZone=ue,this._platform=Kt,this._ariaDescriber=ce,this._focusMonitor=Le,this._dir=hn,this._defaultOptions=we,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new z.xQ,this._scrollStrategy=on,this._document=bn,we&&(we.position&&(this.position=we.position),we.touchGestures&&(this.touchGestures=we.touchGestures)),hn.change.pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(ie){ie!==this._position&&(this._position=ie,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(ie){this._disabled=(0,w.Ig)(ie),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(ie){this._showDelay=(0,w.su)(ie)}get hideDelay(){return this._hideDelay}set hideDelay(ie){this._hideDelay=(0,w.su)(ie),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(ie){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=ie?String(ie).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(ie){this._tooltipClass=ie,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,G.R)(this._destroyed)).subscribe(ie=>{ie?"keyboard"===ie&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const ie=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Te,re])=>{ie.removeEventListener(Te,re,Ht)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(ie,this.message,"tooltip"),this._focusMonitor.stopMonitoring(ie)}show(ie=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Te=this._createOverlay();this._detach(),this._portal=this._portal||new I.C5(this._tooltipComponent,this._viewContainerRef);const re=this._tooltipInstance=Te.attach(this._portal).instance;re._triggerElement=this._elementRef.nativeElement,re._mouseLeaveHideDelay=this._hideDelay,re.afterHidden().pipe((0,G.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),re.show(ie)}hide(ie=this.hideDelay){const Te=this._tooltipInstance;Te&&(Te.isVisible()?Te.hide(ie):(Te._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const ie=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Te=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ie);return Te.positionChanges.pipe((0,G.R)(this._destroyed)).subscribe(re=>{this._updateCurrentPositionClass(re.connectionPair),this._tooltipInstance&&re.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Te,panelClass:`${this._cssClassPrefix}-${St}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,G.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,G.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,G.R)(this._destroyed)).subscribe(re=>{this._isTooltipVisible()&&re.keyCode===k.hY&&!(0,k.Vb)(re)&&(re.preventDefault(),re.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(ie){const Te=ie.getConfig().positionStrategy,re=this._getOrigin(),ee=this._getOverlayPosition();Te.withPositions([this._addOffset({...re.main,...ee.main}),this._addOffset({...re.fallback,...ee.fallback})])}_addOffset(ie){return ie}_getOrigin(){const ie=!this._dir||"ltr"==this._dir.value,Te=this.position;let re;"above"==Te||"below"==Te?re={originX:"center",originY:"above"==Te?"top":"bottom"}:"before"==Te||"left"==Te&&ie||"right"==Te&&!ie?re={originX:"start",originY:"center"}:("after"==Te||"right"==Te&&ie||"left"==Te&&!ie)&&(re={originX:"end",originY:"center"});const{x:ee,y:ue}=this._invertPosition(re.originX,re.originY);return{main:re,fallback:{originX:ee,originY:ue}}}_getOverlayPosition(){const ie=!this._dir||"ltr"==this._dir.value,Te=this.position;let re;"above"==Te?re={overlayX:"center",overlayY:"bottom"}:"below"==Te?re={overlayX:"center",overlayY:"top"}:"before"==Te||"left"==Te&&ie||"right"==Te&&!ie?re={overlayX:"end",overlayY:"center"}:("after"==Te||"right"==Te&&ie||"left"==Te&&!ie)&&(re={overlayX:"start",overlayY:"center"});const{x:ee,y:ue}=this._invertPosition(re.overlayX,re.overlayY);return{main:re,fallback:{overlayX:ee,overlayY:ue}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,W.q)(1),(0,G.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(ie){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=ie,this._tooltipInstance._markForCheck())}_invertPosition(ie,Te){return"above"===this.position||"below"===this.position?"top"===Te?Te="bottom":"bottom"===Te&&(Te="top"):"end"===ie?ie="start":"start"===ie&&(ie="end"),{x:ie,y:Te}}_updateCurrentPositionClass(ie){const{overlayY:Te,originX:re,originY:ee}=ie;let ue;if(ue="center"===Te?this._dir&&"rtl"===this._dir.value?"end"===re?"left":"right":"start"===re?"left":"right":"bottom"===Te&&"top"===ee?"above":"below",ue!==this._currentPosition){const Kt=this._overlayRef;if(Kt){const ce=`${this._cssClassPrefix}-${St}-`;Kt.removePanelClass(ce+this._currentPosition),Kt.addPanelClass(ce+ue)}this._currentPosition=ue}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const ie=[];if(this._platformSupportsMouseEvents())ie.push(["mouseleave",Te=>{const re=Te.relatedTarget;(!re||!this._overlayRef?.overlayElement.contains(re))&&this.hide()}],["wheel",Te=>this._wheelListener(Te)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Te=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};ie.push(["touchend",Te],["touchcancel",Te])}this._addListeners(ie),this._passiveListeners.push(...ie)}_addListeners(ie){ie.forEach(([Te,re])=>{this._elementRef.nativeElement.addEventListener(Te,re,Ht)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(ie){if(this._isTooltipVisible()){const Te=this._document.elementFromPoint(ie.clientX,ie.clientY),re=this._elementRef.nativeElement;Te!==re&&!re.contains(Te)&&this.hide()}}_disableNativeGesturesIfNecessary(){const ie=this.touchGestures;if("off"!==ie){const Te=this._elementRef.nativeElement,re=Te.style;("on"===ie||"INPUT"!==Te.nodeName&&"TEXTAREA"!==Te.nodeName)&&(re.userSelect=re.msUserSelect=re.webkitUserSelect=re.MozUserSelect="none"),("on"===ie||!Te.draggable)&&(re.webkitUserDrag="none"),re.touchAction="none",re.webkitTapHighlightColor="transparent"}}}return ze.\u0275fac=function(ie){T.$Z()},ze.\u0275dir=T.lG2({type:ze,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),ze})(),le=(()=>{class ze extends qt{constructor(ie,Te,re,ee,ue,Kt,ce,Le,on,hn,we,bn){super(ie,Te,re,ee,ue,Kt,ce,Le,on,hn,we,bn),this._tooltipComponent=Ce}}return ze.\u0275fac=function(ie){return new(ie||ze)(T.Y36(d.aV),T.Y36(T.SBq),T.Y36(A.mF),T.Y36(T.s_b),T.Y36(T.R0b),T.Y36(P.t4),T.Y36(p.$s),T.Y36(p.tE),T.Y36(Zt),T.Y36(x.Is,8),T.Y36(Nt,8),T.Y36(v.K0))},ze.\u0275dir=T.lG2({type:ze,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[T.qOj]}),ze})(),Wt=(()=>{class ze{constructor(ie,Te){this._changeDetectorRef=ie,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new z.xQ,this._animationsDisabled="NoopAnimations"===Te}show(ie){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},ie)}hide(ie){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},ie)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:ie}){(!ie||!this._triggerElement.contains(ie))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:ie}){(ie===this._showAnimation||ie===this._hideAnimation)&&this._finalizeAnimation(ie===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(ie){ie?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(ie){const Te=this._tooltip.nativeElement,re=this._showAnimation,ee=this._hideAnimation;if(Te.classList.remove(ie?ee:re),Te.classList.add(ie?re:ee),this._isVisible=ie,ie&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const ue=getComputedStyle(Te);("0s"===ue.getPropertyValue("animation-duration")||"none"===ue.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}ie&&this._onShow(),this._animationsDisabled&&(Te.classList.add("_mat-animation-noopable"),this._finalizeAnimation(ie))}}return ze.\u0275fac=function(ie){return new(ie||ze)(T.Y36(T.sBO),T.Y36(T.QbO,8))},ze.\u0275dir=T.lG2({type:ze}),ze})(),Ce=(()=>{class ze extends Wt{constructor(ie,Te,re){super(ie,re),this._breakpointObserver=Te,this._isHandset=this._breakpointObserver.observe(D.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return ze.\u0275fac=function(ie){return new(ie||ze)(T.Y36(T.sBO),T.Y36(D.Yg),T.Y36(T.QbO,8))},ze.\u0275cmp=T.Xpm({type:ze,selectors:[["mat-tooltip-component"]],viewQuery:function(ie,Te){if(1&ie&&T.Gf(ct,7),2&ie){let re;T.iGM(re=T.CRH())&&(Te._tooltip=re.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(ie,Te){1&ie&&T.NdJ("mouseleave",function(ee){return Te._handleMouseLeave(ee)}),2&ie&&T.Udp("zoom",Te.isVisible()?1:null)},features:[T.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(ie,Te){if(1&ie&&(T.TgZ(0,"div",0,1),T.NdJ("animationend",function(ee){return Te._handleAnimationEnd(ee)}),T.ALo(2,"async"),T._uU(3),T.qZA()),2&ie){let re;T.ekj("mat-tooltip-handset",null==(re=T.lcZ(2,4,Te._isHandset))?null:re.matches),T.Q6J("ngClass",Te.tooltipClass),T.xp6(3),T.Oqu(Te.message)}},dependencies:[v.mk,v.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),ze})(),Ae=(()=>{class ze{}return ze.\u0275fac=function(ie){return new(ie||ze)},ze.\u0275mod=T.oAB({type:ze}),ze.\u0275inj=T.cJS({providers:[_t],imports:[p.rt,v.ez,d.U8,t.BQ,t.BQ,A.ZD]}),ze})()},35423:(rt,it,b)=>{"use strict";b.d(it,{Ar:()=>W,GZ:()=>z,JZ:()=>St,WX:()=>Jt,ah:()=>G,dp:()=>Pt,eu:()=>ct,fQ:()=>I,gi:()=>ot,kc:()=>Ht,uo:()=>P});var d=b(57851),p=b(94650),v=b(3238),T=b(21281),t=b(95017),A=b(591),x=b(36787),w=b(72986),k=b(24850);const D=(0,v.sb)((0,v.Id)(d.Hs));let P=(()=>{class at extends D{constructor(wt,_t,Nt){super(wt,_t),this.tabIndex=Number(Nt)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return at.\u0275fac=function(wt){return new(wt||at)(p.Y36(p.SBq),p.Y36(d._0),p.$8M("tabindex"))},at.\u0275dir=p.lG2({type:at,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[p._Bn([{provide:d.Hs,useExisting:at}]),p.qOj]}),at})(),I=(()=>{class at extends d.rO{}return at.\u0275fac=function(){let Zt;return function(_t){return(Zt||(Zt=p.n5z(at)))(_t||at)}}(),at.\u0275dir=p.lG2({type:at,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[p._Bn([{provide:d.rO,useExisting:at}]),p.qOj]}),at})(),z=(()=>{class at extends d.Xx{constructor(wt,_t,Nt,Qt){super(wt,_t,Nt),this._disabled=!1,this.tabIndex=Number(Qt)||0}get disabled(){return this._disabled}set disabled(wt){this._disabled=(0,T.Ig)(wt)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(wt){this._tabIndex=wt??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return at.\u0275fac=function(wt){return new(wt||at)(p.Y36(p.SBq),p.Y36(d._0),p.Y36(p.ZZ4),p.$8M("tabindex"))},at.\u0275dir=p.lG2({type:at,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[p._Bn([{provide:d.Xx,useExisting:at},{provide:d.Hs,useExisting:at},{provide:d.HI,useExisting:at}]),p.qOj]}),at})(),G=(()=>{class at extends d.XJ{get level(){return this._level}set level(wt){this._setLevelInput(wt)}get indent(){return this._indent}set indent(wt){this._setIndentInput(wt)}}return at.\u0275fac=function(){let Zt;return function(_t){return(Zt||(Zt=p.n5z(at)))(_t||at)}}(),at.\u0275dir=p.lG2({type:at,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[p._Bn([{provide:d.XJ,useExisting:at}]),p.qOj]}),at})(),W=(()=>{class at{constructor(wt,_t){this.viewContainer=wt,this._node=_t}}return at.\u0275fac=function(wt){return new(wt||at)(p.Y36(p.s_b),p.Y36(d.HI,8))},at.\u0275dir=p.lG2({type:at,selectors:[["","matTreeNodeOutlet",""]],features:[p._Bn([{provide:d.cu,useExisting:at}])]}),at})(),ot=(()=>{class at extends d._0{}return at.\u0275fac=function(){let Zt;return function(_t){return(Zt||(Zt=p.n5z(at)))(_t||at)}}(),at.\u0275cmp=p.Xpm({type:at,selectors:[["mat-tree"]],viewQuery:function(wt,_t){if(1&wt&&p.Gf(W,7),2&wt){let Nt;p.iGM(Nt=p.CRH())&&(_t._nodeOutlet=Nt.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[p._Bn([{provide:d._0,useExisting:at}]),p.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(wt,_t){1&wt&&p.GkF(0,0)},dependencies:[W],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),at})(),ct=(()=>{class at extends d.Ud{}return at.\u0275fac=function(){let Zt;return function(_t){return(Zt||(Zt=p.n5z(at)))(_t||at)}}(),at.\u0275dir=p.lG2({type:at,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[p._Bn([{provide:d.Ud,useExisting:at}]),p.qOj]}),at})(),Pt=(()=>{class at{}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275mod=p.oAB({type:at}),at.\u0275inj=p.cJS({imports:[d.nZ,v.BQ,v.BQ]}),at})();class St{constructor(Zt,wt,_t,Nt){this.transformFunction=Zt,this.getLevel=wt,this.isExpandable=_t,this.getChildren=Nt}_flattenNode(Zt,wt,_t,Nt){const Qt=this.transformFunction(Zt,wt);if(_t.push(Qt),this.isExpandable(Qt)){const qt=this.getChildren(Zt);qt&&(Array.isArray(qt)?this._flattenChildren(qt,wt,_t,Nt):qt.pipe((0,w.q)(1)).subscribe(le=>{this._flattenChildren(le,wt,_t,Nt)}))}return _t}_flattenChildren(Zt,wt,_t,Nt){Zt.forEach((Qt,qt)=>{let le=Nt.slice();le.push(qt!=Zt.length-1),this._flattenNode(Qt,wt+1,_t,le)})}flattenNodes(Zt){let wt=[];return Zt.forEach(_t=>this._flattenNode(_t,0,wt,[])),wt}expandFlattenedNodes(Zt,wt){let _t=[],Nt=[];return Nt[0]=!0,Zt.forEach(Qt=>{let qt=!0;for(let le=0;le<=this.getLevel(Qt);le++)qt=qt&&Nt[le];qt&&_t.push(Qt),this.isExpandable(Qt)&&(Nt[this.getLevel(Qt)+1]=wt.isExpanded(Qt))}),_t}}class Ht extends t.o2{constructor(Zt,wt,_t){super(),this._treeControl=Zt,this._treeFlattener=wt,this._flattenedData=new A.X([]),this._expandedData=new A.X([]),this._data=new A.X([]),_t&&(this.data=_t)}get data(){return this._data.value}set data(Zt){this._data.next(Zt),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(Zt){return(0,x.T)(Zt.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,k.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class Jt extends t.o2{constructor(){super(...arguments),this._data=new A.X([])}get data(){return this._data.value}set data(Zt){this._data.next(Zt)}connect(Zt){return(0,x.T)(Zt.viewChange,this._data).pipe((0,k.U)(()=>this.data))}disconnect(){}}},11481:(rt,it,b)=>{"use strict";b.d(it,{Dx:()=>ne,H7:()=>Fn,b2:()=>xt,q6:()=>ri,se:()=>Wt});var d=b(36895),p=b(94650);class v extends d.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class T extends v{static makeCurrent(){(0,d.HT)(new T)}onAndCancel(wn,ln,ii){return wn.addEventListener(ln,ii,!1),()=>{wn.removeEventListener(ln,ii,!1)}}dispatchEvent(wn,ln){wn.dispatchEvent(ln)}remove(wn){wn.parentNode&&wn.parentNode.removeChild(wn)}createElement(wn,ln){return(ln=ln||this.getDefaultDocument()).createElement(wn)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(wn){return wn.nodeType===Node.ELEMENT_NODE}isShadowRoot(wn){return wn instanceof DocumentFragment}getGlobalEventTarget(wn,ln){return"window"===ln?window:"document"===ln?wn:"body"===ln?wn.body:null}getBaseHref(wn){const ln=function A(){return t=t||document.querySelector("base"),t?t.getAttribute("href"):null}();return null==ln?null:function w(fn){x=x||document.createElement("a"),x.setAttribute("href",fn);const wn=x.pathname;return"/"===wn.charAt(0)?wn:`/${wn}`}(ln)}resetBaseElement(){t=null}getUserAgent(){return window.navigator.userAgent}getCookie(wn){return(0,d.Mx)(document.cookie,wn)}}let x,t=null;const k=new p.OlP("TRANSITION_ID"),P=[{provide:p.ip1,useFactory:function D(fn,wn,ln){return()=>{ln.get(p.CZH).donePromise.then(()=>{const ii=(0,d.q)(),Zi=wn.querySelectorAll(`style[ng-transition="${fn}"]`);for(let vo=0;vo{class fn{build(){return new XMLHttpRequest}}return fn.\u0275fac=function(ln){return new(ln||fn)},fn.\u0275prov=p.Yz7({token:fn,factory:fn.\u0275fac}),fn})();const G=new p.OlP("EventManagerPlugins");let W=(()=>{class fn{constructor(ln,ii){this._zone=ii,this._eventNameToPlugin=new Map,ln.forEach(Zi=>Zi.manager=this),this._plugins=ln.slice().reverse()}addEventListener(ln,ii,Zi){return this._findPluginFor(ii).addEventListener(ln,ii,Zi)}addGlobalEventListener(ln,ii,Zi){return this._findPluginFor(ii).addGlobalEventListener(ln,ii,Zi)}getZone(){return this._zone}_findPluginFor(ln){const ii=this._eventNameToPlugin.get(ln);if(ii)return ii;const Zi=this._plugins;for(let vo=0;vo{class fn{constructor(){this._stylesSet=new Set}addStyles(ln){const ii=new Set;ln.forEach(Zi=>{this._stylesSet.has(Zi)||(this._stylesSet.add(Zi),ii.add(Zi))}),this.onStylesAdded(ii)}onStylesAdded(ln){}getAllStyles(){return Array.from(this._stylesSet)}}return fn.\u0275fac=function(ln){return new(ln||fn)},fn.\u0275prov=p.Yz7({token:fn,factory:fn.\u0275fac}),fn})(),gt=(()=>{class fn extends ct{constructor(ln){super(),this._doc=ln,this._hostNodes=new Map,this._hostNodes.set(ln.head,[])}_addStylesToHost(ln,ii,Zi){ln.forEach(vo=>{const No=this._doc.createElement("style");No.textContent=vo,Zi.push(ii.appendChild(No))})}addHost(ln){const ii=[];this._addStylesToHost(this._stylesSet,ln,ii),this._hostNodes.set(ln,ii)}removeHost(ln){const ii=this._hostNodes.get(ln);ii&&ii.forEach(Pt),this._hostNodes.delete(ln)}onStylesAdded(ln){this._hostNodes.forEach((ii,Zi)=>{this._addStylesToHost(ln,Zi,ii)})}ngOnDestroy(){this._hostNodes.forEach(ln=>ln.forEach(Pt))}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(d.K0))},fn.\u0275prov=p.Yz7({token:fn,factory:fn.\u0275fac}),fn})();function Pt(fn){(0,d.q)().remove(fn)}const St={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ht=/%COMP%/g;function Qt(fn,wn,ln){for(let ii=0;ii{if("__ngUnwrap__"===wn)return fn;!1===fn(wn)&&(wn.preventDefault(),wn.returnValue=!1)}}let Wt=(()=>{class fn{constructor(ln,ii,Zi){this.eventManager=ln,this.sharedStylesHost=ii,this.appId=Zi,this.rendererByCompId=new Map,this.defaultRenderer=new Ce(ln)}createRenderer(ln,ii){if(!ln||!ii)return this.defaultRenderer;switch(ii.encapsulation){case p.ifc.Emulated:{let Zi=this.rendererByCompId.get(ii.id);return Zi||(Zi=new Xe(this.eventManager,this.sharedStylesHost,ii,this.appId),this.rendererByCompId.set(ii.id,Zi)),Zi.applyToHost(ln),Zi}case 1:case p.ifc.ShadowDom:return new ie(this.eventManager,this.sharedStylesHost,ln,ii);default:if(!this.rendererByCompId.has(ii.id)){const Zi=Qt(ii.id,ii.styles,[]);this.sharedStylesHost.addStyles(Zi),this.rendererByCompId.set(ii.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(W),p.LFG(gt),p.LFG(p.AFp))},fn.\u0275prov=p.Yz7({token:fn,factory:fn.\u0275fac}),fn})();class Ce{constructor(wn){this.eventManager=wn,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(wn,ln){return ln?document.createElementNS(St[ln]||ln,wn):document.createElement(wn)}createComment(wn){return document.createComment(wn)}createText(wn){return document.createTextNode(wn)}appendChild(wn,ln){(ze(wn)?wn.content:wn).appendChild(ln)}insertBefore(wn,ln,ii){wn&&(ze(wn)?wn.content:wn).insertBefore(ln,ii)}removeChild(wn,ln){wn&&wn.removeChild(ln)}selectRootElement(wn,ln){let ii="string"==typeof wn?document.querySelector(wn):wn;if(!ii)throw new Error(`The selector "${wn}" did not match any elements`);return ln||(ii.textContent=""),ii}parentNode(wn){return wn.parentNode}nextSibling(wn){return wn.nextSibling}setAttribute(wn,ln,ii,Zi){if(Zi){ln=Zi+":"+ln;const vo=St[Zi];vo?wn.setAttributeNS(vo,ln,ii):wn.setAttribute(ln,ii)}else wn.setAttribute(ln,ii)}removeAttribute(wn,ln,ii){if(ii){const Zi=St[ii];Zi?wn.removeAttributeNS(Zi,ln):wn.removeAttribute(`${ii}:${ln}`)}else wn.removeAttribute(ln)}addClass(wn,ln){wn.classList.add(ln)}removeClass(wn,ln){wn.classList.remove(ln)}setStyle(wn,ln,ii,Zi){Zi&(p.JOm.DashCase|p.JOm.Important)?wn.style.setProperty(ln,ii,Zi&p.JOm.Important?"important":""):wn.style[ln]=ii}removeStyle(wn,ln,ii){ii&p.JOm.DashCase?wn.style.removeProperty(ln):wn.style[ln]=""}setProperty(wn,ln,ii){wn[ln]=ii}setValue(wn,ln){wn.nodeValue=ln}listen(wn,ln,ii){return"string"==typeof wn?this.eventManager.addGlobalEventListener(wn,ln,qt(ii)):this.eventManager.addEventListener(wn,ln,qt(ii))}}function ze(fn){return"TEMPLATE"===fn.tagName&&void 0!==fn.content}class Xe extends Ce{constructor(wn,ln,ii,Zi){super(wn),this.component=ii;const vo=Qt(Zi+"-"+ii.id,ii.styles,[]);ln.addStyles(vo),this.contentAttr=function _t(fn){return"_ngcontent-%COMP%".replace(Ht,fn)}(Zi+"-"+ii.id),this.hostAttr=function Nt(fn){return"_nghost-%COMP%".replace(Ht,fn)}(Zi+"-"+ii.id)}applyToHost(wn){super.setAttribute(wn,this.hostAttr,"")}createElement(wn,ln){const ii=super.createElement(wn,ln);return super.setAttribute(ii,this.contentAttr,""),ii}}class ie extends Ce{constructor(wn,ln,ii,Zi){super(wn),this.sharedStylesHost=ln,this.hostEl=ii,this.shadowRoot=ii.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const vo=Qt(Zi.id,Zi.styles,[]);for(let No=0;No{class fn extends ot{constructor(ln){super(ln)}supports(ln){return!0}addEventListener(ln,ii,Zi){return ln.addEventListener(ii,Zi,!1),()=>this.removeEventListener(ln,ii,Zi)}removeEventListener(ln,ii,Zi){return ln.removeEventListener(ii,Zi)}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(d.K0))},fn.\u0275prov=p.Yz7({token:fn,factory:fn.\u0275fac}),fn})();const re=["alt","control","meta","shift"],ee={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ue={alt:fn=>fn.altKey,control:fn=>fn.ctrlKey,meta:fn=>fn.metaKey,shift:fn=>fn.shiftKey};let Kt=(()=>{class fn extends ot{constructor(ln){super(ln)}supports(ln){return null!=fn.parseEventName(ln)}addEventListener(ln,ii,Zi){const vo=fn.parseEventName(ii),No=fn.eventCallback(vo.fullKey,Zi,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.q)().onAndCancel(ln,vo.domEventName,No))}static parseEventName(ln){const ii=ln.toLowerCase().split("."),Zi=ii.shift();if(0===ii.length||"keydown"!==Zi&&"keyup"!==Zi)return null;const vo=fn._normalizeKey(ii.pop());let No="",la=ii.indexOf("code");if(la>-1&&(ii.splice(la,1),No="code."),re.forEach(fr=>{const $e=ii.indexOf(fr);$e>-1&&(ii.splice($e,1),No+=fr+".")}),No+=vo,0!=ii.length||0===vo.length)return null;const Ea={};return Ea.domEventName=Zi,Ea.fullKey=No,Ea}static matchEventFullKeyCode(ln,ii){let Zi=ee[ln.key]||ln.key,vo="";return ii.indexOf("code.")>-1&&(Zi=ln.code,vo="code."),!(null==Zi||!Zi)&&(Zi=Zi.toLowerCase()," "===Zi?Zi="space":"."===Zi&&(Zi="dot"),re.forEach(No=>{No!==Zi&&(0,ue[No])(ln)&&(vo+=No+".")}),vo+=Zi,vo===ii)}static eventCallback(ln,ii,Zi){return vo=>{fn.matchEventFullKeyCode(vo,ln)&&Zi.runGuarded(()=>ii(vo))}}static _normalizeKey(ln){return"esc"===ln?"escape":ln}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(d.K0))},fn.\u0275prov=p.Yz7({token:fn,factory:fn.\u0275fac}),fn})();const ri=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:d.bD},{provide:p.g9A,useValue:function bn(){T.makeCurrent()},multi:!0},{provide:d.K0,useFactory:function dn(){return(0,p.RDi)(document),document},deps:[]}]),Ee=new p.OlP(""),Ft=[{provide:p.rWj,useClass:class I{addToWindow(wn){p.dqk.getAngularTestability=(ii,Zi=!0)=>{const vo=wn.findTestabilityInTree(ii,Zi);if(null==vo)throw new Error("Could not find testability for element.");return vo},p.dqk.getAllAngularTestabilities=()=>wn.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>wn.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(ii=>{const Zi=p.dqk.getAllAngularTestabilities();let vo=Zi.length,No=!1;const la=function(Ea){No=No||Ea,vo--,0==vo&&ii(No)};Zi.forEach(function(Ea){Ea.whenStable(la)})})}findTestabilityInTree(wn,ln,ii){return null==ln?null:wn.getTestability(ln)??(ii?(0,d.q)().isShadowRoot(ln)?this.findTestabilityInTree(wn,ln.host,!0):this.findTestabilityInTree(wn,ln.parentElement,!0):null)}},deps:[]},{provide:p.lri,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]}],vt=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function Ze(){return new p.qLn},deps:[]},{provide:G,useClass:Te,multi:!0,deps:[d.K0,p.R0b,p.Lbi]},{provide:G,useClass:Kt,multi:!0,deps:[d.K0]},{provide:Wt,useClass:Wt,deps:[W,gt,p.AFp]},{provide:p.FYo,useExisting:Wt},{provide:ct,useExisting:gt},{provide:gt,useClass:gt,deps:[d.K0]},{provide:W,useClass:W,deps:[G,p.R0b]},{provide:d.JF,useClass:z,deps:[]},[]];let xt=(()=>{class fn{constructor(ln){}static withServerTransition(ln){return{ngModule:fn,providers:[{provide:p.AFp,useValue:ln.appId},{provide:k,useExisting:p.AFp},P]}}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(Ee,12))},fn.\u0275mod=p.oAB({type:fn}),fn.\u0275inj=p.cJS({providers:[...vt,...Ft],imports:[d.ez,p.hGG]}),fn})(),ne=(()=>{class fn{constructor(ln){this._doc=ln}getTitle(){return this._doc.title}setTitle(ln){this._doc.title=ln||""}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(d.K0))},fn.\u0275prov=p.Yz7({token:fn,factory:function(ln){let ii=null;return ii=ln?new ln:function Bt(){return new ne((0,p.LFG)(d.K0))}(),ii},providedIn:"root"}),fn})();typeof window<"u"&&window;let Fn=(()=>{class fn{}return fn.\u0275fac=function(ln){return new(ln||fn)},fn.\u0275prov=p.Yz7({token:fn,factory:function(ln){let ii=null;return ii=ln?new(ln||fn):p.LFG(go),ii},providedIn:"root"}),fn})(),go=(()=>{class fn extends Fn{constructor(ln){super(),this._doc=ln}sanitize(ln,ii){if(null==ii)return null;switch(ln){case p.q3G.NONE:return ii;case p.q3G.HTML:return(0,p.qzn)(ii,"HTML")?(0,p.z3N)(ii):(0,p.EiD)(this._doc,String(ii)).toString();case p.q3G.STYLE:return(0,p.qzn)(ii,"Style")?(0,p.z3N)(ii):ii;case p.q3G.SCRIPT:if((0,p.qzn)(ii,"Script"))return(0,p.z3N)(ii);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(ii,"URL")?(0,p.z3N)(ii):(0,p.mCW)(String(ii));case p.q3G.RESOURCE_URL:if((0,p.qzn)(ii,"ResourceURL"))return(0,p.z3N)(ii);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ln} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ln){return(0,p.JVY)(ln)}bypassSecurityTrustStyle(ln){return(0,p.L6k)(ln)}bypassSecurityTrustScript(ln){return(0,p.eBb)(ln)}bypassSecurityTrustUrl(ln){return(0,p.LAX)(ln)}bypassSecurityTrustResourceUrl(ln){return(0,p.pB0)(ln)}}return fn.\u0275fac=function(ln){return new(ln||fn)(p.LFG(d.K0))},fn.\u0275prov=p.Yz7({token:fn,factory:function(ln){let ii=null;return ii=ln?new ln:function bi(fn){return new go(fn.get(d.K0))}(p.LFG(p.zs3)),ii},providedIn:"root"}),fn})()},83689:(rt,it,b)=>{"use strict";b.d(it,{gz:()=>Js,m2:()=>Ir,wN:()=>xo,F0:()=>Cs,rH:()=>Ka,Od:()=>Tc,yS:()=>cu,Bz:()=>v_,lC:()=>pr});var d=b(94650),p=b(5254),v=b(21086),T=b(591),t=b(84450),A=b(23426),x=b(61221),w=b(88514),k=b(4843),D=b(61737),P=b(56498),I=b(68896),z=b(71762),G=b(8929),W=b(36895),ot=b(24850),ct=b(87545),gt=b(72986),Pt=b(1059),St=b(92198),Ht=b(61709),Jt=b(87224),at=b(21406),Zt=b(22868),wt=b(27221),_t=b(43489);function Nt(At,Ut){let pt=!1;return arguments.length>=2&&(pt=!0),function(se){return se.lift(new Qt(At,Ut,pt))}}class Qt{constructor(Ut,pt,Gt=!1){this.accumulator=Ut,this.seed=pt,this.hasSeed=Gt}call(Ut,pt){return pt.subscribe(new qt(Ut,this.accumulator,this.seed,this.hasSeed))}}class qt extends _t.L{constructor(Ut,pt,Gt,se){super(Ut),this.accumulator=pt,this._seed=Gt,this.hasSeed=se,this.index=0}get seed(){return this._seed}set seed(Ut){this.hasSeed=!0,this._seed=Ut}_next(Ut){if(this.hasSeed)return this._tryNext(Ut);this.seed=Ut,this.destination.next(Ut)}_tryNext(Ut){const pt=this.index++;let Gt;try{Gt=this.accumulator(this.seed,Ut,pt)}catch(se){this.destination.error(se)}this.seed=Gt,this.destination.next(Gt)}}var le=b(94231);function Wt(At){return function(pt){return 0===At?(0,I.c)():pt.lift(new Ce(At))}}class Ce{constructor(Ut){if(this.total=Ut,this.total<0)throw new le.W}call(Ut,pt){return pt.subscribe(new Ae(Ut,this.total))}}class Ae extends _t.L{constructor(Ut,pt){super(Ut),this.total=pt,this.ring=new Array,this.count=0}_next(Ut){const pt=this.ring,Gt=this.total,se=this.count++;pt.length0){const Gt=this.count>=this.total?this.total:this.count,se=this.ring;for(let Se=0;Se=2;return Gt=>Gt.pipe(At?(0,St.h)((se,Se)=>At(se,Se,Gt)):Xe.y,Wt(1),pt?(0,ze.d)(Ut):(0,Ne.T)(()=>new t.K))}var Te=b(44290),re=b(77604),ee=b(40537),ue=b(74327),Kt=b(89146),ce=b(11481);const Le="primary",on=Symbol("RouteTitle");class hn{constructor(Ut){this.params=Ut||{}}has(Ut){return Object.prototype.hasOwnProperty.call(this.params,Ut)}get(Ut){if(this.has(Ut)){const pt=this.params[Ut];return Array.isArray(pt)?pt[0]:pt}return null}getAll(Ut){if(this.has(Ut)){const pt=this.params[Ut];return Array.isArray(pt)?pt:[pt]}return[]}get keys(){return Object.keys(this.params)}}function we(At){return new hn(At)}function bn(At,Ut,pt){const Gt=pt.path.split("/");if(Gt.length>At.length||"full"===pt.pathMatch&&(Ut.hasChildren()||Gt.lengthGt[Se]===se)}return At===Ut}function ri(At){return Array.prototype.concat.apply([],At)}function Ee(At){return At.length>0?At[At.length-1]:null}function vt(At,Ut){for(const pt in At)At.hasOwnProperty(pt)&&Ut(At[pt],pt)}function xt(At){return(0,d.CqO)(At)?At:(0,d.QGY)(At)?(0,p.D)(Promise.resolve(At)):(0,v.of)(At)}const Ct={exact:function Oe(At,Ut,pt){if(!je(At.segments,Ut.segments)||!Si(At.segments,Ut.segments,pt)||At.numberOfChildren!==Ut.numberOfChildren)return!1;for(const Gt in Ut.children)if(!At.children[Gt]||!Oe(At.children[Gt],Ut.children[Gt],pt))return!1;return!0},subset:On},Bt={exact:function he(At,Ut){return dn(At,Ut)},subset:function yn(At,Ut){return Object.keys(Ut).length<=Object.keys(At).length&&Object.keys(Ut).every(pt=>kn(At[pt],Ut[pt]))},ignored:()=>!0};function ne(At,Ut,pt){return Ct[pt.paths](At.root,Ut.root,pt.matrixParams)&&Bt[pt.queryParams](At.queryParams,Ut.queryParams)&&!("exact"===pt.fragment&&At.fragment!==Ut.fragment)}function On(At,Ut,pt){return _i(At,Ut,Ut.segments,pt)}function _i(At,Ut,pt,Gt){if(At.segments.length>pt.length){const se=At.segments.slice(0,pt.length);return!(!je(se,pt)||Ut.hasChildren()||!Si(se,pt,Gt))}if(At.segments.length===pt.length){if(!je(At.segments,pt)||!Si(At.segments,pt,Gt))return!1;for(const se in Ut.children)if(!At.children[se]||!On(At.children[se],Ut.children[se],Gt))return!1;return!0}{const se=pt.slice(0,At.segments.length),Se=pt.slice(At.segments.length);return!!(je(At.segments,se)&&Si(At.segments,se,Gt)&&At.children[Le])&&_i(At.children[Le],Ut,Se,Gt)}}function Si(At,Ut,pt){return Ut.every((Gt,se)=>Bt[pt](At[se].parameters,Gt.parameters))}class ho{constructor(Ut,pt,Gt){this.root=Ut,this.queryParams=pt,this.fragment=Gt}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=we(this.queryParams)),this._queryParamMap}toString(){return an.serialize(this)}}class hi{constructor(Ut,pt){this.segments=Ut,this.children=pt,this.parent=null,vt(pt,(Gt,se)=>Gt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return pe(this)}}class Vn{constructor(Ut,pt){this.path=Ut,this.parameters=pt}get parameterMap(){return this._parameterMap||(this._parameterMap=we(this.parameters)),this._parameterMap}toString(){return Zn(this)}}function je(At,Ut){return At.length===Ut.length&&At.every((pt,Gt)=>pt.path===Ut[Gt].path)}let Ve=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275prov=d.Yz7({token:At,factory:function(){return new tn},providedIn:"root"}),At})();class tn{parse(Ut){const pt=new ln(Ut);return new ho(pt.parseRootSegment(),pt.parseQueryParams(),pt.parseFragment())}serialize(Ut){const pt=`/${We(Ut.root,!0)}`,Gt=function Be(At){const Ut=Object.keys(At).map(pt=>{const Gt=At[pt];return Array.isArray(Gt)?Gt.map(se=>`${Mt(pt)}=${Mt(se)}`).join("&"):`${Mt(pt)}=${Mt(Gt)}`}).filter(pt=>!!pt);return Ut.length?`?${Ut.join("&")}`:""}(Ut.queryParams);return`${pt}${Gt}${"string"==typeof Ut.fragment?`#${function It(At){return encodeURI(At)}(Ut.fragment)}`:""}`}}const an=new tn;function pe(At){return At.segments.map(Ut=>Zn(Ut)).join("/")}function We(At,Ut){if(!At.hasChildren())return pe(At);if(Ut){const pt=At.children[Le]?We(At.children[Le],!1):"",Gt=[];return vt(At.children,(se,Se)=>{Se!==Le&&Gt.push(`${Se}:${We(se,!1)}`)}),Gt.length>0?`${pt}(${Gt.join("//")})`:pt}{const pt=function gn(At,Ut){let pt=[];return vt(At.children,(Gt,se)=>{se===Le&&(pt=pt.concat(Ut(Gt,se)))}),vt(At.children,(Gt,se)=>{se!==Le&&(pt=pt.concat(Ut(Gt,se)))}),pt}(At,(Gt,se)=>se===Le?[We(At.children[Le],!1)]:[`${se}:${We(Gt,!1)}`]);return 1===Object.keys(At.children).length&&null!=At.children[Le]?`${pe(At)}/${pt[0]}`:`${pe(At)}/(${pt.join("//")})`}}function Et(At){return encodeURIComponent(At).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mt(At){return Et(At).replace(/%3B/gi,";")}function Me(At){return Et(At).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function en(At){return decodeURIComponent(At)}function He(At){return en(At.replace(/\+/g,"%20"))}function Zn(At){return`${Me(At.path)}${function ve(At){return Object.keys(At).map(Ut=>`;${Me(Ut)}=${Me(At[Ut])}`).join("")}(At.parameters)}`}const Fn=/^[^\/()?;=#]+/;function bi(At){const Ut=At.match(Fn);return Ut?Ut[0]:""}const go=/^[^=?&#]+/,fn=/^[^&#]+/;class ln{constructor(Ut){this.url=Ut,this.remaining=Ut}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new hi([],{}):new hi([],this.parseChildren())}parseQueryParams(){const Ut={};if(this.consumeOptional("?"))do{this.parseQueryParam(Ut)}while(this.consumeOptional("&"));return Ut}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Ut=[];for(this.peekStartsWith("(")||Ut.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Ut.push(this.parseSegment());let pt={};this.peekStartsWith("/(")&&(this.capture("/"),pt=this.parseParens(!0));let Gt={};return this.peekStartsWith("(")&&(Gt=this.parseParens(!1)),(Ut.length>0||Object.keys(pt).length>0)&&(Gt[Le]=new hi(Ut,pt)),Gt}parseSegment(){const Ut=bi(this.remaining);if(""===Ut&&this.peekStartsWith(";"))throw new d.vHH(4009,!1);return this.capture(Ut),new Vn(en(Ut),this.parseMatrixParams())}parseMatrixParams(){const Ut={};for(;this.consumeOptional(";");)this.parseParam(Ut);return Ut}parseParam(Ut){const pt=bi(this.remaining);if(!pt)return;this.capture(pt);let Gt="";if(this.consumeOptional("=")){const se=bi(this.remaining);se&&(Gt=se,this.capture(Gt))}Ut[en(pt)]=en(Gt)}parseQueryParam(Ut){const pt=function _o(At){const Ut=At.match(go);return Ut?Ut[0]:""}(this.remaining);if(!pt)return;this.capture(pt);let Gt="";if(this.consumeOptional("=")){const Dn=function wn(At){const Ut=At.match(fn);return Ut?Ut[0]:""}(this.remaining);Dn&&(Gt=Dn,this.capture(Gt))}const se=He(pt),Se=He(Gt);if(Ut.hasOwnProperty(se)){let Dn=Ut[se];Array.isArray(Dn)||(Dn=[Dn],Ut[se]=Dn),Dn.push(Se)}else Ut[se]=Se}parseParens(Ut){const pt={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Gt=bi(this.remaining),se=this.remaining[Gt.length];if("/"!==se&&")"!==se&&";"!==se)throw new d.vHH(4010,!1);let Se;Gt.indexOf(":")>-1?(Se=Gt.slice(0,Gt.indexOf(":")),this.capture(Se),this.capture(":")):Ut&&(Se=Le);const Dn=this.parseChildren();pt[Se]=1===Object.keys(Dn).length?Dn[Le]:new hi([],Dn),this.consumeOptional("//")}return pt}peekStartsWith(Ut){return this.remaining.startsWith(Ut)}consumeOptional(Ut){return!!this.peekStartsWith(Ut)&&(this.remaining=this.remaining.substring(Ut.length),!0)}capture(Ut){if(!this.consumeOptional(Ut))throw new d.vHH(4011,!1)}}function ii(At){return At.segments.length>0?new hi([],{[Le]:At}):At}function Zi(At){const Ut={};for(const Gt of Object.keys(At.children)){const Se=Zi(At.children[Gt]);(Se.segments.length>0||Se.hasChildren())&&(Ut[Gt]=Se)}return function vo(At){if(1===At.numberOfChildren&&At.children[Le]){const Ut=At.children[Le];return new hi(At.segments.concat(Ut.segments),Ut.children)}return At}(new hi(At.segments,Ut))}function No(At){return At instanceof ho}function Nn(At,Ut,pt,Gt,se){if(0===pt.length)return mn(Ut.root,Ut.root,Ut.root,Gt,se);const Se=function Q(At){if("string"==typeof At[0]&&1===At.length&&"/"===At[0])return new Vt(!0,0,At);let Ut=0,pt=!1;const Gt=At.reduce((se,Se,Dn)=>{if("object"==typeof Se&&null!=Se){if(Se.outlets){const qn={};return vt(Se.outlets,(Ii,Qi)=>{qn[Qi]="string"==typeof Ii?Ii.split("/"):Ii}),[...se,{outlets:qn}]}if(Se.segmentPath)return[...se,Se.segmentPath]}return"string"!=typeof Se?[...se,Se]:0===Dn?(Se.split("/").forEach((qn,Ii)=>{0==Ii&&"."===qn||(0==Ii&&""===qn?pt=!0:".."===qn?Ut++:""!=qn&&se.push(qn))}),se):[...se,Se]},[]);return new Vt(pt,Ut,Gt)}(pt);return Se.toRoot()?mn(Ut.root,Ut.root,new hi([],{}),Gt,se):function Dn(Ii){const Qi=function zn(At,Ut,pt,Gt){if(At.isAbsolute)return new zt(Ut.root,!0,0);if(-1===Gt)return new zt(pt,pt===Ut.root,0);return function Gi(At,Ut,pt){let Gt=At,se=Ut,Se=pt;for(;Se>se;){if(Se-=se,Gt=Gt.parent,!Gt)throw new d.vHH(4005,!1);se=Gt.segments.length}return new zt(Gt,!1,se-Se)}(pt,Gt+(Ye(At.commands[0])?0:1),At.numberOfDoubleDots)}(Se,Ut,At.snapshot?._urlSegment,Ii),Fa=Qi.processChildren?br(Qi.segmentGroup,Qi.index,Se.commands):gr(Qi.segmentGroup,Qi.index,Se.commands);return mn(Ut.root,Qi.segmentGroup,Fa,Gt,se)}(At.snapshot?._lastPathIndex)}function Ye(At){return"object"==typeof At&&null!=At&&!At.outlets&&!At.segmentPath}function Pe(At){return"object"==typeof At&&null!=At&&At.outlets}function mn(At,Ut,pt,Gt,se){let Dn,Se={};Gt&&vt(Gt,(Ii,Qi)=>{Se[Qi]=Array.isArray(Ii)?Ii.map(Fa=>`${Fa}`):`${Ii}`}),Dn=At===Ut?pt:nt(At,Ut,pt);const qn=ii(Zi(Dn));return new ho(qn,Se,se)}function nt(At,Ut,pt){const Gt={};return vt(At.children,(se,Se)=>{Gt[Se]=se===Ut?pt:nt(se,Ut,pt)}),new hi(At.segments,Gt)}class Vt{constructor(Ut,pt,Gt){if(this.isAbsolute=Ut,this.numberOfDoubleDots=pt,this.commands=Gt,Ut&&Gt.length>0&&Ye(Gt[0]))throw new d.vHH(4003,!1);const se=Gt.find(Pe);if(se&&se!==Ee(Gt))throw new d.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class zt{constructor(Ut,pt,Gt){this.segmentGroup=Ut,this.processChildren=pt,this.index=Gt}}function gr(At,Ut,pt){if(At||(At=new hi([],{})),0===At.segments.length&&At.hasChildren())return br(At,Ut,pt);const Gt=function cs(At,Ut,pt){let Gt=0,se=Ut;const Se={match:!1,pathIndex:0,commandIndex:0};for(;se=pt.length)return Se;const Dn=At.segments[se],qn=pt[Gt];if(Pe(qn))break;const Ii=`${qn}`,Qi=Gt0&&void 0===Ii)break;if(Ii&&Qi&&"object"==typeof Qi&&void 0===Qi.outlets){if(!dr(Ii,Qi,Dn))return Se;Gt+=2}else{if(!dr(Ii,{},Dn))return Se;Gt++}se++}return{match:!0,pathIndex:se,commandIndex:Gt}}(At,Ut,pt),se=pt.slice(Gt.commandIndex);if(Gt.match&&Gt.pathIndex{"string"==typeof Se&&(Se=[Se]),null!==Se&&(se[Dn]=gr(At.children[Dn],Ut,Se))}),vt(At.children,(Se,Dn)=>{void 0===Gt[Dn]&&(se[Dn]=Se)}),new hi(At.segments,se)}}function or(At,Ut,pt){const Gt=At.segments.slice(0,Ut);let se=0;for(;se{"string"==typeof pt&&(pt=[pt]),null!==pt&&(Ut[Gt]=or(new hi([],{}),0,pt))}),Ut}function bc(At){const Ut={};return vt(At,(pt,Gt)=>Ut[Gt]=`${pt}`),Ut}function dr(At,Ut,pt){return At==pt.path&&dn(Ut,pt.parameters)}class Yr{constructor(Ut,pt){this.id=Ut,this.url=pt}}class Gr extends Yr{constructor(Ut,pt,Gt="imperative",se=null){super(Ut,pt),this.type=0,this.navigationTrigger=Gt,this.restoredState=se}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ir extends Yr{constructor(Ut,pt,Gt){super(Ut,pt),this.urlAfterRedirects=Gt,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Pc extends Yr{constructor(Ut,pt,Gt,se){super(Ut,pt),this.reason=Gt,this.code=se,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class rl extends Yr{constructor(Ut,pt,Gt,se){super(Ut,pt),this.error=Gt,this.target=se,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Sc extends Yr{constructor(Ut,pt,Gt,se){super(Ut,pt),this.urlAfterRedirects=Gt,this.state=se,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fs extends Yr{constructor(Ut,pt,Gt,se){super(Ut,pt),this.urlAfterRedirects=Gt,this.state=se,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lc extends Yr{constructor(Ut,pt,Gt,se,Se){super(Ut,pt),this.urlAfterRedirects=Gt,this.state=se,this.shouldActivate=Se,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class xl extends Yr{constructor(Ut,pt,Gt,se){super(Ut,pt),this.urlAfterRedirects=Gt,this.state=se,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qr extends Yr{constructor(Ut,pt,Gt,se){super(Ut,pt),this.urlAfterRedirects=Gt,this.state=se,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ns{constructor(Ut){this.route=Ut,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class _1{constructor(Ut){this.route=Ut,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hr{constructor(Ut){this.snapshot=Ut,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iu{constructor(Ut){this.snapshot=Ut,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class f1{constructor(Ut){this.snapshot=Ut,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vc{constructor(Ut){this.snapshot=Ut,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cl{constructor(Ut,pt,Gt){this.routerEvent=Ut,this.position=pt,this.anchor=Gt,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Oc{constructor(Ut){this._root=Ut}get root(){return this._root.value}parent(Ut){const pt=this.pathFromRoot(Ut);return pt.length>1?pt[pt.length-2]:null}children(Ut){const pt=Vs(Ut,this._root);return pt?pt.children.map(Gt=>Gt.value):[]}firstChild(Ut){const pt=Vs(Ut,this._root);return pt&&pt.children.length>0?pt.children[0].value:null}siblings(Ut){const pt=Yc(Ut,this._root);return pt.length<2?[]:pt[pt.length-2].children.map(se=>se.value).filter(se=>se!==Ut)}pathFromRoot(Ut){return Yc(Ut,this._root).map(pt=>pt.value)}}function Vs(At,Ut){if(At===Ut.value)return Ut;for(const pt of Ut.children){const Gt=Vs(At,pt);if(Gt)return Gt}return null}function Yc(At,Ut){if(At===Ut.value)return[Ut];for(const pt of Ut.children){const Gt=Yc(At,pt);if(Gt.length)return Gt.unshift(Ut),Gt}return[]}class Vc{constructor(Ut,pt){this.value=Ut,this.children=pt}toString(){return`TreeNode(${this.value})`}}function js(At){const Ut={};return At&&At.children.forEach(pt=>Ut[pt.value.outlet]=pt),Ut}class yl extends Oc{constructor(Ut,pt){super(Ut),this.snapshot=pt,zl(this,Ut)}toString(){return this.snapshot.toString()}}function md(At,Ut){const pt=function Hl(At,Ut){const Dn=new jc([],{},{},"",{},Le,Ut,null,At.root,-1,{});return new ks("",new Vc(Dn,[]))}(At,Ut),Gt=new T.X([new Vn("",{})]),se=new T.X({}),Se=new T.X({}),Dn=new T.X({}),qn=new T.X(""),Ii=new Js(Gt,se,Dn,qn,Se,Le,Ut,pt.root);return Ii.snapshot=pt.root,new yl(new Vc(Ii,[]),pt)}class Js{constructor(Ut,pt,Gt,se,Se,Dn,qn,Ii){this.url=Ut,this.params=pt,this.queryParams=Gt,this.fragment=se,this.data=Se,this.outlet=Dn,this.component=qn,this.title=this.data?.pipe((0,ot.U)(Qi=>Qi[on]))??(0,v.of)(void 0),this._futureSnapshot=Ii}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ot.U)(Ut=>we(Ut)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ot.U)(Ut=>we(Ut)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Tl(At,Ut="emptyOnly"){const pt=At.pathFromRoot;let Gt=0;if("always"!==Ut)for(Gt=pt.length-1;Gt>=1;){const se=pt[Gt],Se=pt[Gt-1];if(se.routeConfig&&""===se.routeConfig.path)Gt--;else{if(Se.component)break;Gt--}}return function Gs(At){return At.reduce((Ut,pt)=>({params:{...Ut.params,...pt.params},data:{...Ut.data,...pt.data},resolve:{...pt.data,...Ut.resolve,...pt.routeConfig?.data,...pt._resolvedData}}),{params:{},data:{},resolve:{}})}(pt.slice(Gt))}class jc{constructor(Ut,pt,Gt,se,Se,Dn,qn,Ii,Qi,Fa,Ko,xr){this.url=Ut,this.params=pt,this.queryParams=Gt,this.fragment=se,this.data=Se,this.outlet=Dn,this.component=qn,this.title=this.data?.[on],this.routeConfig=Ii,this._urlSegment=Qi,this._lastPathIndex=Fa,this._correctedLastPathIndex=xr??Fa,this._resolve=Ko}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=we(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=we(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Gt=>Gt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ks extends Oc{constructor(Ut,pt){super(pt),this.url=Ut,zl(this,pt)}toString(){return ou(this._root)}}function zl(At,Ut){Ut.value._routerState=At,Ut.children.forEach(pt=>zl(At,pt))}function ou(At){const Ut=At.children.length>0?` { ${At.children.map(ou).join(", ")} } `:"";return`${At.value}${Ut}`}function Bl(At){if(At.snapshot){const Ut=At.snapshot,pt=At._futureSnapshot;At.snapshot=pt,dn(Ut.queryParams,pt.queryParams)||At.queryParams.next(pt.queryParams),Ut.fragment!==pt.fragment&&At.fragment.next(pt.fragment),dn(Ut.params,pt.params)||At.params.next(pt.params),function Ze(At,Ut){if(At.length!==Ut.length)return!1;for(let pt=0;ptdn(pt.parameters,Ut[Gt].parameters))}(At.url,Ut.url);return pt&&!(!At.parent!=!Ut.parent)&&(!At.parent||qo(At.parent,Ut.parent))}function cc(At,Ut,pt){if(pt&&At.shouldReuseRoute(Ut.value,pt.value.snapshot)){const Gt=pt.value;Gt._futureSnapshot=Ut.value;const se=function qu(At,Ut,pt){return Ut.children.map(Gt=>{for(const se of pt.children)if(At.shouldReuseRoute(Gt.value,se.value.snapshot))return cc(At,Gt,se);return cc(At,Gt)})}(At,Ut,pt);return new Vc(Gt,se)}{if(At.shouldAttach(Ut.value)){const Se=At.retrieve(Ut.value);if(null!==Se){const Dn=Se.route;return Dn.value._futureSnapshot=Ut.value,Dn.children=Ut.children.map(qn=>cc(At,qn)),Dn}}const Gt=function Yl(At){return new Js(new T.X(At.url),new T.X(At.params),new T.X(At.queryParams),new T.X(At.fragment),new T.X(At.data),At.outlet,At.component,At)}(Ut.value),se=Ut.children.map(Se=>cc(At,Se));return new Vc(Gt,se)}}const xc="ngNavigationCancelingError";function wl(At,Ut){const{redirectTo:pt,navigationBehaviorOptions:Gt}=No(Ut)?{redirectTo:Ut,navigationBehaviorOptions:void 0}:Ut,se=Ds(!1,0,Ut);return se.url=pt,se.navigationBehaviorOptions=Gt,se}function Ds(At,Ut,pt){const Gt=new Error("NavigationCancelingError: "+(At||""));return Gt[xc]=!0,Gt.cancellationCode=Ut,pt&&(Gt.url=pt),Gt}function Jc(At){return bu(At)&&No(At.url)}function bu(At){return At&&At[xc]}class Dr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Cc,this.attachRef=null}}let Cc=(()=>{class At{constructor(){this.contexts=new Map}onChildOutletCreated(pt,Gt){const se=this.getOrCreateContext(pt);se.outlet=Gt,this.contexts.set(pt,se)}onChildOutletDestroyed(pt){const Gt=this.getContext(pt);Gt&&(Gt.outlet=null,Gt.attachRef=null)}onOutletDeactivated(){const pt=this.contexts;return this.contexts=new Map,pt}onOutletReAttached(pt){this.contexts=pt}getOrCreateContext(pt){let Gt=this.getContext(pt);return Gt||(Gt=new Dr,this.contexts.set(pt,Gt)),Gt}getContext(pt){return this.contexts.get(pt)||null}}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275prov=d.Yz7({token:At,factory:At.\u0275fac,providedIn:"root"}),At})();const Wa=!1;let pr=(()=>{class At{constructor(pt,Gt,se,Se,Dn){this.parentContexts=pt,this.location=Gt,this.changeDetector=Se,this.environmentInjector=Dn,this.activated=null,this._activatedRoute=null,this.activateEvents=new d.vpe,this.deactivateEvents=new d.vpe,this.attachEvents=new d.vpe,this.detachEvents=new d.vpe,this.name=se||Le,pt.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const pt=this.parentContexts.getContext(this.name);pt&&pt.route&&(pt.attachRef?this.attach(pt.attachRef,pt.route):this.activateWith(pt.route,pt.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new d.vHH(4012,Wa);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new d.vHH(4012,Wa);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new d.vHH(4012,Wa);this.location.detach();const pt=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(pt.instance),pt}attach(pt,Gt){this.activated=pt,this._activatedRoute=Gt,this.location.insert(pt.hostView),this.attachEvents.emit(pt.instance)}deactivate(){if(this.activated){const pt=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(pt)}}activateWith(pt,Gt){if(this.isActivated)throw new d.vHH(4013,Wa);this._activatedRoute=pt;const se=this.location,Dn=pt._futureSnapshot.component,qn=this.parentContexts.getOrCreateContext(this.name).children,Ii=new Gc(pt,qn,se.injector);if(Gt&&function vs(At){return!!At.resolveComponentFactory}(Gt)){const Qi=Gt.resolveComponentFactory(Dn);this.activated=se.createComponent(Qi,se.length,Ii)}else this.activated=se.createComponent(Dn,{index:se.length,injector:Ii,environmentInjector:Gt??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return At.\u0275fac=function(pt){return new(pt||At)(d.Y36(Cc),d.Y36(d.s_b),d.$8M("name"),d.Y36(d.sBO),d.Y36(d.lqb))},At.\u0275dir=d.lG2({type:At,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),At})();class Gc{constructor(Ut,pt,Gt){this.route=Ut,this.childContexts=pt,this.parent=Gt}get(Ut,pt){return Ut===Js?this.route:Ut===Cc?this.childContexts:this.parent.get(Ut,pt)}}let Ac=(()=>{class At{}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275cmp=d.Xpm({type:At,selectors:[["ng-component"]],standalone:!0,features:[d.jDz],decls:1,vars:0,template:function(pt,Gt){1&pt&&d._UZ(0,"router-outlet")},dependencies:[pr],encapsulation:2}),At})();function rr(At,Ut){return At.providers&&!At._injector&&(At._injector=(0,d.MMx)(At.providers,Ut,`Route: ${At.path}`)),At._injector??Ut}function Ws(At){const Ut=At.children&&At.children.map(Ws),pt=Ut?{...At,children:Ut}:{...At};return!pt.component&&!pt.loadComponent&&(Ut||pt.loadChildren)&&pt.outlet&&pt.outlet!==Le&&(pt.component=Ac),pt}function Fr(At){return At.outlet||Le}function aa(At,Ut){const pt=At.filter(Gt=>Fr(Gt)===Ut);return pt.push(...At.filter(Gt=>Fr(Gt)!==Ut)),pt}function uc(At){if(!At)return null;if(At.routeConfig?._injector)return At.routeConfig._injector;for(let Ut=At.parent;Ut;Ut=Ut.parent){const pt=Ut.routeConfig;if(pt?._loadedInjector)return pt._loadedInjector;if(pt?._injector)return pt._injector}return null}class Vr{constructor(Ut,pt,Gt,se){this.routeReuseStrategy=Ut,this.futureState=pt,this.currState=Gt,this.forwardEvent=se}activate(Ut){const pt=this.futureState._root,Gt=this.currState?this.currState._root:null;this.deactivateChildRoutes(pt,Gt,Ut),Bl(this.futureState.root),this.activateChildRoutes(pt,Gt,Ut)}deactivateChildRoutes(Ut,pt,Gt){const se=js(pt);Ut.children.forEach(Se=>{const Dn=Se.value.outlet;this.deactivateRoutes(Se,se[Dn],Gt),delete se[Dn]}),vt(se,(Se,Dn)=>{this.deactivateRouteAndItsChildren(Se,Gt)})}deactivateRoutes(Ut,pt,Gt){const se=Ut.value,Se=pt?pt.value:null;if(se===Se)if(se.component){const Dn=Gt.getContext(se.outlet);Dn&&this.deactivateChildRoutes(Ut,pt,Dn.children)}else this.deactivateChildRoutes(Ut,pt,Gt);else Se&&this.deactivateRouteAndItsChildren(pt,Gt)}deactivateRouteAndItsChildren(Ut,pt){Ut.value.component&&this.routeReuseStrategy.shouldDetach(Ut.value.snapshot)?this.detachAndStoreRouteSubtree(Ut,pt):this.deactivateRouteAndOutlet(Ut,pt)}detachAndStoreRouteSubtree(Ut,pt){const Gt=pt.getContext(Ut.value.outlet),se=Gt&&Ut.value.component?Gt.children:pt,Se=js(Ut);for(const Dn of Object.keys(Se))this.deactivateRouteAndItsChildren(Se[Dn],se);if(Gt&&Gt.outlet){const Dn=Gt.outlet.detach(),qn=Gt.children.onOutletDeactivated();this.routeReuseStrategy.store(Ut.value.snapshot,{componentRef:Dn,route:Ut,contexts:qn})}}deactivateRouteAndOutlet(Ut,pt){const Gt=pt.getContext(Ut.value.outlet),se=Gt&&Ut.value.component?Gt.children:pt,Se=js(Ut);for(const Dn of Object.keys(Se))this.deactivateRouteAndItsChildren(Se[Dn],se);Gt&&Gt.outlet&&(Gt.outlet.deactivate(),Gt.children.onOutletDeactivated(),Gt.attachRef=null,Gt.resolver=null,Gt.route=null)}activateChildRoutes(Ut,pt,Gt){const se=js(pt);Ut.children.forEach(Se=>{this.activateRoutes(Se,se[Se.value.outlet],Gt),this.forwardEvent(new vc(Se.value.snapshot))}),Ut.children.length&&this.forwardEvent(new iu(Ut.value.snapshot))}activateRoutes(Ut,pt,Gt){const se=Ut.value,Se=pt?pt.value:null;if(Bl(se),se===Se)if(se.component){const Dn=Gt.getOrCreateContext(se.outlet);this.activateChildRoutes(Ut,pt,Dn.children)}else this.activateChildRoutes(Ut,pt,Gt);else if(se.component){const Dn=Gt.getOrCreateContext(se.outlet);if(this.routeReuseStrategy.shouldAttach(se.snapshot)){const qn=this.routeReuseStrategy.retrieve(se.snapshot);this.routeReuseStrategy.store(se.snapshot,null),Dn.children.onOutletReAttached(qn.contexts),Dn.attachRef=qn.componentRef,Dn.route=qn.route.value,Dn.outlet&&Dn.outlet.attach(qn.componentRef,qn.route.value),Bl(qn.route.value),this.activateChildRoutes(Ut,null,Dn.children)}else{const qn=uc(se.snapshot),Ii=qn?.get(d._Vd)??null;Dn.attachRef=null,Dn.route=se,Dn.resolver=Ii,Dn.injector=qn,Dn.outlet&&Dn.outlet.activateWith(se,Dn.injector),this.activateChildRoutes(Ut,null,Dn.children)}}else this.activateChildRoutes(Ut,null,Gt)}}class Qc{constructor(Ut){this.path=Ut,this.route=this.path[this.path.length-1]}}class sl{constructor(Ut,pt){this.component=Ut,this.route=pt}}function yc(At,Ut,pt){const Gt=At._root;return Yi(Gt,Ut?Ut._root:null,pt,[Gt.value])}function vu(At,Ut){const pt=Symbol(),Gt=Ut.get(At,pt);return Gt===pt?"function"!=typeof At||(0,d.Z0I)(At)?Ut.get(At):At:Gt}function Yi(At,Ut,pt,Gt,se={canDeactivateChecks:[],canActivateChecks:[]}){const Se=js(Ut);return At.children.forEach(Dn=>{(function Da(At,Ut,pt,Gt,se={canDeactivateChecks:[],canActivateChecks:[]}){const Se=At.value,Dn=Ut?Ut.value:null,qn=pt?pt.getContext(At.value.outlet):null;if(Dn&&Se.routeConfig===Dn.routeConfig){const Ii=function xu(At,Ut,pt){if("function"==typeof pt)return pt(At,Ut);switch(pt){case"pathParamsChange":return!je(At.url,Ut.url);case"pathParamsOrQueryParamsChange":return!je(At.url,Ut.url)||!dn(At.queryParams,Ut.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qo(At,Ut)||!dn(At.queryParams,Ut.queryParams);default:return!qo(At,Ut)}}(Dn,Se,Se.routeConfig.runGuardsAndResolvers);Ii?se.canActivateChecks.push(new Qc(Gt)):(Se.data=Dn.data,Se._resolvedData=Dn._resolvedData),Yi(At,Ut,Se.component?qn?qn.children:null:pt,Gt,se),Ii&&qn&&qn.outlet&&qn.outlet.isActivated&&se.canDeactivateChecks.push(new sl(qn.outlet.component,Dn))}else Dn&&$s(Ut,qn,se),se.canActivateChecks.push(new Qc(Gt)),Yi(At,null,Se.component?qn?qn.children:null:pt,Gt,se)})(Dn,Se[Dn.value.outlet],pt,Gt.concat([Dn.value]),se),delete Se[Dn.value.outlet]}),vt(Se,(Dn,qn)=>$s(Dn,pt.getContext(qn),se)),se}function $s(At,Ut,pt){const Gt=js(At),se=At.value;vt(Gt,(Se,Dn)=>{$s(Se,se.component?Ut?Ut.children.getContext(Dn):null:Ut,pt)}),pt.canDeactivateChecks.push(new sl(se.component&&Ut&&Ut.outlet&&Ut.outlet.isActivated?Ut.outlet.component:null,se))}function Pr(At){return"function"==typeof At}function Ec(At){return At instanceof t.K||"EmptyError"===At?.name}const Nr=Symbol("INITIAL_VALUE");function qr(){return(0,ct.w)(At=>(0,A.aj)(At.map(Ut=>Ut.pipe((0,gt.q)(1),(0,Pt.O)(Nr)))).pipe((0,ot.U)(Ut=>{for(const pt of Ut)if(!0!==pt){if(pt===Nr)return Nr;if(!1===pt||pt instanceof ho)return pt}return!0}),(0,St.h)(Ut=>Ut!==Nr),(0,gt.q)(1)))}function cl(At){return(0,k.z)((0,Zt.b)(Ut=>{if(No(Ut))throw wl(0,Ut)}),(0,ot.U)(Ut=>!0===Ut))}const pp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ml(At,Ut,pt,Gt,se){const Se=ll(At,Ut,pt);return Se.matched?function Zl(At,Ut,pt,Gt){const se=Ut.canMatch;if(!se||0===se.length)return(0,v.of)(!0);const Se=se.map(Dn=>{const qn=vu(Dn,At);return xt(function jo(At){return At&&Pr(At.canMatch)}(qn)?qn.canMatch(Ut,pt):At.runInContext(()=>qn(Ut,pt)))});return(0,v.of)(Se).pipe(qr(),cl())}(Gt=rr(Ut,Gt),Ut,pt).pipe((0,ot.U)(Dn=>!0===Dn?Se:{...pp})):(0,v.of)(Se)}function ll(At,Ut,pt){if(""===Ut.path)return"full"===Ut.pathMatch&&(At.hasChildren()||pt.length>0)?{...pp}:{matched:!0,consumedSegments:[],remainingSegments:pt,parameters:{},positionalParamSegments:{}};const se=(Ut.matcher||bn)(pt,At,Ut);if(!se)return{...pp};const Se={};vt(se.posParams,(qn,Ii)=>{Se[Ii]=qn.path});const Dn=se.consumed.length>0?{...Se,...se.consumed[se.consumed.length-1].parameters}:Se;return{matched:!0,consumedSegments:se.consumed,remainingSegments:pt.slice(se.consumed.length),parameters:Dn,positionalParamSegments:se.posParams??{}}}function Bi(At,Ut,pt,Gt,se="corrected"){if(pt.length>0&&function Cu(At,Ut,pt){return pt.some(Gt=>ul(At,Ut,Gt)&&Fr(Gt)!==Le)}(At,pt,Gt)){const Dn=new hi(Ut,function su(At,Ut,pt,Gt){const se={};se[Le]=Gt,Gt._sourceSegment=At,Gt._segmentIndexShift=Ut.length;for(const Se of pt)if(""===Se.path&&Fr(Se)!==Le){const Dn=new hi([],{});Dn._sourceSegment=At,Dn._segmentIndexShift=Ut.length,se[Fr(Se)]=Dn}return se}(At,Ut,Gt,new hi(pt,At.children)));return Dn._sourceSegment=At,Dn._segmentIndexShift=Ut.length,{segmentGroup:Dn,slicedSegments:[]}}if(0===pt.length&&function wa(At,Ut,pt){return pt.some(Gt=>ul(At,Ut,Gt))}(At,pt,Gt)){const Dn=new hi(At.segments,function ft(At,Ut,pt,Gt,se,Se){const Dn={};for(const qn of Gt)if(ul(At,pt,qn)&&!se[Fr(qn)]){const Ii=new hi([],{});Ii._sourceSegment=At,Ii._segmentIndexShift="legacy"===Se?At.segments.length:Ut.length,Dn[Fr(qn)]=Ii}return{...se,...Dn}}(At,Ut,pt,Gt,At.children,se));return Dn._sourceSegment=At,Dn._segmentIndexShift=Ut.length,{segmentGroup:Dn,slicedSegments:pt}}const Se=new hi(At.segments,At.children);return Se._sourceSegment=At,Se._segmentIndexShift=Ut.length,{segmentGroup:Se,slicedSegments:pt}}function ul(At,Ut,pt){return(!(At.hasChildren()||Ut.length>0)||"full"!==pt.pathMatch)&&""===pt.path}function Ja(At,Ut,pt,Gt){return!!(Fr(At)===Gt||Gt!==Le&&ul(Ut,pt,At))&&("**"===At.path||ll(Ut,At,pt).matched)}function Rr(At,Ut,pt){return 0===Ut.length&&!At.children[pt]}const ws=!1;class Ra{constructor(Ut){this.segmentGroup=Ut||null}}class Ei{constructor(Ut){this.urlTree=Ut}}function _d(At){return(0,D._)(new Ra(At))}function g1(At){return(0,D._)(new Ei(At))}class Pi{constructor(Ut,pt,Gt,se,Se){this.injector=Ut,this.configLoader=pt,this.urlSerializer=Gt,this.urlTree=se,this.config=Se,this.allowRedirects=!0}apply(){const Ut=Bi(this.urlTree.root,[],[],this.config).segmentGroup,pt=new hi(Ut.segments,Ut.children);return this.expandSegmentGroup(this.injector,this.config,pt,Le).pipe((0,ot.U)(Se=>this.createUrlTree(Zi(Se),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,wt.K)(Se=>{if(Se instanceof Ei)return this.allowRedirects=!1,this.match(Se.urlTree);throw Se instanceof Ra?this.noMatchError(Se):Se}))}match(Ut){return this.expandSegmentGroup(this.injector,this.config,Ut.root,Le).pipe((0,ot.U)(se=>this.createUrlTree(Zi(se),Ut.queryParams,Ut.fragment))).pipe((0,wt.K)(se=>{throw se instanceof Ra?this.noMatchError(se):se}))}noMatchError(Ut){return new d.vHH(4002,ws)}createUrlTree(Ut,pt,Gt){const se=ii(Ut);return new ho(se,pt,Gt)}expandSegmentGroup(Ut,pt,Gt,se){return 0===Gt.segments.length&&Gt.hasChildren()?this.expandChildren(Ut,pt,Gt).pipe((0,ot.U)(Se=>new hi([],Se))):this.expandSegment(Ut,Gt,pt,Gt.segments,se,!0)}expandChildren(Ut,pt,Gt){const se=[];for(const Se of Object.keys(Gt.children))"primary"===Se?se.unshift(Se):se.push(Se);return(0,p.D)(se).pipe((0,at.b)(Se=>{const Dn=Gt.children[Se],qn=aa(pt,Se);return this.expandSegmentGroup(Ut,qn,Dn,Se).pipe((0,ot.U)(Ii=>({segment:Ii,outlet:Se})))}),Nt((Se,Dn)=>(Se[Dn.outlet]=Dn.segment,Se),{}),ie())}expandSegment(Ut,pt,Gt,se,Se,Dn){return(0,p.D)(Gt).pipe((0,at.b)(qn=>this.expandSegmentAgainstRoute(Ut,pt,Gt,qn,se,Se,Dn).pipe((0,wt.K)(Qi=>{if(Qi instanceof Ra)return(0,v.of)(null);throw Qi}))),(0,Jt.P)(qn=>!!qn),(0,wt.K)((qn,Ii)=>{if(Ec(qn))return Rr(pt,se,Se)?(0,v.of)(new hi([],{})):_d(pt);throw qn}))}expandSegmentAgainstRoute(Ut,pt,Gt,se,Se,Dn,qn){return Ja(se,pt,Se,Dn)?void 0===se.redirectTo?this.matchSegmentAgainstRoute(Ut,pt,se,Se,Dn):qn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Ut,pt,Gt,se,Se,Dn):_d(pt):_d(pt)}expandSegmentAgainstRouteUsingRedirect(Ut,pt,Gt,se,Se,Dn){return"**"===se.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Ut,Gt,se,Dn):this.expandRegularSegmentAgainstRouteUsingRedirect(Ut,pt,Gt,se,Se,Dn)}expandWildCardWithParamsAgainstRouteUsingRedirect(Ut,pt,Gt,se){const Se=this.applyRedirectCommands([],Gt.redirectTo,{});return Gt.redirectTo.startsWith("/")?g1(Se):this.lineralizeSegments(Gt,Se).pipe((0,Ht.zg)(Dn=>{const qn=new hi(Dn,{});return this.expandSegment(Ut,qn,pt,Dn,se,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Ut,pt,Gt,se,Se,Dn){const{matched:qn,consumedSegments:Ii,remainingSegments:Qi,positionalParamSegments:Fa}=ll(pt,se,Se);if(!qn)return _d(pt);const Ko=this.applyRedirectCommands(Ii,se.redirectTo,Fa);return se.redirectTo.startsWith("/")?g1(Ko):this.lineralizeSegments(se,Ko).pipe((0,Ht.zg)(xr=>this.expandSegment(Ut,pt,Gt,xr.concat(Qi),Dn,!1)))}matchSegmentAgainstRoute(Ut,pt,Gt,se,Se){return"**"===Gt.path?(Ut=rr(Gt,Ut),Gt.loadChildren?(Gt._loadedRoutes?(0,v.of)({routes:Gt._loadedRoutes,injector:Gt._loadedInjector}):this.configLoader.loadChildren(Ut,Gt)).pipe((0,ot.U)(qn=>(Gt._loadedRoutes=qn.routes,Gt._loadedInjector=qn.injector,new hi(se,{})))):(0,v.of)(new hi(se,{}))):Ml(pt,Gt,se,Ut).pipe((0,ct.w)(({matched:Dn,consumedSegments:qn,remainingSegments:Ii})=>Dn?this.getChildConfig(Ut=Gt._injector??Ut,Gt,se).pipe((0,Ht.zg)(Fa=>{const Ko=Fa.injector??Ut,xr=Fa.routes,{segmentGroup:zs,slicedSegments:Vu}=Bi(pt,qn,Ii,xr),va=new hi(zs.segments,zs.children);if(0===Vu.length&&va.hasChildren())return this.expandChildren(Ko,xr,va).pipe((0,ot.U)(Ci=>new hi(qn,Ci)));if(0===xr.length&&0===Vu.length)return(0,v.of)(new hi(qn,{}));const Dl=Fr(Gt)===Se;return this.expandSegment(Ko,va,xr,Vu,Dl?Le:Se,!0).pipe((0,ot.U)(Pn=>new hi(qn.concat(Pn.segments),Pn.children)))})):_d(pt)))}getChildConfig(Ut,pt,Gt){return pt.children?(0,v.of)({routes:pt.children,injector:Ut}):pt.loadChildren?void 0!==pt._loadedRoutes?(0,v.of)({routes:pt._loadedRoutes,injector:pt._loadedInjector}):function Ic(At,Ut,pt,Gt){const se=Ut.canLoad;if(void 0===se||0===se.length)return(0,v.of)(!0);const Se=se.map(Dn=>{const qn=vu(Dn,At);return xt(function ae(At){return At&&Pr(At.canLoad)}(qn)?qn.canLoad(Ut,pt):At.runInContext(()=>qn(Ut,pt)))});return(0,v.of)(Se).pipe(qr(),cl())}(Ut,pt,Gt).pipe((0,Ht.zg)(se=>se?this.configLoader.loadChildren(Ut,pt).pipe((0,Zt.b)(Se=>{pt._loadedRoutes=Se.routes,pt._loadedInjector=Se.injector})):function mi(At){return(0,D._)(Ds(ws,3))}())):(0,v.of)({routes:[],injector:Ut})}lineralizeSegments(Ut,pt){let Gt=[],se=pt.root;for(;;){if(Gt=Gt.concat(se.segments),0===se.numberOfChildren)return(0,v.of)(Gt);if(se.numberOfChildren>1||!se.children[Le])return(0,D._)(new d.vHH(4e3,ws));se=se.children[Le]}}applyRedirectCommands(Ut,pt,Gt){return this.applyRedirectCreateUrlTree(pt,this.urlSerializer.parse(pt),Ut,Gt)}applyRedirectCreateUrlTree(Ut,pt,Gt,se){const Se=this.createSegmentGroup(Ut,pt.root,Gt,se);return new ho(Se,this.createQueryParams(pt.queryParams,this.urlTree.queryParams),pt.fragment)}createQueryParams(Ut,pt){const Gt={};return vt(Ut,(se,Se)=>{if("string"==typeof se&&se.startsWith(":")){const qn=se.substring(1);Gt[Se]=pt[qn]}else Gt[Se]=se}),Gt}createSegmentGroup(Ut,pt,Gt,se){const Se=this.createSegments(Ut,pt.segments,Gt,se);let Dn={};return vt(pt.children,(qn,Ii)=>{Dn[Ii]=this.createSegmentGroup(Ut,qn,Gt,se)}),new hi(Se,Dn)}createSegments(Ut,pt,Gt,se){return pt.map(Se=>Se.path.startsWith(":")?this.findPosParam(Ut,Se,se):this.findOrReturn(Se,Gt))}findPosParam(Ut,pt,Gt){const se=Gt[pt.path.substring(1)];if(!se)throw new d.vHH(4001,ws);return se}findOrReturn(Ut,pt){let Gt=0;for(const se of pt){if(se.path===Ut.path)return pt.splice(Gt),se;Gt++}return Ut}}class nr{}class xe{constructor(Ut,pt,Gt,se,Se,Dn,qn,Ii){this.injector=Ut,this.rootComponentType=pt,this.config=Gt,this.urlTree=se,this.url=Se,this.paramsInheritanceStrategy=Dn,this.relativeLinkResolution=qn,this.urlSerializer=Ii}recognize(){const Ut=Bi(this.urlTree.root,[],[],this.config.filter(pt=>void 0===pt.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,Ut,Le).pipe((0,ot.U)(pt=>{if(null===pt)return null;const Gt=new jc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Le,this.rootComponentType,null,this.urlTree.root,-1,{}),se=new Vc(Gt,pt),Se=new ks(this.url,se);return this.inheritParamsAndData(Se._root),Se}))}inheritParamsAndData(Ut){const pt=Ut.value,Gt=Tl(pt,this.paramsInheritanceStrategy);pt.params=Object.freeze(Gt.params),pt.data=Object.freeze(Gt.data),Ut.children.forEach(se=>this.inheritParamsAndData(se))}processSegmentGroup(Ut,pt,Gt,se){return 0===Gt.segments.length&&Gt.hasChildren()?this.processChildren(Ut,pt,Gt):this.processSegment(Ut,pt,Gt,Gt.segments,se)}processChildren(Ut,pt,Gt){return(0,p.D)(Object.keys(Gt.children)).pipe((0,at.b)(se=>{const Se=Gt.children[se],Dn=aa(pt,se);return this.processSegmentGroup(Ut,Dn,Se,se)}),Nt((se,Se)=>se&&Se?(se.push(...Se),se):null),(0,Te.o)(se=>null!==se),(0,ze.d)(null),ie(),(0,ot.U)(se=>{if(null===se)return null;const Se=fd(se);return function Au(At){At.sort((Ut,pt)=>Ut.value.outlet===Le?-1:pt.value.outlet===Le?1:Ut.value.outlet.localeCompare(pt.value.outlet))}(Se),Se}))}processSegment(Ut,pt,Gt,se,Se){return(0,p.D)(pt).pipe((0,at.b)(Dn=>this.processSegmentAgainstRoute(Dn._injector??Ut,Dn,Gt,se,Se)),(0,Jt.P)(Dn=>!!Dn),(0,wt.K)(Dn=>{if(Ec(Dn))return Rr(Gt,se,Se)?(0,v.of)([]):(0,v.of)(null);throw Dn}))}processSegmentAgainstRoute(Ut,pt,Gt,se,Se){if(pt.redirectTo||!Ja(pt,Gt,se,Se))return(0,v.of)(null);let Dn;if("**"===pt.path){const qn=se.length>0?Ee(se).parameters:{},Ii=Lt(Gt)+se.length,Qi=new jc(se,qn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$t(pt),Fr(pt),pt.component??pt._loadedComponent??null,pt,zu(Gt),Ii,Ke(pt),Ii);Dn=(0,v.of)({snapshot:Qi,consumedSegments:[],remainingSegments:[]})}else Dn=Ml(Gt,pt,se,Ut).pipe((0,ot.U)(({matched:qn,consumedSegments:Ii,remainingSegments:Qi,parameters:Fa})=>{if(!qn)return null;const Ko=Lt(Gt)+Ii.length;return{snapshot:new jc(Ii,Fa,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$t(pt),Fr(pt),pt.component??pt._loadedComponent??null,pt,zu(Gt),Ko,Ke(pt),Ko),consumedSegments:Ii,remainingSegments:Qi}}));return Dn.pipe((0,ct.w)(qn=>{if(null===qn)return(0,v.of)(null);const{snapshot:Ii,consumedSegments:Qi,remainingSegments:Fa}=qn;Ut=pt._injector??Ut;const Ko=pt._loadedInjector??Ut,xr=function Ks(At){return At.children?At.children:At.loadChildren?At._loadedRoutes:[]}(pt),{segmentGroup:zs,slicedSegments:Vu}=Bi(Gt,Qi,Fa,xr.filter(Dl=>void 0===Dl.redirectTo),this.relativeLinkResolution);if(0===Vu.length&&zs.hasChildren())return this.processChildren(Ko,xr,zs).pipe((0,ot.U)(Dl=>null===Dl?null:[new Vc(Ii,Dl)]));if(0===xr.length&&0===Vu.length)return(0,v.of)([new Vc(Ii,[])]);const va=Fr(pt)===Se;return this.processSegment(Ko,xr,zs,Vu,va?Le:Se).pipe((0,ot.U)(Dl=>null===Dl?null:[new Vc(Ii,Dl)]))}))}}function Xi(At){const Ut=At.value.routeConfig;return Ut&&""===Ut.path&&void 0===Ut.redirectTo}function fd(At){const Ut=[],pt=new Set;for(const Gt of At){if(!Xi(Gt)){Ut.push(Gt);continue}const se=Ut.find(Se=>Gt.value.routeConfig===Se.value.routeConfig);void 0!==se?(se.children.push(...Gt.children),pt.add(se)):Ut.push(Gt)}for(const Gt of pt){const se=fd(Gt.children);Ut.push(new Vc(Gt.value,se))}return Ut.filter(Gt=>!pt.has(Gt))}function zu(At){let Ut=At;for(;Ut._sourceSegment;)Ut=Ut._sourceSegment;return Ut}function Lt(At){let Ut=At,pt=Ut._segmentIndexShift??0;for(;Ut._sourceSegment;)Ut=Ut._sourceSegment,pt+=Ut._segmentIndexShift??0;return pt-1}function $t(At){return At.data||{}}function Ke(At){return At.resolve||{}}function Wn(At){return"string"==typeof At.title||null===At.title}function $n(At){return(0,ct.w)(Ut=>{const pt=At(Ut);return pt?(0,p.D)(pt).pipe((0,ot.U)(()=>Ut)):(0,v.of)(Ut)})}let yi=(()=>{class At{buildTitle(pt){let Gt,se=pt.root;for(;void 0!==se;)Gt=this.getResolvedTitleForRoute(se)??Gt,se=se.children.find(Se=>Se.outlet===Le);return Gt}getResolvedTitleForRoute(pt){return pt.data[on]}}return At.\u0275fac=function(pt){return new(pt||At)},At.\u0275prov=d.Yz7({token:At,factory:function(){return(0,d.f3M)(Ti)},providedIn:"root"}),At})(),Ti=(()=>{class At extends yi{constructor(pt){super(),this.title=pt}updateTitle(pt){const Gt=this.buildTitle(pt);void 0!==Gt&&this.title.setTitle(Gt)}}return At.\u0275fac=function(pt){return new(pt||At)(d.LFG(ce.Dx))},At.\u0275prov=d.Yz7({token:At,factory:At.\u0275fac,providedIn:"root"}),At})();class xo{}class ga extends class yo{shouldDetach(Ut){return!1}store(Ut,pt){}shouldAttach(Ut){return!1}retrieve(Ut){return null}shouldReuseRoute(Ut,pt){return Ut.routeConfig===pt.routeConfig}}{}const fa=new d.OlP("",{providedIn:"root",factory:()=>({})}),Hs=new d.OlP("ROUTES");let es=(()=>{class At{constructor(pt,Gt){this.injector=pt,this.compiler=Gt,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(pt){if(this.componentLoaders.get(pt))return this.componentLoaders.get(pt);if(pt._loadedComponent)return(0,v.of)(pt._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(pt);const Gt=xt(pt.loadComponent()).pipe((0,Zt.b)(Se=>{this.onLoadEndListener&&this.onLoadEndListener(pt),pt._loadedComponent=Se}),(0,ee.x)(()=>{this.componentLoaders.delete(pt)})),se=new z.c(Gt,()=>new G.xQ).pipe((0,ue.x)());return this.componentLoaders.set(pt,se),se}loadChildren(pt,Gt){if(this.childrenLoaders.get(Gt))return this.childrenLoaders.get(Gt);if(Gt._loadedRoutes)return(0,v.of)({routes:Gt._loadedRoutes,injector:Gt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Gt);const Se=this.loadModuleFactoryOrRoutes(Gt.loadChildren).pipe((0,ot.U)(qn=>{this.onLoadEndListener&&this.onLoadEndListener(Gt);let Ii,Qi,Fa=!1;Array.isArray(qn)?Qi=qn:(Ii=qn.create(pt).injector,Qi=ri(Ii.get(Hs,[],d.XFs.Self|d.XFs.Optional)));return{routes:Qi.map(Ws),injector:Ii}}),(0,ee.x)(()=>{this.childrenLoaders.delete(Gt)})),Dn=new z.c(Se,()=>new G.xQ).pipe((0,ue.x)());return this.childrenLoaders.set(Gt,Dn),Dn}loadModuleFactoryOrRoutes(pt){return xt(pt()).pipe((0,Ht.zg)(Gt=>Gt instanceof d.YKP||Array.isArray(Gt)?(0,v.of)(Gt):(0,p.D)(this.compiler.compileModuleAsync(Gt))))}}return At.\u0275fac=function(pt){return new(pt||At)(d.LFG(d.zs3),d.LFG(d.Sil))},At.\u0275prov=d.Yz7({token:At,factory:At.\u0275fac,providedIn:"root"}),At})();class ns{}class us{shouldProcessUrl(Ut){return!0}extract(Ut){return Ut}merge(Ut,pt){return Ut}}function Xs(At){throw At}function Fc(At,Ut,pt){return Ut.parse("/")}const is={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Rd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function cr(){const At=(0,d.f3M)(Ve),Ut=(0,d.f3M)(Cc),pt=(0,d.f3M)(W.Ye),Gt=(0,d.f3M)(d.zs3),se=(0,d.f3M)(d.Sil),Se=(0,d.f3M)(Hs,{optional:!0})??[],Dn=(0,d.f3M)(fa,{optional:!0})??{},qn=(0,d.f3M)(Ti),Ii=(0,d.f3M)(yi,{optional:!0}),Qi=(0,d.f3M)(ns,{optional:!0}),Fa=(0,d.f3M)(xo,{optional:!0}),Ko=new Cs(null,At,Ut,pt,Gt,se,ri(Se));return Qi&&(Ko.urlHandlingStrategy=Qi),Fa&&(Ko.routeReuseStrategy=Fa),Ko.titleStrategy=Ii??qn,function sr(At,Ut){At.errorHandler&&(Ut.errorHandler=At.errorHandler),At.malformedUriErrorHandler&&(Ut.malformedUriErrorHandler=At.malformedUriErrorHandler),At.onSameUrlNavigation&&(Ut.onSameUrlNavigation=At.onSameUrlNavigation),At.paramsInheritanceStrategy&&(Ut.paramsInheritanceStrategy=At.paramsInheritanceStrategy),At.relativeLinkResolution&&(Ut.relativeLinkResolution=At.relativeLinkResolution),At.urlUpdateStrategy&&(Ut.urlUpdateStrategy=At.urlUpdateStrategy),At.canceledNavigationResolution&&(Ut.canceledNavigationResolution=At.canceledNavigationResolution)}(Dn,Ko),Ko}let Cs=(()=>{class At{constructor(pt,Gt,se,Se,Dn,qn,Ii){this.rootComponentType=pt,this.urlSerializer=Gt,this.rootContexts=se,this.location=Se,this.config=Ii,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new G.xQ,this.errorHandler=Xs,this.malformedUriErrorHandler=Fc,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,v.of)(void 0),this.urlHandlingStrategy=new us,this.routeReuseStrategy=new ga,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Dn.get(es),this.configLoader.onLoadEndListener=xr=>this.triggerEvent(new _1(xr)),this.configLoader.onLoadStartListener=xr=>this.triggerEvent(new Ns(xr)),this.ngModule=Dn.get(d.h0i),this.console=Dn.get(d.c2e);const Ko=Dn.get(d.R0b);this.isNgZoneEnabled=Ko instanceof d.R0b&&d.R0b.isInAngularZone(),this.resetConfig(Ii),this.currentUrlTree=function et(){return new ho(new hi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=md(this.currentUrlTree,this.rootComponentType),this.transitions=new T.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(pt){const Gt=this.events;return pt.pipe((0,St.h)(se=>0!==se.id),(0,ot.U)(se=>({...se,extractedUrl:this.urlHandlingStrategy.extract(se.rawUrl)})),(0,ct.w)(se=>{let Se=!1,Dn=!1;return(0,v.of)(se).pipe((0,Zt.b)(qn=>{this.currentNavigation={id:qn.id,initialUrl:qn.rawUrl,extractedUrl:qn.extractedUrl,trigger:qn.source,extras:qn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ct.w)(qn=>{const Ii=this.browserUrlTree.toString(),Qi=!this.navigated||qn.extractedUrl.toString()!==Ii||Ii!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Qi)&&this.urlHandlingStrategy.shouldProcessUrl(qn.rawUrl))return jp(qn.source)&&(this.browserUrlTree=qn.extractedUrl),(0,v.of)(qn).pipe((0,ct.w)(Ko=>{const xr=this.transitions.getValue();return Gt.next(new Gr(Ko.id,this.serializeUrl(Ko.extractedUrl),Ko.source,Ko.restoredState)),xr!==this.transitions.getValue()?I.E:Promise.resolve(Ko)}),function So(At,Ut,pt,Gt){return(0,ct.w)(se=>function Di(At,Ut,pt,Gt,se){return new Pi(At,Ut,pt,Gt,se).apply()}(At,Ut,pt,se.extractedUrl,Gt).pipe((0,ot.U)(Se=>({...se,urlAfterRedirects:Se}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Zt.b)(Ko=>{this.currentNavigation={...this.currentNavigation,finalUrl:Ko.urlAfterRedirects},se.urlAfterRedirects=Ko.urlAfterRedirects}),function In(At,Ut,pt,Gt,se,Se){return(0,Ht.zg)(Dn=>function Ge(At,Ut,pt,Gt,se,Se,Dn="emptyOnly",qn="legacy"){return new xe(At,Ut,pt,Gt,se,Dn,qn,Se).recognize().pipe((0,ct.w)(Ii=>null===Ii?function vn(At){return new P.y(Ut=>Ut.error(At))}(new nr):(0,v.of)(Ii)))}(At,Ut,pt,Dn.urlAfterRedirects,Gt.serialize(Dn.urlAfterRedirects),Gt,se,Se).pipe((0,ot.U)(qn=>({...Dn,targetSnapshot:qn}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Zt.b)(Ko=>{if(se.targetSnapshot=Ko.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!Ko.extras.skipLocationChange){const zs=this.urlHandlingStrategy.merge(Ko.urlAfterRedirects,Ko.rawUrl);this.setBrowserUrl(zs,Ko)}this.browserUrlTree=Ko.urlAfterRedirects}const xr=new Sc(Ko.id,this.serializeUrl(Ko.extractedUrl),this.serializeUrl(Ko.urlAfterRedirects),Ko.targetSnapshot);Gt.next(xr)}));if(Qi&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:xr,extractedUrl:zs,source:Vu,restoredState:va,extras:Dl}=qn,$o=new Gr(xr,this.serializeUrl(zs),Vu,va);Gt.next($o);const Pn=md(zs,this.rootComponentType).snapshot;return se={...qn,targetSnapshot:Pn,urlAfterRedirects:zs,extras:{...Dl,skipLocationChange:!1,replaceUrl:!1}},(0,v.of)(se)}return this.rawUrlTree=qn.rawUrl,qn.resolve(null),I.E}),(0,Zt.b)(qn=>{const Ii=new Fs(qn.id,this.serializeUrl(qn.extractedUrl),this.serializeUrl(qn.urlAfterRedirects),qn.targetSnapshot);this.triggerEvent(Ii)}),(0,ot.U)(qn=>se={...qn,guards:yc(qn.targetSnapshot,qn.currentSnapshot,this.rootContexts)}),function Ru(At,Ut){return(0,Ht.zg)(pt=>{const{targetSnapshot:Gt,currentSnapshot:se,guards:{canActivateChecks:Se,canDeactivateChecks:Dn}}=pt;return 0===Dn.length&&0===Se.length?(0,v.of)({...pt,guardsResult:!0}):function er(At,Ut,pt,Gt){return(0,p.D)(At).pipe((0,Ht.zg)(se=>function ru(At,Ut,pt,Gt,se){const Se=Ut&&Ut.routeConfig?Ut.routeConfig.canDeactivate:null;if(!Se||0===Se.length)return(0,v.of)(!0);const Dn=Se.map(qn=>{const Ii=uc(Ut)??se,Qi=vu(qn,Ii);return xt(function ki(At){return At&&Pr(At.canDeactivate)}(Qi)?Qi.canDeactivate(At,Ut,pt,Gt):Ii.runInContext(()=>Qi(At,Ut,pt,Gt))).pipe((0,Jt.P)())});return(0,v.of)(Dn).pipe(qr())}(se.component,se.route,pt,Ut,Gt)),(0,Jt.P)(se=>!0!==se,!0))}(Dn,Gt,se,At).pipe((0,Ht.zg)(qn=>qn&&function _e(At){return"boolean"==typeof At}(qn)?function Ul(At,Ut,pt,Gt){return(0,p.D)(Ut).pipe((0,at.b)(se=>(0,x.z)(function Hu(At,Ut){return null!==At&&Ut&&Ut(new hr(At)),(0,v.of)(!0)}(se.route.parent,Gt),function au(At,Ut){return null!==At&&Ut&&Ut(new f1(At)),(0,v.of)(!0)}(se.route,Gt),function h1(At,Ut,pt){const Gt=Ut[Ut.length-1],Se=Ut.slice(0,Ut.length-1).reverse().map(Dn=>function qd(At){const Ut=At.routeConfig?At.routeConfig.canActivateChild:null;return Ut&&0!==Ut.length?{node:At,guards:Ut}:null}(Dn)).filter(Dn=>null!==Dn).map(Dn=>(0,w.P)(()=>{const qn=Dn.guards.map(Ii=>{const Qi=uc(Dn.node)??pt,Fa=vu(Ii,Qi);return xt(function st(At){return At&&Pr(At.canActivateChild)}(Fa)?Fa.canActivateChild(Gt,At):Qi.runInContext(()=>Fa(Gt,At))).pipe((0,Jt.P)())});return(0,v.of)(qn).pipe(qr())}));return(0,v.of)(Se).pipe(qr())}(At,se.path,pt),function Vp(At,Ut,pt){const Gt=Ut.routeConfig?Ut.routeConfig.canActivate:null;if(!Gt||0===Gt.length)return(0,v.of)(!0);const se=Gt.map(Se=>(0,w.P)(()=>{const Dn=uc(Ut)??pt,qn=vu(Se,Dn);return xt(function Yt(At){return At&&Pr(At.canActivate)}(qn)?qn.canActivate(Ut,At):Dn.runInContext(()=>qn(Ut,At))).pipe((0,Jt.P)())}));return(0,v.of)(se).pipe(qr())}(At,se.route,pt))),(0,Jt.P)(se=>!0!==se,!0))}(Gt,Se,At,Ut):(0,v.of)(qn)),(0,ot.U)(qn=>({...pt,guardsResult:qn})))})}(this.ngModule.injector,qn=>this.triggerEvent(qn)),(0,Zt.b)(qn=>{if(se.guardsResult=qn.guardsResult,No(qn.guardsResult))throw wl(0,qn.guardsResult);const Ii=new Lc(qn.id,this.serializeUrl(qn.extractedUrl),this.serializeUrl(qn.urlAfterRedirects),qn.targetSnapshot,!!qn.guardsResult);this.triggerEvent(Ii)}),(0,St.h)(qn=>!!qn.guardsResult||(this.restoreHistory(qn),this.cancelNavigationTransition(qn,"",3),!1)),$n(qn=>{if(qn.guards.canActivateChecks.length)return(0,v.of)(qn).pipe((0,Zt.b)(Ii=>{const Qi=new xl(Ii.id,this.serializeUrl(Ii.extractedUrl),this.serializeUrl(Ii.urlAfterRedirects),Ii.targetSnapshot);this.triggerEvent(Qi)}),(0,ct.w)(Ii=>{let Qi=!1;return(0,v.of)(Ii).pipe(function Rt(At,Ut){return(0,Ht.zg)(pt=>{const{targetSnapshot:Gt,guards:{canActivateChecks:se}}=pt;if(!se.length)return(0,v.of)(pt);let Se=0;return(0,p.D)(se).pipe((0,at.b)(Dn=>function de(At,Ut,pt,Gt){const se=At.routeConfig,Se=At._resolve;return void 0!==se?.title&&!Wn(se)&&(Se[on]=se.title),function De(At,Ut,pt,Gt){const se=function nn(At){return[...Object.keys(At),...Object.getOwnPropertySymbols(At)]}(At);if(0===se.length)return(0,v.of)({});const Se={};return(0,p.D)(se).pipe((0,Ht.zg)(Dn=>function Cn(At,Ut,pt,Gt){const se=uc(Ut)??Gt,Se=vu(At,se);return xt(Se.resolve?Se.resolve(Ut,pt):se.runInContext(()=>Se(Ut,pt)))}(At[Dn],Ut,pt,Gt).pipe((0,Jt.P)(),(0,Zt.b)(qn=>{Se[Dn]=qn}))),Wt(1),(0,re.h)(Se),(0,wt.K)(Dn=>Ec(Dn)?I.E:(0,D._)(Dn)))}(Se,At,Ut,Gt).pipe((0,ot.U)(Dn=>(At._resolvedData=Dn,At.data=Tl(At,pt).resolve,se&&Wn(se)&&(At.data[on]=se.title),null)))}(Dn.route,Gt,At,Ut)),(0,Zt.b)(()=>Se++),Wt(1),(0,Ht.zg)(Dn=>Se===se.length?(0,v.of)(pt):I.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Zt.b)({next:()=>Qi=!0,complete:()=>{Qi||(this.restoreHistory(Ii),this.cancelNavigationTransition(Ii,"",2))}}))}),(0,Zt.b)(Ii=>{const Qi=new Qr(Ii.id,this.serializeUrl(Ii.extractedUrl),this.serializeUrl(Ii.urlAfterRedirects),Ii.targetSnapshot);this.triggerEvent(Qi)}))}),$n(qn=>{const Ii=Qi=>{const Fa=[];Qi.routeConfig?.loadComponent&&!Qi.routeConfig._loadedComponent&&Fa.push(this.configLoader.loadComponent(Qi.routeConfig).pipe((0,Zt.b)(Ko=>{Qi.component=Ko}),(0,ot.U)(()=>{})));for(const Ko of Qi.children)Fa.push(...Ii(Ko));return Fa};return(0,A.aj)(Ii(qn.targetSnapshot.root)).pipe((0,ze.d)(),(0,gt.q)(1))}),$n(()=>this.afterPreactivation()),(0,ot.U)(qn=>{const Ii=function ar(At,Ut,pt){const Gt=cc(At,Ut._root,pt?pt._root:void 0);return new yl(Gt,Ut)}(this.routeReuseStrategy,qn.targetSnapshot,qn.currentRouterState);return se={...qn,targetRouterState:Ii}}),(0,Zt.b)(qn=>{this.currentUrlTree=qn.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(qn.urlAfterRedirects,qn.rawUrl),this.routerState=qn.targetRouterState,"deferred"===this.urlUpdateStrategy&&(qn.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,qn),this.browserUrlTree=qn.urlAfterRedirects)}),((At,Ut,pt)=>(0,ot.U)(Gt=>(new Vr(Ut,Gt.targetRouterState,Gt.currentRouterState,pt).activate(At),Gt)))(this.rootContexts,this.routeReuseStrategy,qn=>this.triggerEvent(qn)),(0,Zt.b)({next(){Se=!0},complete(){Se=!0}}),(0,ee.x)(()=>{Se||Dn||this.cancelNavigationTransition(se,"",1),this.currentNavigation?.id===se.id&&(this.currentNavigation=null)}),(0,wt.K)(qn=>{if(Dn=!0,bu(qn)){Jc(qn)||(this.navigated=!0,this.restoreHistory(se,!0));const Ii=new Pc(se.id,this.serializeUrl(se.extractedUrl),qn.message,qn.cancellationCode);if(Gt.next(Ii),Jc(qn)){const Qi=this.urlHandlingStrategy.merge(qn.url,this.rawUrlTree),Fa={skipLocationChange:se.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jp(se.source)};this.scheduleNavigation(Qi,"imperative",null,Fa,{resolve:se.resolve,reject:se.reject,promise:se.promise})}else se.resolve(!1)}else{this.restoreHistory(se,!0);const Ii=new rl(se.id,this.serializeUrl(se.extractedUrl),qn,se.targetSnapshot??void 0);Gt.next(Ii);try{se.resolve(this.errorHandler(qn))}catch(Qi){se.reject(Qi)}}return I.E}))}))}resetRootComponentType(pt){this.rootComponentType=pt,this.routerState.root.component=this.rootComponentType}setTransition(pt){this.transitions.next({...this.transitions.value,...pt})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(pt=>{const Gt="popstate"===pt.type?"popstate":"hashchange";"popstate"===Gt&&setTimeout(()=>{const se={replaceUrl:!0},Se=pt.state?.navigationId?pt.state:null;if(Se){const qn={...Se};delete qn.navigationId,delete qn.\u0275routerPageId,0!==Object.keys(qn).length&&(se.state=qn)}const Dn=this.parseUrl(pt.url);this.scheduleNavigation(Dn,Gt,Se,se)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(pt){this.events.next(pt)}resetConfig(pt){this.config=pt.map(Ws),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(pt,Gt={}){const{relativeTo:se,queryParams:Se,fragment:Dn,queryParamsHandling:qn,preserveFragment:Ii}=Gt,Qi=se||this.routerState.root,Fa=Ii?this.currentUrlTree.fragment:Dn;let Ko=null;switch(qn){case"merge":Ko={...this.currentUrlTree.queryParams,...Se};break;case"preserve":Ko=this.currentUrlTree.queryParams;break;default:Ko=Se||null}return null!==Ko&&(Ko=this.removeEmptyProps(Ko)),Nn(Qi,this.currentUrlTree,pt,Ko,Fa??null)}navigateByUrl(pt,Gt={skipLocationChange:!1}){const se=No(pt)?pt:this.parseUrl(pt),Se=this.urlHandlingStrategy.merge(se,this.rawUrlTree);return this.scheduleNavigation(Se,"imperative",null,Gt)}navigate(pt,Gt={skipLocationChange:!1}){return function b_(At){for(let Ut=0;Ut{const Se=pt[se];return null!=Se&&(Gt[se]=Se),Gt},{})}processNavigations(){this.navigations.subscribe(pt=>{this.navigated=!0,this.lastSuccessfulId=pt.id,this.currentPageId=pt.targetPageId,this.events.next(new Ir(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),pt.resolve(!0)},pt=>{this.console.warn(`Unhandled Navigation Error: ${pt}`)})}scheduleNavigation(pt,Gt,se,Se,Dn){if(this.disposed)return Promise.resolve(!1);let qn,Ii,Qi;Dn?(qn=Dn.resolve,Ii=Dn.reject,Qi=Dn.promise):Qi=new Promise((xr,zs)=>{qn=xr,Ii=zs});const Fa=++this.navigationId;let Ko;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(se=this.location.getState()),Ko=se&&se.\u0275routerPageId?se.\u0275routerPageId:Se.replaceUrl||Se.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):Ko=0,this.setTransition({id:Fa,targetPageId:Ko,source:Gt,restoredState:se,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:pt,extras:Se,resolve:qn,reject:Ii,promise:Qi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Qi.catch(xr=>Promise.reject(xr))}setBrowserUrl(pt,Gt){const se=this.urlSerializer.serialize(pt),Se={...Gt.extras.state,...this.generateNgRouterState(Gt.id,Gt.targetPageId)};this.location.isCurrentPathEqualTo(se)||Gt.extras.replaceUrl?this.location.replaceState(se,"",Se):this.location.go(se,"",Se)}restoreHistory(pt,Gt=!1){if("computed"===this.canceledNavigationResolution){const se=this.currentPageId-pt.targetPageId;"popstate"!==pt.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===se?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===se&&(this.resetState(pt),this.browserUrlTree=pt.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(se)}else"replace"===this.canceledNavigationResolution&&(Gt&&this.resetState(pt),this.resetUrlToCurrentUrlTree())}resetState(pt){this.routerState=pt.currentRouterState,this.currentUrlTree=pt.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,pt.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(pt,Gt,se){const Se=new Pc(pt.id,this.serializeUrl(pt.extractedUrl),Gt,se);this.triggerEvent(Se),pt.resolve(!1)}generateNgRouterState(pt,Gt){return"computed"===this.canceledNavigationResolution?{navigationId:pt,\u0275routerPageId:Gt}:{navigationId:pt}}}return At.\u0275fac=function(pt){d.$Z()},At.\u0275prov=d.Yz7({token:At,factory:function(){return cr()},providedIn:"root"}),At})();function jp(At){return"imperative"!==At}let Ka=(()=>{class At{constructor(pt,Gt,se,Se,Dn){this.router=pt,this.route=Gt,this.tabIndexAttribute=se,this.renderer=Se,this.el=Dn,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new G.xQ,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(pt){this._preserveFragment=(0,d.D6c)(pt)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(pt){this._skipLocationChange=(0,d.D6c)(pt)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(pt){this._replaceUrl=(0,d.D6c)(pt)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(pt){if(null!=this.tabIndexAttribute)return;const Gt=this.renderer,se=this.el.nativeElement;null!==pt?Gt.setAttribute(se,"tabindex",pt):Gt.removeAttribute(se,"tabindex")}ngOnChanges(pt){this.onChanges.next(this)}set routerLink(pt){null!=pt?(this.commands=Array.isArray(pt)?pt:[pt],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return At.\u0275fac=function(pt){return new(pt||At)(d.Y36(Cs),d.Y36(Js),d.$8M("tabindex"),d.Y36(d.Qsj),d.Y36(d.SBq))},At.\u0275dir=d.lG2({type:At,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(pt,Gt){1&pt&&d.NdJ("click",function(){return Gt.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[d.TTD]}),At})(),cu=(()=>{class At{constructor(pt,Gt,se){this.router=pt,this.route=Gt,this.locationStrategy=se,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new G.xQ,this.subscription=pt.events.subscribe(Se=>{Se instanceof Ir&&this.updateTargetUrlAndHref()})}set preserveFragment(pt){this._preserveFragment=(0,d.D6c)(pt)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(pt){this._skipLocationChange=(0,d.D6c)(pt)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(pt){this._replaceUrl=(0,d.D6c)(pt)}get replaceUrl(){return this._replaceUrl}set routerLink(pt){this.commands=null!=pt?Array.isArray(pt)?pt:[pt]:null}ngOnChanges(pt){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(pt,Gt,se,Se,Dn){return!!(0!==pt||Gt||se||Se||Dn||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return At.\u0275fac=function(pt){return new(pt||At)(d.Y36(Cs),d.Y36(Js),d.Y36(W.S$))},At.\u0275dir=d.lG2({type:At,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(pt,Gt){1&pt&&d.NdJ("click",function(Se){return Gt.onClick(Se.button,Se.ctrlKey,Se.shiftKey,Se.altKey,Se.metaKey)}),2&pt&&d.uIk("target",Gt.target)("href",Gt.href,d.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[d.TTD]}),At})(),Tc=(()=>{class At{constructor(pt,Gt,se,Se,Dn,qn){this.router=pt,this.element=Gt,this.renderer=se,this.cdr=Se,this.link=Dn,this.linkWithHref=qn,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new d.vpe,this.routerEventsSubscription=pt.events.subscribe(Ii=>{Ii instanceof Ir&&this.update()})}ngAfterContentInit(){(0,v.of)(this.links.changes,this.linksWithHrefs.changes,(0,v.of)(null)).pipe((0,Kt.J)()).subscribe(pt=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const pt=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Gt=>!!Gt).map(Gt=>Gt.onChanges);this.linkInputChangesSubscription=(0,p.D)(pt).pipe((0,Kt.J)()).subscribe(Gt=>{this.isActive!==this.isLinkActive(this.router)(Gt)&&this.update()})}set routerLinkActive(pt){const Gt=Array.isArray(pt)?pt:pt.split(" ");this.classes=Gt.filter(se=>!!se)}ngOnChanges(pt){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const pt=this.hasActiveLinks();this.isActive!==pt&&(this.isActive=pt,this.cdr.markForCheck(),this.classes.forEach(Gt=>{pt?this.renderer.addClass(this.element.nativeElement,Gt):this.renderer.removeClass(this.element.nativeElement,Gt)}),pt&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(pt))})}isLinkActive(pt){const Gt=function tc(At){return!!At.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return se=>!!se.urlTree&&pt.isActive(se.urlTree,Gt)}hasActiveLinks(){const pt=this.isLinkActive(this.router);return this.link&&pt(this.link)||this.linkWithHref&&pt(this.linkWithHref)||this.links.some(pt)||this.linksWithHrefs.some(pt)}}return At.\u0275fac=function(pt){return new(pt||At)(d.Y36(Cs),d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(d.sBO),d.Y36(Ka,8),d.Y36(cu,8))},At.\u0275dir=d.lG2({type:At,selectors:[["","routerLinkActive",""]],contentQueries:function(pt,Gt,se){if(1&pt&&(d.Suo(se,Ka,5),d.Suo(se,cu,5)),2&pt){let Se;d.iGM(Se=d.CRH())&&(Gt.links=Se),d.iGM(Se=d.CRH())&&(Gt.linksWithHrefs=Se)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[d.TTD]}),At})();class yu{}let Hd=(()=>{class At{constructor(pt,Gt,se,Se,Dn){this.router=pt,this.injector=se,this.preloadingStrategy=Se,this.loader=Dn}setUpPreloading(){this.subscription=this.router.events.pipe((0,St.h)(pt=>pt instanceof Ir),(0,at.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(pt,Gt){const se=[];for(const Se of Gt){Se.providers&&!Se._injector&&(Se._injector=(0,d.MMx)(Se.providers,pt,`Route: ${Se.path}`));const Dn=Se._injector??pt,qn=Se._loadedInjector??Dn;Se.loadChildren&&!Se._loadedRoutes&&void 0===Se.canLoad||Se.loadComponent&&!Se._loadedComponent?se.push(this.preloadConfig(Dn,Se)):(Se.children||Se._loadedRoutes)&&se.push(this.processRoutes(qn,Se.children??Se._loadedRoutes))}return(0,p.D)(se).pipe((0,Kt.J)())}preloadConfig(pt,Gt){return this.preloadingStrategy.preload(Gt,()=>{let se;se=Gt.loadChildren&&void 0===Gt.canLoad?this.loader.loadChildren(pt,Gt):(0,v.of)(null);const Se=se.pipe((0,Ht.zg)(Dn=>null===Dn?(0,v.of)(void 0):(Gt._loadedRoutes=Dn.routes,Gt._loadedInjector=Dn.injector,this.processRoutes(Dn.injector??pt,Dn.routes))));if(Gt.loadComponent&&!Gt._loadedComponent){const Dn=this.loader.loadComponent(Gt);return(0,p.D)([Se,Dn]).pipe((0,Kt.J)())}return Se})}}return At.\u0275fac=function(pt){return new(pt||At)(d.LFG(Cs),d.LFG(d.Sil),d.LFG(d.lqb),d.LFG(yu),d.LFG(es))},At.\u0275prov=d.Yz7({token:At,factory:At.\u0275fac,providedIn:"root"}),At})();const Jl=new d.OlP("");let Bu=(()=>{class At{constructor(pt,Gt,se={}){this.router=pt,this.viewportScroller=Gt,this.options=se,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},se.scrollPositionRestoration=se.scrollPositionRestoration||"disabled",se.anchorScrolling=se.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(pt=>{pt instanceof Gr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=pt.navigationTrigger,this.restoredId=pt.restoredState?pt.restoredState.navigationId:0):pt instanceof Ir&&(this.lastId=pt.id,this.scheduleScrollEvent(pt,this.router.parseUrl(pt.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(pt=>{pt instanceof Cl&&(pt.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(pt.position):pt.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(pt.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(pt,Gt){this.router.triggerEvent(new Cl(pt,"popstate"===this.lastSource?this.store[this.restoredId]:null,Gt))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return At.\u0275fac=function(pt){d.$Z()},At.\u0275prov=d.Yz7({token:At,factory:At.\u0275fac}),At})();function as(At,Ut){return{\u0275kind:At,\u0275providers:Ut}}function $c(At){return[{provide:Hs,multi:!0,useValue:At}]}function wr(){const At=(0,d.f3M)(d.zs3);return Ut=>{const pt=At.get(d.z2F);if(Ut!==pt.components[0])return;const Gt=At.get(Cs),se=At.get(un);1===At.get(hd)&&Gt.initialNavigation(),At.get(E1,null,d.XFs.Optional)?.setUpPreloading(),At.get(Jl,null,d.XFs.Optional)?.init(),Gt.resetRootComponentType(pt.componentTypes[0]),se.closed||(se.next(),se.unsubscribe())}}const un=new d.OlP("",{factory:()=>new G.xQ}),hd=new d.OlP("",{providedIn:"root",factory:()=>1});const E1=new d.OlP("");function Fo(At){return as(0,[{provide:E1,useExisting:Hd},{provide:yu,useExisting:At}])}const Ur=new d.OlP("ROUTER_FORROOT_GUARD"),Yu=[W.Ye,{provide:Ve,useClass:tn},{provide:Cs,useFactory:cr},Cc,{provide:Js,useFactory:function os(At){return At.routerState.root},deps:[Cs]},es];function To(){return new d.PXZ("Router",Cs)}let v_=(()=>{class At{constructor(pt){}static forRoot(pt,Gt){return{ngModule:At,providers:[Yu,[],$c(pt),{provide:Ur,useFactory:x_,deps:[[Cs,new d.FiY,new d.tp0]]},{provide:fa,useValue:Gt||{}},Gt?.useHash?{provide:W.S$,useClass:W.Do}:{provide:W.S$,useClass:W.b0},{provide:Jl,useFactory:()=>{const At=(0,d.f3M)(Cs),Ut=(0,d.f3M)(W.EM),pt=(0,d.f3M)(fa);return pt.scrollOffset&&Ut.setOffset(pt.scrollOffset),new Bu(At,Ut,pt)}},Gt?.preloadingStrategy?Fo(Gt.preloadingStrategy).\u0275providers:[],{provide:d.PXZ,multi:!0,useFactory:To},Gt?.initialNavigation?mp(Gt):[],[{provide:zd,useFactory:wr},{provide:d.tb,multi:!0,useExisting:zd}]]}}static forChild(pt){return{ngModule:At,providers:[$c(pt)]}}}return At.\u0275fac=function(pt){return new(pt||At)(d.LFG(Ur,8))},At.\u0275mod=d.oAB({type:At}),At.\u0275inj=d.cJS({imports:[Ac]}),At})();function x_(At){return"guarded"}function mp(At){return["disabled"===At.initialNavigation?as(3,[{provide:d.ip1,multi:!0,useFactory:()=>{const Ut=(0,d.f3M)(Cs);return()=>{Ut.setUpLocationChangeListener()}}},{provide:hd,useValue:2}]).\u0275providers:[],"enabledBlocking"===At.initialNavigation?as(2,[{provide:hd,useValue:0},{provide:d.ip1,multi:!0,deps:[d.zs3],useFactory:Ut=>{const pt=Ut.get(W.V_,Promise.resolve());let Gt=!1;return()=>pt.then(()=>new Promise(Se=>{const Dn=Ut.get(Cs),qn=Ut.get(un);(function se(Se){Ut.get(Cs).events.pipe((0,St.h)(qn=>qn instanceof Ir||qn instanceof Pc||qn instanceof rl),(0,ot.U)(qn=>qn instanceof Ir||qn instanceof Pc&&(0===qn.code||1===qn.code)&&null),(0,St.h)(qn=>null!==qn),(0,gt.q)(1)).subscribe(()=>{Se()})})(()=>{Se(!0),Gt=!0}),Dn.afterPreactivation=()=>(Se(!0),Gt||qn.closed?(0,v.of)(void 0):qn),Dn.initialNavigation()}))}}]).\u0275providers:[]]}const zd=new d.OlP("")},92216:(rt,it,b)=>{"use strict";b.d(it,{BN:()=>Xr,by:()=>Ks,uH:()=>In});var d=b(94650);function p(Rt,de){var De=Object.keys(Rt);if(Object.getOwnPropertySymbols){var nn=Object.getOwnPropertySymbols(Rt);de&&(nn=nn.filter(function(Cn){return Object.getOwnPropertyDescriptor(Rt,Cn).enumerable})),De.push.apply(De,nn)}return De}function v(Rt){for(var de=1;deRt.length)&&(de=Rt.length);for(var De=0,nn=new Array(de);De0;)de+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return de}function Be(Rt){for(var de=[],De=(Rt||[]).length>>>0;De--;)de[De]=Rt[De];return de}function Fn(Rt){return Rt.classList?Be(Rt.classList):(Rt.getAttribute("class")||"").split(" ").filter(function(de){return de})}function bi(Rt){return"".concat(Rt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function _o(Rt){return Object.keys(Rt||{}).reduce(function(de,De){return de+"".concat(De,": ").concat(Rt[De].trim(),";")},"")}function fn(Rt){return Rt.size!==en.size||Rt.x!==en.x||Rt.y!==en.y||Rt.rotate!==en.rotate||Rt.flipX||Rt.flipY}function Zi(){var de=on,De=Et.cssPrefix,nn=Et.replacementClass,Cn=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==De||nn!==de){var Wn=new RegExp("\\.".concat("fa","\\-"),"g"),$n=new RegExp("\\--".concat("fa","\\-"),"g"),yi=new RegExp("\\.".concat(de),"g");Cn=Cn.replace(Wn,".".concat(De,"-")).replace($n,"--".concat(De,"-")).replace(yi,".".concat(nn))}return Cn}var vo=!1;function No(){Et.autoAddCss&&!vo&&(function He(Rt){if(Rt&&ze){var de=Wt.createElement("style");de.setAttribute("type","text/css"),de.innerHTML=Rt;for(var De=Wt.head.childNodes,nn=null,Cn=De.length-1;Cn>-1;Cn--){var Wn=De[Cn],$n=(Wn.tagName||"").toUpperCase();["STYLE","LINK"].indexOf($n)>-1&&(nn=Wn)}Wt.head.insertBefore(de,nn)}}(Zi()),vo=!0)}var la={mixout:function(){return{dom:{css:Zi,insertCss:No}}},hooks:function(){return{beforeDOMElementCreation:function(){No()},beforeI2svg:function(){No()}}}},Ea=le||{};Ea[Kt]||(Ea[Kt]={}),Ea[Kt].styles||(Ea[Kt].styles={}),Ea[Kt].hooks||(Ea[Kt].hooks={}),Ea[Kt].shims||(Ea[Kt].shims=[]);var fr=Ea[Kt],$e=[],Ye=!1;function Pe(Rt){!ze||(Ye?setTimeout(Rt,0):$e.push(Rt))}function mn(Rt){var de=Rt.tag,De=Rt.attributes,nn=void 0===De?{}:De,Cn=Rt.children,Wn=void 0===Cn?[]:Cn;return"string"==typeof Rt?bi(Rt):"<".concat(de," ").concat(function go(Rt){return Object.keys(Rt||{}).reduce(function(de,De){return de+"".concat(De,'="').concat(bi(Rt[De]),'" ')},"").trim()}(nn),">").concat(Wn.map(mn).join(""),"")}function nt(Rt,de,De){if(Rt&&Rt[de]&&Rt[de][De])return{prefix:de,iconName:De,icon:Rt[de][De]}}ze&&((Ye=(Wt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Wt.readyState))||Wt.addEventListener("DOMContentLoaded",function Rt(){Wt.removeEventListener("DOMContentLoaded",Rt),Ye=1,$e.map(function(de){return de()})}));var Q=function(de,De,nn,Cn){var Ti,bo,xo,Wn=Object.keys(de),$n=Wn.length,yi=void 0!==Cn?function(de,De){return function(nn,Cn,Wn,$n){return de.call(De,nn,Cn,Wn,$n)}}(De,Cn):De;for(void 0===nn?(Ti=1,xo=de[Wn[0]]):(Ti=0,xo=nn);Ti<$n;Ti++)xo=yi(xo,de[bo=Wn[Ti]],bo,de);return xo};function Je(Rt){var de=function zt(Rt){for(var de=[],De=0,nn=Rt.length;De=55296&&Cn<=56319&&De2&&void 0!==arguments[2]?arguments[2]:{},nn=De.skipHooks,Cn=void 0!==nn&&nn,Wn=Gi(de);"function"!=typeof fr.hooks.addPack||Cn?fr.styles[Rt]=v(v({},fr.styles[Rt]||{}),Wn):fr.hooks.addPack(Rt,Gi(de)),"fas"===Rt&&Co("fa",de)}var br,cs,or,Er=fr.styles,bc=fr.shims,dr=(k(br={},vt,Object.values(ne[vt])),k(br,xt,Object.values(ne[xt])),br),Yr=null,Gr={},Ir={},Pc={},rl={},Sc={},Fs=(k(cs={},vt,Object.keys(Ct[vt])),k(cs,xt,Object.keys(Ct[xt])),cs);function xl(Rt,de){var De=de.split("-"),nn=De[0],Cn=De.slice(1).join("-");return nn!==Rt||""===Cn||function Lc(Rt){return~je.indexOf(Rt)}(Cn)?null:Cn}var Qr=function(){var de=function(Wn){return Q(Er,function($n,yi,Ti){return $n[Ti]=Q(yi,Wn,{}),$n},{})};Gr=de(function(Cn,Wn,$n){return Wn[3]&&(Cn[Wn[3]]=$n),Wn[2]&&Wn[2].filter(function(Ti){return"number"==typeof Ti}).forEach(function(Ti){Cn[Ti.toString(16)]=$n}),Cn}),Ir=de(function(Cn,Wn,$n){return Cn[$n]=$n,Wn[2]&&Wn[2].filter(function(Ti){return"string"==typeof Ti}).forEach(function(Ti){Cn[Ti]=$n}),Cn}),Sc=de(function(Cn,Wn,$n){var yi=Wn[2];return Cn[$n]=$n,yi.forEach(function(Ti){Cn[Ti]=$n}),Cn});var De="far"in Er||Et.autoFetchSvg,nn=Q(bc,function(Cn,Wn){var $n=Wn[0],yi=Wn[1],Ti=Wn[2];return"far"===yi&&!De&&(yi="fas"),"string"==typeof $n&&(Cn.names[$n]={prefix:yi,iconName:Ti}),"number"==typeof $n&&(Cn.unicodes[$n.toString(16)]={prefix:yi,iconName:Ti}),Cn},{names:{},unicodes:{}});Pc=nn.names,rl=nn.unicodes,Yr=Al(Et.styleDefault,{family:Et.familyDefault})};function Ns(Rt,de){return(Gr[Rt]||{})[de]}function hr(Rt,de){return(Sc[Rt]||{})[de]}function iu(Rt){return Pc[Rt]||{prefix:null,iconName:null}}function vc(){return Yr}function Al(Rt){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},De=de.family,nn=void 0===De?vt:De,Cn=Ct[nn][Rt],Wn=Bt[nn][Rt]||Bt[nn][Cn],$n=Rt in fr.styles?Rt:null;return Wn||$n||null}(function It(Rt){Mt.push(Rt)})(function(Rt){Yr=Al(Rt.styleDefault,{family:Et.familyDefault})}),Qr();var Oc=(k(or={},vt,Object.keys(ne[vt])),k(or,xt,Object.keys(ne[xt])),or);function Vs(Rt){var de,De=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nn=De.skipLookups,Cn=void 0!==nn&&nn,Wn=(k(de={},vt,"".concat(Et.cssPrefix,"-").concat(vt)),k(de,xt,"".concat(Et.cssPrefix,"-").concat(xt)),de),$n=null,yi=vt;(Rt.includes(Wn[vt])||Rt.some(function(bo){return Oc[vt].includes(bo)}))&&(yi=vt),(Rt.includes(Wn[xt])||Rt.some(function(bo){return Oc[xt].includes(bo)}))&&(yi=xt);var Ti=Rt.reduce(function(bo,xo){var yo=xl(Et.cssPrefix,xo);if(Er[xo]?(xo=dr[yi].includes(xo)?he[yi][xo]:xo,$n=xo,bo.prefix=xo):Fs[yi].indexOf(xo)>-1?($n=xo,bo.prefix=Al(xo,{family:yi})):yo?bo.iconName=yo:xo!==Et.replacementClass&&xo!==Wn[vt]&&xo!==Wn[xt]&&bo.rest.push(xo),!Cn&&bo.prefix&&bo.iconName){var ga="fa"===$n?iu(bo.iconName):{},ra=hr(bo.prefix,bo.iconName);ga.prefix&&($n=null),bo.iconName=ga.iconName||ra||bo.iconName,bo.prefix=ga.prefix||bo.prefix,"far"===bo.prefix&&!Er.far&&Er.fas&&!Et.autoFetchSvg&&(bo.prefix="fas")}return bo},{prefix:null,iconName:null,rest:[]});return(Rt.includes("fa-brands")||Rt.includes("fab"))&&(Ti.prefix="fab"),(Rt.includes("fa-duotone")||Rt.includes("fad"))&&(Ti.prefix="fad"),!Ti.prefix&&yi===xt&&(Er.fass||Et.autoFetchSvg)&&(Ti.prefix="fass",Ti.iconName=hr(Ti.prefix,Ti.iconName)||Ti.iconName),("fa"===Ti.prefix||"fa"===$n)&&(Ti.prefix=vc()||"fas"),Ti}var Yc=function(){function Rt(){(function A(Rt,de){if(!(Rt instanceof de))throw new TypeError("Cannot call a class as a function")})(this,Rt),this.definitions={}}return function w(Rt,de,De){de&&x(Rt.prototype,de),De&&x(Rt,De),Object.defineProperty(Rt,"prototype",{writable:!1})}(Rt,[{key:"add",value:function(){for(var De=this,nn=arguments.length,Cn=new Array(nn),Wn=0;Wn0&&xo.forEach(function(yo){"string"==typeof yo&&(De[yi][yo]=bo)}),De[yi][Ti]=bo}),De}}]),Rt}(),Vc=[],js={},yl={},md=Object.keys(yl);function Js(Rt,de){for(var De=arguments.length,nn=new Array(De>2?De-2:0),Cn=2;Cn1?de-1:0),nn=1;nn0&&void 0!==arguments[0]?arguments[0]:{};return ze?(Tl("beforeI2svg",de),Gs("pseudoElements2svg",de),Gs("i2svg",de)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},De=de.autoReplaceSvgRoot;!1===Et.autoReplaceSvg&&(Et.autoReplaceSvg=!0),Et.observeMutations=!0,Pe(function(){ar({autoReplaceSvgRoot:De}),Tl("watch",de)})}},qo={noAuto:function(){Et.autoReplaceSvg=!1,Et.observeMutations=!1,Tl("noAuto")},config:Et,dom:ou,parse:{icon:function(de){if(null===de)return null;if("object"===T(de)&&de.prefix&&de.iconName)return{prefix:de.prefix,iconName:hr(de.prefix,de.iconName)||de.iconName};if(Array.isArray(de)&&2===de.length){var De=0===de[1].indexOf("fa-")?de[1].slice(3):de[1],nn=Al(de[0]);return{prefix:nn,iconName:hr(nn,De)||De}}if("string"==typeof de&&(de.indexOf("".concat(Et.cssPrefix,"-"))>-1||de.match(Oe))){var Cn=Vs(de.split(" "),{skipLookups:!0});return{prefix:Cn.prefix||vc(),iconName:hr(Cn.prefix,Cn.iconName)||Cn.iconName}}if("string"==typeof de){var Wn=vc();return{prefix:Wn,iconName:hr(Wn,de)||de}}}},library:ks,findIconDefinition:jc,toHtml:mn},ar=function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},De=de.autoReplaceSvgRoot,nn=void 0===De?Wt:De;(Object.keys(fr.styles).length>0||Et.autoFetchSvg)&&ze&&Et.autoReplaceSvg&&qo.dom.i2svg({node:nn})};function cc(Rt,de){return Object.defineProperty(Rt,"abstract",{get:de}),Object.defineProperty(Rt,"html",{get:function(){return Rt.abstract.map(function(nn){return mn(nn)})}}),Object.defineProperty(Rt,"node",{get:function(){if(ze){var nn=Wt.createElement("div");return nn.innerHTML=Rt.html,nn.children}}}),Rt}function xc(Rt){var de=Rt.icons,De=de.main,nn=de.mask,Cn=Rt.prefix,Wn=Rt.iconName,$n=Rt.transform,yi=Rt.symbol,Ti=Rt.title,bo=Rt.maskId,xo=Rt.titleId,yo=Rt.extra,ga=Rt.watchable,ra=void 0!==ga&&ga,fa=nn.found?nn:De,ts=fa.width,Hs=fa.height,es="fak"===Cn,ns=[Et.replacementClass,Wn?"".concat(Et.cssPrefix,"-").concat(Wn):""].filter(function(sr){return-1===yo.classes.indexOf(sr)}).filter(function(sr){return""!==sr||!!sr}).concat(yo.classes).join(" "),us={children:[],attributes:v(v({},yo.attributes),{},{"data-prefix":Cn,"data-icon":Wn,class:ns,role:yo.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(ts," ").concat(Hs)})},Hr=es&&!~yo.classes.indexOf("fa-fw")?{width:"".concat(ts/Hs*16*.0625,"em")}:{};ra&&(us.attributes[hn]=""),Ti&&(us.children.push({tag:"title",attributes:{id:us.attributes["aria-labelledby"]||"title-".concat(xo||ve())},children:[Ti]}),delete us.attributes.title);var Xs=v(v({},us),{},{prefix:Cn,iconName:Wn,main:De,mask:nn,maskId:bo,transform:$n,symbol:yi,styles:v(v({},Hr),yo.styles)}),Fc=nn.found&&De.found?Gs("generateAbstractMask",Xs)||{children:[],attributes:{}}:Gs("generateAbstractIcon",Xs)||{children:[],attributes:{}},Rd=Fc.attributes;return Xs.children=Fc.children,Xs.attributes=Rd,yi?function Yl(Rt){var De=Rt.iconName,nn=Rt.children,Cn=Rt.attributes,Wn=Rt.symbol,$n=!0===Wn?"".concat(Rt.prefix,"-").concat(Et.cssPrefix,"-").concat(De):Wn;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:v(v({},Cn),{},{id:$n}),children:nn}]}]}(Xs):function qu(Rt){var de=Rt.children,De=Rt.main,nn=Rt.mask,Cn=Rt.attributes,Wn=Rt.styles,$n=Rt.transform;if(fn($n)&&De.found&&!nn.found){var bo={x:De.width/De.height/2,y:.5};Cn.style=_o(v(v({},Wn),{},{"transform-origin":"".concat(bo.x+$n.x/16,"em ").concat(bo.y+$n.y/16,"em")}))}return[{tag:"svg",attributes:Cn,children:de}]}(Xs)}function wl(Rt){var de=Rt.content,De=Rt.width,nn=Rt.height,Cn=Rt.transform,Wn=Rt.title,$n=Rt.extra,yi=Rt.watchable,Ti=void 0!==yi&&yi,bo=v(v(v({},$n.attributes),Wn?{title:Wn}:{}),{},{class:$n.classes.join(" ")});Ti&&(bo[hn]="");var xo=v({},$n.styles);fn(Cn)&&(xo.transform=function ln(Rt){var de=Rt.transform,De=Rt.width,Cn=Rt.height,Wn=void 0===Cn?16:Cn,$n=Rt.startCentered,yi=void 0!==$n&&$n,Ti="";return Ti+=yi&&Xe?"translate(".concat(de.x/16-(void 0===De?16:De)/2,"em, ").concat(de.y/16-Wn/2,"em) "):yi?"translate(calc(-50% + ".concat(de.x/16,"em), calc(-50% + ").concat(de.y/16,"em)) "):"translate(".concat(de.x/16,"em, ").concat(de.y/16,"em) "),(Ti+="scale(".concat(de.size/16*(de.flipX?-1:1),", ").concat(de.size/16*(de.flipY?-1:1),") "))+"rotate(".concat(de.rotate,"deg) ")}({transform:Cn,startCentered:!0,width:De,height:nn}),xo["-webkit-transform"]=xo.transform);var yo=_o(xo);yo.length>0&&(bo.style=yo);var ga=[];return ga.push({tag:"span",attributes:bo,children:[de]}),Wn&&ga.push({tag:"span",attributes:{class:"sr-only"},children:[Wn]}),ga}function Ds(Rt){var de=Rt.content,De=Rt.title,nn=Rt.extra,Cn=v(v(v({},nn.attributes),De?{title:De}:{}),{},{class:nn.classes.join(" ")}),Wn=_o(nn.styles);Wn.length>0&&(Cn.style=Wn);var $n=[];return $n.push({tag:"span",attributes:Cn,children:[de]}),De&&$n.push({tag:"span",attributes:{class:"sr-only"},children:[De]}),$n}var Jc=fr.styles;function bu(Rt){var de=Rt[0],De=Rt[1],Wn=I(Rt.slice(4),1)[0];return{found:!0,width:de,height:De,icon:Array.isArray(Wn)?{tag:"g",attributes:{class:"".concat(Et.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(Et.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:Wn[0]}},{tag:"path",attributes:{class:"".concat(Et.cssPrefix,"-").concat("primary"),fill:"currentColor",d:Wn[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Wn}}}}var Dr={found:!1,width:512,height:512};function Wa(Rt,de){var De=de;return"fa"===de&&null!==Et.styleDefault&&(de=vc()),new Promise(function(nn,Cn){if(Gs("missingIconAbstract"),"fa"===De){var $n=iu(Rt)||{};Rt=$n.iconName||Rt,de=$n.prefix||de}if(Rt&&de&&Jc[de]&&Jc[de][Rt])return nn(bu(Jc[de][Rt]));(function Cc(Rt,de){!Ft&&!Et.showMissingIcons&&Rt&&console.error('Icon with name "'.concat(Rt,'" and prefix "').concat(de,'" is missing.'))})(Rt,de),nn(v(v({},Dr),{},{icon:Et.showMissingIcons&&Rt&&Gs("missingIconAbstract")||{}}))})}var pr=function(){},Gc=Et.measurePerformance&&Ae&&Ae.mark&&Ae.measure?Ae:{mark:pr,measure:pr},vs='FA "6.2.1"',Vl_begin=function(de){return Gc.mark("".concat(vs," ").concat(de," begins")),function(){return function(de){Gc.mark("".concat(vs," ").concat(de," ends")),Gc.measure("".concat(vs," ").concat(de),"".concat(vs," ").concat(de," begins"),"".concat(vs," ").concat(de," ends"))}(de)}},Ps=function(){};function qs(Rt){return"string"==typeof(Rt.getAttribute?Rt.getAttribute(hn):null)}function Qs(Rt){return Wt.createElementNS("http://www.w3.org/2000/svg",Rt)}function lc(Rt){return Wt.createElement(Rt)}function Ws(Rt){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},De=de.ceFn,nn=void 0===De?"svg"===Rt.tag?Qs:lc:De;if("string"==typeof Rt)return Wt.createTextNode(Rt);var Cn=nn(Rt.tag);Object.keys(Rt.attributes||[]).forEach(function($n){Cn.setAttribute($n,Rt.attributes[$n])});var Wn=Rt.children||[];return Wn.forEach(function($n){Cn.appendChild(Ws($n,{ceFn:nn}))}),Cn}var aa={replace:function(de){var De=de[0];if(De.parentNode)if(de[1].forEach(function(Cn){De.parentNode.insertBefore(Ws(Cn),De)}),null===De.getAttribute(hn)&&Et.keepOriginalSource){var nn=Wt.createComment(function Fr(Rt){var de=" ".concat(Rt.outerHTML," ");return"".concat(de,"Font Awesome fontawesome.com ")}(De));De.parentNode.replaceChild(nn,De)}else De.remove()},nest:function(de){var De=de[0],nn=de[1];if(~Fn(De).indexOf(Et.replacementClass))return aa.replace(de);var Cn=new RegExp("".concat(Et.cssPrefix,"-.*"));if(delete nn[0].attributes.id,nn[0].attributes.class){var Wn=nn[0].attributes.class.split(" ").reduce(function(yi,Ti){return Ti===Et.replacementClass||Ti.match(Cn)?yi.toSvg.push(Ti):yi.toNode.push(Ti),yi},{toNode:[],toSvg:[]});nn[0].attributes.class=Wn.toSvg.join(" "),0===Wn.toNode.length?De.removeAttribute("class"):De.setAttribute("class",Wn.toNode.join(" "))}var $n=nn.map(function(yi){return mn(yi)}).join("\n");De.setAttribute(hn,""),De.innerHTML=$n}};function uc(Rt){Rt()}function vr(Rt,de){var De="function"==typeof de?de:Ps;if(0===Rt.length)De();else{var nn=uc;"async"===Et.mutateApproach&&(nn=le.requestAnimationFrame||uc),nn(function(){var Cn=function Rs(){return!0===Et.autoReplaceSvg?aa.replace:aa[Et.autoReplaceSvg]||aa.replace}(),Wn=Vl_begin("mutate");Rt.map(Cn),Wn(),De()})}}var Vr=!1;function Qc(){Vr=!0}function sl(){Vr=!1}var yc=null;function qd(Rt){if(Ce&&Et.observeMutations){var de=Rt.treeCallback,De=void 0===de?Ps:de,nn=Rt.nodeCallback,Cn=void 0===nn?Ps:nn,Wn=Rt.pseudoElementsCallback,$n=void 0===Wn?Ps:Wn,yi=Rt.observeMutationsRoot,Ti=void 0===yi?Wt:yi;yc=new Ce(function(bo){if(!Vr){var xo=vc();Be(bo).forEach(function(yo){if("childList"===yo.type&&yo.addedNodes.length>0&&!qs(yo.addedNodes[0])&&(Et.searchPseudoElements&&$n(yo.target),De(yo.target)),"attributes"===yo.type&&yo.target.parentNode&&Et.searchPseudoElements&&$n(yo.target.parentNode),"attributes"===yo.type&&qs(yo.target)&&~hi.indexOf(yo.attributeName))if("class"===yo.attributeName&&function xs(Rt){var de=Rt.getAttribute?Rt.getAttribute(Ze):null,De=Rt.getAttribute?Rt.getAttribute(dn):null;return de&&De}(yo.target)){var ga=Vs(Fn(yo.target)),fa=ga.iconName;yo.target.setAttribute(Ze,ga.prefix||xo),fa&&yo.target.setAttribute(dn,fa)}else(function ls(Rt){return Rt&&Rt.classList&&Rt.classList.contains&&Rt.classList.contains(Et.replacementClass)})(yo.target)&&Cn(yo.target)})}}),ze&&yc.observe(Ti,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Yi(Rt){var de=Rt.getAttribute("style"),De=[];return de&&(De=de.split(";").reduce(function(nn,Cn){var Wn=Cn.split(":"),$n=Wn[0],yi=Wn.slice(1);return $n&&yi.length>0&&(nn[$n]=yi.join(":").trim()),nn},{})),De}function Da(Rt){var de=Rt.getAttribute("data-prefix"),De=Rt.getAttribute("data-icon"),nn=void 0!==Rt.innerText?Rt.innerText.trim():"",Cn=Vs(Fn(Rt));return Cn.prefix||(Cn.prefix=vc()),de&&De&&(Cn.prefix=de,Cn.iconName=De),Cn.iconName&&Cn.prefix||(Cn.prefix&&nn.length>0&&(Cn.iconName=function _1(Rt,de){return(Ir[Rt]||{})[de]}(Cn.prefix,Rt.innerText)||Ns(Cn.prefix,Je(Rt.innerText))),!Cn.iconName&&Et.autoFetchSvg&&Rt.firstChild&&Rt.firstChild.nodeType===Node.TEXT_NODE&&(Cn.iconName=Rt.firstChild.data)),Cn}function xu(Rt){var de=Be(Rt.attributes).reduce(function(Cn,Wn){return"class"!==Cn.name&&"style"!==Cn.name&&(Cn[Wn.name]=Wn.value),Cn},{}),De=Rt.getAttribute("title"),nn=Rt.getAttribute("data-fa-title-id");return Et.autoA11y&&(De?de["aria-labelledby"]="".concat(Et.replacementClass,"-title-").concat(nn||ve()):(de["aria-hidden"]="true",de.focusable="false")),de}function Pr(Rt){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},De=Da(Rt),nn=De.iconName,Cn=De.prefix,Wn=De.rest,$n=xu(Rt),yi=Js("parseNodeAttributes",{},Rt),Ti=de.styleParser?Yi(Rt):[];return v({iconName:nn,title:Rt.getAttribute("title"),titleId:Rt.getAttribute("data-fa-title-id"),prefix:Cn,transform:en,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Wn,styles:Ti,attributes:$n}},yi)}var _e=fr.styles;function ae(Rt){var de="nest"===Et.autoReplaceSvg?Pr(Rt,{styleParser:!1}):Pr(Rt);return~de.extra.classes.indexOf(yn)?Gs("generateLayersText",Rt,de):Gs("generateSvgReplacementMutation",Rt,de)}var Yt=new Set;function st(Rt){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!ze)return Promise.resolve();var De=Wt.documentElement.classList,nn=function(yo){return De.add("".concat(kn,"-").concat(yo))},Cn=function(yo){return De.remove("".concat(kn,"-").concat(yo))},Wn=Et.autoFetchSvg?Yt:tt.map(function(xo){return"fa-".concat(xo)}).concat(Object.keys(_e));Wn.includes("fa")||Wn.push("fa");var $n=[".".concat(yn,":not([").concat(hn,"])")].concat(Wn.map(function(xo){return".".concat(xo,":not([").concat(hn,"])")})).join(", ");if(0===$n.length)return Promise.resolve();var yi=[];try{yi=Be(Rt.querySelectorAll($n))}catch{}if(!(yi.length>0))return Promise.resolve();nn("pending"),Cn("complete");var Ti=Vl_begin("onTree"),bo=yi.reduce(function(xo,yo){try{var ga=ae(yo);ga&&xo.push(ga)}catch(ra){Ft||"MissingIcon"===ra.name&&console.error(ra)}return xo},[]);return new Promise(function(xo,yo){Promise.all(bo).then(function(ga){vr(ga,function(){nn("active"),nn("complete"),Cn("pending"),"function"==typeof de&&de(),Ti(),xo()})}).catch(function(ga){Ti(),yo(ga)})})}function ki(Rt){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ae(Rt).then(function(De){De&&vr([De],de)})}tt.map(function(Rt){Yt.add("fa-".concat(Rt))}),Object.keys(Ct[vt]).map(Yt.add.bind(Yt)),Object.keys(Ct[xt]).map(Yt.add.bind(Yt)),Yt=z(Yt);var Sa=function(de){var De=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nn=De.transform,Cn=void 0===nn?en:nn,Wn=De.symbol,$n=void 0!==Wn&&Wn,yi=De.mask,Ti=void 0===yi?null:yi,bo=De.maskId,xo=void 0===bo?null:bo,yo=De.title,ga=void 0===yo?null:yo,ra=De.titleId,fa=void 0===ra?null:ra,ts=De.classes,Hs=void 0===ts?[]:ts,es=De.attributes,ns=void 0===es?{}:es,us=De.styles,Hr=void 0===us?{}:us;if(de){var Xs=de.prefix,Fc=de.iconName,is=de.icon;return cc(v({type:"icon"},de),function(){return Tl("beforeDOMElementCreation",{iconDefinition:de,params:De}),Et.autoA11y&&(ga?ns["aria-labelledby"]="".concat(Et.replacementClass,"-title-").concat(fa||ve()):(ns["aria-hidden"]="true",ns.focusable="false")),xc({icons:{main:bu(is),mask:Ti?bu(Ti.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Xs,iconName:Fc,transform:v(v({},en),Cn),symbol:$n,title:ga,maskId:xo,titleId:fa,extra:{attributes:ns,styles:Hr,classes:Hs}})})}},Wc={mixout:function(){return{icon:(Rt=Sa,function(de){var De=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nn=(de||{}).icon?de:jc(de||{}),Cn=De.mask;return Cn&&(Cn=(Cn||{}).icon?Cn:jc(Cn||{})),Rt(nn,v(v({},De),{},{mask:Cn}))})};var Rt},hooks:function(){return{mutationObserverCallbacks:function(De){return De.treeCallback=st,De.nodeCallback=ki,De}}},provides:function(de){de.i2svg=function(De){var nn=De.node,Wn=De.callback;return st(void 0===nn?Wt:nn,void 0===Wn?function(){}:Wn)},de.generateSvgReplacementMutation=function(De,nn){var Cn=nn.iconName,Wn=nn.title,$n=nn.titleId,yi=nn.prefix,Ti=nn.transform,bo=nn.symbol,xo=nn.mask,yo=nn.maskId,ga=nn.extra;return new Promise(function(ra,fa){Promise.all([Wa(Cn,yi),xo.iconName?Wa(xo.iconName,xo.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(ts){var Hs=I(ts,2);ra([De,xc({icons:{main:Hs[0],mask:Hs[1]},prefix:yi,iconName:Cn,transform:Ti,symbol:bo,maskId:yo,title:Wn,titleId:$n,extra:ga,watchable:!0})])}).catch(fa)})},de.generateAbstractIcon=function(De){var bo,nn=De.children,Cn=De.attributes,Wn=De.main,$n=De.transform,Ti=_o(De.styles);return Ti.length>0&&(Cn.style=Ti),fn($n)&&(bo=Gs("generateAbstractTransformGrouping",{main:Wn,transform:$n,containerWidth:Wn.width,iconWidth:Wn.width})),nn.push(bo||Wn.icon),{children:nn,attributes:Cn}}}},Ec={mixout:function(){return{layer:function(De){var nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Cn=nn.classes,Wn=void 0===Cn?[]:Cn;return cc({type:"layer"},function(){Tl("beforeDOMElementCreation",{assembler:De,params:nn});var $n=[];return De(function(yi){Array.isArray(yi)?yi.map(function(Ti){$n=$n.concat(Ti.abstract)}):$n=$n.concat(yi.abstract)}),[{tag:"span",attributes:{class:["".concat(Et.cssPrefix,"-layers")].concat(z(Wn)).join(" ")},children:$n}]})}}}},Nr={mixout:function(){return{counter:function(De){var nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Cn=nn.title,Wn=void 0===Cn?null:Cn,$n=nn.classes,yi=void 0===$n?[]:$n,Ti=nn.attributes,bo=void 0===Ti?{}:Ti,xo=nn.styles,yo=void 0===xo?{}:xo;return cc({type:"counter",content:De},function(){return Tl("beforeDOMElementCreation",{content:De,params:nn}),Ds({content:De.toString(),title:Wn,extra:{attributes:bo,styles:yo,classes:["".concat(Et.cssPrefix,"-layers-counter")].concat(z(yi))}})})}}}},qr={mixout:function(){return{text:function(De){var nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Cn=nn.transform,Wn=void 0===Cn?en:Cn,$n=nn.title,yi=void 0===$n?null:$n,Ti=nn.classes,bo=void 0===Ti?[]:Ti,xo=nn.attributes,yo=void 0===xo?{}:xo,ga=nn.styles,ra=void 0===ga?{}:ga;return cc({type:"text",content:De},function(){return Tl("beforeDOMElementCreation",{content:De,params:nn}),wl({content:De,transform:v(v({},en),Wn),title:yi,extra:{attributes:yo,styles:ra,classes:["".concat(Et.cssPrefix,"-layers-text")].concat(z(bo))}})})}}},provides:function(de){de.generateLayersText=function(De,nn){var Cn=nn.title,Wn=nn.transform,$n=nn.extra,yi=null,Ti=null;if(Xe){var bo=parseInt(getComputedStyle(De).fontSize,10),xo=De.getBoundingClientRect();yi=xo.width/bo,Ti=xo.height/bo}return Et.autoA11y&&!Cn&&($n.attributes["aria-hidden"]="true"),Promise.resolve([De,wl({content:De.innerHTML,width:yi,height:Ti,transform:Wn,title:Cn,extra:$n,watchable:!0})])}}},Ru=new RegExp('"',"ug"),er=[1105920,1112319];function au(Rt,de){var De="".concat("data-fa-pseudo-element-pending").concat(de.replace(":","-"));return new Promise(function(nn,Cn){if(null!==Rt.getAttribute(De))return nn();var $n=Be(Rt.children).filter(function(is){return is.getAttribute(we)===de})[0],yi=le.getComputedStyle(Rt,de),Ti=yi.getPropertyValue("font-family").match(On),bo=yi.getPropertyValue("font-weight"),xo=yi.getPropertyValue("content");if($n&&!Ti)return Rt.removeChild($n),nn();if(Ti&&"none"!==xo&&""!==xo){var yo=yi.getPropertyValue("content"),ga=~["Sharp"].indexOf(Ti[2])?xt:vt,ra=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(Ti[2])?Bt[ga][Ti[2].toLowerCase()]:_i[ga][bo],fa=function Ul(Rt){var de=Rt.replace(Ru,""),De=function zn(Rt,de){var Cn,De=Rt.length,nn=Rt.charCodeAt(de);return nn>=55296&&nn<=56319&&De>de+1&&(Cn=Rt.charCodeAt(de+1))>=56320&&Cn<=57343?1024*(nn-55296)+Cn-56320+65536:nn}(de,0),nn=De>=er[0]&&De<=er[1],Cn=2===de.length&&de[0]===de[1];return{value:Je(Cn?de[0]:de),isSecondary:nn||Cn}}(yo),ts=fa.value,Hs=fa.isSecondary,es=Ti[0].startsWith("FontAwesome"),ns=Ns(ra,ts),us=ns;if(es){var Hr=function f1(Rt){var de=rl[Rt],De=Ns("fas",Rt);return de||(De?{prefix:"fas",iconName:De}:null)||{prefix:null,iconName:null}}(ts);Hr.iconName&&Hr.prefix&&(ns=Hr.iconName,ra=Hr.prefix)}if(!ns||Hs||$n&&$n.getAttribute(Ze)===ra&&$n.getAttribute(dn)===us)nn();else{Rt.setAttribute(De,us),$n&&Rt.removeChild($n);var Xs=function $s(){return{iconName:null,title:null,titleId:null,prefix:null,transform:en,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Fc=Xs.extra;Fc.attributes[we]=de,Wa(ns,ra).then(function(is){var Rd=xc(v(v({},Xs),{},{icons:{main:is,mask:{prefix:null,iconName:null,rest:[]}},prefix:ra,iconName:us,extra:Fc,watchable:!0})),sr=Wt.createElement("svg");"::before"===de?Rt.insertBefore(sr,Rt.firstChild):Rt.appendChild(sr),sr.outerHTML=Rd.map(function(cr){return mn(cr)}).join("\n"),Rt.removeAttribute(De),nn()}).catch(Cn)}}else nn()})}function Hu(Rt){return Promise.all([au(Rt,"::before"),au(Rt,"::after")])}function Vp(Rt){return!(Rt.parentNode===document.head||~Ee.indexOf(Rt.tagName.toUpperCase())||Rt.getAttribute(we)||Rt.parentNode&&"svg"===Rt.parentNode.tagName)}function h1(Rt){if(ze)return new Promise(function(de,De){var nn=Be(Rt.querySelectorAll("*")).filter(Vp).map(Hu),Cn=Vl_begin("searchPseudoElements");Qc(),Promise.all(nn).then(function(){Cn(),sl(),de()}).catch(function(){Cn(),sl(),De()})})}var Ic=!1,Zl=function(de){return de.toLowerCase().split(" ").reduce(function(nn,Cn){var Wn=Cn.toLowerCase().split("-"),$n=Wn[0],yi=Wn.slice(1).join("-");if($n&&"h"===yi)return nn.flipX=!0,nn;if($n&&"v"===yi)return nn.flipY=!0,nn;if(yi=parseFloat(yi),isNaN(yi))return nn;switch($n){case"grow":nn.size=nn.size+yi;break;case"shrink":nn.size=nn.size-yi;break;case"left":nn.x=nn.x-yi;break;case"right":nn.x=nn.x+yi;break;case"up":nn.y=nn.y-yi;break;case"down":nn.y=nn.y+yi;break;case"rotate":nn.rotate=nn.rotate+yi}return nn},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Ml={x:0,y:0,width:"100%",height:"100%"};function ll(Rt){var de=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Rt.attributes&&(Rt.attributes.fill||de)&&(Rt.attributes.fill="black"),Rt}!function Hl(Rt,de){var De=de.mixoutsTo;Vc=Rt,js={},Object.keys(yl).forEach(function(nn){-1===md.indexOf(nn)&&delete yl[nn]}),Vc.forEach(function(nn){var Cn=nn.mixout?nn.mixout():{};if(Object.keys(Cn).forEach(function($n){"function"==typeof Cn[$n]&&(De[$n]=Cn[$n]),"object"===T(Cn[$n])&&Object.keys(Cn[$n]).forEach(function(yi){De[$n]||(De[$n]={}),De[$n][yi]=Cn[$n][yi]})}),nn.hooks){var Wn=nn.hooks();Object.keys(Wn).forEach(function($n){js[$n]||(js[$n]=[]),js[$n].push(Wn[$n])})}nn.provides&&nn.provides(yl)})}([la,Wc,Ec,Nr,qr,{hooks:function(){return{mutationObserverCallbacks:function(De){return De.pseudoElementsCallback=h1,De}}},provides:function(de){de.pseudoElements2svg=function(De){var nn=De.node;Et.searchPseudoElements&&h1(void 0===nn?Wt:nn)}}},{mixout:function(){return{dom:{unwatch:function(){Qc(),Ic=!0}}}},hooks:function(){return{bootstrap:function(){qd(Js("mutationObserverCallbacks",{}))},noAuto:function(){!function vu(){!yc||yc.disconnect()}()},watch:function(De){var nn=De.observeMutationsRoot;Ic?sl():qd(Js("mutationObserverCallbacks",{observeMutationsRoot:nn}))}}}},{mixout:function(){return{parse:{transform:function(De){return Zl(De)}}}},hooks:function(){return{parseNodeAttributes:function(De,nn){var Cn=nn.getAttribute("data-fa-transform");return Cn&&(De.transform=Zl(Cn)),De}}},provides:function(de){de.generateAbstractTransformGrouping=function(De){var nn=De.main,Cn=De.transform,$n=De.iconWidth,yi={transform:"translate(".concat(De.containerWidth/2," 256)")},Ti="translate(".concat(32*Cn.x,", ").concat(32*Cn.y,") "),bo="scale(".concat(Cn.size/16*(Cn.flipX?-1:1),", ").concat(Cn.size/16*(Cn.flipY?-1:1),") "),xo="rotate(".concat(Cn.rotate," 0 0)"),ra={outer:yi,inner:{transform:"".concat(Ti," ").concat(bo," ").concat(xo)},path:{transform:"translate(".concat($n/2*-1," -256)")}};return{tag:"g",attributes:v({},ra.outer),children:[{tag:"g",attributes:v({},ra.inner),children:[{tag:nn.icon.tag,children:nn.icon.children,attributes:v(v({},nn.icon.attributes),ra.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(De,nn){var Cn=nn.getAttribute("data-fa-mask"),Wn=Cn?Vs(Cn.split(" ").map(function($n){return $n.trim()})):{prefix:null,iconName:null,rest:[]};return Wn.prefix||(Wn.prefix=vc()),De.mask=Wn,De.maskId=nn.getAttribute("data-fa-mask-id"),De}}},provides:function(de){de.generateAbstractMask=function(De){var Rt,nn=De.children,Cn=De.attributes,Wn=De.main,$n=De.mask,yi=De.maskId,xo=Wn.icon,ga=$n.icon,ra=function wn(Rt){var de=Rt.transform,nn=Rt.iconWidth,Cn={transform:"translate(".concat(Rt.containerWidth/2," 256)")},Wn="translate(".concat(32*de.x,", ").concat(32*de.y,") "),$n="scale(".concat(de.size/16*(de.flipX?-1:1),", ").concat(de.size/16*(de.flipY?-1:1),") "),yi="rotate(".concat(de.rotate," 0 0)");return{outer:Cn,inner:{transform:"".concat(Wn," ").concat($n," ").concat(yi)},path:{transform:"translate(".concat(nn/2*-1," -256)")}}}({transform:De.transform,containerWidth:$n.width,iconWidth:Wn.width}),fa={tag:"rect",attributes:v(v({},Ml),{},{fill:"white"})},ts=xo.children?{children:xo.children.map(ll)}:{},Hs={tag:"g",attributes:v({},ra.inner),children:[ll(v({tag:xo.tag,attributes:v(v({},xo.attributes),ra.path)},ts))]},es={tag:"g",attributes:v({},ra.outer),children:[Hs]},ns="mask-".concat(yi||ve()),us="clip-".concat(yi||ve()),Hr={tag:"mask",attributes:v(v({},Ml),{},{id:ns,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[fa,es]},Xs={tag:"defs",children:[{tag:"clipPath",attributes:{id:us},children:(Rt=ga,"g"===Rt.tag?Rt.children:[Rt])},Hr]};return nn.push(Xs,{tag:"rect",attributes:v({fill:"currentColor","clip-path":"url(#".concat(us,")"),mask:"url(#".concat(ns,")")},Ml)}),{children:nn,attributes:Cn}}}},{provides:function(de){var De=!1;le.matchMedia&&(De=le.matchMedia("(prefers-reduced-motion: reduce)").matches),de.missingIconAbstract=function(){var nn=[],Cn={fill:"currentColor"},Wn={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};nn.push({tag:"path",attributes:v(v({},Cn),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var $n=v(v({},Wn),{},{attributeName:"opacity"}),yi={tag:"circle",attributes:v(v({},Cn),{},{cx:"256",cy:"364",r:"28"}),children:[]};return De||yi.children.push({tag:"animate",attributes:v(v({},Wn),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:v(v({},$n),{},{values:"1;0;1;1;0;1;"})}),nn.push(yi),nn.push({tag:"path",attributes:v(v({},Cn),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:De?[]:[{tag:"animate",attributes:v(v({},$n),{},{values:"1;0;0;0;0;1;"})}]}),De||nn.push({tag:"path",attributes:v(v({},Cn),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:v(v({},$n),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:nn}}}},{hooks:function(){return{parseNodeAttributes:function(De,nn){var Cn=nn.getAttribute("data-fa-symbol");return De.symbol=null!==Cn&&(""===Cn||Cn),De}}}}],{mixoutsTo:qo});var Ra=qo.parse,g1=qo.icon,Pi=b(11481);const So=["*"],vn=Rt=>{const de={"fa-spin":Rt.spin,"fa-pulse":Rt.pulse,"fa-fw":Rt.fixedWidth,"fa-border":Rt.border,"fa-inverse":Rt.inverse,"fa-layers-counter":Rt.counter,"fa-flip-horizontal":"horizontal"===Rt.flip||"both"===Rt.flip,"fa-flip-vertical":"vertical"===Rt.flip||"both"===Rt.flip,[`fa-${Rt.size}`]:null!==Rt.size,[`fa-rotate-${Rt.rotate}`]:null!==Rt.rotate,[`fa-pull-${Rt.pull}`]:null!==Rt.pull,[`fa-stack-${Rt.stackItemSize}`]:null!=Rt.stackItemSize};return Object.keys(de).map(De=>de[De]?De:null).filter(De=>De)};let Au=(()=>{class Rt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return Rt.\u0275fac=function(De){return new(De||Rt)},Rt.\u0275prov=d.Yz7({token:Rt,factory:Rt.\u0275fac,providedIn:"root"}),Rt})(),Ks=(()=>{class Rt{constructor(){this.definitions={}}addIcons(...De){for(const nn of De){nn.prefix in this.definitions||(this.definitions[nn.prefix]={}),this.definitions[nn.prefix][nn.iconName]=nn;for(const Cn of nn.icon[2])"string"==typeof Cn&&(this.definitions[nn.prefix][Cn]=nn)}}addIconPacks(...De){for(const nn of De){const Cn=Object.keys(nn).map(Wn=>nn[Wn]);this.addIcons(...Cn)}}getIconDefinition(De,nn){return De in this.definitions&&nn in this.definitions[De]?this.definitions[De][nn]:null}}return Rt.\u0275fac=function(De){return new(De||Rt)},Rt.\u0275prov=d.Yz7({token:Rt,factory:Rt.\u0275fac,providedIn:"root"}),Rt})(),Xi=(()=>{class Rt{constructor(){this.stackItemSize="1x"}ngOnChanges(De){if("size"in De)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return Rt.\u0275fac=function(De){return new(De||Rt)},Rt.\u0275dir=d.lG2({type:Rt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[d.TTD]}),Rt})(),fd=(()=>{class Rt{constructor(De,nn){this.renderer=De,this.elementRef=nn}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(De){"size"in De&&(null!=De.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${De.size.currentValue}`),null!=De.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${De.size.previousValue}`))}}return Rt.\u0275fac=function(De){return new(De||Rt)(d.Y36(d.Qsj),d.Y36(d.SBq))},Rt.\u0275cmp=d.Xpm({type:Rt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[d.TTD],ngContentSelectors:So,decls:1,vars:0,template:function(De,nn){1&De&&(d.F$t(),d.Hsn(0))},encapsulation:2}),Rt})(),Xr=(()=>{class Rt{constructor(De,nn,Cn,Wn,$n){this.sanitizer=De,this.config=nn,this.iconLibrary=Cn,this.stackItem=Wn,this.classes=[],null!=$n&&null==Wn&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(De){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let nn=null;if(nn=this.icon??this.config.fallbackIcon,De){const Cn=this.findIconDefinition(nn);if(null!=Cn){const Wn=this.buildParams();this.renderIcon(Cn,Wn)}}}render(){this.ngOnChanges({})}findIconDefinition(De){const nn=((Rt,de)=>(Rt=>void 0!==Rt.prefix&&void 0!==Rt.iconName)(Rt)?Rt:Array.isArray(Rt)&&2===Rt.length?{prefix:Rt[0],iconName:Rt[1]}:"string"==typeof Rt?{prefix:de,iconName:Rt}:void 0)(De,this.config.defaultPrefix);return"icon"in nn?nn:this.iconLibrary.getIconDefinition(nn.prefix,nn.iconName)??((Rt=>{throw new Error(`Could not find icon with iconName=${Rt.iconName} and prefix=${Rt.prefix} in the icon library.`)})(nn),null)}buildParams(){const De={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},nn="string"==typeof this.transform?Ra.transform(this.transform):this.transform;return{title:this.title,transform:nn,classes:[...vn(De),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(De,nn){const Cn=g1(De,nn);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(Cn.html.join("\n"))}}return Rt.\u0275fac=function(De){return new(De||Rt)(d.Y36(Pi.H7),d.Y36(Au),d.Y36(Ks),d.Y36(Xi,8),d.Y36(fd,8))},Rt.\u0275cmp=d.Xpm({type:Rt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(De,nn){2&De&&(d.Ikx("innerHTML",nn.renderedIconHTML,d.oJD),d.uIk("title",nn.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[d.TTD],decls:0,vars:0,template:function(De,nn){},encapsulation:2}),Rt})(),In=(()=>{class Rt{}return Rt.\u0275fac=function(De){return new(De||Rt)},Rt.\u0275mod=d.oAB({type:Rt}),Rt.\u0275inj=d.cJS({}),Rt})()},33231:(rt,it,b)=>{"use strict";b.d(it,{Co:()=>bn,nu:()=>hn});var d=b(29521),p=b(94650),v=b(24006),T=b(3238),t=b(59549),A=b(84385),x=b(591),w=b(21086),k=b(23426),D=b(8929),P=b(87545),I=b(24850),z=b(1059),G=b(18583),W=b(7625),ot=b(72986),ct=b(92198),gt=b(22868),Pt=b(67376),St=b(56709),Ht=b(51572),Jt=b(4859),at=b(97392),Zt=b(36895),wt=b(10266);const _t=["searchSelectInput"],Nt=["innerSelectSearch"];function Qt(Ze,dn){if(1&Ze){const kn=p.EpF();p.TgZ(0,"mat-checkbox",9),p.NdJ("change",function(Ee){p.CHM(kn);const Ft=p.oxw();return p.KtG(Ft._emitSelectAllBooleanToParent(Ee.checked))}),p.qZA()}if(2&Ze){const kn=p.oxw();p.Q6J("color",null==kn.matFormField?null:kn.matFormField.color)("checked",kn.toggleAllCheckboxChecked)("indeterminate",kn.toggleAllCheckboxIndeterminate)("matTooltip",kn.toggleAllCheckboxTooltipMessage)("matTooltipPosition",kn.toggleAllCheckboxTooltipPosition)}}function qt(Ze,dn){1&Ze&&p._UZ(0,"mat-spinner",10)}function le(Ze,dn){1&Ze&&p.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Wt(Ze,dn){if(1&Ze&&(p.TgZ(0,"mat-icon",14),p._uU(1),p.qZA()),2&Ze){const kn=p.oxw(2);p.Q6J("svgIcon",kn.closeSvgIcon),p.xp6(1),p.hij(" ",kn.closeSvgIcon?null:kn.closeIcon," ")}}function Ce(Ze,dn){if(1&Ze){const kn=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){p.CHM(kn);const Ee=p.oxw();return p.KtG(Ee._reset(!0))}),p.YNc(1,le,1,0,"ng-content",12),p.YNc(2,Wt,2,2,"ng-template",null,13,p.W1O),p.qZA()}if(2&Ze){const kn=p.MAs(3),ri=p.oxw();p.xp6(1),p.Q6J("ngIf",ri.clearIcon)("ngIfElse",kn)}}function Ae(Ze,dn){1&Ze&&p.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function Ne(Ze,dn){if(1&Ze&&p._uU(0),2&Ze){const kn=p.oxw(2);p.Oqu(kn.noEntriesFoundLabel)}}function ze(Ze,dn){if(1&Ze&&(p.TgZ(0,"div",15),p.YNc(1,Ae,1,0,"ng-content",12),p.YNc(2,Ne,1,1,"ng-template",null,16,p.W1O),p.qZA()),2&Ze){const kn=p.MAs(3),ri=p.oxw();p.xp6(1),p.Q6J("ngIf",ri.noEntriesFound)("ngIfElse",kn)}}const Xe=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],ie=function(Ze,dn){return{"mat-select-search-inner-multiple":Ze,"mat-select-search-inner-toggle-all":dn}},Te=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let re=(()=>{class Ze{}return Ze.\u0275fac=function(kn){return new(kn||Ze)},Ze.\u0275dir=p.lG2({type:Ze,selectors:[["","ngxMatSelectSearchClear",""]]}),Ze})();const ee=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],ue=new p.OlP("mat-selectsearch-default-options");let Le=(()=>{class Ze{}return Ze.\u0275fac=function(kn){return new(kn||Ze)},Ze.\u0275dir=p.lG2({type:Ze,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),Ze})(),hn=(()=>{class Ze{constructor(kn,ri,Ee,Ft=null,vt=null,xt){this.matSelect=kn,this.changeDetectorRef=ri,this._viewportRuler=Ee,this.matOption=Ft,this.matFormField=vt,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new p.vpe,this.onTouched=tt=>{},this._options$=new x.X(null),this.optionsList$=this._options$.pipe((0,P.w)(tt=>tt?tt.changes.pipe((0,I.U)(et=>et.toArray()),(0,z.O)(tt.toArray())):(0,w.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,I.U)(tt=>tt?tt.length:0)),this._formControl=new v.NI(""),this._showNoEntriesFound$=(0,k.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,I.U)(([tt,et])=>this.noEntriesFoundLabel&&tt&&et===this.getOptionsLengthOffset())),this._onDestroy=new D.xQ,this.applyDefaultOptions(xt)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(kn){this._options$.next(kn)}get _options(){return this._options$.getValue()}applyDefaultOptions(kn){if(kn)for(const ri of ee)kn.hasOwnProperty(ri)&&(this[ri]=kn[ri])}ngOnInit(){const kn="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(kn):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,kn]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[kn]=!0):this.matSelect.panelClass=kn,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,G.g)(1),(0,W.R)(this._onDestroy)).subscribe(ri=>{ri?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,ot.q)(1)).pipe((0,W.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,W.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let ri=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,W.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const Ee=this._options.toArray(),Ft=Ee[this.getOptionsLengthOffset()],vt=this.matSelect._keyManager;vt&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(ri,Ft)||!vt.activeItem||!Ee.find(tt=>this.matSelect.compareWith(tt,vt.activeItem)))&&vt.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),ri=Ft})})}),this._showNoEntriesFound$.pipe((0,W.R)(this._onDestroy)).subscribe(ri=>{this.matOption&&(ri?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,W.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,W.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(kn){this.toggleAll.emit(kn)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(kn){(kn.key&&1===kn.key.length||kn.keyCode>=d.A&&kn.keyCode<=d.Z||kn.keyCode>=d.xE&&kn.keyCode<=d.aO||kn.keyCode===d.L_||this.preventHomeEndKeyPropagation&&(kn.keyCode===d.Sd||kn.keyCode===d.uR))&&kn.stopPropagation(),this.matSelect.multiple&&kn.key&&kn.keyCode===d.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&kn.keyCode===d.hY&&this.value&&(this._reset(!0),kn.stopPropagation())}_handleKeyup(kn){if(kn.keyCode===d.LH||kn.keyCode===d.JH){const ri=this.matSelect._getAriaActiveDescendant(),Ee=this._options.toArray().findIndex(Ft=>Ft.id===ri);-1!==Ee&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[Ee]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",ri))}}writeValue(kn){this._lastExternalInputValue=kn,this._formControl.setValue(kn),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(kn){this._formControl.valueChanges.pipe((0,ct.h)(ri=>ri!==this._lastExternalInputValue),(0,gt.b)(()=>this._lastExternalInputValue=void 0),(0,W.R)(this._onDestroy)).subscribe(kn)}registerOnTouched(kn){this.onTouched=kn}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const kn=this.matSelect.panel.nativeElement,ri=kn.scrollTop;this.searchSelectInput.nativeElement.focus(),kn.scrollTop=ri}_reset(kn){this._formControl.setValue(""),kn&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,W.R)(this._onDestroy)).subscribe(kn=>{let ri=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!kn||!Array.isArray(kn))&&(kn=[]);const Ee=this.matSelect.options.map(Ft=>Ft.value);this.previousSelectedValues.forEach(Ft=>{!kn.some(vt=>this.matSelect.compareWith(vt,Ft))&&!Ee.some(vt=>this.matSelect.compareWith(vt,Ft))&&(kn.push(Ft),ri=!0)})}this.previousSelectedValues=kn,ri&&this.matSelect._onChange(kn)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const kn=this.getMatOptionHeight(),ri=this.matSelect._keyManager.activeItemIndex||0,Ee=(0,T.CB)(ri,this.matSelect.options,this.matSelect.optionGroups),Ft=(this.matOption?-1:0)+Ee+ri,vt=this.matSelect.panel.nativeElement.scrollTop,xt=this.innerSelectSearch.nativeElement.offsetHeight,tt=Math.floor((256-xt)/kn),et=Math.round((vt+xt)/kn)-1;et>=Ft?this.matSelect.panel.nativeElement.scrollTop=Ft*kn:et+tt<=Ft&&(this.matSelect.panel.nativeElement.scrollTop=(Ft+1)*kn-(256-xt))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let ri,kn=this.innerSelectSearch.nativeElement;for(;kn=kn.parentElement;)if(kn.classList.contains("mat-select-panel")){ri=kn;break}ri&&(this.innerSelectSearch.nativeElement.style.width=ri.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return Ze.\u0275fac=function(kn){return new(kn||Ze)(p.Y36(A.gD),p.Y36(p.sBO),p.Y36(Pt.rL),p.Y36(T.ey,8),p.Y36(t.KE,8),p.Y36(ue,8))},Ze.\u0275cmp=p.Xpm({type:Ze,selectors:[["ngx-mat-select-search"]],contentQueries:function(kn,ri,Ee){if(1&kn&&(p.Suo(Ee,re,5),p.Suo(Ee,Le,5)),2&kn){let Ft;p.iGM(Ft=p.CRH())&&(ri.clearIcon=Ft.first),p.iGM(Ft=p.CRH())&&(ri.noEntriesFound=Ft.first)}},viewQuery:function(kn,ri){if(1&kn&&(p.Gf(_t,7,p.SBq),p.Gf(Nt,7,p.SBq)),2&kn){let Ee;p.iGM(Ee=p.CRH())&&(ri.searchSelectInput=Ee.first),p.iGM(Ee=p.CRH())&&(ri.innerSelectSearch=Ee.first)}},hostVars:2,hostBindings:function(kn,ri){2&kn&&p.ekj("mat-select-search-inside-mat-option",ri.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[p._Bn([{provide:v.JU,useExisting:(0,p.Gpc)(()=>Ze),multi:!0}])],ngContentSelectors:Te,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(kn,ri){1&kn&&(p.F$t(Xe),p._UZ(0,"input",0),p.TgZ(1,"div",1,2),p.YNc(3,Qt,1,5,"mat-checkbox",3),p.TgZ(4,"input",4,5),p.NdJ("keydown",function(Ft){return ri._handleKeydown(Ft)})("keyup",function(Ft){return ri._handleKeyup(Ft)})("blur",function(){return ri.onBlur()}),p.qZA(),p.YNc(6,qt,1,0,"mat-spinner",6),p.YNc(7,Ce,4,2,"button",7),p.Hsn(8),p.qZA(),p.YNc(9,ze,4,2,"div",8),p.ALo(10,"async")),2&kn&&(p.xp6(1),p.Q6J("ngClass",p.WLB(11,ie,ri.matSelect.multiple,ri._isToggleAllCheckboxVisible())),p.xp6(2),p.Q6J("ngIf",ri._isToggleAllCheckboxVisible()),p.xp6(1),p.Q6J("type",ri.type)("formControl",ri._formControl)("placeholder",ri.placeholderLabel),p.uIk("aria-label",ri.ariaLabel),p.xp6(2),p.Q6J("ngIf",ri.searching),p.xp6(1),p.Q6J("ngIf",!ri.hideClearSearchButton&&ri.value&&!ri.searching),p.xp6(2),p.Q6J("ngIf",p.lcZ(10,9,ri._showNoEntriesFound$)))},dependencies:[St.oG,Ht.Ou,Jt.lW,at.Hw,Zt.mk,Zt.O5,wt.gM,v.Fj,v.JJ,v.oH,Zt.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),Ze})(),bn=(()=>{class Ze{}return Ze.\u0275fac=function(kn){return new(kn||Ze)},Ze.\u0275mod=p.oAB({type:Ze}),Ze.\u0275inj=p.cJS({imports:[[Zt.ez,v.UX,Jt.ot,St.p9,at.Ps,Ht.Cq,wt.AV]]}),Ze})()},15861:(rt,it,b)=>{"use strict";function d(v,T,t,A,x,w,k){try{var D=v[w](k),P=D.value}catch(I){return void t(I)}D.done?T(P):Promise.resolve(P).then(A,x)}function p(v){return function(){var T=this,t=arguments;return new Promise(function(A,x){var w=v.apply(T,t);function k(P){d(w,A,x,k,D,"next",P)}function D(P){d(w,A,x,k,D,"throw",P)}k(void 0)})}}b.d(it,{Z:()=>p})}},rt=>{rt(rt.s=19202)}]); \ No newline at end of file